body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #1e1e1e;
  color: white;
  margin: 0;
}

#game-container {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  transition: background 0.3s;
  width: 90%;
  max-width: 400px;
  margin: auto;
}

/* Two-Player Mode Theme */
.player-mode {
  background: linear-gradient(to right, #007bff, #0056b3);
}

/* Bot Mode Theme */
.bot-mode {
  background: linear-gradient(to right, #28a745, #1d7032);
}

#board {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.cell {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.cell:hover {
  background: rgba(255, 255, 255, 0.2);
}

#mode-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.mode-btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

.mode-btn:hover {
  transform: scale(1.05);
}

/* Two-Player Mode Button */
#player-mode-btn {
  background: #007bff;
  color: white;
}

/* Bot Mode Button */
#bot-mode-btn {
  background: #28a745;
  color: white;
}

#winner-message {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  display: none;
}

/* Ad container */
#ad-container {
  margin-top: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  border-radius: 8px;
}

/* Placeholder ad text */
#ad-container p {
  font-size: 14px;
  color: #ccc;
}