
a {
  font-size: 1.5rem;
}


/* ====== FUENTES ====== */
@font-face {
  font-family: 'Teko';
  src: url('../assets/fonts/Teko-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cutive Mono';
  src: url('../assets/fonts/CutiveMono-Regular.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}

/* ====== ESTILO BASE ====== */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Teko', sans-serif;
  background-color: white;
  color: black;
  margin: 0;
  padding: 2rem;
  box-sizing: border-box;
  
}

/* ====== CAJAS NEGRAS ====== */
.box {
  background: black;
  color: white;
  border: 2px solid white;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  min-width: 500px;
  text-align: center;
}

/* ====== VARIANTES DE FUENTE ====== */
.cutive {
  font-family: 'Cutive Mono', monospace;
  color: #ccc;
}


/* ====== CAJAS NEGRAS ====== */
.menu-box {
  display: block;              /* Hace que cada enlace sea un bloque para poder dar tamaño */
  background-color: black;
  color: #eee;                 /* Gris casi blanco */
  border: 2px solid white;
  padding: 1.5rem 0;
  margin: 1rem auto;
  max-width: 500px;
  min-width: 400px;
  text-align: center;
  text-decoration: none;       /* Quita subrayado */
  font-size: 2rem;
  font-weight: 600;
  font-family: 'Teko', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu-box:hover {
  background-color: #222;      /* Un poco más claro al pasar mouse */
}

/* ====== FONDOS ====== */

body.bg-1 {
  background-image: url('../assets/images/bg-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

body.bg-2 {
  background-image: url('../assets/images/bg-2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

body.bg-3 {
  background-image: url('../assets/images/bg-3.webp');
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

body.bg-4 {
  background-image: url('../assets/images/bg-4.webp');
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

body.bg-5 {
  background-image: url('../assets/images/bg-5.webp');
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

body.bg-6 {
  background-image: url('../assets/images/bg-6.webp');
  background-size: cover;
  background-position: center;
  background-repeat: repeat-y;
}

/* ====== BOTON DE REGRESO ====== */

.regresar {
  position: fixed;         /* Fija en pantalla sin importar scroll */
  top: 1rem;               /* Distancia desde arriba */
  left: 1rem;              /* Distancia desde la izquierda */
  background-color: black;
  color: #eee;
  border: 2px solid white;
  padding: 0.5rem 1rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  z-index: 1000;           /* Asegura que esté por encima de otros elementos */
}

/* ====== quiz box caja central ====== */
.quiz-box {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: black;
  border: 2px solid white;
  color: #eee;
  font-family: 'Teko', sans-serif;
  text-align: center;
}

/* ====== quiz box caja opciones ====== */
.opciones {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opcion {
  background-color: black;
  color: white;
  border: 2px solid white;
  padding: 1rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.opcion:hover {
  background-color: white;
  color: black;
}

/* ====== resultado quiz ====== */
.resultado-descripcion {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #ccc;
  font-style: italic;
  text-align: center;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* ====== destructor ====== */
textarea {
  width: 90%;
  padding: 1rem;
  font-family: 'Cutive Mono', monospace;
  font-size: 1rem;
  margin-top: 1rem;
  resize: none;
  background-color: #111;
  color: white;
  border: 1px solid white;
}

button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  background-color: black;
  color: white;
  border: 1px solid white;
  cursor: pointer;
}
#destructor-box {
  max-width: 600px;
  max-height: 300px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

#destructor-box p {
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  max-height: 100%;
}

/* ====== puzzle ====== */

.puzzle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.box p, .box span {
  font-size: 1.8rem;
}

.pista-box {
  background-color: black;
  color: white;
  padding: 10px;
  text-align: center;
}

.perillas {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.perilla {
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: transform 0.1s linear;
}

.resultado {
  margin-top: 20px;
  padding: 10px;
  background-color: black;
  color: white;
  text-align: center;
}

/* ====== links resultado ====== */

a {
  color: #dddddd;  /* Gris claro */
  text-decoration: none; /* Opcional: quita el subrayado */
}

a:hover {
  color: #ffffff;  /* Blanco al pasar el mouse */
}

/* ====== links sociales ====== */

.box.enlaces-redes {
  text-align: center;
  font-family: monospace;
  font-size: 1.2rem;
  color: #eee; /* casi blanco */
  background-color: #111; /* negro oscuro */
  padding: 1rem;
  margin-top: 2rem;
  user-select: text;
}

.box.enlaces-redes a {
  color: #eee;
  text-decoration: none;
  margin: 0 1rem;
}

.box.enlaces-redes a:hover {
  text-decoration: underline;
}

.box.mensaje-final {
  font-family: monospace;
  font-size: 0.5rem;
  color: #ccc;
  background-color: #111;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  user-select: text;
}

.box.mensaje-final a {
  color: #eee;
  text-decoration: none;
}

.box.mensaje-final a:hover {
  text-decoration: underline;
}


/*----- Boton Idioma -----*/


#btnIdioma {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 14px;
  background-color: #222;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  z-index: 9999;
  user-select: none;
  font-family: sans-serif;
}
#btnIdioma:hover {
  background-color: #444;
}
