body {
  /*background: linear-gradient(to bottom, #3380B5, white);*/
  /*background-color:#ccffcc; /* verde claro */
  /*font-family: sans-serif;*/
  /* Fuente moderna tipo Kahoot! */

  font-family: 'Nunito', sans-serif;
  background-color: #f9f9f9;
  background: linear-gradient(135deg, #9C27B0, #2196F3);
  color: #fff;

}

h1.quiztitulo,
h2.quiz {
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}


#cajaquiz {
  position: static;
  margin: 0 auto;
  text-align: center;

  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}



.quiz {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 1rem;
}

.quiztitulo {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 1rem;
}

.botonesvai {
  width: 100%;
  /*min-width: 12em;*/
  /* max-width: 12em;*/
  /* word-break: break-all;*/
  line-height: 1.4;
  white-space: normal;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 40px;
  border: 2px solid black;
  color: #000;
  background-color: white;
  padding: 12px 16px;
  margin: 10px auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  word-break: keep-all;
  white-space: normal;
  overflow-wrap: break-word;

}


.botonesvai:hover {
  background-color: #FF8300;
  color: black;
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.botonesvai:focus {
  outline: none;
}

.vai1respuesta {
  font-size: 1.5em;
  color: #801700;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  background-color: #ffffff22;
  padding: 20px;
  border-radius: 15px;
}


img {
  max-width: 100%;
  height: auto;
}

.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

/* Tarjetas con efecto visual */
.card-area {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
}

.card-area:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

/* Imágenes temáticas redondas */
.area-img {
  width: 100px;
  /*height: 100px;*/
  border-radius: 0%;
  object-fit: cover;
  height: auto;
  /*object-fit: contain;*/

}

/* Colores vivos por área */
.bg-labiblia {
  background-color: #FFD54F;
  color: #000;
}

.bg-geografia {
  background-color: #00B3D9;
  color: #fff;
}

.bg-matematicas {
  background-color: #673AB7;
  color: #fff;
}

.bg-historia {
  background-color: #FF7043;
  color: #fff;
}

.bg-sociales {
  background-color: #43A047;
  color: #fff;
}

.bg-default {
  background-color: #90A4AE;
  color: #fff;
}

/* Botón elegante */
.btn-light {
  border-radius: 30px;
  padding: 10px 25px;
  font-size: 1em;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Estrellas animadas tipo explosión */
@keyframes estallido {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.5);
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.estrellas-explosion {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5em;
  color: #FFF176;
  animation: estallido 1s ease-out;
  pointer-events: none;
  z-index: 999;
}

.boton-amarillo {
  background-color: #ffeb3b;
  color: #000;
  border: 2px solid #fdd835;
  font-weight: bold;
}

.cartelera {
  border: 2px solid #fff;
  background-color: #000;
  /* fondo negro tipo cine */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cartelera:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.cartelera .card-title {
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.cartelera .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  /* altura base para escritorio */
}

/* 🧠 Responsividad para pantallas pequeñas */
@media (max-width: 576px) {
  .cartelera .card-body {
    min-height: 220px;
    /* más alto para texto que se apila en móviles */
  }
}

@media (max-width: 576px) {
  .cartelera .card-title {
    font-size: 1rem;
  }
}