@import url('https://fonts.googleapis.com/css2?family=Martel+Sans:wght@600&family=Poppins:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;

}

body {
    background-color: black;
    overflow-x: hidden;
}

.main {

    background-image: url(assets/background.jpg);
    height: 700px;
    position: relative;
    background-size: 100%;
    background-repeat: no-repeat;
    background-size: max(1200px, 1000px);
    background-size: cover;
}


.main .box {

    height: 700px;
    width: 100%;
    opacity: 0.80;
    background-color: black;
    position: absolute;
    top: 0;
}

nav {
    margin: auto;
    justify-content: space-between;
    max-width: 85vw;
    display: flex;
    align-items: center;
    height: 72px;
}

nav img {
    width: 145px;
    position: relative;
    z-index: 10;
}

nav button {
    position: relative;
    z-index: 10;
     border: none;
}

.hero {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    position: relative;
    font-family: 'Poppins', sans-serif;
    gap: 30px;
    padding: 0 30px;
    text-align: center;
}



.hero-main h1 {
    font-weight: 900;
    font-size: 50px;
    text-align: center;

}

.hero> :nth-child(2) {
    font-weight: 400;
    font-size: 16px;
    text-align: center;

}

.hero> :nth-child(3) {
    font-weight: 400;
    font-size: 16px;
    text-align: center;

}

.lan {
    gap: 5px;
    width: 15px;
    height: 15px;
    margin-right: 5px;
}

.drop {
    gap: 5px;
    width: 15px;
    height: 15px;
    align-items: baseline;
    margin-right: 5px;


}

.btn {
     border: none;
    text-align: center;
    justify-content: center;
    padding: 3px 8px;
    font-weight: 500;
    color: white;
    background-color: rgba(248, 243, 243, 0.021);
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.648);
}

.btn-red {
     border: none;
    background-color: red;
    color: white;
    padding: 13px 20px;
    font-size: 18px;
    border-radius: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;

}

.btn-red img {
    gap: 15px;


    width: 25px;
    height: 20px;
}



.main input {
    height: 39px;
    width: 200px;
    padding: 7px 101px 8px 14px;
    font-size: 12px;
    border-radius: 3px;
    color: aliceblue;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(246, 238, 238, 0.5);
}

