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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}
body{
    font-size: 62.5%;
    font-family: sans-serif;
    overflow-x: hidden;
}
.container{
    height: 100vh;
    background: darkgray;
    z-index: -1;
}

/* main designing starts here */

/* navbar */
nav{
    background-color: rgba(51, 51, 51, 0.521);
    padding: .5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: mintcream;
    border: 2px solid goldenrod;
    position: sticky;top: 0%;
    z-index: 3;
}
nav .logo{
    text-align: center;
    font-size: 1.5rem;
}
nav .side-content{
    width: 45vw;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: .2rem 1rem;
     /*background: #25b360;*/
}
.side-content .navbar{
    display: flex;
    justify-content: space-between;
    list-style: none;
}
.side-content .navbar a{
    font-size: 1rem;
    color: #333;
}

/* sub-menu */
.submenu-btn{
    position: relative;
}
.submenu{
    position: absolute;
    top:100%;
    padding: 1rem 2rem;
    background: rgba(51, 51, 51, 0.568);
    list-style: none;
    transition: .2s;
    transform: translateY(-200%);
}
/* javascript class to show submenu on click */
.submenu.showSubmenu{
    transform: translateY(0);
}
.submenu li{
    margin: 1rem 0 .5rem 0;
    padding-bottom: .3rem;
}
.submenu li:first-child{
    margin-top: 0;
}
.submenu li::after{
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: goldenrod;
    transform: translateX(1.2rem);
    transition: width .3s;
}
.submenu li:hover::after{
    width: 80%;
}
/* search box */
.search-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background:#2f3640;
    border-radius: 35px;
    padding: .3rem;
    padding-left: 0;
}
.search-box > input{
    outline: none;
    border: none;
    background: none;
    color: #fff;
    font-size: .9rem;
    margin-left: .5rem;
    transition: .5s;
    width: 0;
}
 .search-box:hover > input{
    width: 200px;
}
.search-box .search-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .4rem .6rem;
    border-radius: 50%;
    font-size: .9rem;
    background:#2f3640;
    color:#e84118;
    cursor: pointer;
    transition: .3s;
}
.search-box:hover > .search-icon{
    background: whitesmoke;
}
/* search result */
.search-result{
    position: absolute;
    top: 9vh;
    right: 0%;
    width: 40%;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.932);
    border-radius: 4px;
    padding: 1rem 0;
    transition: .3s;
    display: none;
}

.search-result #myUL{
    text-align: center;
}
.search-result #myUL li{
    margin: 1rem 0 1rem 0;
    display: block;
    border-bottom: 1px solid #777;
}
.search-result #myUL li:nth-child(1){margin-top: 0;}
.search-result #myUL li:last-child{margin-bottom: 0;}

.search-result #myUL li a{
    color: #333;
    font-size: 1rem;
}

