/* Global body styling for both pages */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
}

/* Styling for the back link to the main menu */
.back-link {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1.2em;
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.back-link:hover {
  color: #555;
}

/* Centered, box-styled game board */
#game-board {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  grid-template-rows: repeat(3, 120px);
  gap: 5px;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Styling for game information */
#game-info {
  margin-top: 20px;
  font-size: 1.2em;
  text-align: center;
}

/* Cell styling within the game board */
.cell {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  cursor: pointer;
  border: 2px solid #333;
  background-color: #f9f9f9;
  transition: background-color 0.3s;
}

/* Player colors */
.cell.X {
  color: blue;
}

.cell.O {
  color: red;
}

/* Winning cell highlight */
.cell.winning {
  background-color: yellow;
}
