/* carousel */

.carousel{
    width: 100vw;
    height: 90vh;
    /* margin-top: -50px; */
    overflow: hidden;
    position: relative;
    background-color: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.carousel .list .item{
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-70%);
    left: 70%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background-position: 50% 50%;
    background-size: cover;
    z-index: 100;
    transition: 1s;
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.carousel .list .item:nth-child(3){
    left: 67%;
}

.carousel .list .item:nth-child(4){
    left: calc(67% + 200px);
}

.carousel .list .item:nth-child(5){
    left: calc(67% + 400px);
}

.carousel .list .item:nth-child(6){
    left: calc(67% + 600px);
}

.carousel .list .item:nth-child(n+7){
    left: calc(67% + 800px);
    opacity: 0;
}

/* Gradient overlay for main (big) carousel item */
.carousel .list .item:nth-child(1)::before,
.carousel .list .item:nth-child(2)::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.75) 35%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0) 70%
    );
    z-index: 1;
}

.carousel .list .item .content{
    position: relative;
    z-index: 2;
}




.list .item .content{
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    width: 400px;
    text-align: left;
    color: #fff;
    display: none;
}

.list .item:nth-child(2) .content{
    display: block;
}

.content .author{
    font-size: 50px;
    color: #ff14b8cb;
    line-height: 1;
    padding-bottom: 15px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content .title{
    font-size: 80px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
    text-shadow: 3px 4px 4px rgba(255, 255, 255, 0.8);
    padding-bottom: 15px;

    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content .synopsis{
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    margin-left: 5px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.9s 1 forwards;
}

.content .btn{
    margin-left: 5px;

    opacity: 0;
    animation: animate 1s ease-in-out 1.2s 1 forwards;
}

.content .btn button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #fff;
}

.content .btn button:nth-child(1){
    background: transparent;
    color: #fff;
    border: 2px solid #ff14b8cb;
    transition: 0.3s;
}

.content .btn button:nth-child(1):hover{
    background-color: #ff14b8cb;
    color: #fff;
    border-color: #ff14b8cb;
}


@keyframes animate {
    
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* Carousel */






/* next prev arrows */

.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.arrows button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background-color: #14ff72cb; */
    background-color: #ff14b8cb;
    color: #fff;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.arrows button:hover{
    background: #fff;
    color: #000;
}


/* time running */
.carousel .timeRunning{
    position: absolute;
    z-index: 100;
    width: 0%;
    height: 4px;
    background-color: #ff14b8cb;
    left: 0;
    top: 0;
    animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
    
    from{width: 0%;}
    to{width: 100%;}

}


/* Responsive Design */

@media screen and (max-width:900px){


    .carousel{
        width: 100vw;
        height: 100vh;   
    }

    .carousel .list .item{
        width: 180px;
        height: 180px;
    }

    .list .item .content{
        width: 90%;
        left: 16px;
        right: 16px;
    }
    
    .content .author{
        font-size: 30px;

    } 

    .content .title{
        font-size: 50px;              /* reduce size */
        line-height: 1.1;
        max-width: 100%;
        white-space: normal;          /* allow wrapping */
        word-break: break-word;       /* break long words */
        overflow-wrap: break-word;
        text-align: left;
    }

    .content .synopsis{
        font-size: 16px;
        white-space: normal;          /* allow wrapping */
        word-break: break-word;       /* break long words */
        overflow-wrap: break-word;
        text-align: left;
    }

}
