@font-face {
  font-family: 'Emulogic';
  src: url('font/Emulogic.woff2') format('woff2'),
    url('font/Emulogic.woff') format('woff'),
    url('font/Emulogic-zrEw.ttf') format('truetype');
}

body {
  background-color: black;
  font-family: 'Emulogic';
  font-weight: normal;
  color: white;
}

h1 {
  text-align: center;
}

p {
  text-align: center;
  line-height: 1.5em;
}

a {
  color: rgb(99, 202, 144);
}

.controller-content {
  margin: 50px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4em;
}

.player {
  text-align: center;
}

input {
  margin-top: 0.5em;
  text-align: center;
  font-family: 'Emulogic';
  font-size: 16px;
  padding: 10px 0;
}

button {
  font-family: 'Emulogic';
}

.player-type {
  display: flex;
  flex-direction: row;
}

input[type='radio'] {
  display: none;
}

.player-type-label {
  flex-grow: 1;
  border: 1px solid white;
  padding: 10px 0;
}

input[type='radio']:checked + label {
  font-style: normal;
  color: black;
  background-color: rgb(226, 233, 253);
}

#press-me {
  animation: moveUpDown 1s 5;
  margin: 0.5em auto;
}

#new-game-button {
  font-size: 16px;
  padding: 1.5em;
}

#new-game-button:active {
  background-color:rgb(99, 202, 144);
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.game-content {
  margin: 0 auto;
}

.game-board {
  max-width: 400px;
  min-height: 400px;
  margin: 0px auto;
  padding: 30px 30px;
  background: black;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr;
}

.game-board-row {
  display: flex;
  flex-grow: 1;
}

.game-square {
  text-align: center;
  flex-grow: 1;
  justify-content: center;
  display: flex;
}

.game-square:hover {
  background-color: rgba(204, 204, 204, 0.657);
  cursor: pointer;
}

#s0,
#s1,
#s3,
#s4,
#s6,
#s7 {
  border-right: 1px solid white;
}

#s3,
#s4,
#s5 {
  border-bottom: 1px solid white;
  border-top: 1px solid white;
}

.game-square-content {
  margin: auto;
  font-size: 60px;
  pointer-events: none;
  animation: playMove 0.6s 1;
}

.result {
  background-color: rgb(99, 202, 144);
  color: black;
  font-size: 30px;
  letter-spacing: 0.1em;
  width: fit-content;
  margin: auto;
  padding: 0.5em;
  animation: announceResult 0.3s 5;
}

@keyframes playMove {
  0% {
    opacity: 0;
    font-size: 80px;
  }
  100% {
    opacity: 1;
  }
}

@keyframes announceResult {
  0% {
    background-color: rgb(99, 202, 144);
  }
  50% {
    background-color: white;
  }
  100% {
    background-color: rgb(99, 202, 144);
  }
}

@keyframes moveUpDown {
  50% {
    transform: translateY(-10px);
  }
  100% {
  }
}