:root{
    --gradient:linear-gradient(90deg,#f1c40f,#f39c12);
}

*{
    font-family: 'Open Sans', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    border: none; outline: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}


*::selection{
    background: #f39c12;
    color: white;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

html::-webkit-scrollbar{
    width: 1.5rem;
}

html::-webkit-scrollbar-track{
    background: #333;
}

html::-webkit-scrollbar-thumb{
    background: linear-gradient(#f1c40f,#f39c12);
}

.btn{
    padding: .7rem 3rem;
    font-size: 2rem;
    color: #fff;
    background: var(--gradient);
    border-radius: 5rem;
    margin-top: 1rem;
    cursor: pointer;
    box-shadow: 0 .1rem .3rem rgba(0,0, 0, .3);
    position: relative;
    overflow: hidden;
    z-index: 0;

}

.btn::before{
    content: '';
    position: absolute;
    top: -1rem;left: -100%;
    background: #fff9;
    height: 150%;
    width: 20%;
    transform: rotate(25deg);
    z-index: -1;
}
.btn:hover::before{
    transition: .3s linear;
    left: 120%;
}

section{
    min-height: 100vh;
    padding: 1rem 7%;
    padding-top: 6rem;
}

.heading{
    color: #444;
    padding: 1rem;
    font-size: 4rem;
    text-align: center;
}




 
header{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    padding: 1.5rem 7%;
    background: var(--gradient);
    box-shadow: 0 .1rem .3rem rgba(0,0, 0, .3);
}


header .logo{
    color: #fff;
    font-size: 2.5rem;
}

header .navbar ul{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

header .navbar ul li{
    margin: 0 1rem;
}
header .navbar ul li a{
    font-size: 2rem;
    color: white;
}
header .navbar ul li a.active,
header .navbar ul li a:hover{
    color: #333;
}

header #login{
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
}

header #login:hover{
    color: #444;
}


header #menu{
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

.login-form{
    height: 100%;
    width: 100%;
    position: fixed;
    top: -120%; left: 0;
    z-index: 1000;
    background: rgba(0,0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
}


.login-form.popup{
    top: 0;
}

.login-form form{
    width: 35rem;
    background: #fff;
    margin: 0 2rem;
    padding: 1rem 3rem;
    border-radius: .5rem;
    box-shadow: 0 .1rem .3rem #333;
    position: relative;
}

.login-form form h3{
    font-size: 3rem;
    color: #f39c12;
    padding: 1rem 0;
}

.login-form form .box{
    width: 100%;
    padding: 1 rem 0;
    margin: 1rem 0;
    border-bottom: .2rem solid #666;
    font-size: 1.6rem;
    color: #333;
    text-transform: none;
}
.login-form form .box::placeholder{
    text-transform: capitalize;
}
.login-form form .box:focus{
    border-color: #f39c12;
}

.login-form form .box:nth-child(3){
    margin-bottom: 5rem;
}
.login-form form p{
    font-size: 1.4rem;
    color: #666;
    padding: .5rem 0;
}

.login-form form p a{
    color: #f39c12;
}
.login-form form .btn{
    width: 100%;
    margin: 2rem 0;
}
.login-form form .btn:hover{
    background: #444;
}
.login-form form .fa-times{
    position: absolute;
    top: 1.5rem;right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: #999;
}
.login-form form .fa-times:hover{
    color: #444;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    background:url(../images/home-bg.jpg) no-repeat ;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
}

.home h1{
    font-size: 6rem;
    color: #666;
}

.home p{
    font-size: 1.9rem;
    color: #999;
    padding: 1rem 0;
    width: 70rem ;
}

.home .shape{
    position: absolute;
    bottom: -.2rem;left: 0;
    height: 15rem;
    width: 100%;
    background: url(../images/shape.png);
    block-size: 100rem 15rem;
    filter: drop-shadow(0 -.1rem .1rem rgba(0,0,0,.2));
    animation: animate 10s linear infinite;
} 

@keyframes animate{

    0%{
        background-position-x: 0rem;
    }
    100%{
        background-position-x: 100rem;
    }

}

.about{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.about .image{
    flex: 1 1 40rem;

}
.about .image img{
    height: 65vh;
    width: 100%;
}
.about .content{
    flex: 1 1 40rem;
}

.about .content h3{
    font-size: 3.5rem;
    color: #666;

}
.about .content p{
    font-size: 1.5rem;
    color: #666;
    padding: 1rem 0;
}

.course .box-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.course .box-container .box{
    width: 35rem;
    border: .1rem solid rgba(0,0, 0, .3);
    position: relative;
    margin: 1.5rem;
}

.course .box-container .box img{
    height: 20rem;
    width: 100%;
    object-fit: cover;
}
.course .box-container .box .content{
    padding: 1rem;
}
.course .box-container .box .content .stars i{
    color: #f39c12;
    font-size: 1.7rem;
    padding: 1rem .1rem;
}
.course .box-container .box .content .title{
    color: #444;
    font-size: 2.1rem;
}
.course .box-container .box .content .title:hover{
    text-decoration: underline;

}
.course .box-container .box .content p{
    padding: 1rem 0;
    color: #666;
    font-size: 1.5rem;
}

.course .box-container .box .content .info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .5rem;
    border-top: .1rem solid rgba(0,0, 0, .3);   
}

.course .box-container .box .content .info h3{
    font-size: 1.5rem;
    padding: 1rem;
    color: #666;

}
.course .box-container .box .content .info h3 i{
    color: #f39c12;
}
.course .box-container .box .price{
    position: absolute;
    top: 16rem;right: 1rem;
    height: 8rem;
    width: 8rem;
    line-height: 8rem;
    text-align: center;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 1.8rem;
}

.mentor{
    text-align: center;
    background: url(../images/Teachers2.png) no-repeat;
    background-size: cover;
    background-position: bottom;
}

.mentor p{
    font-size: 1.8rem;
    color: #666;
    width: 65rem;
    margin: 1rem auto;
}




















/* media query */
@media (max-width:780px){
    html{
        font-size: 55%;
    }

    header #menu{
        display: block;
    }
    header .navbar{
        position: fixed;
        top:-120%; left: 0;
        width: 100%;
        background: #444;
    }

    header .navbar ul{
        flex-flow: column;
        padding: 2rem 0;
    }

    header .navbar ul li{
        margin: 1.5rem 0;
        text-align: center;
        width: 100%;
    }
    header .navbar ul li a{
        font-size: 2.5rem;
        display: block;
    }
    header .navbar ul li a.active,
    header .navbar ul li a:hover{
        color: #f39c12;
    }

    .fa-times{
        transform: rotate(180deg);
    }

    header .navbar.nav-toggle{
        top: 6.4rem;
    }

    .home h1{
        font-size: 4rem;

    }
    .home p{
        width: auto;
        
    }

    .mentor p{
        width: auto;
    }
   
}


@media (max-width:500px){
    html{
        font-size: 50%;
    }
}