:root {
  --game-width: 1200px;
  --game-height: 675px;
  --option-width: 100%;
  --timer-duration: 40s;
  --color-green: #abc70c;
  --color-blue: #2c3e50;
  --color-light: #f8f9fa;
  --color-dark: #2c3e50;
  --color-winner: #00ff57;
}

/* Helvetica Black */
@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueBlack.woff2") format("woff2");
  font-weight: 900; /* Normalmente se asigna 900 para negrita muy fuerte */
  font-style: normal;
}

/* Helvetica Bold */
@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueBold.woff2") format("woff2");
  font-weight: bold; /* Usa bold para esta variante */
  font-style: normal;
}

/* Helvetica Light */
@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueLight.woff2") format("woff2");
  font-weight: normal; /* Light suele asignarse un peso de 300 */
  font-style: normal;
}

/* CSS simple para que la tabla sea visible */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: url("../img/fondo-principal.jpg") center center / contain
    no-repeat;
  color: var(--color-light);
  background-color: var(--color-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: "HelveticaNeue", sans-serif;
}

html {
  background: url("../img/fondo.jpg") center center / cover no-repeat;
}

body {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.main {
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;

  height: 100%;
  width: 100%;
}

.text-center {
  text-align: center;
}

.content {
  height: 100%;
  width: 100%;
  display: block;
  text-align: center;
}

.header {
  display: block;
  width: 140px;
  margin: 10px auto;
}

.body {
  margin-top: 6%;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* temporizador */
.timer-container {
  display: flex;
  align-items: center;
  background-color: #e0e0e0;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: fit-content;
  padding-right: 20px;
}

.icon-circle {
  width: 40px;
  height: 40px;
  background-color: #cccccc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  border: 5px solid #ffffff;
  transition: background-color 1s ease-out;
}

.timer-display {
  font-size: 1rem;
  font-weight: bold;
  color: #333333;
  letter-spacing: 2px;
}

/* ESCALERA */
.nivel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nivel hr {
  flex-grow: 1;
  border: none;
  border-top: 1px solid #fff;
  margin: 0;
}

.nivel span {
  font-size: 1rem;
  margin-left: 15px;
}

.comodin,
.sofia,
.escalera,
.preguntas,
.alternativas {
  top: 0;
  left: 0;
  position: absolute;
}

.comodin {
  top: 34%;
  width: 20%;
  z-index: 10;
}

.sofia {
  left: 12%;
  top: 12%;
  width: 40%;
  z-index: 5;
}

.escalera {
  left: 58%;
  width: 35%;
  text-align: left;
}

.preguntas {
  top: 45vh;
  height: 90px;
  width: 100%;
  z-index: 20;
}

.alternativas {
  top: 60vh;
  width: 100%;
  height: 100%;
  z-index: 30;
  color: #000;
  font-weight: bold;
}

.niveles img {
  height: 6vh;
}

.nivel {
  margin-bottom: 0.15rem;
}

.img-monto,
.img-alternativa {
  position: relative;
  text-align: center;
}

.importe {
  position: absolute;
  top: 1.5vh;
  color: #000;
  font-weight: 900;
  font-size: 1.1rem;
  text-align: center;
  padding-left: 50px;
}

.titulo {
  position: absolute;
  color: #000;
  margin-top: 25px;
  width: 65%;
}

/*
.contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 66%;
  margin-left: 230px;
}

.columna {
  display: flex;
  flex-direction: column;
}

.item {
  height: 55px;
}

.item img {
  height: 60px;
}
*/

.btn-iniciar {
  position: absolute;
  top: 8%;
  right: -8%;
}

.me-1 {
  margin-right: 5%;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.respuesta {
  width: var(--option-width);
  height: 40px;
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
  border: 2px solid #fff;
  position: relative;
  overflow: hidden;
  background: var(--bg-respuesta);
  cursor: pointer;
}

.respuesta p {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  text-align: left;
}

.respuesta-alt {
  transform: rotate(180deg);
}

.respuesta-alt p {
  transform: rotate(180deg);
}

.respuesta-borde {
  width: var(--option-width);
  border: 2px solid var(--bg-border);
  background-color: #fff;
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
}

.respuesta-bg-celeste {
  --bg-respuesta: linear-gradient(
    to bottom,
    #c7eef7 0%,
    #c7eef7 50%,
    #95deef 50%,
    #95deef 100%
  );
  --bg-border: #83aec0;
}

.respuesta-bg-verde {
  --bg-respuesta: linear-gradient(
    to bottom,
    #c1e8a3 0%,
    #c1e8a3 50%,
    #dff3cf 50%,
    #dff3cf 100%
  );
  --bg-border: #8cad84;
}

.center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.text-alt {
  transform: none;
}

.row {
  display: flex;
}

.col {
  flex: 1;
  padding: 5px 15px;
}

.pl-100 {
  padding-left: 100px;
}

.pr-100 {
  padding-right: 100px;
}

.h100 {
  height: 100%;
}

.text-left {
  text-align: left;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.fade-out {
  opacity: 1;
  animation: fadeOut 1s forwards;
}

.pulse {
  /*width: 120px;
  height: 120px;
  border-radius: 50%;
  */
  animation: pulse 1.5s infinite;
}

.is-correct {
  animation: pulse 1.5s infinite;
  --bg-respuesta: var(--color-winner);
}

#zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#zoom-overlay.active {
  opacity: 1;
  visibility: visible;
}

#zoom-container {
  transform: scale(0.1);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    opacity 0.5s ease-in-out;
}

#zoom-overlay.active #zoom-container {
  transform: scale(1);
  opacity: 1;
}

.volume-container {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* SLIDER BASE */
.slider {
  width: 120px;
  margin-left: 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}

#icon-volume {
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 10px;
}

.hidden {
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}

.d-none {
  display: none;
}

body.perdiste {
  background: url("../img/escenario-mensaje.jpg") center center / contain
    no-repeat;
}

body.ganaste {
  background: url("../img/escenario-premio-sostenido.jpg") center center /
    contain no-repeat;
}

.descripcion {
  width: 400px;
  position: absolute;
  left: 35%;
  top: 30%;
  text-align: center;
}

.descripcion h2,
.descripcion h3 {
  color: var(--color-green);
  font-weight: 900;
  margin: 0;
  font-size: 2.4rem;
}

.descripcion h3 {
  font-size: 1.8rem;
  font-weight: bold;
}

.descripcion p {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.2;
}

.premio-final {
  display: block;
  position: relative;
  width: 20vw;
  text-align: center;
}

.premio-titulo {
  font-size: 2.5rem;
  margin-bottom: 0;
  margin-top: 0;
}

.premio-imagen,
.premio-monto {
  position: absolute;
}

.premio-imagen {
  max-width: 100%;
  left: -0.9vw;
  top: 9vh;
}

.premio-monto {
  color: #000;
  margin-top: 2.5vh;
  margin-bottom: 0;
  text-align: center;
  width: 100%;
  font-weight: 900;
  font-size: 2.2rem;
}

#confetti-canvas {
  position: absolute;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}
