*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    scroll-padding-top: 2rem;
    font-family: 'Playfair Display', serif;
}

:root{
    --main-color: blue;
    --hover-color: orange;
    --body-color: black;
    --container-color: rgb(58, 60, 61);
    --text-color: white;
    --secondary-color: rgb(226, 131, 146);
}
/*Custom Scroll*/
html::-webkit-scrollbar{
    width: 0.5rem;
    background: transparent;
}
html::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 5px;
}

/*Selection Color*/
::selection{
    background: var(--main-color);
    color: var(--text-color);
}

a{
    text-decoration: none;
}

li{
    list-style: none;
}

.section{
    padding: 3rem 0 2rem;
}

img{
    width: 100%;
}
.bx{
    cursor: pointer;
}
body{
    background: var(--body-color);
    color: var(--text-color);
}
.lighttheme{
    background: var(--text-color);
    color: var(--main-color);
}
.lighttheme header{
    background: white;
    color: var(--main-color);
}
.lighttheme .inform{
    color: var(--main-color);
}

.container{
    max-width: 1068px;
    margin: auto;
    width: 100%;
}
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--body-color);
    z-index: 100;
}

.nav{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}


.logo{
    width: 5em;
    height: 5em;

    margin: 0 auto 0 0;

}
.movyhead{
    display: flex;
    flex: 3;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 5em;
    font-size: 3em;
}
#watcher{
    color: var(--main-color);
}

.searchbox{
    max-width: 240px;
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: 0.7rem;
    padding: 8px 15px;
    background: var(--container-color);
    border-radius: 4rem;
    margin-right: 1rem;
}

.searchbox .bx {
    font-size: 1.1rem;
}
.searchbox .bx:hover {
    color: var(--main-color);
}

#search-input{
    width: 100%;
    border: none;
    outline: none;
    color: black;
    background: transparent;
    font-size: 0.938rem;
}

.user{
    display: flex;
}
.user-img{
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: center;
}

.navbar{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 18px;
    display: flex;
    flex-direction: column;
    row-gap: 2.1rem;
}

.navlink{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(109, 105, 105);
}
.navlink:hover , .navactive{
    color: var(--main-color);
    transition: 0.3s all linear;
    transform: scale(1.1);
}

.navlink .bx{
    font-size: 1.6rem;
}

.navLinkTitle{
    font-size: 0.7rem;
}

.home, .homeBox{
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    margin-top: 4.5rem !important;
    border-radius: 0.5rem;
}

.homeimg{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    border-radius: 0.5rem;
}

.hometext{
padding-left: 40px;
color: var(--main-color);
}
.hometitle{
    font-size: 2rem;
    font-weight: 600;
    margin: 10px 0 20px;
}
.watchbtn{
    display: flex;
    align-items: center;
    column-gap: 0.8rem;

    color: var(--text-color);
}
.watchbtn .bx{
    font-size: 21px;
    background-color: rgb(61, 58, 58);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

}
.watchbtn .bx:hover{
    background: var(--hover-color);
}

.watchbtn span{
    font-size: 1rem;
    font-weight: 400;
}

.heading{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--container-color);
    padding: 8px 14px;
    border: 1px solid hsl(200 100% 99% / 5%);
    margin-bottom: 2rem;
    margin-top: 2rem;
}
.headingtitle{
    font-size: 1.2rem;
    font-weight: 500;
}
.movieBox{
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}
.moveBoxImg{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movieBox .boxtext{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    background: linear-gradient(8deg, 
    hsl(240 17% 14% / 74%) 14%, 
    hsl(240 17% 14% / 14%) 44%
    );
    overflow: hidden;
}

.movietitle{
    font-size: 1.5rem;
    font-weight: 500px;
}
.moviegenre{
    font-size: 0.9938rem;
}

.playbtn{
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
}

.swiperbtn{
    display: flex;
}

.swiper-button-next, 
.swiper-button-prev
{
    position: static !important;
    margin: 0 0 0 10px !important;
}

.swiper-button-next::after, 
.swiper-button-prev::after{
    color: var(--text-color);
    font-size: 18px !important;
    font-weight: 700;
}

.movies .heading{
    padding: 10px 14px;
}
.moviesContent{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(247px, 1fr));
    gap: 1.5rem;
}
.moviesContent .movieBox:hover .moveBoxImg{
    transform: scale(1.1);
    transition: 0.5s;
}
.nextpage{
    display: flex;
    align-items: center;
    justify-content: space-between;

}
.nextbtn{
    background: var(--main-color);
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 500;
}

.backtotop{
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 2rem;
}

.nextbtn:hover{
    background: var(--hover-color);
    transition: 0.3s all linear;
}

.playcontainer{
    position: relative;
    min-height: 540px;
    margin-top: 5rem !important;
}
.playImg{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}
.playText{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(8deg, 
    hsl(240 17% 14% / 74%) 14%, 
    hsl(240 17% 14% / 14%) 44%
    );
}
.playText h2{
    font-size: 1.5rem;
    font-weight: 600;
}
.rating{
    display: flex;
    align-items: center;
    column-gap: 2px;
    font-size: 1.1rem;
    color: var(--hover-color);
    margin-top: 4px;
}
/*.play-movie{
    width: 100%;
    height: 100%;
    padding-top: 150px;
    position: absolute;
    object-fit: cover;
    object-position:center;
    align-items: center;
    display: flex;
    justify-content: center;
}*/

.play-movie{
    position: absolute;
    bottom: 45%;
    left: 45%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--main-color);
    font-size: 60px;
    animation: animate 2s linear infinite;
}
@keyframes animate{
    0%{
        box-shadow: 0 0 0 0 rgb(225, 180, 58, 0.7);
    }
    40%{
        box-shadow: 0 0 0 50px rgb(225, 193, 7, 0);
    }
    80%{
        box-shadow: 0 0 0 50px rgb(225, 193, 7, 0);
    }
    100%{
        box-shadow: 0 0 0 rgb(225, 193, 7, 0);
    }
}
.play-movie:hover{
    background: var(--hover-color);
    transition: 0.3s all linear;
}

