body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
}

header {
    display: flex;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.397);
    backdrop-filter: blur(10px);
    padding: 0 50px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
}

header h1 {
    font-size: 40px;
    /* font-weight: bold; */
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box img {
    width: 20px;
    margin-right: -1;
    background-color: lightgray;
    padding: 5px 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.search-box input {
    padding: 7.5px 30px;
    background-color: lightgray;
    border: none;
    outline: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 400px;

}

nav a {
    text-decoration: none;
    color: lightgray;
    font-size: 20px;
    font-weight: bolder;
    padding: 0 10px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.699);
    transition: 0.4s;
}

nav a:hover {
    color: red;
}


/* CAROUSEL */

.carousel {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin-top: -70px;
}

.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    inset: 0 0 0 0;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    position: absolute;
    top: 10%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    /* color: white; */
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    text-shadow: 0 0 15px rgb(0, 0, 0, 0.699);
}

.content h1 {
    font-size: 65px;
    font-weight: bold;
    text-wrap: nowrap;
}

.details {
    display: flex;
    margin-bottom: -20px;
    text-wrap: nowrap;
}

.details p {
    font-size: 25px;
    font-weight: bold;
    border-right: 2px solid white;
    color: #ffcc00;
    padding: 0 10px;
}

.details p:last-child {
    border: none;
}

.content h4 {
    max-width: 400px;
    font-size: 17px;
    line-height: 25px;
    margin: 40px 0;
}

.carousel .buttons {
    display: flex;
    margin-top: -30px;

}

.download-btn {
    width: 150px;
    padding: 12px 0;
    font-weight: bold;
    border: none;
    background-color: #ffcc00;
    color: black;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    margin-right: 10px;
    transition: 0.4s;
    cursor: pointer;
}

.trailer-btn {
    width: 150px;
    padding: 12px 0;
    font-weight: bold;
    border: none;
    background-color: #ffffff;
    color: black;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    margin-right: 10px;
    transition: 0.4s;
    cursor: pointer;
}

.buttons button:hover {
    opacity: 0.7;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.685);
}

.vid-box {
    border: 5px solid #ffcc00;
    width: 270px;
    height: 110px;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.514);
}

.vid-box video {
    width: 270px;
    height: 110px;
    object-fit: cover;
}

.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
    background-color: rgba(211, 211, 211, 0.146);
    backdrop-filter: blur(10px);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.626);
}

.thumbnail .item {
    width: 120px;
    height: 200px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
    mix-blend-mode: lighten;
}

.thumbnail .item .thum-content {
    position: absolute;
    bottom: 10px;
    left: 40px;
    right: 10px;
}

.arrows {
    position: absolute;
    top: 80%;
    right: 42%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: rgba(211, 211, 211, 0.849);
    cursor: pointer;
    color: rgba(0, 0, 0, 0.774);
    font-size: 25px;
    font-weight: bold;
    transition: 0.4s;
}

.arrows button:hover {
    background-color: lightgray;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.626);
}

.carousel .list .item:nth-child(1) {
    z-index: 1;
}

.carousel .list .item:nth-child(1) .content {
    opacity: 0;
    filter: blur(20px);
    animation: showContent .4s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        opacity: 1;
        filter: blur(0);
    }


}

.carousel.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 100%;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage {
    to {
        width: 100%;
        height: 100%;
        left: 0;
        bottom: 0;
        border-radius: 0;
    }
}


.carousel.next .thumbnail {
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext {
    from {
        transform: translateX(150);
    }
}

.carousel.prev .list .item:nth-child(2) {
    z-index: 200;
}

.carousel.prev .list .item:nth-child(2) img {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outFrame .5s linear 1 forwards;
}

@keyframes outFrame {
    to {
        width: 120px;
        height: 200px;
        left: 50%;
        bottom: 50px;
        border-radius: 50px;
    }
}


.carousel.prev .list .item:nth-child(2) img {
    animation: contentOut 1.5s linear 1 forwards;
}

@keyframes contentOut {
    to {
        opacity: 0;
        filter: blur(20px);
    }

}

.carousel.next .arrows button,
.carousel.prev .arrows button {
    pointer-events: none;
}

.carousel .time {
    position: absolute;
    z-index: 999;
    width: 0;
    height: 5px;
    background-color: #ff0040;
    left: 0;
    top: 0;

}


.carousel.next .time,
.carousel.prev .time {
    animation: runningTime 2s linear 1 forwards;
}

@keyframes runningTime {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }

}


@media screen and (max-width: 750px) {
    .carousel .list .item .content {
        padding: 0;
    }

    .carousel .list .item .content h1 {
        font-size: 40px;
    }

    .details P {
        font-size: 17px;
    }

    .content h4 {
        margin: 10px 0;
    }

    nav {
        display: none;
    }

    .vid-box {
        margin-top: 15px;

    }

    header {
        padding: 0 10px;
    }

    .content {
        top: 10%;
    }

    .thumbnail {
        top: 75%;
    }

    .arrows {
        left: 15%;

    }
    .vid-box{
        margin-top: 50px;
    }
    .buttons> button {
        margin-top: 50px;
    }
        
}