

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
::-webkit-scrollbar:horizontal {
  display: none;
}

::-webkit-scrollbar {
  width: 6px; /* Barra de desplazamiento más delgada */
}

/* Personalización del área de la barra de desplazamiento (track) */
::-webkit-scrollbar-track {
  background: rgb(26, 26, 26); /* Color claro de fondo para el track */
  border-radius: 10px; /* Bordes suaves */
}

/* Personalización de la parte que se mueve (thumb) */
::-webkit-scrollbar-thumb {
  background: #686868; /* Color gris suave para el thumb */
  border-radius: 10px; /* Bordes redondeados */
}

/* Efecto hover sobre el thumb */
::-webkit-scrollbar-thumb:hover {
  background: #888; /* Color más oscuro al pasar el ratón sobre el thumb */
}

.main-content.animated{
  opacity: 1;
  transform: scale(1);
}

.main-content{
    flex:1;
    padding: 6rem 2rem 0 1rem;
    color: white;
    font-size: 1.5rem;
    height: 100%;
    font-family: "Gabarito", cursive;
  }

  .blur-abrir-juego{
    font-size: 1.5rem;
    color: white;
    font-family: "Gabarito", cursive;
  }
  
  .btn-pagina {
    padding: 10px;
    margin-left: 7px;
    font-family: "Gabarito", cursive;
    font-weight: bold;
    color: #000000;
    border: none;
    cursor: pointer;
    background-color: white;
    position: relative;
  }

  @keyframes scaleUp {
    0% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
  }
  



  /*  */

  .encabezado{
    color: white;
  }

  .encabezado h1{
    font-family: "Gabarito", cursive;
    padding-left: 2rem;
    font-size: 2.8rem;
  }

  /* Categorias */

.selector-container {
    display: flex;
    align-items: center;
    justify-content: left;
    overflow: hidden;
    position: relative;
  
}

.selector {
  display: flex;
  justify-content: left;
  /* flex-wrap: nowrap; */ /* Comentar o eliminar esta línea */
  gap: 10px;
  overflow-x: auto;
  padding: 0 10px;
}

.scroll-btn:hover {
    color: rgba(255, 255, 255, 0.815);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.selector-container button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}


.contenedor-boton{

    background-color: #0f0f0f;
    color: white;
    border: none;
    padding: 10px 25px 10px 10px;
    cursor: pointer;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: background-color 0.3s;
    
}

.contenedor-boton-izquierda{
    left: 0;
    -webkit-box-shadow: 12px 6px 36px 15px rgba(0,0,0,0.8);
    -moz-box-shadow: 12px 6px 36px 15px rgba(0,0,0,0.8);
    box-shadow: 12px 6px 36px 15px rgba(0,0,0,0.8);
}
.contenedor-boton-derecha{
    right: 0;
    -webkit-box-shadow: -12px 6px 36px 15px rgba(0,0,0,0.8);
-moz-box-shadow: -12px 6px 36px 15px rgba(0,0,0,0.8);
box-shadow: -12px 6px 36px 15px rgba(0,0,0,0.8);
}

.item {
  padding: 8px 18px;
  cursor: pointer;
  background-color: #272727;
  color: white;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  white-space: nowrap; /* Asegura que el texto no se envuelva */
}
.item:hover {
    background-color: #4d4d4dbb;
}

.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.selector div span{
    font-family: "Gabarito", cursive;
    font-size: 1.6rem;
}

/*  */

.cargando-categoria{
  height: 100%;
  width: 100%;
  background-color: #0f0f0f98;
  z-index: 2;
  position: absolute;
  display: none;
}

/* Cargando */

.cargando-buscar {
  background-color: #9537ff;
  width: 0%;
  height: 2px;
  transition: width 0.3s ease; /* Añade una transición para suavizar el efecto de carga */
  position: absolute;
}


.barra-trasera-cargando{
  background-color: #1b1b1b;
  transition: width 0.3s ease;
  width: 100%;
  visibility: hidden;
  height: 2px;
}
/* Bscar */

