nav{
    position: fixed;
    top: 0;
    left: 0;
    background: #F5FAD5;
    border-bottom: 1.5px solid #C4CC60;
    width: 100vw;
    height: 70px;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav::before{
    content:"";
    position:absolute;
    z-index:-1;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(20px);
    height: 100%;
    width: 100vw;
    top:0;
    left:0;
    right:0;
    bottom:0;
}

nav .logo{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-left: 40px;
}

nav .logo h1{
    margin-left: 15px;
    color: transparent;
    background: linear-gradient(45deg, #C6A61C, #8A5B1B);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 3px 4px #0004;
}

nav .logo img{
    height: 80px;
    filter: drop-shadow(0px 4px 2px#0004);
}

nav .logo .feather
{
    height: 50px;
    filter: drop-shadow(0px 4px 2px#0004);
    transform: rotate(18deg) translateY(-6px) translateX(-2px);
}

.navigation{
    margin-right: 40px;
}

nav ul{
    display: flex;
}

nav ul li{
    display: inline-block;
    line-height: 70px;
}

nav ul li a{
    display: block;
    height: 40px;
    line-height: 40px;
    font-weight: 600;
    text-decoration: none;
    color: #111;
    opacity: 0.6;
    padding: 0 10px;
}

nav ul li a:hover{ opacity: 1; }

nav ul li a.active{
    opacity: 1;
    background: var(--light-green);
    border-radius: 5px;
    color: var(--dark-gold);
}
.navigation 

.navigation ul li:nth-last-child(1){
    display: inline-flex;
    align-items: center;
}

#search{
    display: none;
    font-size: 15px;
    outline: none;
    border: none;
    background: transparent;
    border-bottom: 1px solid #ccc;
    width: 300px;
    padding: 10px 15px;
    border-radius: 7px;
    height: 30px;
}

#mobile-search-btn,
#desktop-search-btn{
    height: 30px;
    margin-left: 20px;
    opacity: 0.6;
}

#desktop-search-btn:hover{
    opacity: 0.8;
    cursor: pointer;
}

#close-btn{
    height: 0px;
    margin: 0;
    transition: 0.3s ease;
}

.show-products, .show-portals{
    display: none;
}

.menu-btn{
    display: none;
}

#mobile-search-btn{
    display: none;
}

.search-li{
    display: flex;
    align-items: center;
}

@media(max-width: 1024px){
    #mobile-search-btn{
        display: block;
    }

    #close-btn{
        display: none !important;
        position: absolute;
    }

    #desktop-search-btn{
        position: absolute;
        display: none;
    }
    
    nav{
        flex-direction: column;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    nav .logo .feather
    {
        height: 45px;
        filter: drop-shadow(0px 4px 2px#0004);
        transform: rotate(18deg) translateY(-6px) translateX(-2px);
    }

    .navigation{
        width: 100vw;
        margin: 0;
        padding: 0;
    }

    .navigation ul{
        max-height: 80vh; 
        overflow-y: scroll; 
    }
    
    nav ul{
        display: block;
        margin: 0;
        padding: 0;
        overflow: hidden;
        overflow-y: auto;
        position: fixed;
        top: 70px;
        left: 0;
        height: 0px;
        background: #fffa;
        backdrop-filter: blur(20px);
        transition: height 0.5s ease;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    nav .logo{
        margin-left: 25px;
    }

    nav ul li{
        display: block;
        border-bottom: 1px solid #eee;
    }

    nav ul li a{
        height: 70px;
        line-height: 70px;
        font-size: 20px;
        padding-left: 20px;
    }

    nav ul li a.active::after{
        display: none;
    }

    #search{
        display: inline-block;
        border: none;
    }

    nav .preview{
        position: relative;
        top: 0;
    }

    nav .preview .product{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 200px;
        margin: 0 20px;
        padding: 0;
        height: 150px;
    }

    .page-links:nth-child(4):hover .preview,
    .page-links:nth-child(3):hover .preview{
        height: 0;
        border: none;
    }

    .page-links .show-portals:checked ~ .portal-preview,
    .page-links .show-products:checked ~ .product-preview{
        height: 200px;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    .page-links .show-portals:checked ~ .portal-preview{
        height: 453px;
    }

    nav .portal-preview{
        flex-direction: column;
    }

    .search-li{
        height: 70px;
        width: 100vw;
        display: flex;
        justify-content: space-between;
        border: none;
    }

    .search-li form{
        height: 100%;
        flex: 1;
    }
    
    #search{
        background: transparent;
        height: 100%;
        border-radius: 0;
        padding: 0;
        padding-left: 20px;
        font-size: 20px;
        margin: 0;
        width: calc(100% - 20px);
    }

    #mobile-search-btn{
        margin: 0;
        margin-right: 10px;
        height: 40px;
        padding: 15px;
        aspect-ratio: 1;
    }

    .menu-btn{
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 40px;
        position: fixed;
        right: 30px;
    }

    nav .bar{
        height: 0px;
        border: 1px solid;
        width: 25px;
        background: #000;
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    nav .bar:nth-child(2){
        margin: 6px 0;
        display: block;
    }
    nav .logo h1 {
    font-size: 4vw;
}
}