nav {
    position: fixed;
    width: 100%;
    background-color: var(--white);
    z-index: 10;
    box-shadow: 0 1px 1px gray;
    transition: all .4s;
}

.hamburger {
    display: none;
    position: fixed;
    right: 0.5em;
    top: .5em;
    font-size: 3.5em;
    color: var(--black2);
    background: var(--white);
    border-radius: .1em;
    opacity: .5;
    cursor: pointer;
    z-index: 15;
    transition: opacity .2s;
    -webkit-transition: opacity .2s;
    -moz-transition: opacity .2s;
    -ms-transition: opacity .2s;
    -o-transition: opacity .2s;
}

/* .hamburger:hover {
    background: var(--blue1)
} */

nav .top-nav{
    display: none;
}

nav .nav-container {
    width: 100%;
    /* height: auto; */
    display: flex;
    justify-content: space-between;
    position: relative;
}

nav .nav-container .nav-logo {
    opacity: 0;
    margin-left: 50px;
    transition: opacity .4s;
}

nav .nav-container .nav-logo img:nth-child(1) {
    height: 60px;
    padding-top: .4em;
    padding-bottom: .4em;
}

nav .nav-container .nav-logo img:nth-child(2) {
    height: 60px;
    padding: 12px;
}

nav .nav-container .opacity {
    opacity: 1;
    transition: opacity .4s;
}

nav .nav-container .main-nav {
    display: flex;
    flex-wrap: wrap;
}

nav .nav-container .main-nav li {
    display: inline-block;
    position: relative;
}

nav .nav-container .main-nav li a {
    display: inline-block;
    font-size: 0.95em;
    font-weight: 700;
    text-decoration: none;
    color: var(--black2);
    padding: 20px 20px;
    transition: background-color .2s, color .2s;
    line-height: 1.3em;
}

nav .nav-container .main-nav li a:hover {
    background-color: var(--blue1);
    color: var(--white)
}

/* SUBMENU */

.main-nav li ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    max-height: 0;
    width: max-content;
    min-width: 100%;
    overflow: hidden;
    box-shadow: 1px 1px 3px grey;

    opacity: 1;

    transition: all .4s;
}

nav .nav-container .main-nav li ul li a {
    width: 100%;
    /* opacity: 0; */
    background: #eee;
    /*  transition: all .4s;
    max-height: 0; */
    max-height: 100px;
}

@media screen and (min-width: 760px) {
    .main-nav li:hover ul {
        height: auto;
        max-height: 500%;
        opacity: 1;
    }

    .nav-option-more {
        display: none;
    }
}

@media screen and (max-width: 760px) {
    .nav-option-more {
        display: block;
        position: absolute;
        font-size: 1.5em;
        right: 0;
        width: 3em;
        text-align: center;
        height: max-content;
        padding: 20px 0;
        line-height: 0.85em;
        background-color: var(--blue2);
        font-weight: 700;
        color: var(--black2);
    }

    .nav-option-more:hover {
        background-color: var(--blue1);
        color: var(--white);
        cursor: pointer;
    }
}

.menu-appear {
    opacity: 1 !important;
    max-height: 500px !important;
}

@media screen and (max-width: 1199px) {
    nav .nav-container .main-nav li a {
        font-size: 0.9em;
        padding-left: 0.6em;
        padding-right: 0.75em;
    }

    nav .nav-container .nav-logo {
        margin-left: 1em;
    }
}

@media screen and (max-width: 1000px) {
    nav .nav-container .nav-logo img:nth-child(2) {
        display: none;
    }

}

@media screen and (max-width: 760px) {
    .nav {
        left: 110%;
        overflow: auto;
        max-height: 100vh;
    }

    .hamburger {
        display: inline-block;
    }

    nav .nav-container {
        flex-direction: column;
        align-items: center;
    }

    nav .nav-container .nav-logo {
        opacity: 1;
        padding: 20px;
    }

    nav .nav-container .nav-logo img:nth-child(2) {
        display: inline-block;
    }

    nav .nav-container .main-nav {
        flex-direction: column;
        width: 100%;
    }

    .main-nav li ul {
        position: relative;
    }

    nav .nav-container .main-nav li a {
        font-size: 1.1em;
        display: inline-block;
        min-width: 100%;
        text-align: center;
        box-shadow: -1px 0 1px var(--black2);
    }
}

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

    .hamburger {
        font-size: 3em;
        transition: all .2s;
    }

    nav .nav-container .nav-logo, .nav-logo a {
        display: flex;
        flex-direction: column;
    }

    nav .nav-container .nav-logo img:nth-child(1) {
        height: 120px;
        padding: 1px;
    }

    nav .nav-container .nav-logo img:nth-child(2) {
        height: 40px;
        padding: 6px;
    }

}

@media screen and (max-width: 350px) {
    nav {
        top: 0;
    }
}