input::placeholder {
    color: rgba(246, 238, 238, 0.5);
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* When the input is focused */
input:focus::placeholder {
    transform: translateY(-10px);
    /* moves text up */
    /* optional color change */
}

.btn-red-sm {
     border: none;
    background: red;
    color: white;
    border-radius: 5px;
    padding: 4px 15px;
    cursor: pointer;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
     border: none;
}


h2 {
    margin-left: 70px;
    padding: 3px;

    color: white;
}


.caption-in {

    bottom: 95px;
    left: -20px;
    padding: 10px;
    font-size: 75px;
    font-weight: 900;

    z-index: 0;

    line-height: 1;
    display: inline-block;
    height: 1em;
    position: relative;
    font-weight: 700;
    color: rgb(0, 0, 0);
    -webkit-text-stroke: 0.09rem rgb(255, 255, 255);
    text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
}




.container {
    width: 85vw;
    /* height: 40vh; */
    margin-left: 75px;
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.it {
    margin-top: 20px;
    margin-left: 20px;
}

.subcon {


    background: linear-gradient(to bottom right, #192246, #210e17);
    border-radius: 20px;
    min-height: 210px;



}


.s-img {
    display: flex;
    justify-content: end;
}

.it img {
    width: 90px;




}

.it h3 {
    color: white;
    margin-bottom: 20px;
}

.it p {
    font-size: 16px;
    font-weight: 400;
    color: gray;
}

.faq h2 {
    margin-top: 40px;
    padding: 5px;
}



.faqbox {
    /* transition: all 0.1s ease-out; */
    font-size: 24px;
    color: white;
    display: flex;
    background-color: #2D2D2D;
    padding: 24px;
    max-width: 82vw;
    margin: 7px auto;
    justify-content: space-between;
    cursor: pointer;
}


.faqbox:hover {
    background-color: gray;
}

.faqbox svg {
    filter: invert(1);
}


.hero2 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    position: relative;
    font-family: 'Poppins', sans-serif;
    gap: 30px;
    padding: 0 30px;
    text-align: center;
}


.btn-red-below {
    background-color: red;
    color: white;
    padding: 13px 20px;
    font-size: 18px;
    border-radius: 5px;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;

}

.btn-red img {
    gap: 15px;


    width: 25px;
    height: 20px;
}


footer {
    color: white;
    /* margin-top: 1900px; */
    margin-left: 50px;
    color: #b3b3b3;

}


.footer {
    color: #b3b3b3;
    margin-top: 30px;
    margin-left: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    color: white;



}

footer span {

    margin: 68px;
}

.footer-item {
    gap: 13px;
    display: grid;

}

.footer a {
    font-size: 15px;
    color: #b3b3b3;
}

span a {

    text-decoration-line: underline;
    color: #b3b3b3;
}


footer {
    position: static;
    bottom: 0;
    left: 0;
    margin-top: 20px;
}





.hero2 {
    margin-top: 50px;
    margin-bottom: 50px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero2 input {
    height: 39px;
    width: 330px;

}




.last {
    margin-top: 50px;
    margin-left: 120px;
    margin-bottom: 150px;
}

.last p {
    font-size: 13px;
    color: gray;
    margin-top: 20px;
    margin-bottom: 50px;
}

.last a {
    color: rgb(68, 142, 244);

}




/* 1. Reset the container so it spans the screen */
figure {
    position: relative;
    /* Removes your old absolute positioning */
    margin-left: 80px;
    /* Just a small gap on the left for mobile */
    height: auto;
    width: auto;
}

/* 2. Create the single-line swipe track */
.trending {
    display: flex;
    flex-wrap: nowrap;
    /* THE MAGIC PROPERTY: Forces them to stay on the SAME line */
    overflow-x: auto;
    /* Turns on horizontal scrolling */
    gap: 30px;
    /* Space between the movie posters */
    padding-bottom: 1px;
    padding-right: 20px;
    /* Gives a little space after the last movie when you scroll to the end */
    margin-top: 20px;
    padding-left: 10px;
}

/* 3. Hide the ugly default scrollbar so it looks like a native app */
.trending::-webkit-scrollbar {
    display: none;
}

/* 4. Force the images to stay their exact size and NOT shrink */
.item {
    flex: 0 0 auto;
    /* 0 grow, 0 shrink. This stops them from squishing together! */
    width: 140px;
    /* You can tweak this to make the posters larger or smaller */
}

.item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* Classic Netflix rounded corners */
}



.empty{
    width: 100%;
    height: 40px;
}




@media (min-width: 1440px) {

    .trending {
        display: flex;
        flex-wrap: nowrap;
        /* THE MAGIC PROPERTY: Forces them to stay on the SAME line */
        overflow-x: auto;
        /* Turns on horizontal scrolling */
        gap: 30px;
        /* Space between the movie posters */
        padding-bottom: 10px;
        padding-right: 20px;
        /* Gives a little space after the last movie when you scroll to the end */
        height: auto;
        margin-top: 20px;
        padding-left: 30px;
    }



    .item {
        flex: 0 0 auto;
        /* 0 grow, 0 shrink. This stops them from squishing together! */
        width: 140px;
        /* You can tweak this to make the posters larger or smaller */
    }

}


/* for that like netflix */

@media (max-width: 960px) {

    .hero {
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: white;
        position: relative;
        font-family: 'Poppins', sans-serif;
        gap: 30px;
        padding: 0 30px;
        text-align: center;
    }


    /* top text */




    .container {
        width: 85vw;
        /* height: 40vh; */
        margin-left: 60px;
        display: grid;
        justify-content: center;
        grid-template-columns: 1fr;
        gap: 1px;
        margin-top: 10px;
    }

    .it {
        margin-top: 20px;
        margin-left: 20px;


    }



    /* for footer */

    .footer {
        content: #b3b3b3;
        margin-top: 30px;
        margin-left: 70px;
        grid-template-columns: 1fr 1fr;
        color: white;

    }

    .s-img {
        display: flex;
        justify-content: end;
        margin-top: 20px;
    }

    .it img {
        width: 60px;

    }

    .subcon {
        background: linear-gradient(to bottom right, #192246, #210e17);
        border-radius: 20px;
        min-height: 180px;
        height: auto;
        width: 100%;
        margin: 5px auto;


    }


    .it h3 {
        color: white;
        margin-bottom: 10px;
    }

    .it p {
        font-size: 15px;
        font-weight: 400;
        color: gray;
    }

    .faq h2 {
        margin-top: 40px;
        padding: 5px;
    }


}



@media (max-width: 590px) {

    nav {
        margin: auto;
        justify-content: space-between;
        max-width: 90vw;
        display: flex;
        align-items: center;
        height: 72px;
    }

    nav img {
        width: 100px;
        position: relative;
        z-index: 10;
    }



    .lan {
        gap: 5px;
        width: 10px;
        height: 10px;
        margin-right: 5px;
    }

    .drop {
        gap: 5px;
        width: 15px;
        height: 15px;
        align-items: baseline;
        margin-right: 5px;


    }


    .btn-red {
        background-color: rgb(255, 0, 0);
        color: white;
        padding: 16px 40px;
        font-size: 20px;
        border-radius: 5px;
        font-weight: 300;
         border: none;

    }

    .hero h1 {
        text-align: center;
        display: flex;

    }


    .hero-main h1 {
        font-weight: 900;
        font-size: 35px;
        text-align: center;
        display: block;

    }


    .hero> :nth-child(2) {
        font-weight: 400;
        font-size: 16px;
        text-align: center;

    }

    .hero> :nth-child(3) {
        font-weight: 400;
        font-size: 16px;
        text-align: center;

    }


    .btn-red {
        background-color: red;
        color: white;
        padding: 10px 25px;
        font-size: 18px;
        border-radius: 5px;
        font-weight: 520;

    }

    .btn-red-below {
        background-color: red;
        color: white;
        padding: 10px 25px;
        font-size: 18px;
        border-radius: 5px;
        font-weight: 520;
         border: none;

    }

    .main input {
        transition: all 1s ease-out;

        height: 30px;
        width: auto;
        min-width: 75vw;
        padding: 7px 30px 8px 14px;
        font-size: 12px;
        border-radius: 3px;
        color: aliceblue;
        background-color: rgba(23, 23, 23, 0.7);
        border: 1px solid rgba(246, 238, 238, 0.5);
    }



    input::placeholder {
        color: rgba(246, 238, 238, 0.5);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    /* When the input is focused */
    input:focus::placeholder {
        transform: translateY(-10px);
        /* moves text up */
        /* optional color change */
    }

    .btn-red-sm {
        background: red;
        color: white;
        border-radius: 5px;
        padding: 4px 15px;
         border: none;
    }

    .hero-buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }

    figure {
        position: relative;
        /* Removes your old absolute positioning */
        margin-left: 8px;
        /* Just a small gap on the left for mobile */
        height: auto;
        width: auto;
    }

    .item img {
        width: 80%;
        height: auto;
        border-radius: 8px;
        /* Classic Netflix rounded corners */
    }

    .trending {
        display: flex;
        flex-wrap: nowrap;
        /* THE MAGIC PROPERTY: Forces them to stay on the SAME line */
        overflow-x: auto;
        /* Turns on horizontal scrolling */
        gap: 1px;
        /* Space between the movie posters */
        padding-bottom: 1px;
        padding-right: 2px;
        /* Gives a little space after the last movie when you scroll to the end */
        margin-top: 20px;
        padding-left: 15px;
    }

    .container {
        width: 85vw;
        /* height: 40vh; */
        margin-left: 30px;
        display: grid;
        justify-content: center;
        grid-template-columns: 1fr;
        gap: 1px;
        margin-top: 1px;
    }

    h2 {
        margin-left: 30px;
        font-size: medium;
    }


    .faqbox {
        /* transition: all 0.1s ease-out; */
        font-size: 17px;
        color: white;
        display: flex;
        background-color: #2D2D2D;
        padding: 20px;
        max-width: 70vw;
        margin: 17px auto;
        justify-content: space-between;
        cursor: pointer;
    }

    .faqbox svg {
        width: 25px;
        height: 25px;

    }

    footer {
        font-size: 16px;
        color: white;
        /* margin-top: 1900px; */
        margin-left: 5px;
        color: #b3b3b3;

    }

    footer span {

        margin: 30px;
    }

    .footer {
        content: #b3b3b3;
        margin-top: 30px;
        margin-left: 45px;
        grid-template-columns: 1fr;
        color: white;

    }





    .btn-red-below {

        display: flex;
         border: none;

        gap: 16px;

        background-color: red;
        color: white;
        padding: 10px 25px;
        font-size: 18px;
        border-radius: 5px;
        font-weight: 520;
    }


    .last {
        margin-top: 50px;
        margin-left: 45px;
        margin-bottom: 150px;
    }

    .last p {
        font-size: 13px;
        color: gray;
        margin-top: 20px;
    }

    .last a {
        color: rgb(68, 142, 244);

    }

}