* {
  box-sizing: border-box;
}

.game_info {
  margin-inline: auto;
  text-align: center;
  font-size: 5rem;
}

.game_board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  max-width: 40rem;
  height: 40rem;
  border-collapse: collapse;
  gap: 1px;
  background-color: black;
  border: 1px solid black;
  margin-inline: auto;
}

.game_board_spot {
  width: 100%;
  height: 100%;
  background-color: hsl(0, 0%, 80%);
  font-size: 10rem;
  text-align: center;
}

.game_board_spot:hover {
  background-color: hsl(0, 0%, 90%);
}

.winner {
  animation-name: spinner-winner;
  animation-duration: .2s;
  animation-iteration-count: 60;
}

.loser {
  animation-name: spinner-loser;
  animation-duration: 5s;
  animation-iteration-count: 2;
  animation-direction: alternate;
}

@keyframes spinner-loser {
  100% {
    transform: rotateZ(4000deg) scale(0%);
  }
}

@keyframes spinner-winner {
  25% {
    transform: rotateZ(1deg);
  }
  75% {
    transform: rotateZ(-1deg);
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.player_modal {
  background-color: whitesmoke;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 5px 1px hsla(0, 0%, 0%, 0.3);
}

.hidden {
  display: none;
}

.game_controls {
  max-width: 40rem;
  margin-inline: auto;
  margin-block: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .game_board_spot {
    font-size: 4rem;
  }
  .game_board {
    max-width: 20rem;
    height: 20rem;
  }
  .game_controls {
    max-width: 20rem;
  }
  .game_info {
    font-size: 2.5rem;
  }
}