/* 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;
}

li{
    list-style: 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,.active{
    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;
    margin-top: 6rem;
}

.heading-title{
    font-size: 1.2rem;
    font-weight: 500;
}

/* Watch-list */
.watch-list{
    margin-top: 1rem;
}

.description{
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

.watch-btn{
    padding: 4px 10px;
    background-color: var(--main-color);
    border: 2px solid white; 
    font-size: 1rem;
    color: white;
    border-radius: 2rem;
}
.watch-btn:hover{
    background-color: var(--hover-color);
}
.watch-btn:active{
    background-color:hsl(358, 100%, 60%);
}

.watch-list-img{
    max-width: 150px;
    object-fit: cover;
    margin-right: 1rem;
}

.watch-list-box{
    display: flex;
    position: relative;
    padding: 0.4rem;
    border-radius: 0.7rem;
    border: 2px solid var(--main-color);
    margin-bottom: 1.5rem;
}

.fa-circle-xmark{
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 1.5rem;
    color: var(--main-color);
}

.fa-circle-xmark:hover{
    color: var(--hover-color);
    cursor: pointer;
}

.fa-circle-xmark:active{
    color: hsl(358, 100%, 68%);
    transform: translateY(5px);
}

.hide{
    display: none;
}

/* 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%
        );
    }
    .heading{
        margin: 7rem auto;
        width: 95%;
    }
    .container{
        margin: auto;
        width: 95%;
        position: relative;
    }
    #nothing{
        position: absolute;
        top: 4rem;
        left: 2rem;
    }
    .watch-list{
        margin-top: -5rem;
    }
    .watch-list-box{
        display: flex;
        position: relative;
        padding: 0.4rem;
        border-radius: 0.7rem;
        border: 2px solid var(--main-color);
        margin-bottom: 0.8rem;
        width: 95%;
        margin: 1rem auto;
    }

    .title{
        font-size: 1rem;
    }
    .genre{
        font-size: 0.8rem;
    }
    .description{
        font-size: 0.7rem;
    }
    .watch-list-img{
        width: 75px;
    }
    .watch-btn{
        font-size: 0.8rem;
    }

    .nav-link:hover,.active{
        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;
    }
}