/* Ajuste del body para evitar desbordamiento */
:root {
    --white-100: hsl(206, 5%, 100%);
    --white-200: hsl(206, 5%, 90%);
    --white-300: hsl(206, 5%, 80%);
    --white-400: hsl(206, 5%, 65%);
    --white-500: hsl(206, 5%, 45%);
  
    --black-100: hsl(210, 20%, 10%);
    --black-200: hsl(210, 20%, 8%);
    --black-300: hsl(210, 20%, 6%);
    --black-400: hsl(210, 20%, 4%);
    --black-500: hsl(210, 20%, 1%);
  }
  
  *,
  *::before,
  *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    list-style-type: none;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  
  html {
    font-size: 100%;
    box-sizing: inherit;
    scroll-behavior: smooth;
    height: -webkit-fill-available;
  }
  .btn{
    margin-top: 5px;
  }
  body {
    font-family: "Rubik", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--black-500);
    background-color: var(--white-100);
  }
  
  main {
    overflow: hidden;
  }
  
  a:visited, a:hover, a:link, a:active {
    text-decoration: none;
}
 a:focus {
  text-decoration: none; /* Elimina el subrayado en hover/focus */
/* Color en hover/focus */
}

  
  .swiper-slide {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
  }
  
  
  .section {
    margin: 0 auto;
    padding-block: 1rem;
    padding-bottom: 4rem;
  }
  
  .container {
    max-width: 75rem;
    height: auto;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }
  
  .swiper {
    &-button-next::after,
    &-button-prev::after {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 800;
      padding: 1rem;
      width: 2rem;
      height: 2rem;
      opacity: 0.75;
      border-radius: 50%;
      color: var(--white-100);
      background: var(--black-300);
    }
  }
  




body {
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evitar el desbordamiento horizontal */
}

/* Contenedores principales */
.container, .modal-content {
    width: 100%; /* Ajustar el ancho para que no sobresalga */
    max-width: 100vw; /* Evitar que el ancho máximo sobrepase el viewport */
}

.series-carousel-container  {
    width: 100%; /* Ancho completo en móvil */
    max-width: 100vw; /* Limitar al viewport */
    margin: 2px auto;
    position: relative;
}

/* Carrusel para evitar desbordamiento */
.movies-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    padding-bottom: 10px;
    width: 100%; /* Ajustar el ancho completo del carrusel */
    max-width: 100vw; /* Evitar desbordamiento horizontal */
}
/* Contenedor del carrusel */
.movies-carousel-container  {
    width: 100%; /* Ancho completo en móvil */
    max-width: 100vw; /* Limitar al viewport */
    margin: 20px auto;
    position: relative;
}

/* Carrusel para evitar desbordamiento */
.series-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    padding-bottom: 10px;
    width: 100%; /* Ajustar el ancho completo del carrusel */
    max-width: 100vw; /* Evitar desbordamiento horizontal */
}
.carousel-button.hidden {
    display: none;
  }

/* Ajustar las imágenes del carrusel */
.series-item img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
    position: relative;
}

#profileDropdown {
    position: absolute;
    top: 60px; /* Ajusta según la altura de tu navbar */
    right: 0;
    min-width: 200px;
    z-index: 1000;
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #343a40;
}


.prev-button {
    left: 10px;
  }

  .next-button {
    right: 10px;
  }
  a {
    color: rgb(255, 255, 255); /* Cambia el color del enlace */
    text-decoration: none; 
    text-decoration: none;/* Elimina el subrayado */
}

/* Estilo para los enlaces visitados */
.full-title-link:visited {
    color: #ffffff; 
    text-decoration: none;/* Cambia el color del enlace visitado */
}

/* Estilo para los enlaces cuando el cursor está sobre ellos */
.full-title-link:hover {
    color:#ffffff;
    text-decoration: none; /* Cambia el color del enlace al pasar el ratón por encima */
}

#profileContainer {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 60px; /* Ajustar según la altura del navbar */
    right: 15px;
    background-color: #343a40; /* Fondo oscuro */
    color: #f8f9fa; /* Texto claro */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 250px; /* Ancho del cuadro */
    z-index: 1000;
}


#profileContainer h5 {
    margin-top: 0;
}
#profileContainer .btn-pro {
    display: none;
}
.profile-info {
    margin-bottom: 10px;
}
.btn-pro {
    margin-top: 10px;
}



/* Estilos para el botón de cerrar sesión */
#logoutButton {
    display: block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #dc3545; /* Color de fondo rojo */
    color: #fff; /* Texto blanco */
    border: none;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#logoutButton:hover {
    background-color: #c82333; /* Color de fondo rojo oscuro al pasar el ratón */
}

/* Estilo para los enlaces al hacer clic en ellos */
.full-title-link:active {
    color: rgb(255, 255, 255);
    text-decoration: none; /* Cambia el color del enlace mientras se hace clic en él */
}
/* Botones de navegación del carrusel */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 15px; /* Hacer más pequeños los botones */
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
/* Título principal */
.full-title-link {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
   
    padding: 10px;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    width: 100%;
}


@media (max-width: 100px) {
  .full-title-link {
      padding: 8px;
  }
  .series-item img {
      width: 130px;
      height: 130px;
  }

  .image-repelis{

    min-width: 150px;
    margin-top: 5px;
    margin-left: 5px;
}
}

/* Ajuste para pantallas más pequeñas */
@media (max-width: 768px) {
    .full-title-link {
        padding: 8px;
    }
    .series-item img {
        width: 150px;
        height: 150px;
    }

    .image-repelis{

      min-width: 150px;
      margin-top: 5px;
      margin-left: 5px;
  }
  .title-container {
    width: 95%; /* Ajustar el título a pantallas pequeñas */
}


}

.bg-primary{
  color: #ffffff;
  
}

.modal-content{
   
  background-color: #1a1a1d;
}
.logoplay {
  opacity: 1;
 /* Transición suave */
}
.logoplay :hover {
  opacity: 0.5;
}

/* Estilo para el scrollbar en navegadores Webkit (Chrome, Safari) */
::-webkit-scrollbar {
    width: 6px; /* Ancho más fino del scrollbar */
}

::-webkit-scrollbar-track {
    background: #2c2c2c; /* Fondo del track del scrollbar */
    border-radius: 8px; /* Bordes redondeados del track */
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a; /* Color del pulgar del scrollbar */
    border-radius: 8px; /* Bordes redondeados del pulgar */
}

::-webkit-scrollbar-thumb:hover {
    background: #6a6a6a; /* Color del pulgar al pasar el mouse por encima */
}

/* Estilo para el scrollbar en Firefox */
scrollbar-width: thin; /* Ancho más fino del scrollbar */
scrollbar-color: #4a4a4a #2c2c2c; /* Color del pulgar y del track del scrollbar */
