
/* navbar */

/* Logo */

.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: black;
    overflow: hidden;
}

.logo img{
    height:150px;
    object-fit: scale-down;
}

/* Main Nav */

#main-menu{
    width: 100%;
    top:0;
    z-index: 99;
}

.navbar{
    z-index: 99;
    display: flex;
}

nav{
    position: relative;
    background-color: var(--default-primary-color);
}

.dropdown-menu{
    z-index: 99;
}

.link-item{
    padding: 10px;
    display: block;
    text-decoration: none;
    color: var(--text-primary-color);
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    width: 100%;
}

.nav-right{
    margin-left:auto;
    margin-right: 0;
}

/* Sticky Nav Bar */

.sticky{
    position: fixed;
}

.sticky + div{
    margin-top:var(--nav-height);
}

/* Dropdown Icon */

[data-dropdown-button]::after{
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.1em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Hovered Link */

.active.nav-item, .link-item:hover{
    background-color: var(--dark-primary-color);
}

.dropdown-menu > .link-item:hover{
    background-color: var(--accent-color);
}

[data-dropdown]{
    position: relative;
}

/* large menu */
@media only screen and (min-width: 992px) {
    
    .navbar{
        flex: auto;
        text-align: left;
        list-style-type: none;
    }

    .dropdown-menu{
        position: absolute;
        left: 0;
        text-align: left;
        background-color: var(--dark-primary-color);
        border-radius: .25rem;
        top:100%;
        box-shadow: 0 2px 5px rgba(0,0,0,.1);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity .2s ease-in-out, transform .2s ease-in-out;
        min-width: 100%;
    }

    .nav-right .dropdown-menu{
        left: auto;
        right: 0;
    }

    [data-dropdown].active > .dropdown-menu{
        opacity: 1;
        transform: translateY(0px);
        pointer-events: auto;
    }
}



/* small menu */

.menu{
    display: none;
    text-align: left;
    list-style-type: none;
}

@media only screen and (max-width: 992px) {

    /* main */

    .menu{
        display: inline-block;
        flex:1;
        text-align: left;
        width: 100%;
    }
    
    .navbar{
        top:100%;
        left:0;
        position: absolute;
        text-align: left;
        display: block;
        list-style-type: none;
        background-color: var(--default-primary-color);
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all .3s ease-in-out;
    }

    .navbar.active{
        max-height: 500px;
        opacity: 1;
    }
    
    .nav-item{
        display: block;
    }

    .dropdown-menu{
        background-color: var(--dark-primary-color);
        pointer-events: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all .3s ease-in-out;
    }
    
    [data-dropdown].active > .dropdown-menu{
        max-height: 300px;
        pointer-events: auto;
        opacity: 1;
    }
}