@import url("https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Courier+Prime&display=swap");
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal .modal__modal-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background-color: #858585;
  border: 2px solid #d0342c;
  border-radius: 10px;
  padding: 20px;
  width: 60%;
  max-width: 300px;
  height: 20%;
  -webkit-animation-name: animateOpacity;
          animation-name: animateOpacity;
  -webkit-animation-duration: 0.6s;
          animation-duration: 0.6s;
}
@-webkit-keyframes animateOpacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes animateOpacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal .modal__modal-content .modal__modal-content-message {
  font-family: "Courier Prime", monospace;
  text-align: center;
}
.modal .modal__modal-content #modal-button {
  border: unset;
  border-radius: 5px;
  background-color: #d0342c;
  color: darkred;
  box-shadow: 2px 2px darkred;
  font-family: "Black Ops One", monospace;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.modal .modal__modal-content #modal-button:active {
  position: relative;
  box-shadow: unset;
  right: -2px;
  bottom: -2px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.game {
  background-color: #00033e;
  height: 100vh;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.game .game__game-heading {
  color: #858585;
  font-size: 2.5rem;
  font-weight: 400;
  font-family: "Black Ops One", cursive;
  -webkit-text-stroke: 0.5px black;
  text-shadow: 1px 1px 0 lightgrey, 1px 2px 0 lightgrey, 1px 3px 0 lightgrey, 1px 4px 0 lightgrey, 1px 5px 0 lightgrey, 1px 6px 0 lightgrey, 1px 12px 6px rgba(32, 77, 144, 0.4), 1px 15px 10px rgba(32, 77, 144, 0.2), 1px 18px 35px rgba(32, 77, 144, 0.2), 1px 20px 60px rgba(32, 77, 144, 0.4);
}
.game .game__game-container {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.game .game__game-container .game__game-board {
  display: grid;
  grid-template-columns: repeat(9, 25px);
  grid-template-rows: repeat(9, 25px);
}
.game .game__game-container .game__game-board--computer {
  display: none;
}
.game .game__game-container .game__game-board .game__game-board-square {
  border: 0.5px solid lightblue;
  background-color: #009dc4;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.game .game__game-container .game__game-board .hit {
  height: 50%;
  width: 50%;
  border-radius: 50%;
  background-color: red;
}
.game .game__game-container .game__game-board .miss {
  height: 50%;
  width: 50%;
  border-radius: 50%;
  background-color: whitesmoke;
}
.game .game__game-container .game__game-board .ship {
  height: 100%;
  width: 100%;
  background-color: darkgray;
}
.game #game-button {
  color: darkred;
  font-weight: 400;
  border: unset;
  font-family: "Black Ops One", cursive;
  font-size: 1.4rem;
  background-color: #d0342c;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  box-shadow: 4px 4px darkred;
  cursor: pointer;
}
.game #game-button:active {
  position: relative;
  box-shadow: unset;
  right: -6px;
  bottom: -6px;
}

@media screen and (min-width: 480px) {
  .game .game__game-heading {
    font-size: 3.5rem;
  }
  .game .game__game-container .game__game-board {
    grid-template-columns: repeat(9, 35px);
    grid-template-rows: repeat(9, 35px);
  }
}