

body {
font-family: 'Rubik', sans-serif !important;/* para el cuerpo del texto */
  text-align: center;
  background: #131416;
  color: #fff;
  margin: 0;
  padding: 1rem;
}


html {
  touch-action: manipulation;
}


#juego-container {
 flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 600px;
  margin: auto;
  padding: 0.5rem;
  box-sizing: border-box;
}

.timer {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: none;
}



.contenedor-principal {
  max-width: 100vw;  /* ancho máximo igual al viewport */
  overflow-x: hidden; /* oculta scroll horizontal si hay */
  padding: 0 10px; /* opcional para que no esté pegado a los bordes */
  box-sizing: border-box;
}












.mensaje {
  margin-top: 20px;
  font-weight: bold;
}

/* Rebote pequeño al escribir */
@keyframes rebote {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.letra.animar-rebote {
  animation: rebote 0.2s ease;
}




@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.letra.animar-pop {
  animation: pop 0.2s ease-in-out;
}


.tecla.incorrecta {
  background-color: #3a3a3a;
  color: #777;
}

.tecla.presente {
  background-color: #e4a81d;
  color: white;
}

.tecla.correcta {
  background-color: #43a047;
  color: white;
}



.correcta {
  background: #43a047;
  border-color:#43a047!important;
}

.presente {
  background: #e4a81d;
}

.incorrecta {
  background: #3a3a3a;
}

button#boton-jugar {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1rem;
  background: #43a047;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.instrucciones-link {
  display: block;
  margin-top: 10px;
  color: #bbb;
  font-size: 0.9rem;
  text-decoration: underline;
}

.legal {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #888;
}

.legal a {
  color: #88cfff;
  text-decoration: underline;
}

.slogan {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 15px;
}



#banner-publicidad {
  width: 100%;
  min-height: 90px;
  background-color: #1a1a1a;
  color: #ccc;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  margin-top: 40px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  #banner-publicidad {
    font-size: 0.8rem;
    padding: 10px;
  }
}


.cuadros-resumen {
  font-size: 1.8rem;
  white-space: pre-line;
  line-height: 2.2rem;
  margin: 20px 0;
}

.ascii-palabra {
  font-size: 1rem;
  margin-top: 10px;
}

.timer {
  
  font-size: 0.95rem;
  color: #aaa;
}

.text-green-var{
  color: var(--green-color);
}


#resumen-intentos {
  white-space: pre-line; /* Para respetar los saltos de línea */
  font-size: 1.5rem;
  letter-spacing: 3px;
  font-family: monospace;
}


#header-juego {
  background-color: #222;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
}

#header-juego h1 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
}





.estadisticas-cuadros {
  display: grid;
  grid-template-columns: repeat(5, 50px);
  gap: 10px;
  justify-content: center;
}

.cuadro {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 2px solid #333;
}

.cuadro.verde {
  background-color: #538d4e;
  border-color: #538d4e;
}

.cuadro.amarillo {
  background-color: #b59f3b;
  border-color: #b59f3b;
}

.cuadro.gris {
  background-color: #3a3a3c;
  border-color: #3a3a3c;
}

.estadisticas-metricas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  font-weight: 700;
}

.metrica {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.valor {
  font-size: 1.8rem;
  color: #fff;
}

.etiqueta {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 4px;
}


.mensaje {
  position: fixed;
  top: 20px; /* 🟢 Aparece desde arriba */
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  background-color: #333;
  color: white;
}

.mensaje.error { background-color: #d32f2f; }
.mensaje.success { background-color: #388e3c; }
.mensaje.warning { background-color: #f57c00; }
.mensaje.info { background-color: #1976d2; }

.mensaje.show {
  opacity: 1;
}






@media (max-width: 600px) {
    body {
      padding: 0px !important;
      margin:0px !important;
    }

    #header-juego h1 {
      font-size: 0.7rem !important;
    }
    
    #titulo-principal{
          font-size: 1rem !important;
    }

    #btn-estadisticas {
      padding: 6px 12px;
      font-size: 0.9rem;
    }



  
.letra{
    width:100%;
}

    button#boton-jugar {
      padding: 10px 20px;
      font-size: 1rem;
    }
  }


  
body {
    background-color: var(--dark-1);
}

.bg-body-nav {
    background-color: var(--dark-2);
}

.nav-icon {
    color: var(--svg-icon);
}

.nav-icon:hover {
    color: var(--svg-icon-hover);
}

.modal-content {
    background-color: var(--dark-2);
}

.nav-link:hover {
    color: var(--nav-link-hover) !important;
}

.btn-red:hover {
    color: var(--close-delete) !important;
}

.correct {
    color: var(--green-color) !important;
}

header {
    position: relative;
    top: 0;
    width: 100%;
    height: 60px;
    /* ejemplo */
    z-index: 1000;
}