.buscar-input{
    position: relative;
    margin: 0;
    font-family: "Gabarito", cursive;
    display: flex;
    justify-content: left;
    margin-bottom: 2rem;
    margin-left: 2rem;
  }

  .input-field-username, .input-field-buscar{
  

    width: 25%;
    padding: 1.3rem 1.3rem 1.3rem 4rem;
    border: none;
    border: 0.2rem solid gray;
    color: white;
    outline: none;
    border-radius: 2rem;
    background-color: transparent;
  }
  

  .span-buscar{
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 2.5rem;
  }

  .span-username i, .span-buscar i{
    font-size: 1.5rem;
    
    color:gray;
  }

  .input-label-username, .input-label-buscar {
    position: absolute;
    top: 46%;
    left: 4.5rem;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    color: gray;
    pointer-events: none;
    background-color: transparent;
    transition: 0.2s ease all;
   
  }

  .input-field-username:focus ~ .input-label-username,
.input-field-username:valid ~ .input-label-username, 
.input-field-buscar:focus ~ .input-label-buscar,
.input-field-buscar:valid ~ .input-label-buscar {
  transform: translateY(-50%);
  top: 5%;
  left: 3.8rem;
  font-size: 12px;
  color: gray;
  background-color: #0f0f0f;
  padding: 0 5px;
}

.buscar-input button{
    border-radius: 1rem;
    border: none;
    padding: 1rem;
    margin-left: 1.2rem;
    transition: all 0.2s ease;
    color: black;
    font-family: "Gabarito", cursive;
  }
  
  .buscar-input button:hover{
    background-color: black;
    color: white;
    cursor: pointer;
  }

  /*  */

  .carousel-destacados {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
    padding-left: 1rem;
    left: 0;
  }

  .carousel-track-container-destacados {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: auto;
  }

  .carousel-track-destacados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Las columnas se ajustan automáticamente */
    gap: 1px; /* Espacio entre los elementos */
    width: 100%; /* Asegura que el contenedor ocupe el 100% del ancho disponible */
    overflow-x: hidden; /* Evita el desbordamiento hacia el lado derecho */
  }

  .carousel-track, .carousel-track-destacados, .carousel-track-mas-buscado, .carousel-track-recomendado, .carousel-track-favorito, .carousel-track-accion, .carousel-track-aventura {
    padding: 1rem 0 1rem 0;
  }

  /* Actualizado */

