@font-face {
  font-family: 'Nunito';
  src: url('assets/ui/fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';
  src: url('assets/ui/fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';
  src: url('assets/ui/fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600; /* Usar un valor numérico para Semibold */
  font-style: normal;
}

html, body {
  height: 100%;
}

* {
    user-select: none;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Nunito';
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #88a;
  background-image: url('assets/backgrounds/backgroundBase.gif'); /* Nuevo: Fondo como GIF */
  /*background-size: cover;*/
}

.game-container {
  position: relative;
  width: 100%;
  height: 600px;
}

.arrow {
  position: absolute;
  top: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.center-character {
  position: absolute;
  top: 45%;
  left: 47%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  width: auto; /* Ajusta el tamaño de los personajes si es necesario */
  height: auto;
}

.info-box-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 156px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-box-bg {
/*  width: 100%;
  height: 100%;*/
  position: absolute;
  top: 140%;
  left: 60%;
  cursor: pointer;
}

.info-box-text {
  position: absolute; /* Usamos posicionamiento absoluto para el texto */
  top: 160%; /* Posicionamos el texto a la mitad del contenedor verticalmente */
  left: 72%; /* Posicionamos el texto a la mitad del contenedor horizontalmente */
  font-size: 20px;
  font-weight: bold;
  color: #4e2b5b;
  z-index: 10;

}

.choices {
  position: absolute;
  bottom: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 15%;
}
.choice {
  position: relative; /* Este contenedor es el punto de referencia para el texto */
  width: 96px;
  height: 113px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* El display flex lo quitamos de aquí, ya no lo necesitamos */
} 

.choice-img {
  position: absolute;
  top: -25%;
  left: -50%;
  object-fit: contain; /* Esto asegura que la imagen no se distorsione */
  z-index: 1;
}

.choice-text {
  position: absolute; /* Esto permite mover el texto libremente */
  width: 100%;
  text-align: center; /* Centramos el texto horizontalmente */
  font-weight: bold;
  font-size: 16px;
  color: #321e15;
  z-index: 2; /* Nos aseguramos de que el texto esté por encima de la imagen */
  
  /* Aquí ajustas la posición vertical del texto */
  bottom: 75%; /* Ejemplo: 10px desde la parte inferior */
  /* O puedes usar: */
  /* top: 50%;
  transform: translateY(-50%); */ /* para centrarlo verticalmente */
}
.choice-text2 {
  position: absolute; /* Esto permite mover el texto libremente */
  width: 200px;
  text-align: center; /* Centramos el texto horizontalmente */
  font-weight: bold;
  font-size: 15px;
  color: #321e15;
  z-index: 2; /* Nos aseguramos de que el texto esté por encima de la imagen */
  
  top: 45%;
  transform: translate(0%, -50%);
}

.choice.selected .choice-img {
  content: url('assets/ui/box1Sel.png'); /* Se actualiza con JS */
}

#reward-gif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 3;
}

/* Nuevos estilos para el efecto de partículas */
.click-particle {
  position: absolute;
  font-size: 25px;
  color: #ff3838;
  animation: fadeOutUp 7s forwards;
  pointer-events: none; /* Permite que el clic pase a través de él */
  font-weight: bold;
}

@keyframes fadeOutUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-250px);
    opacity: 0;
  }
}

/* Oculta los botones de navegación de recompensa por defecto */
.reward-nav-button {
  position: absolute;
  top: 14%; /* Posición vertical del botón, ajusta si es necesario */
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 4; /* Asegura que estén por encima del GIF de recompensa */
  display: none; /* ¡Esto es clave! Los oculta por defecto */
}

/* Esta clase es la que usaremos para mostrar los botones con JavaScript */
.show-reward-button {
  display: block; /* Cuando esta clase se agrega, el botón se hace visible */
}

.patreon-box-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 156px;
  height: 92px;
  display: none; /* Se sigue ocultando por defecto */
  align-items: center;
  justify-content: center;
}

.patreon-box-bg {
  /*width: 100%;
  height: 100%;*/
  position: absolute;
  top: 140%;
  left: 60%;
  cursor: pointer; /* Agrega un cursor de puntero para indicar que es clickeable */
}

.patreon-box-content {
  position: absolute; /* Usamos posicionamiento absoluto para el texto */
  top: 152%; /* Posicionamos el texto a la mitad del contenedor verticalmente */
  left: 70%; /* Posicionamos el texto a la mitad del contenedor horizontalmente */
  width: 80%;
  height: 80%;
  display: none; /* OCULTA el formulario por defecto */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.patreon-box-text {
  position: absolute; /* Usamos posicionamiento absoluto para el texto */
  top: 161%; /* Posicionamos el texto a la mitad del contenedor verticalmente */
  left: 101%; /* Posicionamos el texto a la mitad del contenedor horizontalmente */
  font-size: 20px;
  font-weight: bold;
  color: #052d49;
  z-index: 10;

}



#patreonCode {
  width: 75%;
  padding: 12px;
  font-family: 'Nunito', sans-serif;
  border: 1px solid #052d49;
  border-radius: 5px;
  font-weight: bold;
  background-color: #052d49;
  color: #f96854;

}#patreonCode::placeholder {
  color: #8c7694; /* Color que se integra con tu paleta de colores */
}

#patreonUnlockBtn {
  font-family: 'Nunito', sans-serif;
  padding: 2px 35px;
  border: none;
  border-radius: 5px;
  background-color: #052d49;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* Colores de los números */
.default {
    color: #321e15; /* Marrón */
}

.hundred {
    color: silver;
}

.thousand {
    color: gold;

}

.million {
    color: #00e1ff; /* Celeste saturado */
}

.billion {
    color: #9c27b0; /* Morado brillante */
    text-shadow: 1px 1px 2px rgb(173, 173, 173, 0.2), -1px -1px 2px rgb(209, 209, 209, 0.2);
}