@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    margin: 0;
    background-color: #000;
    color: #eee;
    font-family: Poppins, sans-serif;
    font-size: 12px;
}

a {
    text-decoration: none;
    
}
/* Estilo para el icono de menú (hamburguesa) en dispositivos móviles */
.menu-toggle {
    visibility: hidden; /* Oculto por defecto */
    font-size: 24px;
    cursor: pointer;
    color: #eee;
    background-color: rgba(0, 0, 0, 0.2); /* Fondo oscuro para contraste */
    padding: 10px 15px; /* Espacio interno para que sea más fácil de hacer clic */
    border-radius: 5px; /* Bordes redondeados */
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

header {
    width: 1140px;
    max-width: 80%;
    margin: auto;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
    
}

header nav {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se muevan a una nueva línea si no hay espacio suficiente */
    justify-content: center; /* Centra los enlaces horizontalmente */
    margin-top: 40px;
}

header nav a {
    color: #eee;
    margin-right: 20px; /* Ajusta el margen según sea necesario */
    font-size: 14px;
    padding: 4px 10px; /* Añade padding para dar espacio al cuadro */
    background-color: rgba(18, 18, 18, 0.646); /* Fondo negro con opacidad */
    border-radius: 25px; /* Esquinas redondeadas */
    text-decoration: none; /* Quita el subrayado de los enlaces */
    display: inline-block; /* Asegura que el padding se aplique correctamente */
}


header .logo {
    height: 60px; /* Ajusta la altura del logo según tus necesidades */
    margin-right: 15px; /* Empuja los enlaces hacia la derecha */
    margin-left: -90px; /* Espacio a la izquierda del logo */
    margin-top: 40px;
    
}

/* carousel */
.carousel{
    height: 100vh;
    margin-top: -50px;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #ffd500;
}
.carousel .list .item .buttons {
    display: flex;
    gap: 10px; /* Espacio entre los botones */
    margin-top: 20px;
}
.carousel .list .item .buttons button {
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
    padding: 10px 20px; /* Añade más padding para permitir que el texto crezca */
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    overflow: hidden; /* Esconde el texto que se salga (por seguridad) */
    text-overflow: ellipsis; /* Añade "..." si el texto es muy largo */
    flex-shrink: 0; /* Previene que los botones se encojan */
}
.carousel .list .item .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}
.carousel .list .item .buttons button:hover {
    background-color: #333; /* Oscurece el fondo del botón */
    color: #ffd700; /* Cambia el color del texto a amarillo */
    border-color: #ffd700; /* Cambia el color del borde a amarillo, si el botón tiene un borde */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Añade una transición suave */
}
/* thumbail */
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden; /* Para asegurar que el overlay no se salga del contenedor */
    transition: transform 0.3s ease; /* Transición suave para el efecto hover */
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay oscuro del 30% */
    border-radius: 20px; /* Asegurando que el overlay respete los bordes redondeados */
    z-index: 1; /* Asegurando que el overlay esté sobre la imagen */
    transition: background 0.3s; /* Transición suave para el efecto hover */
}

.thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 2; /* Asegurando que el contenido esté sobre el overlay */
}

.thumbnail .item .content .title {
    font-weight: 500;
}

.thumbnail .item .content .description {
    font-weight: 300;
}

.thumbnail .item:hover::before {
    background: rgba(0, 0, 0, 0.1); /* Aclarar el overlay al 10% en hover */
}

.thumbnail .item:hover {
    transform: scale(1.05); /* Incrementar el tamaño un 5% en hover */
}

/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}
.mobile-button {
    display: none;
}

/*PLAY*/
#playPause {
    width: 60px; /* Adjust width as needed */
    height: 40px;
    border-radius: 20px;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}

.buttons button {
    display: none; /* Esconde ambos botones por defecto */
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}
@media screen and (min-width: 769px) {
    .buttons .desktop-button {
        display: inline-block; /* Muestra el botón de +Información en pantallas grandes */
    }
}

/* Muestra el botón móvil en pantallas pequeñas y oculta el botón de escritorio */
@media screen and (max-width: 768px) {
    header nav {
        display: flex;
        flex-direction: column; /* Coloca los enlaces en una columna */
        align-items: flex-end; /* Alinea los enlaces a la derecha */
        padding-right: 0px; /* Añade espacio desde el borde derecho de la pantalla */
        position: absolute;
        right: 0;
        top: 15px;
        z-index: 1000;
        margin-top: 10px;
        margin-right: -20px;
    }
    .buttons .mobile-button {
        display: inline-block; /* Muestra el botón de +Info en dispositivos móviles */
    }

    header nav a {
        margin-right: 0; /* Elimina el margen derecho */
        margin-bottom: 10px; /* Añade margen inferior para separar los elementos verticalmente */
        width: auto; /* Deja que el ancho sea automático */
        text-align: right; /* Alinea el texto a la derecha */
        background-color: rgba(253, 173, 0, 0.777); /* Fondo negro con opacidad */
        font-size: 12px;
    }
    header .logo {
        height: 80px; /* Ajusta la altura del logo según tus necesidades */
        margin-right: 15px; /* Empuja los enlaces hacia la derecha */
        margin-left: -20px; /* Espacio a la izquierda del logo */
        margin-top: 60px;
        
    }
    .buttons .mobile-button {
        display: inline-block; /* Muestra el botón de +Info en dispositivos móviles */
    }

    /* Hover para botón de +Info en móviles */
    .buttons .mobile-button:hover {
        background-color: #333; /* Oscurece el fondo del botón */
        color: #ffd700; /* Cambia el color del texto a amarillo */
        border-color: #ffd700; /* Cambia el color del borde a amarillo, si el botón tiene un borde */
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Añade una transición suave */
    }
}



   

    
