*, html{margin: 0;padding: 0;box-sizing: border-box;}
header{
    width: 100vw;    height: 70px;
    position: relative;
    z-index: 100;  }
.topnav {  overflow: hidden;  background-color:inherit;}
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {  background-color: #ddd;  color: black;}
.topnav a.active {  background-color: #04AA6D;  color: white;}
.topnav .icon {  display: none;}

@media (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
/* carousel */
.carousel{
    width: 100vw;
    height: 100vh;
    margin-top: -70px;
    position: relative;
    overflow: hidden;
}
.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: 10%;
    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;
}
.content h1{
    font-weight: bold;
    font-size: 65px;
    text-wrap: nowrap;
  }
  
  .details{
    display: flex;
    text-wrap: nowrap;
    margin-bottom: -20px;
  }
  
  .details p{
    border-right: 2px solid #ffffff;
    font-weight: bold;
    font-size: 25px;
    color: #ffcc00;
    padding: 0 10px;
  }
  
  .details p:last-child{
    border-right: none;

  }
  
  .content h4{
    max-width: 400px;
    font-size: 17px;
    line-height: 25px;
    margin: 40px 0;
  }

  .buttons{
    display: flex;
  }
  
  .download-btn{
    width: 150px;
    padding: 12px 0;
    font-weight: bold;
    border: none;
    background-color:#333;
    color:#B8D3D9;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.753);
    border-radius: 20px;
    margin-right: 10px;
    transition: 0.3s;
    cursor: pointer;
  }
  
  .trailer-btn{
    width: 150px;
    padding: 12px 0;
    border-color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.753);
    transition: 0.3s;
    cursor: pointer;
  }
  
  .trailer-btn:hover, .download-btn:hover{
    opacity: 0.5;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.753);
  }

  .vid-box{
    border: 5px solid #B8D3D9;
    width: 300px;
    height: 200px;
    border-radius: 10px;
    margin-top: 100px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(61, 61, 61, 0.733);
  }

  .vid-trailer{
    width: 300px;
    height: 200px;
  }

/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
    background-color: rgba(59, 59, 59, 0.4);
    backdrop-filter: blur(10px);
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    box-shadow: 0 0 25px #282828;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    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{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 40px;
    right: 10px;
}
.thumbnail .item .thum-content .title{
    font-weight: 500;
}
.thumbnail .item .thum-content .description{
    font-weight: 300;
}
/* arrows */
.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%;
    background-color: rgba(238, 238, 238, 0.87);
    border: none;
    color: #00000089;
    font-size: 25px;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.587);
}

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

/* animation text in first item */

.carousel .list .item:nth-child(1) .content 
{
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        filter: blur(0px);
        opacity: 1;
    }
}
/* 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: 100%;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 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: 5px;
    background-color: #B8D3D9;
    left: 0;
    top: 0;
}

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


/* prev click */

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

.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: 50px;
    }
}

.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content 
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
      padding-right: 0;
      padding-top: 120px;
    }
    .carousel .list .item .content h1{
      font-size: 40px
    }
    .details p{
      font-size: 17px;
      
    }
    .content h4{
      margin: 40px 0;
    }
    .vid-box{
      margin-top: 40px;
    }

    /*header {      padding: 0 10px;    }*/
    .content{
      top: 10%;
    }
    .thumbnail{
      top: 75%;
    }
    .arrows{
      left: 15%;
    }
  }