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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
    font-family: 'Poppins', sans-serif;
}

body{
    position: relative;
}

#black{
    z-index: 99999;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.555);
    visibility: hidden;
}

#black.active{
    visibility: visible;
}
#li-box.active{
    visibility: visible;
    top: 50%;
}

@mixin image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}
@mixin btn {
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5rem;
    padding: 0.3em 0.8em;
    color: white;
    letter-spacing: 0.2rem;
    border-radius: 0.5rem;
    border: 1px solid white;
    @include tran;
    &:hover{
        letter-spacing: 0.5rem;
    }

}

@mixin  tran {
    transition: all 0.3s ease-in-out;
}

@mixin ani {
    animation: text 1.5s ease-in forwards;
    opacity: 0;
}
.navbar-light button.navbar-toggler{
    color:white;
    border-color: white;
}

.navbar{
    @include tran;

    i{
        font-size: 3rem;
        color: white;
    }
    .nav-item{

        a.nav-link{
            font-size: 1.2rem;
            text-transform: uppercase;
            margin-left: 3rem;
            color: white;
            letter-spacing: 0.5rem;

            &:hover{
                color: white;
                border-bottom: 1px solid white;
            }
            &:focus{
                color: white;
            }
        }
    }
    
}

.carousel-item{
    position: relative;
    width: 100%;
    height: 100vh;

    img{
      @include image;
    }

    &::after{
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.418);
    }
    .carousel-caption{
        position: absolute;
        top: 50%;
        left: 35%;
        transform: translate(-50%,-50%);
        text-align:left;
        z-index: 999;
        padding-top: 12.25rem;
        bottom: -3.75rem;

        h5{
            position: relative;
            font-size: 6rem;
            font-weight: 300;
            text-transform: capitalize;
            @include tran;
            @include ani;
            letter-spacing: 0.2rem;
        }
        @keyframes text {
            100%{
                top: 0px;
                opacity: 1;
                transform: translateX(0);
            }
        }
        p{
            margin-bottom: 2rem;
            font-size: 1.5rem;
            font-size: 200;
            text-transform: capitalize;
            @include ani;
            @include tran;
            animation-delay: 1s;
            letter-spacing: 0.2rem;
        }
        .sbtn{
            @include btn;
            @include ani;
            animation-delay: 2s;
        }

        #t1{
            top: -50px;
        }
        #p1,#t3{
            transform: translateX(-200px);
        }
        #p2{
            transform: translateY(-20px);
        }
        #p3{
            transform: translateX(200px);
        }
    }
    
}

.card-content{
    padding: 5rem 0;

    .logo-btn{
        display: flex;
        flex-direction: row;
        justify-content: center;

        i{
            font-size: 5rem;
            margin: 0 2rem 2rem 2rem;
            @include tran;
        }

        #lg1{

            &:hover{
                color: rgb(94, 94, 94);
            }
            
        }
        #lg2{
            &:hover{
                color: rgb(28, 28, 136);
            }
            
        }
        #lg3{
            &:hover{
                color: rgb(20, 170, 20);
            }
            
        }

    }
    .container{
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-top: 5rem;
        border-color:white;
        outline: white;

        .card{
            position: relative;
            width: 80%;
            height: 30rem;
            // border: 2px solid red;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 5rem 0;
            background: white;
            box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;

            &:hover .img-box{
                top: -15rem;
            }

            &:hover .img-con{
                opacity: 1;
            }

            .img-box{
                @include tran;
                width: 70%;
                min-height: 30rem;
                position: relative;
                top: -5rem;
                box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
                z-index: 99;

                img{
                    @include image;
                }
            }
            .img-con{
                position: absolute;
                bottom: 15%;
                text-align: center;
                opacity: 0;
                @include tran;
                transition-delay:0.3s ;

                a{
                    @include btn;
                    border-width: 2px;
                    color: white;
                    background: rgb(10, 125, 202);
                }

                h2{
                    font-size: 3rem;
                    text-transform: capitalize;
                    font-weight: 400;
                    margin-top: 0.5rem;
                }
            }
        }
    }    
}

#home-btn{
    @include tran;
    text-decoration: none;
    font-size: 2rem;
    color: white;
    background: black;
    padding: .5em .7em;
    border-radius: 50%;
    position: fixed;
    right: 2rem;
    bottom: 4rem;
    z-index: 9999;
    animation: home 2s ease-in-out forwards infinite;
    animation-delay: 2s;
    opacity: 0;
}
@keyframes home {
    50%{
        bottom: 6rem;
    }
    100%{
        bottom: 4rem;
    }
}

.list-box{
    @include tran;
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999999;
    background: white;
    width: 90%;
    height: 90vh;
    overflow: hidden;
    overflow-y: scroll;
    padding-left: 0.5rem;
    visibility: hidden;

    .list-wrp{

        .search_box{
            position: sticky;
            display: flex;
            align-items: center;
            flex-direction: row;
            width: 100%;
            height: 50px;
            margin-bottom: 30px;
            border-radius: 20px;
            background: white;
            border: 1px solid black;

            i{
                font-size: 2rem;
            }
    
            #se-area{
                height: 100%;
                width: 95%;
                outline: none;
                font-size: 2rem;
                padding: 0 2rem;
                border-radius: 20px;
                border: none;

            }
    
        }
        
    }

}

#close-btn{
    display: inline-block;
    position: sticky;
    left: 95%;
    top: 20%;
    z-index: 999;
    i{
        font-size: 4rem;
    }
}

.movies{
    min-height: 50vh;
    #menu{
        display: flex;
        flex-wrap: wrap;

        .movie-box{
            @include tran;
            position: relative;
            width: 150px;
            height: 200px;
            list-style: none;
            margin-left: 10px;
            margin-right: 10px;
            margin-bottom: 50px;
            box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;

            &:hover{
                transform: scale(1.2,1.2);
            }

            &::after{
                @include tran;
                position: absolute;
                content: '';
                height: 100%;
                width: 100%;
                top: 0;
                left: 0;
                background: rgba(0, 0, 0, 0.568);
                z-index: 99;
                opacity: 0;
                transform: scaleY(0);
                transform-origin: bottom;
            }
            &:hover::after{
                opacity: 1;
                transform: scaleY(1);
            }

            img{
                @include image;
            }
            .movie-containet{
                @include tran;
                text-align: center;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%,-50%);
                z-index: 9999;
                opacity: 0;

                h4{
                    color: white;
                    text-transform: uppercase;
                    font-size: 1.5rem;
                    margin-bottom: 1rem;
                }
                a{
                    @include btn;
                    font-size: 1rem;
                }
            }
            &:hover .movie-containet{
                opacity: 1;
            }

        }
    }
}

.about-f{
    position: relative;
    width: 100%;
    height: auto;
    min-height: 80rem;
    background: linear-gradient(rgba(0,0,0,.5) , rgba(0,0,0,.5)),url('../img/about.jpg');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 10rem 0;

    .about-content{
       
        h1{
            font-size: 6rem;
            color: white;
            text-transform: capitalize;
            font-weight: 300;
            letter-spacing: 0.2rem;
        }
        P{
            color: white;
            text-transform: capitalize;
            font-size: 1.5rem;
            letter-spacing: 0.3rem;
        }
    
    }
   
}