.tags{
    display: flex;
    align-items: center;
    column-gap: 8px;
    margin: 1rem 0;
}
.tags span{
    background: var(--container-color);
    padding: 0 4px;
}
.closeVideo{
    position: absolute;
    top: 0.3rem;
    right: 0;
    font-size: 30px;
    color: var(--main-color);
}
.videoContainer.showVideo{
    display: flex;
}
.videoContainer{
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: hsl(234 10% 20% / 60%);
    z-index: 400;
}


.videoBox{
    position: relative;
    width: 82%;
}
.videoBox #myvideo{
    width: 100%;
    aspect-ratio: 16/9;
}
.aboutMovie{
    margin-top: 2rem;
}
.aboutMovie h2{
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-color);
}
.aboutMovie p{
    max-width: fit-content; /*600px*/
    font-size: 0.938rem;
    margin: 10px 0;
}

.download{
    max-width: 800px;
    width: 100%;
    margin: auto;
    display: grid;
    justify-content: center;
    margin-top: 2rem;
}
.downloadTitle{
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    margin: 1.6rem 0;
}

.downloadLinks{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}
.downloadLinks a{
    text-align: center;;
    background: var(--main-color);
    padding: 12px 24px;
    color: var(--text-color);
    border-radius: 2rem;
    letter-spacing: 1px;
    font-weight: 500;
}
.downloadLinks a:hover{
    background: var(--hover-color);
}
.playLinks{
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}
.playLinks a{
    text-align: center;;
    background: var(--main-color);
    padding: 12px 24px;
    color: var(--text-color);
    border-radius: 2rem;
    letter-spacing: 1px;
    font-weight: 500;
}
.playLinks a:hover{
    background: var(--hover-color);
}
.playLinks a:visited{
    background: var(--secondary-color);
}

.playLinksf{
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}
.playLinksf a{
    text-align: center;;
    background: var(--main-color);
    padding: 12px 24px;
    color: var(--text-color);
    border-radius: 2rem;
    letter-spacing: 1px;
    font-weight: 500;
}
.playLinksf a:hover{
    background: var(--hover-color);
}
.playLinksf a:visited{
    background: var(--secondary-color);
}

.copyright{
    display: flex;
    justify-content: space-evenly;
    height: 2rem;
    align-items: center;
    border: 1px dashed white;
    border-radius: 10%;
}
.inform{
    color: var(--text-color);
}
.inform:hover{
    color: var(--hover-color);
}

.heada{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--body-color);
    z-index: 100;
}
.contact{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30rem;
}
.format{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 500px;
    height: 100%;
}
.boxsize{
    max-width: 20rem;
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: 0.7rem;
    padding: 8px 15px;
    background: white;
    color: var(--main-color);
    font-weight: bold;
    border-radius: 4rem;
    margin-right: 1rem;
    text-align: center;
    font-size: large;
    border: 2px solid blue;
}
.contentbox{
    border: 2px solid blue;
    font-size: large;
    text-align: left;
}
.btnsize{
    max-width: 20rem;
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: 0.7rem;
    padding: 8px 15px;
    background: blue;
    color: black;
    font-weight: bold;
    border-radius: 4rem;
    margin-right: 1rem;
    text-align: center;
    font-size: large;
    justify-content: center;
}
.btnsize:hover{
    background: var(--hover-color);
}
#email{
    margin-bottom: 1rem;
}
.textArea{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 70%;
}
.contentbox{
    width: 70%;
}


/*Responsive*/
@media (max-width:1170px) {
    .navbar{
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        font-size: 0.9rem;
        transform: translateY(0);
        flex-direction: row;
        justify-content: space-evenly;
        row-gap: 1px;
        padding: 5px;
        border-top: 1px solid hsl(200 100% 99% / 5%);
        background: linear-gradient(
            8deg,
            hsl(240 17% 14% / 100%) 5%,
            hsl(240 17% 14% / 90%) 100%
        );
    }
    .navlink .bx{
        font-size: 1.5rem;
    }
    .copyright{
        margin-bottom: 3.5rem;
    }
}
/*Responsive*/
@media (max-width:1060px){
    .container{
        margin: 0 auto;
        width: 95%;
    }
    
}
@media (max-width:991px){
    .movieBox{
        height: 340px;
    }
    .moviesContent{
        grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
    }

}
@media (max-width:807px){
    .nav{
        padding: 14px 0;
    }
    .home{
        min-height: 440px;
        margin-top: 4.5rem !important;
    }
    .movyhead, #watcher{
        display: flex;
        flex-direction: column;
        font-size: 1.5rem;
        text-align: left;
        align-items: left;
        justify-content: left;
    }
    .hometext{
        padding-left: 25px;
    }
    .hometitle{
        font-size: 1.2rem;
    }
    .watchbtn span{
        font-size: 0.9rem;
    }
    .movietitle{
        font-size: 1rem;
        padding-right: 30px;
    }
    .playcontainer{
        min-height: 440px;
        margin-top: 4rem !important;
    }
}
@media (max-width:500px){
    .moviesContent{
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(100px, 1fr));
    }
    .movieBox{
        height: 200px;
    }
    .playLinks{
        grid-template-columns: repeat(3, 2fr);
    }
    .playLinksf{
        grid-template-columns: repeat(3, 2fr);
    }
    .videoBox{
        width: 100%;
    }
    .home .homeBox{
        min-height: 440px;
        margin-top: 4.5rem !important;
    }
}

