/* Reset y fuente */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  height: 100%;
  width: 100%;
}

/* Contenedor general con fondo */
.game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Contenedor de pantallas individuales */
.content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Cada pantalla (inicio, juego, resultado) */
#start-screen,
#game-screen,
#result-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 500px;
  text-align: center;
}

/* Ocultar pantallas no activas */
.hidden {
  display: none !important;
}

/* Estilos generales para botones */
button {
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background-color: #ffcc00;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e6b800;
}

/* Problema matemático */
#problem {
  font-size: 26px;
  margin-top: 10px;
  color: #000;
}

/* Opciones de respuesta */
#options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

#options button {
  font-size: 18px;
}

/* Temporizador */
#timer {
  font-size: 20px;
  margin-top: 10px;
  color: #333;
}

/* Mensaje de resultado */
#result-message {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}