/* hamburger-menu */
.side-content .hamburger{
    width: 2.5rem;
    height: 2.5rem;
    padding: .5rem;
    background: #ffffff;;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}
.side-content .hamburger div{
    width: 15px;
    height: 2px;
    margin: 2px 2px 2px 2px;
    margin-bottom: 2px;
    background: rgb(56, 187, 84);
}
/* sidebar */
.sidebar{
    position: absolute;
    height: 89.5vh;
    width: 40%;
    background-color: #25b360;
    transition: all .5s;
    z-index:1000;
    transform: translateX(-100%);
}
.sidebar .name{
    background-color:#28c268;
    color: #fff;
    padding: .5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 10px 0px rgba(0, 0, 0, 0.623);
}
.sidebar .name h4{
    font-size: 1.4rem;
}
.sidebar .name .close-btn{
    font-size: 2.5rem;
    cursor: pointer;
}
.sidebar .sidenav{
    margin-top: 1em;
}
.sidebar .sidenav ul li{
    margin-top: 1em;
    display: block;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    transition: .4s;
}
.sidebar .sidenav ul li i{
    position: relative;
    top: 4px;
    color: #fff;
    padding-left: .3em;
}
.sidebar .sidenav ul li:hover{
    padding-left: .5em;
}
.sidebar .sidenav >p{
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin-top: 5em;
}
 .show-sidebar{
    transform: translateX(0);
}

 /* slider */
.slider .slide{
    width: 90vw;
    height: 100%;
    position: absolute;
    left: 100px;top:0;
    z-index: 1;
    display: none;
    flex-direction: column;
}
.slide .bgdiv{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    animation: slide .8s ease;
}
@keyframes slide{
    0%{
        transform: scale(.9);
    }
    100%{
        transform: scale(1);
    }
}
.slider .active{
    display:flex;
}

/* content */
.slide .bgdiv .content{
    background: rgba(80, 78, 78, 0.404);
    width:60%;
    height: 20%;
    margin:auto;
}
.slide .bgdiv .content .caption{
    padding: 1rem;
    text-align: left;
}
.caption h1{
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.slide.active .caption h1{
    opacity: 0;
    animation: text_ani .5s ease forwards;
    animation-delay: 0s;
}
.caption p{
    font-size: 1rem;
    margin-bottom: 1rem;
}
.slide.active .caption p{
    opacity: 0;
    animation: text_ani .5s ease forwards;
    animation-delay: .2s;
    position: relative;
}
.caption .play-now{
    font-size: 1rem;
    background: #333;
    color: rgb(241, 234, 234);
    padding: .4rem 1rem;
    letter-spacing: 2px;
    transition: .4s;
    overflow:hidden;
    position: absolute;
}
.play-now:hover{
    color: rgb(240, 230, 230);
    background-color: royalblue;
    border: none;
}
.play-now::before{
    content: "";
    width: 100%;
    height: 20%;
    background: #fff;
    position: absolute;
    top: 0%;
    left: 0;
    transform: translateX(-100%) rotate(50deg);
    transition: .7s;
}
.play-now:hover::before{
    transform: translateX(100%) rotate(50deg);
}
.slide.active .caption a{
    opacity: 0;
    animation: text_ani .5s ease forwards;
    animation-delay: .4s;
}
@keyframes text_ani{
    0%{
        opacity: 0;
        transform: translateX(-100px);
    }
    100%{
        opacity: 1;
        transform: translateX(0px);
    }
}
/* arrow down */
/* #down-arrow{
    font-size: 8rem;
    color: crimson;
    margin: 0 auto;
    position: absolute;
    left: 45%;
    bottom: 0%;
    animation: arrow-down .8s ease-in-out infinite;
    cursor: pointer;
}
@keyframes arrow-down{
    0%{bottom: 1%;}
    25%{bottom: 2%;}
    50%{bottom: 3%;}
    75%{bottom: 2%;}
    90%{bottom: 1%;}
    100%{bottom: 0%;}
} */

/* buttons */
.container .buttons .pre,
.container .buttons .next{
    position: absolute;
    z-index:2;
    top: 50%;
    height: 2rem;
    width: 2rem;
    cursor: pointer;
    color: #fff;
    background-color:#333;
    text-align: center;
    margin-top: -2rem;
    line-height:2rem;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: background-color .4s ease;
}
.container .buttons .pre{
    left: .5rem;
    animation: prev 1s ease-in-out infinite;
}
.container .buttons .next{
    right: .5rem;
    animation: next 1s ease-in-out infinite;
}
.container .buttons .pre:hover,
.container .buttons .next:hover{
    background-color: rgb(13, 189, 36);
}
@keyframes prev{
    50%{
        transform: translateX(-7px);
    }
}
@keyframes next{
    50%{
        transform: translateX(7px);
    }
}

/* slide indicators */
.slideIndicator{
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    z-index: 5;
}
.slideIndicator div{
    width: 1.5rem;
    padding: .4rem;
    margin-left: 4px;
    border-radius: 30px;
    font-size: .7rem;
    font-weight: bolder;
    color: #333;
    background: #28c268;
    text-align: center;
    transition: .3s;
    display: inline-block;
    cursor: pointer;
}
.slideIndicator div.active{
    display: inline-block;
    background: #fff;
}

/* bottom content of every slide */
.bottom-content{
    margin-top: 1rem;
}