/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Default Styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root{
    --main-color: #f40006;
    --hover-color: #c10005;
    --secondary-color: #707070;
    --text-color: #ffffff;
    --black: hsl(359, 20%, 8%);
}

::selection{
    background-color: var(--main-color);
    color: var(--text-color);
}

html::-webkit-scrollbar{
    width: 0.5rem;
    background: transparent;
}
html::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

a{
    text-decoration: none;
}

img{
    width: 100%;
}

.fa-solid{
    cursor: pointer;
}

body{
    background-color: var(--black);
    color: var(--text-color);
}

.container{
    max-width: 1060px;
    margin: auto;
    width: 100%;
}

/* Header Styles */

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--black);
    z-index: 100;
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0px;
}

.logo{
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0 auto 0 0;
}

.logo span{
    color: var(--main-color);
}

.searchBox{
    max-width: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    padding: 8px 15px;
    background-color: gray;
    border-radius: .5rem;
    margin-right: 1rem;
}

.search-btn{
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1rem;
}

.search-btn:hover{
    color: var(--hover-color);
}

#search-in{
    width: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--text-color);
    font-size: 1rem;
}

#search-in::placeholder{
    color: hsl(359, 100%, 30%);
}

.user{
    display: flex;
    align-items: center;
}

.user img{
    width: 50px;
    height: 50px;
}

#userGreeting{
    margin-left: 5px;
    color: var(--main-color);
}

.sidebar{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 18px;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.nav-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--main-color);
}

.nav-link:hover{
    color: hsl(359, 100%, 62%);
    transition: 0.3s all ease-in-out;
    transform: translateY(-0.5rem)scale(1.1);
}

.nav-link i{
    font-size: 1.5rem;
}

.nav-title{
    font-size: 0.9rem;
}

.heading{
    padding: 8px 14px;
    border: 1px solid var(--main-color);
    border-bottom: none;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.heading-title{
    font-size: 1.2rem;
    font-weight: 500;
}

.dropdown button{
    color: white;
    border: 2px solid var(--main-color);
    margin-bottom: 0.5rem;
    border-radius: 1.5rem;
    background-color: var(--black);
    padding: 0.5rem;
    width: 10rem;
    cursor: pointer;
}

.dropdown{
    display: none;
}

.buttons:hover{
    background-color: hsl(359, 20%, 20%)
}

.user-container:hover .dropdown{
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 3.3rem;
    cursor: pointer;
}




/* Main Slider Styles*/
.box-text{
    position: absolute;
    bottom: 0;
    padding: 1rem;
    padding-left: 1.5rem;
    margin-bottom: 6px;
    background-color: hsla(0, 0%, 44%, 0.6);
}

.box{
    margin-top: 6rem;
}

.anime-title{
    text-transform: uppercase;
    font-size: 3rem;
}

.box-text p{
    text-align: justify;
    margin-bottom: 1rem;
}

.watch-btn{
    padding: 8px 14px;
    background-color: var(--main-color);
    border: 2px solid white; 
    font-size: 1.25rem;
    color: white;
    border-radius: 2rem;
}
.watch-btn:hover{
    background-color: var(--hover-color);
}
.watch-btn:active{
    background-color:hsl(358, 100%, 60%);
}

.home{
    margin-bottom: 2rem;
}

/* Popular */
.popular-content{
    margin-bottom: 1rem;
}

.popularBox{
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.popular-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-text{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: linear-gradient(
        8deg,
        hsla(240, 17%, 14%, 0.7) 14%,
        hsla(240, 17%, 14%, 0.4) 44%
    );
}

.popular-title{
    font-size: 1.1rem;
    font-weight: 500;
}

.anime-type{
    font-size: 0.9rem;
}

.wish-list-btn{
    cursor: pointer;
    background-color: white;
    border: none;
    color: var(--main-color);
    text-align: center;
    width: 3rem;
    font-size: 1.25rem;
    padding: 4px 7px;
    border-radius: 50px;
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
}

.wish-list-btn:hover{
    background-color: var(--hover-color);
    color: #fff;
    transform: translateY(5px);
}

.wish-list-btn:active{
    background-color: hsl(358, 100%, 28%);
}

.popular{
    margin-bottom: 2rem;
}

/* Movies Styles */
.movies-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(247px, 1fr));
    gap: 1rem;
}

