body {
  font-family: "Arial", sans-serif;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.game-container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 90%; /* Limita a largura máxima */
}

.choice button {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.choice button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.board {
  display: grid;
  grid-template-columns: repeat(
    3,
    1fr
  ); /* Faz as células se ajustarem ao espaço disponível */
  grid-gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.cell {
  background-color: #fff;
  border: 2px solid #000;
  font-size: 2em; /* Tamanho da fonte ajustado */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  aspect-ratio: 1 / 1; /* Mantém as células quadradas */
}

.cell:hover {
  transform: scale(1.1);
}

.cell.x {
  color: green;
}

.cell.o {
  color: red;
}

#message {
  margin-top: 20px;
  font-size: 1.5em; /* Aumenta o tamanho da fonte para melhor leitura */
  color: #333;
}

.winner-message {
  font-size: 2em;
  color: #d35400;
  font-weight: bold;
}

/* Responsiveness */
@media (max-width: 600px) {
  .cell {
    font-size: 1.5em;
  }

  .choice button {
    padding: 8px 16px;
    font-size: 0.9em;
  }

  .winner-message {
    font-size: 1.5em;
  }
}