.actualizado-h3{
  background-color: green;
  border-left: 0.3rem solid white;
  color: white;
  position: absolute;
  left: 0;
  top: -1rem;
  padding-right: 1rem;
  padding-left: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  font-size: 1.4rem;
  font-weight: normal;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out !important;
}

  
  .visto-megusta-contenedor {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.486);
    color: white;
    display: none;
    align-items: center;
    text-align: left;
    margin-top: 0.5rem;
    padding: 0.8rem;
    border-top-right-radius: 5rem;
    border-bottom-right-radius: 5rem;
    transform: translateX(-100%); /* Fuera de la pantalla a la izquierda */
    animation: slideIn 0.5s ease-out forwards; /* Animación */
  }

  .visto-megusta-contenedor *{
    padding: 0;
    margin: 0;
  }
  
  .visto-megusta-contenedor h2{
    font-size: 1.3rem;
    font-weight: normal;
    padding: 0;
  }

  @keyframes slideIn {
    0% {
      transform: translateX(-100%); /* Posición inicial fuera de la pantalla */
    }
    100% {
      transform: translateX(0); /* Posición final */
    }
  }

  .carousel .game-card:hover, .carousel-destacados .game-card-destacados:hover, .carousel-mas-buscado .game-card-mas-buscado:hover, .carousel-recomendado .game-card-recomendado:hover, .carousel-favorito .game-card-favorito:hover, .carousel-accion .game-card-accion:hover, .carousel-aventura .game-card-aventura:hover {
    transform: translateY(-5px); /* Efecto de hover */
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.493);
  }

  .carousel .game-card img, .carousel-destacados .game-card-destacados img, .carousel-mas-buscado .game-card-mas-buscado img, .carousel-recomendado .game-card-recomendado img, .carousel-favorito .game-card-favorito img, .carousel-accion .game-card-accion img, .carousel-aventura .game-card-aventura img  {
    width: 100%;
    height: 110px;
    object-fit: cover;
    box-shadow: 0 3px 3px -2px rgba(0, 0, 0, 0.5);
  }

  .carousel .game-card, .carousel-destacados .game-card-destacados, .carousel-mas-buscado .game-card-mas-buscado, .carousel-recomendado .game-card-recomendado, .carousel-favorito .game-card-favorito, .carousel-accion .game-card-accion, .carousel-aventura .game-card-aventura  {
    flex: 1; /* Permite que las tarjetas se ajusten dinámicamente */
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    /* border: 1px solid #333; */
    border-radius: 0.4rem;
    min-width: 200px;
    max-width: 200px;
    margin: 0 0 0 8px;
  }

  .game-card p, .game-card-recomendado p, .game-card-favorito p, .game-card-mas-buscado p, .game-card-destacados p, .game-card-accion p, .game-card-aventura p{
    color: gray;
  }

  /*  */

  .blur-explorar-juegos, .blur-abrir-juego, .blur-reportar-juego, .blur-abrir-favoritos, .blur-historial, .blur-verificar-login, .blur-buscar-pedidos{
    background-color: rgba(0, 0, 0, 0.603);
    position: fixed;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    overflow: auto;
    z-index: 2;
  }

  .contenedor-abrir-juego{
    background-color: #0f0f0f;
    border: 0.1rem solid #292929;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.705);
    margin: 4rem auto;
    padding-bottom: 1rem;
    width: 50%;
    padding-right: 8px;
    border-radius: 1rem;
    transform:  scale(0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; 
  }

  .juegos{
    transform:  scale(1.2);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out !important; 
  }

  .contenedor-explorar-juegos.animated, 
.contenedor-abrir-juego.animated, 
.reportar-juego-contenedor.animated, 
.contenedor-abrir-favoritos.animated, 
.contenedor-historial.animated, .juegos.animated{
  opacity: 1;
  transform: scale(1);
}
  .juegos.animated2{
  opacity: 1;
  transform: scale(1);
}

.loader-contenedor-abrir-juego{
  display: none;
  margin-left: 1rem;
  text-align: center;
}

.loader {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border-top: 2px solid #d5fc34;
  border-right: 2px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border-bottom: 2px solid #5865f2;
  border-left: 2px solid transparent;
}


.cerrar-explorar-contenedor {
  padding-right: 1.5rem;
  padding-top: 1.5rem;
  text-align: right;
}

.encabezado-abrir-juego{
  position: relative;
  text-align: left;
}

.encabezado-detalles *{
  margin: 0;
  padding: 0;
  text-align: left;
 
}

.encabezado-detalles h4{
  background-color: green;
  color: white;
  padding-right: 1rem;
  padding-left: 1rem;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  font-weight: normal;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out !important;
}


.encabezado-detalles div{
  display: flex;
  align-items: center;

}

.encabezado-detalles h3{
  color: gray;
  font-size: 1.3rem;
}

.cerrar-abrir-juego{
  background-color: transparent;
  color:rgb(250, 75, 75);
  font-size: 2rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cerrar-abrir-juego:hover{
  transform: scale(1.2);
  color:rgb(248, 55, 55);
}

.megusta-favorito-contenedor{
  display: flex;
  align-items: center;
  padding-bottom:1.6rem;
}

.me-gusta-mensaje-contenedor, .guardar-juego-mensaje-contenedor, .error-correo-mensaje-contenedor {
  display: none;
  align-items: center;
  z-index: 999999;
  position: absolute;
  left: -2.5rem;
  top: 100%;
}


.triangulo-cuerpo, .triangulo-cuerpo-guardar-juego {
  width: 100%; /* Ancho al 100% */
  position: relative;
  display: flex;
  flex-direction: column; /* Asegura que el contenido esté debajo del triángulo */
  border-radius: 1rem;
  background-color: black; /* Color de fondo del triángulo */
  color: white; /* Color del texto */
}

.triangulo-error-cuerpo-correo {
  width: 100%; /* Ancho al 100% */
  position: relative;
  display: flex;
  flex-direction: column; /* Asegura que el contenido esté debajo del triángulo */
  border-radius: 1rem;
  background-color: rgb(250, 75, 75); /* Color de fondo del triángulo */
  color: white; /* Color del texto */
}

.triangulo, .triangulo-guardar-juego {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 10px; /* Ajusta el tamaño del triángulo */
  border-color: transparent transparent black transparent; /* Color del triángulo */
  position: absolute;
  top: -10px; /* Mueve el triángulo hacia arriba del contenedor */
  left: 50%; /* Centra horizontalmente el triángulo */
  transform: translateX(-50%); /* Ajusta la posición para centrarlo */
}


.triangulo-cuerpo p, .triangulo-cuerpo-guardar-juego p {
  font-family: "Gabarito", cursive;
  margin: 0; /* Elimina el margen predeterminado del párrafo */
  padding: 10px; /* Espacio interno alrededor del texto */
  font-size: 1.3rem;
}

.triangulo-error-correo {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 10px; /* Ajusta el tamaño del triángulo */
  border-color: transparent transparent rgb(250, 75, 75) transparent; /* Color del triángulo */
  position: absolute;
  top: -10px; /* Mueve el triángulo hacia arriba del contenedor */
  left: 50%; /* Centra horizontalmente el triángulo */
  transform: translateX(-50%); /* Ajusta la posición para centrarlo */
}


.triangulo-error-cuerpo-correo p {
  font-family: "Gabarito", cursive;
  margin: 0; /* Elimina el margen predeterminado del párrafo */
  padding: 10px; /* Espacio interno alrededor del texto */
  font-size: 1.3rem;
}


.guardar-juego-mensaje-contenedor{
  left: -1.1rem !important;
}

.me-gusta i:hover {
  transform: scale(1.3); /* Aumenta el tamaño */
  color: #9537ff; /* Cambia el color del ícono */
}

.megusta-favorito-contenedor div i, .confirmar-me-gusta-boton {
  font-size: 2.2rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

#confirmar-me-gusta-boton{
  font-size: 2.2rem;
  margin-top: 0.5rem;
  color: #9537ff;
  cursor: pointer;
  display: none;
  animation: scaleUp2 0.4s ease-out forwards;
}

.favorito i:hover {
  transform: scale(1.2); /* Aumenta el tamaño */
  color: #ffd43b; /* Cambia el color del ícono */
}

.favorito i{
  margin-left: 1rem;
  font-size: 2rem !important;
}

.icon-container-favoritos .favorito-ico{
  font-size: 15px;
  z-index: 1;
  color: yellow;
  visibility: hidden;
  opacity: 0;
  transform: translateX(0); 
  transition: transform 0.7s ease, opacity 0.7s ease, visibility 0.7s ease;
}

.icon-container-favoritos:hover .favorito-ico{
  transform: translateX(75px); 
  opacity: 1;
  visibility: visible;
}


.ultimas-publicaciones-h2, .mas-buscado-h2, .mas-recomendado-h2, .mas-explorar-h2, .favoritos-h2, .accion-h2, .aventura-h2{
  margin-left: 2rem;
  font-size: 2.4rem;
  margin: 0 0 0 2rem;
  cursor: pointer;
  font-weight: normal;
  display: flex;
  align-items: center;

}

.favoritos-h2 i{
  font-size: 1.5rem;
  margin-right: 0.8rem;
}


#confirmar-agregar-favorito, #confirmar-copiar-link{
  font-size: 2rem;
  margin-top: 0.5rem;
  cursor: pointer;
  display: none;
  animation: scaleUp2 0.4s ease-out forwards;
  color: #ffd43b;
}
.detalles-juegos-abrir-juego h2, .detalles-juegos h2{
  font-size: 1.4rem;
  font-weight: normal;
  color: gray;
}

.detalles-juegos-abrir-juego {
  
  position: relative; /* Esto permite que los detalles se coloquen sobre la imagen */
}

.detalles-juegos-abrir-juego img {
  width: 100%; /* Ajusta la imagen al ancho del contenedor */
  height: auto; /* Mantiene la proporción de la imagen */
  object-fit: cover; /* Asegura que la imagen cubra el área del contenedor sin distorsionarse */
  max-height: 450px; /* Limita la altura de la imagen */
  border-radius: 1rem;

}

.requisitos{
  z-index: 4;
  
}


.requisitos h2:nth-child(1), .guia h2 {
  font-size: 2.3rem;
  color: #9537ff;
}
.requisitos h2:nth-child(2) {
  font-size: 1.8rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.advertencia{
  background-color: #ffdb9b;
  display: flex;
  align-items: center;
  text-align: left;
  border-left: 1rem solid #ce8501;
  margin-top: 2.5rem;
  border-radius: 0.4rem;
  font-weight: normal;
  
}
.advertencia h2{
  font-size: 1.3rem;
  color: #ce8501;

}

.advertencia i{
  font-size: 2rem;
  color: #ce8501;
  margin-right: 2rem;
}

.descarga-juego-contenedor{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 4rem;
}

.enlace-descarga-abrir-juego{
  background-color: #9537ff;
  color: white;
  padding: 1.7rem;
  border-radius: 1rem;
  font-size: 1.7rem;
  font-family: "Gabarito", cursive;
  font-weight: normal;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}


.enlace-descarga-abrir-juego:hover{
  transform: scale(1.1);
  text-decoration: underline;
}

.reportar-juego-abrir-juego{
  background-color: transparent;
  text-decoration: underline;
  color:rgb(250, 75, 75);
  border: none;
  
  margin-top:1rem;
  cursor: pointer;
  font-family: "Gabarito", cursive;
}

.reportar-juego-abrir-juego:hover{
  color:rgb(255, 62, 62);
}

.discord-abrir-juego{
  background-color: transparent;
  color: #5865f2;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.youtube-abrir-juego:hover, .discord-abrir-juego:hover {
  transform: scale(1.3); /* Aumenta el tamaño */
}

.copiar-link-juego i{
  margin-left: 1rem;
  font-size: 2rem !important;
}
.copiar-link-juego i:hover {
  transform: scale(1.2); /* Aumenta el tamaño */
  color: green; /* Cambia el color del ícono */
}

#confirmar-agregar-favorito, #confirmar-copiar-link{
  font-size: 2rem;
  margin-top: 0.5rem;
  cursor: pointer;
  display: none;
  animation: scaleUp2 0.4s ease-out forwards;
  color: #ffd43b;
}

#confirmar-copiar-link{
  color: green;
}

