*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* .body{
    overflow: scroll;
} */

.main{
    background-image: url("./assets/netflix-backgroundimg.jpg");
    height: 90vh;
    width: 100%;
    background-size: cover;
    /* this is my mistake display: flex;
    justify-content: center;
    position: absolute; */
    overflow-x: hidden;
    overflow-y: auto;

}

.main .overlay{
    background:
  linear-gradient(
    to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.6) 30%,
    rgba(0,0,0,0.6) 70%,
    rgba(0,0,0,0.9) 100%
  );

    height: 90vh;
    width: 100%;
    position: absolute;
    overflow-y: hidden;
}

/* Navigation bar */
/* netflix logo */
nav .logo {
     
     height: 40px;
}
/* nav div */
nav{
    /* background-color: brown; */
    height: 120px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: absolute;
    padding: 0 9rem;
    padding-top: 1.5rem;
    z-index: 1;
    
}

/* Button cover for btn1 1 to contain language img */
#language-select{
    background-color: rgba(0, 0, 0, 0.5);
    height: 32px;
    position: relative;
    display:inline-flex;
    justify-content: center;
    align-items: center;
    border:0.5px solid white;
    border-radius: 4px;
    padding-left: 7px;
}
.btns{
    position: relative;
    padding-top: 3px;
    /* background-color: brown; */
    display: flex;
    justify-content: center;
    align-items: start;
    gap:10px;
}
.btn1{
    /* height: 32px;
    width:124px; */
    border-color:rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
    color:white;
    border-radius: 4px;
    margin-right: 0.6rem;
    font-size: 1rem;
    padding-left: 5px;
    font-weight: 500;
    cursor: pointer;
   
}

.btn1 option{
    color: black;
}

.btns .btn2{

    width:77px;
    height: 32px;
    background-color: red;
    border:none;
    font-weight: 600;
    color:white;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn2:hover{
    transform: scale(1.1);
}

/* content layout middle */
.content{
    height: 100vh;
    width: 100%;
    /* background-color: darkgrey; */
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* align-self: center; */
    color: white;
    /* margin: auto; */
    
}
.content h2{
    font-size: 3.2rem;
    font-weight: 800;
}

.content p1{
    font-size: 1.19rem;
    font-weight: 600;
    line-height: 3rem;
    margin-bottom: 1rem;

}
.content p2{
    color: white;
    font-weight: 500;
}


.input-box {
    width: 367px;
    height: 56px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;

    background-color: rgba(0, 0, 0, 0.5);
    color: white;

    padding: 0 1rem;
    font-size: 1rem;
    outline: none;

    
}

/* Placeholder color */
.input-box::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Focus effect */
.input-box:focus {
    border: 2px solid white;
    background-color: rgba(0,0,0,0.9);
}


.input-btn{
    width:200px;
    height:56px;
    font-size: 1.125rem;
    background-color: red;
    border: none;
    border-radius: 0.3rem;
    color:white;
    font-weight: 501;
    font-size: 1.25rem;
    margin-left: 0.5rem;
}
.input-btn i{
    padding-left: 1rem;
}

.input-boxes{
    padding: 1rem;
    display:flex;
}


.main2{
    /* background-color: brown; */
    height: 100px;
    width: 100%;
    position: absolute;
    bottom: 0px;
    background-image: url(./assets/trending-top.png);
    background-size: cover;
}


/* Main3 Div */
.main3{
    min-height: 700px;
    width: 100%;
    background-color: black;
    padding: 70px 148px;
    overflow: visible;
}

/* Hrizontal Cards Conatainer */
.cards-container{
    /* background-color: brown; */
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    margin-top: 1rem;
    padding:33px;
    margin-bottom: 2rem;
}

.cards-container img{
    width: 180px;
    height: 252px;
    border-radius: 7px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-right: 1.5rem;
    cursor:pointer;
}

.card{
    transition:transform 0.3s;
    cursor: pointer;
    z-index: 10;
    height: 260px;
    padding-top: 5px;
}
.card:hover{
    transform: scale(1.08);
}

.cards-container::-webkit-scrollbar{
    display:none;
}

.main3 .h2{
    color:white;
    font-weight: 550;
    
}
/* Number for each cards */
.number{
    color:black;
    z-index: 10;
    position:relative;
    bottom:145px;
    left:-23px;
    font-size:6.5rem;
    font-weight: 610;
    -webkit-text-stroke: 2px white;

}


/* Information Boxes Container */
.boxes{
    margin-top: 1rem;
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    min-height: 321px;
    padding:5px; /* add this */
}

.box{
    position: relative;
    padding: 1.2rem;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        #192247,
        #210e33,
        #2b0f22
    );
    overflow:hidden;
}

