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

body {
  padding: 1rem 0rem;
  font-family: "Fredericka the Great", serif;
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 100%;
}

.board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  width: 75%;
  max-width: 600px;
}

h1 {
  text-align: center;
}

.square {
  font-size: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  border: white solid 2px;
}

.square:hover {
  cursor: pointer;
  transform: scale(0.98);
}

#play-again {
  border: none;
  font-weight: 800;
  background-color: aqua;
  display: block;
  width: 200px;
  height: 30px;
  margin: 1rem auto;
  border-radius: 8px;
}

#play-again:hover {
  opacity: 0.8;
  cursor: pointer;
}

#play-again:active {
  opacity: 1;
}

#result {
  font-size: 30px;
  text-align: center;
  margin: 1rem;
}

@media (max-width: 768px) {
  .board {
    width: 90%;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .board {
    width: 100%;
    max-width: 400px;
  }

  .square {
    width: 100px;
    height: 100px;
    font-size: 60px;
  }

  #result {
    font-size: 20px;
  }
}
