html,
body,
.wrapper,
.injectArea {
  min-height: 100vh;
}
.injectArea {
  background: darkslategray;
  padding: 10px;
}
.outer {
  width: 500px;
  height: 500px;
  border: 1px solid black;
  margin: 50px auto;
  padding-left: 1%;
  padding-top: 1%;
  border-radius: 5px;
  background: #AC3;
  box-shadow: inset 3px 10px rgba(255, 255, 255, 0.5), inset -3px -10px rgba(0, 0, 0, 0.5), 1px 1px rgba(0, 0, 0, 1);
}
.tile {
  text-align: center;
  font-size: 8em;
  color: #000;
  float: left;
  width: 28%;
  height: 28%;
  border: 3px outset black;
  margin: 2%;
  border-radius: 5px;
  background: #999;
  box-shadow: inset 3px 10px rgba(255, 255, 255, 0.5), inset -3px -10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.tile:hover {
  border: 3px inset black;
  box-shadow: inset -3px -10px rgba(255, 255, 255, 0.5), inset 3px 10px rgba(0, 0, 0, 10.5);
}
.clicked {
  border: 3px inset black;
  box-shadow: inset -3px -10px rgba(255, 255, 255, 0.5), inset 3px 10px rgba(0, 0, 0, 10.5);
  color: #FFF;
  text-shadow: -5px 0px 0px #444, -5px 0px 0px #880, 1px 1px 3px #AA0, -1px -1px 3px #AA0, -1px 1px 3px #AA0, 1px -1px 3px #AA0, 5px 5px 10px #AA0, -5px -5px 10px #AA0, -5px 5px 10px #AA0, 5px -5px 10px #AA0;
}
.modal {
  display: block;
  text-align: center;
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  padding-top: 5%;
}
.select {
  display: block;
  padding: 5%;
  margin: 25px auto;
  width: 50%;
  height: 40%;
  background: #FFF;
  border-radius: 10px;
}
.select button {
  margin: 15px;
  background: green;
  border: none;
  padding: 20px 40px 20px 40px;
  border-radius: 25px;
}
.select button:hover {
  box-shadow: inset -5px -5px rgba(255, 255, 255, 0.5), inset 0px 5px rgba(0, 0, 0, 0.5);
}
.result {
  display: none;
  padding: 5%;
  margin: 25px auto;
  width: 50%;
  height: 40%;
  background: #FFF;
  border-radius: 10px;
}
.result button {
  margin: 15px;
  background: green;
  border: none;
  padding: 20px 40px 20px 40px;
  border-radius: 25px;
}
.result button:hover {
  box-shadow: inset -5px -5px rgba(255, 255, 255, 0.5), inset 0px 5px rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 520px) {
  .outer {
    width: 300px;
    height: 300px;
    padding-left: 3%;
    padding-top: 2%;
  }
  .tile {
    font-size: 4.5em;
    margin: 1%;
  }
  .select {
    width: 50%;
  }
  .select button {
    padding: 15px 25px 15px 25px;
  }
  .result {
    width: 60%;
  }
  .result button {
    padding: 15px 25px 15px 25px;
  }
}
