
/* NAV ELEMENT */
   nav {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        width: 100%;
        padding: max(2rem, var(--gutter)) var(--gutter);
        background: var(--colorBackground);
        z-index: 2;
    }
    .navLinksCtr {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        width: 100%;
    }
    .navLinksCtr a {
        height: 100%;
        width: auto;
    }
    .navLinksCtr a img {
        height: 100%;
        width: auto;
    }
    nav button {
        height: 100%;
    }
    nav button img {
        height: 50%;
    }
    .submenuCtr {
        position: absolute;
        top: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 100%;
    }
    .returnBtn {
        display: none;
    }
    .footerTxt {
        position: fixed;
        display: none;
        bottom: 0;
        left: 0;
        padding: max(2rem, var(--gutter)) var(--gutter);
        height: fit-content;
        width: fit-content;
        line-height: 1.2rem;
        z-index: 2;
    }

    #mainMenuOpenBtn, #mainMenuCloseBtn {
        border: 0;
        background: none;
    }
    #mainMenuCloseBtn {
        height: 60px;
        margin: var(--gutter);
    }
    
/* MAIN MENU */  
    .mainMenu {
        position: fixed;
        left: -100%;
        top: 0px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        width: 100%;
        height: 100vh;
        background-color: var(--colorBackground);
        z-index: 3;
        transition: 0.3s;
    }
    .mainMenu.active {
        left: 0%;
    }
    .mainMenu li {
        padding-right: var(--spacer);
        min-height: max(55px, 8vh);
    }
    .mainMenu > li:first-child {
        padding-right: 0;
        min-height: fit-content;
    }
    .dropdown {
        display: none;
    }
        
/* SLIDEBAR ELEMENT */
    .slidebarCtr {
        display: none;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        width: 100%;
    }
    .slidebar {
        display: block;
        width: 100vw;
        width: 100%;
        height: 47px;
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none; 
    }
    .slidebar::-webkit-scrollbar {
        display: none;
    }
    .slidebar li {
        display: inline-block;
        height: auto;
        width: 50vw;    /* 50vw then 33vw after 420px */
        padding: 5px 5vw;
        text-align: center;
        color: var(--colorFont);
        scroll-snap-align: center;
    }
    .slidebar > :first-child {
        margin-left: 80vh;
    }
    .slidebar > :last-child {
        margin-right: 50vh;
    }
    .returnBtn {
        width: 100%;
        display: none;
        align-items: center;
        justify-content: center;
        height: 47px;
    }
    .returnBtn img {
        height: 60%;
    }
    
@media screen and (min-aspect-ratio: 5/4) {
    nav {
        height: 100%;
        width: auto;
    }
    .mainMenu {
        width: 50vw;
    }
    #mainMenuCloseBtn {
        right: auto;
        left: calc(40vw - var(--gutter));
    }
}

@media (min-aspect-ratio: 5/4) {
    .slidebar li {
        width: 20vw;
    }
}

@media screen and (min-width: 480px) {
    .slidebar li {
        width: 33vw;
    }
}

@media screen and (min-width: 768px) {
    .navLinksCtr {
        height: 65px;
    }
}
@media screen and (min-width: 1281px) {
    
/* NAV ELEMENT */
    .navLinksCtr {
        height: 70px;
        z-index:3;
    }
    .iconCtr {
        display: none;
    }
    .submenuCtr {
        height: 50px;
    }
    .slidebarArrows {
        display: none;
    }
    .footerTxt {
        background: var(--colorBackground);
    }
    #mainMenuOpenBtn, #mainMenuCloseBtn {
        display: none;
    }
    
/* MAIN MENU */
    .mainMenu {
        position: absolute;
        left: 0;
        width: 100%;
        padding: 0;
        padding-top: 150px;
        transition: 0s;
        background: none;
        z-index: 2;
        transition: 0s;
        z-index: 2;
    }
    .mainMenu.hide {
        display: none;
    }
    .mainMenu li {
        display: inline-flex;
        align-items: center;
        width: auto;
        background: var(--colorBackground);
        cursor: pointer;
        transition: 0s;
    }
    .mainMenu li:hover > * {
        color: var(--colorFade);
    }
    .productMenu a {
        pointer-events: none;
    }
    .dropdown {
        display: none;
        position: absolute;
        flex-flow: column;
        align-items: flex-start;
        justify-content: center;
        opacity: 0;
        top: 0;
        left: 20vw;
        height: 100vh;
        width: 22vw;
        padding-left: var(--spacer);
        background-color: var(--colorBackground);
    }
    .dropdown.active {
        display: flex;
        animation: dropdownAnim 0.5s;
        opacity: 1;
    }
    @keyframes dropdownAnim {
        0% {opacity: 0;}
        100% {opacity: 1;}
    }
    .dropdown li a {
        pointer-events: auto;
    }
}