:root{
    --primary-color :#e50914;
    --primary-hover-color :rgb(193,17,25);
    --sec-color :#212529;
    --color-white :#fff;
}
.section{
    height: 90vh;
    font-size: 74px;
    color: var(--color-white);
}
body{
    position: relative;
    min-height: 100vh;

}
body::before{
    content: '';
     background-image:linear-gradient(
      360deg,
      rgba(0, 0, 0, 0.85) 3%,
      rgba(0, 0, 0, 0.8465) 11.08%,
      rgba(0, 0, 0, 0.8361) 19.17%,
      rgba(0, 0, 0, 0.8187) 27.25%,
      rgba(0, 0, 0, 0.7944) 35.33%,
      rgba(0, 0, 0, 0.7632) 43.42%,
      rgba(0, 0, 0, 0.725) 51.5%,
      rgba(0, 0, 0, 0.6868) 59.58%,
      rgba(0, 0, 0, 0.6556) 67.67%,
      rgba(0, 0, 0, 0.6313) 75.75%,
      rgba(0, 0, 0, 0.6139) 83.83%,
      rgba(0, 0, 0, 0.6035) 91.92%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    url(../images/bgimg.jpeg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(3px);
    height: 100vh;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
}
.net-pri-btn{
    background-color: var(--primary-color);
    color : var(--color-white)
}
.net-pri-btn:is(:hover, :active, :focus){
    background-color: (var(--primary-hover-color));
    color: var(--color-white);
}
.net-sec-btn{
    background-color: var(--sec-color);
    color: var(--color-white) !important;
}
.logo{
    width: 150px;
    display: inline-block;
}
.logo img{
    width: 100%;
}
.moviecard{
    background-color: rgba(0, 0, 0, .7);
    color: var(--color-white);
}
.moviecard h4{
    height: 40px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.moviecard figure{
    margin: 0;
    height: 300px;
    overflow: hidden;
    position: relative;
}
.moviecard figure img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.moviecard figure figcaption{
    position: absolute;
    top: 30%;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    height: 70%;
    transform: translateY(115%);
    opacity: 0;
    transition:  all .4s ease-in-out;
    overflow: auto;
}

.moviecard:is(:hover, :focus, :active) figcaption{
    transform:  translateY(0%);
    opacity: 1;
}
.movieModal{
    position: fixed;
     top: 15%;
     left: 30%; 
      /* transform: translate(-50%,-50%); */
     width: 40%;
     max-width: 90%;
     display: none;  
     z-index: 2;

}
.backDrop{
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,.7);
    cursor: pointer;
     display: none; 
     z-index: 1;
}
.movieModal.active,.backDrop.active{
    display: block;
}
.backDrop.active{
    animation: fadeIn .4s ease-in-out;
}

.movieModal.active{
    animation: slideDown .4s ease-in-out;
}
@keyframes fadeIn{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@keyframes slideDown{
    0%{ 
        
        transform: translateY(-50px);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}
