/* Para pantallas en orientación vertical (mobile first) */

@font-face {
  font-family: 'vt323';
  src: url('../fonts/vt323-latin-400-normal.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #00FFFF;
  font-family: 'vt323';
}

img {
  display: block;
  margin: 0;
  padding: 0;
}

#cargandoDiv img {
  content: url('../img/fondoPortrait.webp');
}

#cargandoDiv {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

#negroDiv {
  position: fixed;
  background-color: black;
  color: white;
  top: 5%;
  right: 5%;
  bottom: 5%;
  left: 5%;
  z-index: 1;
  overflow: hidden;
  
  /* Elimina las barras de scroll en esta capa */
  ::-webkit-scrollbar {
    display: none; /* para Chrome, Safari y Opera */
  }
}

#contenidoDiv {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
}

.language-selector-container {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
}

.language-selector-container #language-selector {
  font-family: Arial, sans-serif;
  font-size: 16px;
  padding: 5px;
  background-color: #000;
  color: #fff42c;
}

.corporativo {
  position: relative;
  /* background-color: lightblue; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dime-algo {
  text-align: center;
  font-size: 1.5rem;
  padding: 0.5rem;
}

.correo {
  text-align: center;
  margin-bottom: 2rem;
}

.correo a {
  font-size: 2rem;
  color: #fff42c;;
  text-decoration: none;
}




.decoracion {
  position: relative;
  /* background-color: lightpink; */
  height: 250px;
  margin: 3rem 0 5rem 0;
}
  
.decoracion .plataforma-mono {
  position: absolute;
  top: 0;
  left: 0;
}

.decoracion .yayo-chicharrone {
  position: absolute;
  top: 2px;
  right: 25%;
  transform: scaleX(-1);
}

.decoracion .avion {
  position: absolute;
  top: 75px;
  left: 5%;
}

.decoracion .burbuja-verde {
  position: absolute;
  top: 160px;
  right: 27%;
}

.decoracion .burbuja-azul {
  position: absolute;
  top: 140px;
  right: 33%;
}

.decoracion .dragon {
  position: absolute;
  bottom: 50px;
  right: 14.2%;
  z-index: 2;
}

.decoracion .coche {
  position: absolute;
  bottom: 18px;
  left: 9%;
}

.decoracion .pow {
  position: absolute;
  bottom: 70px;
  right: 38%;
}

.decoracion .puzle {
  position: absolute;
  top: 80px;
  left: 30%;
}

.decoracion .refugio {
  position: absolute;
  bottom: 60px;
  left: 6%;
}

.decoracion .setas {
  position: absolute;
  bottom: 100px;
  right: 6%;
}

.decoracion .monte {
  position: absolute;
  bottom: 0;
  left: 0;
}



.posts {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  justify-items: center;
}

.posts #post-yayo {
  font-family: 'vt323';
  position: relative;
  background-color: #422100;
  margin: 5rem 0.5rem;
  padding: 1rem 0;
  border: #fff200 2px solid;
  max-width: 30rem;
}

.posts #post-yayo .yayo-chicharrone {
  position: absolute;
  top: -50px;
  left: 15px;
}

.posts #post-yayo h2 {
  text-align: center;
  color: #fff42c;
  margin-bottom: 1rem;
  padding: 0.5rem 0.1rem;
  font-size: 2.5rem;
}

.posts #post-yayo h2 span {
  font-size: 1.8rem;
}

.posts #post-yayo p {
  text-align: center;
  font-size: 1.4rem;
  padding: 0 0.6rem;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.posts #post-yayo video {
  display: block;
  margin: 3rem auto;
}

.posts #post-yayo .app-store-button {
  position: absolute;
  bottom: -25px;
  left: 1rem;
}

.posts #post-yayo .google-play-button {
  position: absolute;
  bottom: -25px;
  right: 1rem;
}





.posts #post-batopo {
  position: relative;
  background-color: #2f0042;
  margin: 5rem 0.5rem;
  padding: 1rem 0;
  border: #fff200 2px solid;
  max-width: 30rem;
}

.posts #post-batopo .isotipo {
  position: absolute;
  top: -50px;
  left: 15px;
}

.posts #post-batopo h2 {
  text-align: center;
  color: #fff42c;
  margin-bottom: 1rem;
  padding: 0.5rem 0.1rem;
  font-size: 2.5rem;
}

.posts #post-batopo h2 span {
  font-size: 1.8rem;
}

.posts #post-batopo p {
  text-align: center;
  font-size: 1.4rem;
  padding: 0 0.6rem;
  text-wrap: balance;
  margin-bottom: 1rem;
}




/* Animations from ./animations.css */

.anima-avion {
  -webkit-animation: avion 6s linear infinite;
          animation: avion 6s linear infinite;
}

.anima-coche {
  -webkit-animation: coche 5s linear infinite;
          animation: coche 5s linear infinite;
}

.anima-puzle {
  -webkit-animation: puzle 7s linear infinite;
          animation: puzle 7s linear infinite;
}

.anima-burbuja-azul {
  -webkit-animation: burbuja-azul 8s linear infinite;
          animation: burbuja-azul 8s linear infinite;
}

.anima-burbuja-verde {
  -webkit-animation: burbuja-verde 8s linear infinite;
          animation: burbuja-verde 8s linear infinite;
}

.anima-dragon {
  -webkit-animation: dragon 12s linear infinite;
          animation: dragon 12s linear infinite;
}

.anima-yayo {
  -webkit-animation: yayo 2s linear infinite;
          animation: yayo 2s linear infinite;
}

.latido {
  -webkit-animation: latido 1.3s linear infinite;
          animation: latido 1.3s linear infinite;
}







/* Para pantallas en orientación horizontal */
@media screen and (orientation: landscape) {
  html, body {
    background-color: #EDF000;
  }

  #cargandoDiv img {
    content: url('../img/fondoLandscape.webp');
  }

  .language-selector-container {
    flex-direction: row;
  }

  .cabecera {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Define dos filas que ajustan su tamaño automáticamente */
    grid-template-rows: auto auto; 
  }
  
  .cabecera .corporativo {
    display: contents;
  }

  .cabecera .isotipo {
    /* Ocupa ambas filas para alinearse con el logotipo y la decoración */
    grid-column: 1;
    grid-row: 1 / 3; 
    /* Centra horizontal y verticalmente en su celda */
    justify-self: center; 
    align-self: center;
  }

  .cabecera .logotipo {
    /* Primera fila, segunda columna */
    grid-column: 2; 
    grid-row: 1; 
    /* Alinea al centro horizontal en su celda */
    justify-self: center; 
    margin-bottom: 1rem;
  }

  .cabecera .decoracion {
    /* Segunda fila, segunda columna */
    grid-column: 2; 
    grid-row: 2; 
    margin: 1rem 0;
  }


  .posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; 
  }

  .posts #post-yayo {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 5rem 0.5rem;
  }

  .posts #post-batopo {
    grid-column: 2;
    grid-row: 1;
    margin: 5rem 0.5rem;
  }

}


