*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}
body{
    background-color: black;
}
/* code for nav bar */
ul{
    list-style: none;
}
a{
    text-decoration: none;
}
::selection{
    background-color: #e70634;
    color: #080808;
}
html {
    scroll-behavior: smooth;
  }
  
.nav-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
    width: 100%;
}
.nav-bar .menu-btn{
    cursor: pointer;
    float: right;
    padding: 20px 10px;
    z-index: 103;
}
.nav-bar .menu-btn i{
    font-size: 40px;
    font-weight: 400;
    color: white; 

}
.menu li{
    list-style-type: none;
}
.nav-bar a{
    text-decoration-line: none;
}
.nav-bar .menu{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 102;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fade 0.6s;
    background-color: black;
    opacity: 0.95;
    
}
.menu li a{
    color: white;
    margin: 0px 40px;
    font-size: 2rem;
    font-family: Monoton;
    transition: ease-out 0.3s;
}
.menu li a:hover{
    color: #e70634;
    font-size: 2.3rem;
    transition: ease-out 0.3s;
}
@media  screen and (max-width:1000px) {
    .menu{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .menu li{
        margin: 10px;
    }
}
@keyframes fade{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.logo{
    text-decoration: none;
    color: #e70634;
    font-family: Monoton;
    font-size: 3rem;
    margin: 0px auto 0px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
}
.hd{
    font-size: 0.7rem;
    margin-left: 5px;
    font-weight: 700;
    letter-spacing: 2px;
}
.search-box{
    background-color: #d1d1d111;
    padding: 3px;
    padding-left: 20px;
    border-radius: 20px;
    height: 40px;
    width:280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 20px;
    position: relative;
    
}
.search{
   background: transparent;
   border: none;
   outline: none;
   color: white;
}
.search::placeholder{
    color: #ffffff5e;

}
.submit{
    display: flex;
    background: transparent;
    color: #ffffffc9;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 20px;
   
}.movies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.post-box {
    transition: 0.3s ease;
}
.hidden {
    display: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
/* code for the first slider */
.card-wrapper{
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    /* margin: auto; */

}
#main-slider{
     display: flex;
     justify-content: center;
     align-items: center;   
     margin: 50px auto;
     max-width: 1200px;
     width: 100%;
}
.swiper-container {
    width: 100%;
    max-width: 1200px;
    height: auto;
    padding: 20px 0;
}
.swiper-slide {
    width: 100%px;
    height: 450px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}
.swiper-slide:hover {
    transform: scale(1.05);
}
.swiper-button-next,
.swiper-button-prev {
    color: #e70634;
}
.swiper-pagination-bullet {
    background-color: #e70634;
}
.swiper-pagination-bullet-active {
    background-color: #e70634;
    opacity: 1;
}
@media screen and (max-width: 768px) {
    .swiper-slide {
        width: 250px;
        height: 450px;
    }
}

.main-sliderbox{
    position: relative;
    display: flex;
    width: 100%;
    height: 450px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    background-color: #a7a7a7;
    overflow: hidden;
    user-select: none;
}
.slide-img{
    width: 100%;
    height: 100%;
}
.slide-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position:center;
}
.main-slidertext{
    position: absolute;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg,#161616b9 35%,rgba(73,73,73,0.25) 65%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}
.main-slidertext .quality,
.more-about-movie .quality{
    background-color: #e70634;
    color: #080808;
    font-weight: 600;
    padding: 0px 5px;
    height: 20px;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    margin: 15px;
}
.main-slidertext .movie-name{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.main-slidertext .movie-name span{
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 400;
    color: rgba(240,240,240,0.82);
    padding: 0px 15px;
}
.main-slidertext .movie-name strong{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #dfdfdf;
    letter-spacing: 0.5px;
    padding: 0px 15px;
}
.main-slidertext .category{
    color: #969696;
    font-size: 1rem;
    font-weight: 500;
}
.main-slidertext .category {
    padding: 0px 15px;
    margin-bottom: 20px;
}
.main-slidertext .category a{
    color: #e70634;
    font-size: 0.9rem;
}
.bottom-text{
    width: 100%;
}
.main-slidertext .category-rating .rating{
    display: flex;
    color: white;
    font-size: 1rem;
    letter-spacing: 1px;
}
.rating img{
    height: 20px;
    width: 40px;
    object-fit: contain;
    object-position: center;
}
.main-slidertext .category-rating{
    display: flex;
    width: 95%;
    margin: 10px 0px;
    justify-content: space-between;
    margin-top: 20px;
}
.main-slideroverlay{
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 100%;
    background-color: rgba(27,27,27,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all ease 0.3s;
    z-index: 2;
}
.main-slideroverlay i{
    font-size: 2rem;
}
.main-sliderbox:hover .main-slideroverlay{
    top: 0px;
    transition: all ease 0.3s;
}
/* this is for the old feel good movies */
.latest{
    max-width: 1200px;
    margin: 30px auto;
    width: 100%;
}
.latest-heading{
    width: 100%;
    padding-top:10px ;
    padding-bottom: 10px;
    padding-left: 20px;
    background-color: #0e0e0ec2;
    border: 1px solid #161616;
}
.latest-heading h1{
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
}
.post-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px;
    margin: 20px;
    justify-items: center;
}
.post-box{
    width: 350px;
    height: 550px;
    overflow: hidden;
    position: relative;
    display: flex;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    background-color: #a7a7a7;
    user-select: none;
}
.post-box:hover .main-slideroverlay{
    top: 0px;
    transition: all ease 0.3s;
}

.footer {
    width: 100%;
  }
  
  .foot {
    background-color: #0e0e0ec2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    flex-wrap: wrap;
    text-align: center;
  }
  
  .foot .copyright {
    color: #4d4d4d;
    font-size: 0.9rem;
  }
  
  .logo {
    margin: 0px;
    font-size: 2rem;
    font-weight: 400;
    text-decoration: none;
    color: #e70634;
  }
  
  .logo span {
    color: #f39c12;
  }
  
  .creator {
    background-color: #0e0e0ec2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10%;
    color: #4d4d4d;
    font-size: 2rem;
    text-align: center;
  }
  
  /* Responsive tweaks */
  @media screen and (max-width: 768px) {
    .foot {
      flex-direction: column;
      gap: 10px;
      padding: 15px 5%;
    }
  
    .foot .logo {
      font-size: 1.5rem;
    }
  
    .foot .copyright {
      font-size: 0.8rem;
    }
  
    .creator {
      font-size: 1.5rem;
      padding: 10px 5%;
    }
  }
  
  @media screen and (max-width: 480px) {
    .foot .logo {
      font-size: 1.3rem;
    }
  
    .creator {
      font-size: 1.2rem;
    }
  }
  
/* Responsive Design */

/* Small devices (up to 768px) */
@media (min-width: 600px) {
    .foot {
      flex-direction: row;
      justify-content: space-between;
      padding: 0 30px;
    }
  
    .footer {
      text-align: left;
    }
  
    .creator {
      margin-top: 15px;
      text-align: center;
    }
  }
@media screen and (max-width: 768px) {
    .nav-bar {
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-rows: 1fr 1fr;
        padding: 20px 0px;
    }
    .search-box{
        grid-column-start: 1;
        grid-column-end: 3;
        width: 100%;
        border-radius: 0px;
    }
    /* .logo {
        font-size: 2rem;
        margin: 0 0 10px 20px;
    } */
    .menu li a {
        font-size: 1.5rem;
    }
    .search-box {
        margin-top: 10px;
        width: 100%;
    }
    .swiper-slide {
        width: 450px ;
        height: 350px;
    }
    .post-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .main-sliderbox, .post-box {
        height: 350px;
    }
    .main-slidertext .movie-name strong {
        font-size: 1.2rem;
    }
    .main-slidertext .category-rating .rating {
        font-size: 0.9rem;
    }
    
}

/* Medium devices (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-bar {
        padding: 15px 20px;
    }
    /* .logo {
        font-size: 2.5rem;
    } */
    .menu li a {
        font-size: 1.8rem;
    }
    .swiper-slide {
        height: 400px;
    }
    .main-sliderbox, .post-box {
        height: 400px;
    }
    .main-slidertext .movie-name strong {
        font-size: 1.3rem;
    }
    
}

/* Large devices (1025px - 1400px) */
@media screen and (min-width: 1025px) and (max-width: 1400px) {
    .nav-bar {
        padding: 20px 40px;
    }
    .menu li a {
        font-size: 2rem;
    }
    .swiper-slide {
        height: 450px;
    }
    .main-sliderbox, .post-box {
        height: 450px;
    }
    .main-slidertext .movie-name strong {
        font-size: 1.5rem;
    }
}

/* Extra small devices (up to 480px) */
@media screen and (max-width: 645px) {
    .nav-bar {
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-rows: 1fr 1fr;
        padding: 20px 0px;
    }
    .logo{
        margin: 0px;
    }
    .search-box{
        grid-column-start: 1;
        grid-column-end: 3;
        width: 100%;
        border-radius: 0px;
    }
    .menu li a {
        font-size: 1.3rem;
        margin: 5px;
    }
    .swiper-slide {
        height: 300px;
    }
    .main-sliderbox, .post-box {
        height: 300px;
    }
    .main-slidertext .movie-name strong {
        font-size: 1rem;
    }
    .post-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
}
@media screen and (max-width: 325px) {
    .logo{
        font-size: 20px;
    }
}

/* now we are going to style the movie-data.html*/

.movie-banner{
    width:80%;
    max-width: 1440px;
    margin: 10px auto;
    min-height: 480px;
    padding:50px;
    position: relative;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}
.movie-banner::after{
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(32,32,32,0.7);
/*     background: linear-gradient(0deg,rgb(8,8,8) 0%,rgba(0,0,0,0.6) 100% ); */
}

.movie-img{
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    position: absolute;
    border-radius: 5px;
    overflow: hidden;
}
/* .movie-banner::before{
    content: '';
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background:rgba(32,32,32,0.7);
    background: linear-gradient(-90deg,rgba(37,37,37,0.2) 0%,rgba(15,15,15,0.3) 100%);
} */
.movie-img img{
    height: 100%;
    width: 100%;
    object-fit:cover;
    object-position: center;
}
/* @media screen and (max-width:1024px){
    .movie-img img{
        max-width: 1440px;
    }
} */

.banner-container{
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    position: relative;
}
.title-container{
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between ;
}
.movie-title{
    color: white;
    font-weight: 600;
    font-size: 2.7rem;
    line-height: 50px;
    letter-spacing: 1px;
}
.more-about-movie{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    color: white;
}
.more-about-movie .rating,
.more-about-movie span{
    margin-right: 20px;
    letter-spacing: 1px;
    font-size: 1rem;
}
.more-about-movie .rating img{
    height: 17px;
}
.title-bottom{
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 30px;
}
.title-bottom .category{
    margin-right: 40px;
    font-weight: 1rem;
}
.title-bottom strong{
    font-weight: 500;
    color: white;
}
.title-bottom .category a{
    color: #e70634;
    margin-right: 5px;
    text-decoration: none;
}
.watch-btn{
    width: 150px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff09;
    border: 1px solid #ffffff2c;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 1rem;
    color: white;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.watch-btn:hover{
    background-color: #e70634;
    color: white;
    transition: all ease 0.3s;
}

 #play{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 1000;

}

/* download button option in the page */
.download-movie {
    margin: 50px auto;
    width: 80%;
    max-width: 1440px;
}

.download-container{
    display: grid;
    gap: 20px;

}
.download-box{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background-color: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 5px;
    align-items: center;
    transition: all 0.3s ease;

}
.download-box:hover {
    background-color: rgba(255,255,255,0.08);
}

.download-box a,.download-box span{
    color: white;
    text-align: center;
    padding: 10px;

}
.download-box a {
    color: #e70634;
    text-decoration: none;
    font-weight: bold;
}

.download-box a:hover {
    color: #ff1a4a;
}


@media (max-width: 768px) {
    .movie-banner {
        padding: 20px;
        width: 95%;
    }
    .banner-container {
        grid-template-columns: 1fr;
    }

    .playbtn-container {
        position: relative;
        top: auto;
        transform: none;
        margin-top: 30px;
    }

    .movie-title {
        font-size: 2rem;
    }

    .download-box {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .watch-btn {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .movie-title{
        font-size: 20px;
        line-height: 25px;
    }
    .play-btn::before{
        width: 100px;
        height: 100px;
    }
    .movie-banner {
        min-height: 400px;
        padding: 15px;
    }

    .movie-title h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .play-movie {
        width: 95%;
        height: auto;
    }
}
.no-results {
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    padding: 2rem;
    width: 100%;
}

.post-container {
    transition: all 0.3s ease;
}