.favorito i{
  margin-left: 1rem;
  font-size: 2rem !important;
}

.copiar-link-juego i{
  margin-left: 1rem;
  font-size: 2rem !important;
}



/*  */
.estado-juego{
  background-color: rgba(250, 75, 75, 0.123);
  color: rgb(250, 75, 75);
  border: 0.2rem solid rgb(250, 75, 75);
  width: 55%;
  border-radius: 1rem;
  padding-left: 1rem;
  margin-bottom: 2rem;
  padding: 0.8rem;
  margin: 0 auto;
}

.estado-juego h2{
  font-weight: normal;
  color: rgb(250, 75, 75);
}
/*  */

.bloqueo-braves{
  background-color: #0f0f0f;
  width: 100%;
  height: 100%;
  z-index: 999999;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
}

.bloqueo-braves div{
  justify-content: center;
  text-align: center;

}



.bloqueo-braves h2{
  color: white;
  font-family: "Gabarito", cursive;
  font-weight: normal;
}

.bloqueo-braves-cuerpo{
  background-color: red;
}

.bloqueo-braves button{
  background-color: transparent;
  font-family: "Gabarito", cursive;
  color: #4285F4;
  text-decoration: underline;
  border: none;
  cursor: pointer;
}


.ico-imagen-braves{
  position: relative;
  align-items: center;
  justify-content: center;

}

.ico-imagen-braves i{
  color: rgb(250, 75, 75);
  position: absolute;
  right: 30rem;
  top: 60%;
  font-size: 3rem;
  
}

.ico-imagen-braves img{
  width: 25%;
  height: auto;
}
/*  */

.blur-mensajes-navegador {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.603);
  padding: 1rem;
  border-radius: 1rem;
}

.mensajes-navegador{
  position: absolute;
  font-family: "Gabarito", cursive;
  font-weight: normal;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  width: 30%;
  
  background-color: #1d1d1d;
  padding: 1rem 1rem 2rem 1rem;
  border-radius: 1rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Sombra sutil */
}

#aceptar-cerrar-mensaje{
  background-color: white;
  color: black;
  padding: 1rem;
  border-radius: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  cursor: pointer;
}

/*  */
  
  @media (max-width:800px) {
    .main-content{
        padding: 6rem 0 0 0;
    }
    .input-field-buscar{
  

        width: 70%;
      }

      .contenedor-abrir-juego, .reportar-juego-contenedor{
        width: 100%;
      }
      
.enlace-descarga-abrir-juego:hover{
  transform: scale(1.0);
  text-decoration: none;
}

  }
  

