
@font-face {
    font-family: pokemon;
    src: url(PokemonClassic.ttf);
}
body {
  font-family: pokemon,'nyt-franklin';
  font-display: swap;
  margin: 0; 
  background-image: url(fondoPokedle.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; 
  background-position: center;
  background-size: cover; 
}
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}
#pokebola{
  background: white;
  border-radius: 15px;
  cursor: pointer;
}
#pokebola:hover{
  transform: scale(1.1);
}

main {
    flex: 1;
}
header {
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 10px;
    position: relative;
}
#home{
  color: black;
  text-decoration: none;
  margin-bottom: 3vh;
}
#flecha{
  width: 100%;
  display: flex;
  justify-content: end;
}
.bi-list{
  cursor: pointer;
}
#logo{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#Pokemon1,#Pokemon2,#Pokemon3,#Pokemon4,#Pokemon5{
    display: flex;
    justify-content: center;
}
#principal{
  padding-bottom:  20px;
  margin-top: 2vh;
}

.nuevo-dia {
  animation: flip 0.6s ease forwards;
}

@keyframes flip {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  50% {
    transform: rotateX(90deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}


.letra{
  width: 3vw;
  border: 2px solid #333;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 3px;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  font-family: pokemon,'nyt-franklin';
  font-display: swap;
  aspect-ratio: 1 / 1;
}


.modal-backdrop.show {
  opacity: 0.5;
  background-color: black;
}
#principalPistas{
  display: flex;
  justify-content: center;
  align-items: center;
}
#contenedorPrincipal{
  display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;
    width: 40%;
    border: solid;
    border-radius: 11px;
    margin-bottom: 1%;
    margin-top: 2%;
    border: solid #5b5b5b 0.7vh;
}
#pistas{
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(naturaleza.webp);
    background-position: bottom;
    width: 100%;
    border-radius: 0 0 3px 3px;
    background-repeat: no-repeat;
    background-size: cover;
}
#pista1,#pista2,#pista3{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 46px;
  border-radius: 15px;
  margin-bottom: 0;
  font-family: pokemon,'nyt-franklin';
  font-display: swap;
  margin-top: 5%;
  font-size: 60%;
  
}
h4{
  font-family: pokemon,'nyt-franklin';
  font-display: swap;
  text-align: center;
}
#contenedorBoton{
  width: 100%;
  display: flex;
  justify-content: center;
}
#botonReiniciar{
  display: none;
  background-color: white;
  font-family: pokemon;
  border-radius: 10px;
  padding: 1vh;
  border: solid black;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-bottom: 1vh;
}
#botonReiniciar:hover{
  transform: scale(1.2);
}
#racha,#rachaInfinita{
  width: 28vh;
  background-color: white;
  border-radius: 5px;
  padding: 0.5vh;
  margin-top: 1vh;
  text-align: center;
  font-family: pokemon;
  display: flex;
  justify-content: center;
  align-items: center;
}
#contadorRacha,#contadorRachaInfinita{
  width: 50px;
  height: 50px;
  background-image: url(logoRacha.png);
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
#rachas{
  display: flex;
  gap: 1vh;
  margin-bottom: 1vh;
}
#contenedorPista1,#contenedorPista2,#contenedorPista3{
  background-color: white;
  border: solid;
  margin: 3%;
  border-radius: 10px;
  width: 20%;
  padding: 1vh;
}


#fallo1,#fallo2,#fallo3{
  margin-bottom: 0;
  font-size: 8px;
  font-family: pokemon,'nyt-franklin';
  font-display: swap;
  text-align: center;
}
h3{
   font-family: pokemon,'nyt-franklin';
   font-display: swap;
}
#tituloFinal{
  font-family: pokemon,'nyt-franklin';
  font-display: swap;
  font-size: 153%;
  text-align: center;
}
#TituloPistas{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #00405c;
    border-radius: 3px 3px 0 0;
    color: white;
}
#mensajeFinal{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
#errorModal .btn-close {
  display: none;
}
.bg-azul{
  --bs-bg-opacity: 1;
  background: #00405c;
}
input:disabled{
  color: black;
  font-weight: bold;
}
.modalAlto .modal-content{
  height: 500px;
}
.minijuego{
  padding: 1vh;
  font-family: pokemon, 'nyt-franklin';
  font-display: swap;
  color: black;
  text-decoration: none;
  font-size: 70%;
  font-weight: bold;
  border: solid black;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  background-color: white;
}
.minijuego:hover{
  transform: scale(1.1);
  background-color: black;
  color: white;
}
#minijuegosMenu{
  gap:2vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3vh;
}
a{
  text-decoration: none;
}
.menuModal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(0,0,0,0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, background .35s ease;
}


.menuModal.show {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0,0,0,.25);
}


.contenidoModal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  height: 100%;
  background-image: radial-gradient(circle, #12002e, #09072e, #030c2c, #011029, #021325);
  padding: 20px;
  transform: translateX(100%);  
  transition: transform .35s ease;
}
.contenidoModal path{
  fill:white;
}


.menuModal.show .contenidoModal {
  transform: translateX(0);
}

.menuModal.hideRight .contenidoModal {
  transform: translateX(100%);
}
.keyboard {
display: flex;
flex-direction: column;
gap: 10px;
min-height: 28vh;
}
.fila {
display: flex;
justify-content: center;
gap: 5px;
}
.key {
padding: 15px 10px;
min-width: 35px;
background: #d3d6da;
border-radius: 6px;
text-align: center;
cursor: pointer;
user-select: none;
font-weight: bold;
 user-select: none;   
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;     
}
.key.big {
min-width: 70px;
}
.verde{
  background-color: #77fb77;
}
.rojo{
background-color: #bb2323;
}
.amarillo{
  background-color: #f9f965;
}
#finalPagina{
      display: flex;
      width: 100%;
      justify-content: center;
      color: white;
      align-items: center;
      gap:1vh;
      font-family: pokemon;
      font-display: swap;
    }
#finalPagina svg{
  width: 4vh;
  fill: white;
  cursor: pointer;
}
#finalPagina p{
      margin-bottom: 1rem;
      margin-top: 1rem;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.6); /* oscurece fondo */

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;

  /* oculto por defecto */
}

/* Caja del modal */
.modalInfo {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  gap:1vh;
  display: none;
}
#tituloInfo{
  text-align: center;
  border-bottom: black dotted ;
  width: 100%;
}
#informacionModal{
  border-bottom: black dotted ;
}
#contenedorCerrarModal{
  display: flex;
  justify-content: end;
  height: 3vh;
  align-items: center;
}
#cerrarModalInfo{
  cursor: pointer;
}
#cerrarModalInfo:hover{
  transform: scale(1.2);
}
#cerrarModal{
  cursor: pointer;
}
#logoMenu{
  width: 25vh;
  margin-bottom: 3vh;
}

@media (width <= 768px) {
    .letra{
      width: 9vw;
    }
    #contenedorPrincipal{
      width: 84vw;
      margin-bottom: 4%;
    }
    #pistas{
       flex-direction: column;
    }
    #contenedorPista1,#contenedorPista2,#contenedorPista3{
      width: 25vw;
    }
    .key{
      min-width: auto;
    }
 .key.big{
      min-width: auto;
 }
 h3{
      font-size: 79 vw;
    }
    #finalPagina svg{
      width: 3vh;
    }
    #logoDiario{
        height: 16vh;
    }
    #rachas{
      flex-direction: column;
    }
}