body {
  font-family: verdana;
  text-align: center;
  background-color: darkkhaki;
  color: green;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.main {
  background-color: darkkhaki;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
}

input {
  font-size: 1.3rem;
  margin: 1rem;
  color: green;
}

.players {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  animation-name: enters-delay;
  animation-duration: 1.5s;
}

button {
  font-size: 1.3rem;
  margin: auto;
  padding: 0.3rem;
  color: green;
  background-color: white;
  border: 0;
}

button:hover {
  background-color: lightgrey;
}

h1 {
  color: green;
  margin: 2vh;
  animation-name: enters;
  animation-duration: 1s;
}

.boardspace {
  background-color: darkkhaki;
  padding: 0;
}

.board {
  background-color: black;
  margin: auto;
  border: 8px solid black;
}

.board:after {
  content: "";
  display: block;
  padding-top: 100%;
}

.vs {
  font-size: 1.3rem;
  margin: 1vh 1vw 2vh 1vw;
}

.row {
  background-color: khaki;
  height: 12.5%;
  border: 0;
  display: flex;
  flex-direction: row;
}

.space {
  background-color: black;
  height: 100%;
  width: 12.5%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner-space {
  background-color: green;
  height: 90%;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.counters {
  width: 10%;
  padding-top: 10%;
  border-radius: 50%;
  margin: 1%;
  animation-name: enters;
  animation-duration: 1s;
}

.counters:hover {
  animation-name: hovers;
  animation-duration: 2s;
}

.underline {
  text-decoration: underline;
}

.colours {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 70%;
  margin: auto;
}

.next-button {
  margin-top: 1%;
}

.next {
  margin-bottom: 0.5rem;
}

.playable:hover {
  background-color: limegreen;
}

@keyframes hovers {
  10% {
    transform: scale(1.2);
  }
  90% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes enters {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes enters-delay {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  30% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.colour {
  margin-bottom: 2vh;
}

.rules {
  max-width: 40rem;
  margin: auto;
}

.game-over {
  animation-name: enters;
  animation-duration: 1s;
}

.rematch, .new-game {
  margin: 1%;
  animation-name: enters-delay;
  animation-duration: 1.5s;
}