.movie-box{
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.movie-box-img:hover{
    transform: scale(1.05);
    transition: 0.3s ease-out;
}

.movie-box-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-text{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: linear-gradient(
        8deg,
        hsla(240, 17%, 14%, 0.7) 14%,
        hsla(240, 17%, 14%, 0.4) 44%
    );
}

.play-btn{
    cursor: pointer;
    background-color: var(--hover-color);
    color: #fff;
    font-size: 1.2rem;
    padding: 3px 6px;
    position: absolute;
    bottom: 0.5rem;
    right: 0.8rem;
    border-radius: 20px;
}

.play-btn:hover{
    background-color: white;
    color: var(--main-color);
    transform: translateY(5px);
}

/* Footer Style */
.contact-us{
    margin-top: 2rem;
    border-top: 5px solid var(--main-color);
    display: flex;
    flex-direction: column;
}

.copyright{
    font-weight: 350;
    text-align: center;
}
.copyright span{
    color: var(--main-color);
}

.links{
    display: flex;
    justify-content: space-between;
}

.left,.right{
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.left .name,.right .name{
    font-size: 1.4rem;
    color: hsla(0, 0%, 100%, 0.6);
}

.name:hover{
    color: white;
    transition: 0.3s linear;
}

.social-media{
    color: white;
    font-size: 1.2rem;
}

.social-media:hover{
    transform: scale(1.2);
    transition: 0.3s linear;
}

#whatsapp{
    color: lightgreen;
}
#instagram{
    background: linear-gradient(to bottom, #833ab4,#fd1d1d,#fcb045);
    color: transparent;
    background-clip: text;
}
#linkedin{
    color: #0a66c2;
}

/* Responsive */
@media (max-width: 1240px) {
    .sidebar{
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: translateY(0);
        flex-direction: row;
        justify-content: space-evenly;
        row-gap: 1px;
        padding: 10px;
        border-top: 3px solid hsl(0, 0%, 36%);
        background: linear-gradient(
            8deg,
            hsla(240, 17%, 14%, 1) 14%,
            hsla(240, 17%, 14%, 0.8) 44%
        );
    }
    .nav-link:hover{
        color: hsl(359, 100%, 62%);
        transition: 0.3s all ease-in-out;
        transform: translateY(-0.25rem)scale(1);
    }
    .nav-link i{
        font-size: 1.3rem;
    }
    .contact-us{
        margin-bottom: 5rem;
    }
}

@media (max-width: 1062px) {
    .container{
        margin: auto;
        width: 95%;
    }
    .home{

        margin-bottom: 2rem;
    }
    .popular{
        margin-bottom: 2rem;
    }
    .left{
        font-size: 0.3rem;
    }
    .right{
        font-size: 0.3rem;
    }
    .contact-us{
        margin-top: 4rem;
        margin-bottom: 5rem;
    }
}

@media (max-width: 943px){
    .navbar{
        padding: 14px 0;
    }
    .box,.movie-box{
        min-height: 450px;
        margin-top: 4rem;
    }
    .anime-title{
        font-size: 1.8rem;
    }
    .box-text p{
        font-size: 0.9rem;
    }
    .watch-btn{
        padding: 4px 7px;
        font-size: 1rem;
    }
    .popular-title{
        font-size: 1.2rem;
    }
    .anime-type{
        font-size: 0.9rem;
    }
    .wish-list-btn{
        padding: 2px 18px;
        padding-left: 10px;
        text-align: center;
    }
    .popular{
        margin-bottom: 2rem;
    }
    .movies-content{
        gap: 0.8rem;
        margin-top: -4rem;
    }
    .movie-box{
        margin-bottom: -4rem;
    }
    .contact-us{
        margin-top: 6rem;
    }
}

/* For Medium Devices / Tablet*/
@media (max-width: 768px){
    .navbar{
        padding: 10px 0;
    }
    .home{
        margin-bottom: -5rem;
    }
    .logo{
        font-size: 1.2rem;
    }
    section{
        padding: 1.5rem 0;
    }
    .anime-title{
        font-size: 1.5rem;
    }
    .box-text{
        bottom: 5.45rem;
    }
    .box-text p{
        font-size: 0.7rem;
    }
    .anime-type{
        font-size: 0.5rem;
    }
    .watch-btn{
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .popular-title{
        font-size: 0.7rem;
    }
    .box,.movie-box{
        min-height: 500px;
        margin-top: 3rem;
    }
    .heading{
        margin-top: -2rem;
    }
    .movie-box{
        margin-top: 4rem;
        margin-bottom: -3rem;
    }
    .contact-us{
        margin-top: 4rem;
    }
    .searchBox{
        max-width: 200px;
        height: 2rem;
    }
    #search-in{
        font-size: 0.8rem;
    }
   .user img{
        width: 40px;
        height: 40px;
    }
    .user{
        font-size: 0.9rem;
    }
    .logo{
        margin-right: 15px;
    }
}

@media (max-width: 532px){
    .logo{
        margin-right: 15px;
    }
    .box-text{
        margin-bottom: 0.8rem;
    }
    .box{
        min-height: 380px;
    }
    .heading{
        padding: 2px 14px;
    }
    .movie-box{
        width: 100%;
        height: 280px;
    }
    .left .name, .right .name{
        font-size: 1.1rem;
    }
    .social-media{
        font-size: 0.9rem;
    }
    .copyright{
        font-size: 1rem;
    }
    .movies-content{
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .movie-box{
        margin-bottom: -4rem;
    }
}
@media (max-width: 460px) {
    *{
        scroll-padding-top: 5rem;
    }
    .navbar{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        row-gap: 5px;
    }
    .searchBox{
        max-width: 100%;
        width: 100%;
        border-radius: 4px;
        order: 3;
        grid-column-start: 1;
        grid-column-end: 3;
    }
    .contact-us{
        margin-bottom: 6rem;
    }
}