body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(to bottom, #4e8ef7, #87cefa);
  font-family: 'Arial', sans-serif;
  color: #333;
}

#gameContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  grid-gap: 15px;
  margin: 20px;
}

.cell {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 2px solid #333;
  cursor: pointer;
  background-color: #f5f5f5;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s ease-in-out;
}

.cell:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.cell:active {
  background-color: #ccc;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.modal-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

button {
  margin-top: 15px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s ease-in-out;
}

button:hover {
  transform: scale(1.05);
}

button:active {
  background-color: #ccc;
}

#playAgainButton {
  background-color: #4CAF50;
  color: white;
  border: none;
}

#playAgainButton:hover {
  background-color: #45a049;
}

#quitButton {
  background-color: #f44336;
  color: white;
  border: none;
}

#quitButton:hover {
  background-color: #e53935;
}

#gameContainer, .modal-content {
  transition: all 0.3s ease-in-out;
}
