html {
  height: 100%;
  background-color: #000;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  animation: fadeInPage 0.1s ease both;
}

body.fade-out {
  animation: fadeOutPage 0.1s ease forwards;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOutPage {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.background {
  height: 100%;
  background-image: url("../image/fondo.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0px;
  font-family: "AntonRegular", sans-serif;
  letter-spacing: 2px;
  overflow-x: hidden;
  overflow-y: auto;
}



.background-jugar {
  height: 100%;
  background-image: url("../image/jugar.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0px;
  font-family: "AntonRegular", sans-serif;
  letter-spacing: 2px;
  overflow-x: hidden;
  overflow-y: auto;
}


/*.image-responsive {
  display: none;
}

.girar-pantalla {
  display: none;
}*/

/* Estilos para el mensaje al girar la pantalla */
.girar-pantalla {
  display: none; 
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8); 
  color: white; 
  font-size: 1.5em;
  font-family: "Nexa-bold";
  font-weight: bold;
  padding: 20px;
  border-radius: 10px;
  z-index: 100; 
}

/* Mostrar mensaje solo en dispositivos móviles en modo vertical */
@media screen and (orientation: portrait) and (max-width: 1024px) {
  .girar-pantalla {
    display: flex; 
  }

  .background {
    pointer-events: none;
    filter: blur(30px);
  }

  .divCentral {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70vh;
    filter: blur(30px);
  }
}

@font-face {
  font-family: "Nexa-bold";
  src: url("../fonts/Nexa-Bold.otf") format("truetype");
}

.divCentral {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 70vh;
}

.top-center-imagen {
  background-image: url("../image/Sante.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  width: 100%;
  padding-top: calc((79 / 503) * 25%);
}

.atras-left-image {
  position: absolute;
  left: 4vw;
  top: 45%;
  width: 5%;
  height: auto;
  z-index: 2;
}

.adelante-left-image {
  position: absolute;
  right: 4vw;
  top: 83%;
  width: 16%;
  height: auto;
  z-index: 2;
}

.boton-jugar-image {
  position: absolute;
  right: 23vw;
  top: 72%;
  width: 25%;
  height: auto;
  z-index: 2;
}

.container-btnHome {
  position: absolute;
  top: 100px;
  left: 80px;
  width: auto;
  height: auto;
  z-index: 10;
}

.btnHome {
  width: 80%;
  height: auto;
  cursor: pointer;
}

.centered-imageBtnd {
  text-align: center;
  width: auto;
  margin: 0px 0 0 0; 
  position: relative; 
  z-index: 10;
}

.imgBtnd {
  width: 80%;
  height: auto;
  cursor: pointer;
}

.centered-imageText {
  background-image: url('../image/textoRecordando.png');
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  width: 100%; 
  max-width: 1081px; 
  height: 200px; 
  padding-top: calc((339 / 1199) * 65%);
}

/* Media queries para pantallas grandes */
@media (min-width: 1200px) {
  .container-btnHome {
    position: absolute;
    top: 100px;
    left: 80px;
    width: auto;
    height: auto;
    z-index: 10;
  }
  
  .btnHome {
    width: 80%;
    height: auto;
    cursor: pointer;
  }

  .centered-imageBtnd {
    text-align: center;
    width: auto;
    margin: 0px 0 0 0; 
    position: relative; 
    z-index: 10; 
  }
  
  .imgBtnd {
    width: 80%;
    height: auto;
    cursor: pointer;
  }  
  
  .centered-imageText {
    background-image: url('../image/textoRecordando.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%; 
    max-width: 1081px; 
    height: 200px; 
    padding-top: calc((339 / 1199) * 65%);
  }

  .atras-left-image {
    position: absolute;
    left: 4vw;
    top: 83%;
    width: 20%;
    height: auto;
    z-index: 2;
  }
  
  .adelante-left-image {
    position: absolute;
    right: 4vw;
    top: 83%;
    width: 16%;
    height: auto;
    z-index: 2;
  }


  .boton-jugar-image {
  position: absolute;
  right: 23vw;
  top: 72%;
  width: 25%;
  height: auto;
  z-index: 2;
  }
}

/* Media queries para pantallas medianas */
@media (min-width: 768px) and (max-width: 1199px) {
  .container-btnHome {
    position: absolute;
    top: 100px;
    left: 80px;
    width: auto;
    height: auto;
    z-index: 10;
  }
  
  .btnHome {
    width: 80%;
    height: auto;
    cursor: pointer;
  }

  .centered-imageBtnd {
    text-align: center;
    width: auto;
    margin: 0px 0 0 0;
    position: relative; 
    z-index: 10; 
  }
  
  .imgBtnd {
    width: 70%;
    height: auto;
    cursor: pointer;
  }
  
  .centered-imageText {
    background-image: url('../image/textoRecordando.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%; 
    max-width: 1081px; 
    height: 200px; 
    padding-top: calc((339 / 1199) * 65%);
  }

  .atras-left-image {
    position: absolute;
    left: 4vw;
    top: 45%;
    width: 5%;
    height: auto;
    z-index: 2;
  }
  
  .adelante-left-image {
    position: absolute;
    right: 4vw;
    top: 83%;
    width: 16%;
    height: auto;
    z-index: 2;
  }

  .boton-jugar-image {
  position: absolute;
  right: 23vw;
  top: 72%;
  width: 25%;
  height: auto;
  z-index: 2;
  }
}

/* Media queries para pantallas pequeñas */
@media (max-width: 767px) {
  .container-btnHome {
    position: absolute;
    top: 50px;
    left: 20px;
    width: auto;
    height: auto;
    z-index: 10;
  }
  
  .btnHome {
    width: 40%;
    height: auto;
    cursor: pointer;
  }

  .centered-imageBtnd {
    text-align: center;
    width: auto;
    margin: 0px 0 0 0;
    position: relative; 
    z-index: 10; 
  }
  
  .imgBtnd {
    width: 40%;
    height: auto;
    cursor: pointer;
  }
  
  
  .centered-imageText {
    background-image: url('../image/textoRecordando.png');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 1081px; 
    height: 200px;
    padding-top: calc((339 / 1199) * 65%);
  }

  .atras-left-image {
    position: absolute;
    left: 4vw;
    top: 45%;
    width: 5%;
    height: auto;
    z-index: 2;
  }
  
  .adelante-left-image {
    position: absolute;
    right: 4vw;
    top: 83%;
    width: 16%;
    height: auto;
    z-index: 2;
  }

  .boton-jugar-image {
  position: absolute;
  right: 23vw;
  top: 72%;
  width: 25%;
  height: auto;
  z-index: 2;
}
}

/* Media queries para pantallas muy pequeñas */
@media (max-width: 480px) {
  .container-btnHome {
    position: absolute;
    top: 50px;
    left: 20px;
    width: auto;
    height: auto;
    z-index: 10;
  }
  
  .btnHome {
    width: 40%;
    height: auto;
    cursor: pointer;
  }

  .centered-imageBtnd {
    text-align: center;
    width: auto;
    margin: 0px 0 0 0;
    position: relative; 
    z-index: 10; 
  }
  
  .imgBtnd {
    width: 40%;
    height: auto;
    cursor: pointer;
  }
  
  
  .centered-imageText {
    background-image: url('../image/textoRecordando.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    max-width: 1081px; 
    height: 200px; 
    padding-top: calc((339 / 1199) * 65%);
  }

  .atras-left-image {
    position: absolute;
    left: 4vw;
    top: 45%;
    width: 5%;
    height: auto;
    z-index: 2;
  }
  
  .adelante-left-image {
    position: absolute;
    right: 4vw;
    top: 83%;
    width: 16%;
    height: auto;
    z-index: 2;
  }
  
  .boton-jugar-image {
  position: absolute;
  right: 23vw;
  top: 72%;
  width: 25%;
  height: auto;
  z-index: 2;
}
}

@media (min-width: 768px) and (max-width: 1024px) {
  .centered-imageText {
    height: 150px; 
  }

  .container-btnHome {
    position: absolute;
    top: 50px;
    left: 20px;
    width: auto;
    height: auto;
    z-index: 10;
  }

  .btnHome {
    width: 30%; 
  }

  .centered-imageBtnd {
    text-align: center;
    width: auto;
    margin: 0px 0 0 0; 
    position: relative; 
    z-index: 10; 
  }
  
  .imgBtnd {
    width: 30%;
    height: auto;
    cursor: pointer;
  }
}