/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: url('img/fondo-tiled.png') repeat;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Título principal */
#page-title {
  text-align: center;
  margin: 20px 0;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 3rem;
  color: #444;
}

/* Contenedor principal del quiz */
#quiz-container {
  width: 100%;
  height: 600px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Contenido del quiz (pregunta y respuestas) */
#quiz-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Encabezado de la pregunta */
#question-header {
  text-align: center;
  margin-bottom: 20px;
}
#question-header h2 {
  font-size: 1.8rem;
  color: #8998cb;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(42, 48, 99, 0.4);
}
#question-header p {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 20px;
}

/* Contenedor de respuestas: grid 2x2 */
#answers-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  width: 100%;
  max-width: 800px;
}
.answer-option {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  font-size: 1.3rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  user-select: none;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}
.answer-option:hover {
  background: #f0f0f0;
}
.answer-option.selected {
  border-color: #333;
  background: #9caadc;
}

/* Botones de navegación */
#nav-buttons {
  text-align: center;
  margin-top: 20px;
}
#nav-buttons button {
  background: #46589a;
  color: #fff;
  border: none;
  padding: 15px 25px;
  margin: 0 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  transition: background 0.3s;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}
#nav-buttons button:hover:not(:disabled) {
  background: #9caadc;
}
#nav-buttons button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Pantalla de resultado */
#result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#result-overlay.hidden {
  display: none;
}
#result-content {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
}
#result-content h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #333;
}
#score-display {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
#smiley {
  font-size: 5rem;
  margin-bottom: 20px;
}
#restart-btn {
  background: #46589a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
#restart-btn:hover {
  background: #555;
}