.box p,h2{
    overflow-wrap: break-word;
}


.box h2{
    color:white;
    margin-bottom: 1rem;
    font-weight: 600;
}
.box p{

    color:rgba(255,255,255,0.75);
    font-size: 0.9rem;
    font-weight: 500;

}

.box .box1{
     max-height: 72px;
    position: absolute;
    right:10px;
    bottom:4px

}

.box .box2{
     max-width: 72px;
    position: absolute;
    right:10px;
    bottom:4px;
}


.box .box3{
    max-width: 72px;
    position: absolute;
    right:10px;
    bottom:4px;
}


.box .box4{
    max-width: 72px;
    position: absolute;
    right:10px;
    bottom:4px;
}


/* Frequently Asked Question Section */
.questions{
    padding: 60px 0;
    background-color: black;
}

.questions h2{
    color: white;
    margin-bottom: 20px;
    font-weight: 550;
}


.lines-container{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.line{
    background-color: #2d2d2d;
    color: white;

    padding: 20px;
    font-size: 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
    transition: background-color 0.3s ease;
}

.line:hover{
    background-color: #414141;
}

/* content 2 input-box & button */
.content2{
    /* background-color: #2b0f22; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top:1rem;
}
.content2 p2{
    color: white;
    text-align: center;
}

.input-box2{
    height:56px;
    width:562px;
}

/* footer container */
.footer{
    background: black;
    color: #b3b3b3;
    padding: 60px 0;
    font-size: 14px;
    
}

/* top line */
.footer-top{
    margin-bottom: 30px;
}

.footer-top a{
    color: #b3b3b3;
}

/* links grid */
.footer-links{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* Links Style */
.footer-links ul{
    list-style: none;
}

.footer-links li{
    margin-bottom: 12px;
}

.footer-links a{
    color: #b3b3b3;
    text-decoration: underline;
}

.footer-links a:hover{
    color: white;
}


/* country text */
.footer-country{
    margin: 30px 0;
    
}

.footer-bottom{
    font-size: 13px;
    color: #8c8c8c;
}

.footer-bottom a{
    color: #0071eb;
}

@media (max-width: 768px){
    .footer{
        padding: 40px 30px;
    }

    .footer-links{
        grid-template-columns: repeat(2,1fr);
    }
}



/* Media Queries To Add Responsiveness To page */
@media(max-width:600px){
    .btn1{
        display: none;
    }
}


/* Large Laptop */
@media (max-width: 992px){
    .content h2{
        font-size: 2.5rem;
        font-weight: 700;
        text-align: center;
    }
    .content p1{
        font-size: 1rem;
        font-weight: 400;
        text-align: center;
    }

    .content p2{
        font-size: 1rem;
        font-weight: 400;
        text-align: center;
    }

   .cards-container .card{
    transform: scale(0.8);
    margin:-17px;
   }
   .cards-container{
    width:100%;
   }
   .main3{
    padding: 70px 50px;
   }

   .card:hover{
    transform: scale(0.86);
   }

   .card img{
    border-radius: 1rem;
   }

   .boxes{
    grid-template-columns: repeat(2, 1fr);

   }
}



/* Large Mobile */
@media (max-width: 768px){
    .input-boxes{
        /* background-color: brown; */
        width:100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
    }

    .input-box{
        width:100%;
        margin-bottom: 1.25rem;
    }

    .content h2{
        font-size: 2rem;
        font-weight: 700;
        text-align: center;
    }

    nav .logo {
    width: 89px;
    height: 24px;
    margin-left:-7rem;
    margin-top: 8px;
 }   
   
   .btns{
    position: relative;
    /* background-color: brown; */
    right:-6rem;
   }

   .cards-container .card{
      transform: scale(0.67);
      margin:-38px;
   }
   .card img{
    border-radius: 1rem;
   }
   
   .card:hover{
    transform: scale(0.73);
   }

   .main3 .h2{
    font-size: 1.125rem;
    font-weight: 600;
   }
   .questions h2{
     font-size: 1.125rem;
     font-weight: 600;
   }

   .boxes{
    grid-template-columns: 1fr;
   
   }
   .line{
    font-size: 17px;
    padding:15px;
   }
   .line .plus img{
    height: 24px;
   }
}


.answer{
    background-color: #2d2d2d;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 22px;
    color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .answer{
    min-height: 100px;
}
