@import url('https://masumbillah6778.github.io/fonts/english/english-custom-font.css');
@import url('https://masumbillah6778.github.io/fonts/bangla/bangla-custom-font.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.4s ease;;
}


/* ===== Colours ===== */
:root {
    --body-color: #E4E9F7;
    --nav-color: #4070F4;
    --side-nav: #010718;
    --text-color: #FFF;
    --search-bar: #F2F2F2;
    --search-text: #010718;
}

body.dark {
    --body-color: #18191A;
    --nav-color: #242526;
    --side-nav: #242526;
    --text-color: #CCC;
    --search-bar: #242526;
}

body {
    background-image: url("https://github.com/masumbillah6778/image/raw/main/tania1.jpg");
    background-color: rgb(0,0,0,.2);
    background-blend-mode: overlay;
    background-attachment:fixed;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    /*width: 962px;
    aspect-ratio: 16 / 9;*/
    line-height: 1.6;
    overflow-x: hidden;
    border: 2px solid red;
}

body.dark-mode {
    background-image: url("https://github.com/masumbillah6778/image/raw/main/tania-thumbnail.jpg");
    background-color: ed;
    background-attachment:fixed;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    /*width: 962px;
    aspect-ratio: 16 / 9;*/
    line-height: 1.6;
    overflow-x: hidden;
    border: 2px solid red;
}






/*======================================== Top Menu ========================================*/

.main-content {
    width: 100%;
    height: 100vh;
    border: 2px solid;
}

nav {
    background-color: #006400;
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border: 2px solid red;
}

body.dark nav {
    background-color: #242526;
}

nav .nav-bar {
    background-color: green;
    width: 100%;
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
}

body.dark nav .nav-bar {
    background-color: red;
}

nav .nav-bar .sidebarOpen {
    color: white;
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
}

nav .nav-bar .logo a {
    font-size: 50px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.menu .logo-toggle {
    display: none;
}

.nav-bar .nav-links {
    display: flex;
    align-items: center;
}

.nav-bar .nav-links li {
    margin: 0 5px;
    list-style: none;
}

.nav-links li a {
    position: relative;
    font-size: 17px;
    font-weight: 400;
    color: white;
    text-decoration: none;
    padding: 10px;
}

.nav-links li a.active {
    background-color: red;
}

body.dark .nav-links li a.active {
    background-color: green;
}

.nav-links li a::before {
    content: '';
    background-color: yellow;
    width: 6px;
    height: 6px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links li:hover a::before {
    opacity: 1;
}

.nav-bar .darkLight-searchBox {
    display: flex;
    align-items: center;
}

.darkLight-searchBox .dark-light {
    background-color: red;
    width: 50px;
    height: 25px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    transition: all 0.3s ease;
}

body.dark .darkLight-searchBox .dark-light {
    background-color: green;
}

.bx.bx-moon.moon::before {
    color: yellow;
    margin-left: -20px;
}

.bx.bx-sun.sun::before {
    color: white;
    margin-left: 20px;
}

.darkLight-searchBox .searchToggle {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.searchToggle i {
    position: absolute;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-light i {
    position: absolute;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-light i.sun {
    opacity: 0;
    pointer-events: none;
}

.dark-light.active i.sun {
    opacity: 1;
    pointer-events: auto;
}

.dark-light.active i.moon {
    color: #000;
    opacity: 0;
    pointer-events: none;
}

.searchToggle i.cancel {
    opacity: 0;
    pointer-events: none;
}

.searchToggle.active i.cancel {
    opacity: 1;
    pointer-events: auto;
}

.searchToggle.active i.search {
    opacity: 0;
    pointer-events: none;
}

.searchBox {
    position: relative;
}

.searchBox .search-field {
    background-color: blue;
    position: absolute;
    bottom: -85px;
    right: 5px;
    height: 50px;
    width: 300px;
    display: flex;
    align-items: center;
    padding: 3px;
    border-radius: 6px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

body.dark .searchBox .search-field {
    background-color: white;
}

.searchToggle.active ~ .search-field {
    bottom: -74px;
    opacity: 1;
    pointer-events: auto;
}

.search-field::before {
    background-color: red;
    content: '';
    position: absolute;
    right: 14px;
    top: -4px;
    height: 12px;
    width: 12px;
    transform: rotate(-45deg);
    z-index: -1;
}

body.dark .search-field::before {
    background-color: green;
}

.search-field input {
    width: 100%;
    height: 100%;
    padding: 0 45px 0 15px;
    outline: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--search-text);
    background-color: var(--search-bar);
}

body.dark .search-field input {
    color: var(--text-color);
}

.search-field i{
    position: absolute;
    color: var(--nav-color);
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

body.dark .search-field i{
    color: var(--text-color);
}



main {
    background-color: hite;
    width: 100%;
    height: 100%;
    padding: 50px 10px 0px 10px;
    overflow-y: scroll;
    border: 2px solid red;
}

.content {
    background-color: gra;
    color: #000;
    width: 100%;
    height: 100%;
    font-size: 70px;
}




.footer {
   position: fixed;
   left: 0;
   bottom: 0;
   width: 100%;
   height: 100px;
   
   
}

.footer {
    background-color: red;
    color: white;
    width: 100%;
    height: 70px;
    padding: 30px 0px;
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;
    border: 2px solid green;
}
















@media (max-width: 790px) {
    nav .nav-bar .sidebarOpen{
        display: block;
    }

    .menu{
        position: fixed;
        width: 100%;
        height: 100%;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: var(--side-nav);
        z-index: 100;
        transition: all 0.4s ease;
    }

    nav .nav-bar .logo a {
        font-size: 40px;
        color: white;
    }

    nav.active .menu{
        left: -0%;
    }

    nav.active .nav-bar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-toggle .siderbarClose{
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
    }

    .nav-bar .nav-links{
        flex-direction: column;
        padding-top: 30px;
        display: block;
    }

    .nav-links li a{
        display: block;
        margin-top: 20px;
    }
}
