/* Fuente base y fondo */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #ffe4e1, #e0f7fa);
  margin: 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Contenedor principal */
.container {
  max-width: 600px;
  width: 100%;
  background: #fff0f5;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
}

/* Título */
h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.9em;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

h1 .title-text {
  color: #ff4081;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

h1 .icon {
  font-size: 1.2em;
}

/* Responsive título */
@media (max-width: 768px) {
  h1 { font-size: 1.6em; gap: 4px; }
  h1 .icon { font-size: 1em; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4em; gap: 2px; }
  h1 .icon { font-size: 1em; }
}

/* Botones generales */
button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  padding: 10px 15px;
  margin: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  outline: none;
}

/* Botones de controles */
.controls button {
  background-color: #ff9a8b;
  color: white;
}

/* Botones deshabilitados */
button:disabled {
  background-color: #ccc;
  color: #777;
  cursor: not-allowed;
  box-shadow: none;
}

/* Botones de modo */
.mode-toggle button {
  background-color: #fbe7a2; /* amarillo pastel claro */
  color: #333;
}

.mode-toggle button.active {
  background-color: #b8860b; /* amarillo mostaza más intenso */
  color: white;
}

/* Botón More... */
#moreGames {
  background-color: #3b5998; /* azul oscuro tipo Facebook */
  color: white;
}

/* Configuración de preguntas */
.question-settings {
  margin: 20px 0;
  font-size: 18px;
  color: #333;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.step-btn {
  background-color: #7b9acc; /* azul bígaro */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  outline: none;
}

.step-display {
  min-width: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  background-color: #f0f8ff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* Pregunta */
.question-display {
  margin: 20px 0;
  font-size: 24px;
  font-weight: bold;
  color: #444;
}

/* Opciones de respuesta (antes de pulsar) */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 10px;
  margin: 20px 0;
}

.option {
  background-color: #84fab0; /* menta */
  color: #333;
  font-weight: bold;
  font-size: 20px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  outline: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Resultados */
.results {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  color: #e63946;
}

/* Estados de respuesta después de pulsar */
.option.correct {
  background-color: #32cd32; /* verde lima */
  color: white;
}

.option.missed {
  background-color: #ffeb3b; /* amarillo */
  color: black;
}

.option.wrong {
  background-color: #f44336; /* rojo */
  color: white;
}

.option.incorrect {
  background-color: #d5d5d5; /* gris dove */
  color: #999;
}

.option.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}

/* Círculos de cuenta atrás */
.circle-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 0 4px rgba(255,255,255,0.6);
  transition: background-color 0.3s ease;
}

.circle.active {
  background-color: #5ab4f8;
}

/* Animaciones suaves */
.question-display.fade {
  animation: fadeQuestion 0.5s ease-in-out;
}

@keyframes fadeQuestion {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.option.fade {
  animation: fadeOption 0.4s ease-in-out;
}

@keyframes fadeOption {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Barra de progreso */
.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  margin: 10px 0 20px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background-color: #5ab4f8;
  transition: width 0.5s ease;
}

/* Resumen y revisión */
.summary {
  margin-top: 15px;
  font-size: 18px;
  color: #2c3e50;
  background-color: #f0f8ff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  display: none;
}

#summaryMessage { margin-top: 10px; }

#vocabReview {
  margin-top: 20px;
  font-size: 16px;
  text-align: left;
  line-height: 1.8;
  white-space: pre-line;
}

.vocab-correct {
  color: green;
  margin: 4px 0;
}

.vocab-wrong {
  color: red;
  margin: 4px 0;
}

/* Barra de estado */
.status-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.stat {
  background-color: #f0f8ff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  color: #2c3e50;
}

/* Toast de notificación */
.toast {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

/* Etiqueta de progreso */
.progress-label {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
  margin-bottom: 10px;
  font-style: italic;
}

/* Responsive general */
@media (max-width: 600px) {
  .options { grid-template-columns: 1fr; }
  .container { padding: 15px; }
  button { font-size: 14px; padding: 8px 12px; }
  .question-display { font-size: 20px; }
  .step-display { font-size: 18px; }
  .step-btn { width: 36px; height: 36px; font-size: 18px; }
  .circle { width: 16px; height: 16px; }
}
