nav {
    height: 12vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 9999;
    transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
    background: var(--bg);
}

.nav-dark {
    background: var(--bg);
}

nav .options {
    width: 45%;
    height: 100%;
    justify-content: space-evenly;
    font-size: 0.85vw;
}

.navItem.connect img {
    height: 0.8vw;
    margin-left: 0.5vw;
    width: auto;
}

.options a {
    color: inherit;
    text-decoration: none;
}

nav .logo {
    width: 10%;
    height: 100%;
}

nav .logo img {
    height: 75%;
    width: auto;
}

.navItem.connect {
    background: var(--dark-primary);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 100px;
    color: var(--bg);
    transition: background 300ms ease-out;
    display: flex;
    align-items: center;
}

.navItem.connect::after {
    display: none;
}

.navItem {
    cursor: pointer;
    position: relative;
}

.navItem.active {
    font-weight: 600;
}

.navItem::after {
    position: absolute;
    content: "";
    top: calc(50% + 0.425vw + 3px);
    transform: translateY(-50%);
    border-radius: 100px;
    left: 0;
    height: 1px;
    width: 0%;
    background: rgb(0, 0, 0);
    transition: width 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navItem:hover::after {
    width: 100%;
}

.navItem.active::after {
    width: 100%;
}

.collection {
    position: relative;
    height: 100%;
}


.collection:hover .collectionOptions {
    transform: none;
    opacity: 1;
    color: black;
    font-weight: 400;
    pointer-events: all;
}

.collectionOptions {
    position: absolute;
    background: var(--bg);
    border: 1px solid rgba(128, 128, 128, 0.25);
    padding: 0.5vw 1px;
    left: -2vw;
    top: 75%;
    width: calc(250% + 4vw);
    height: max-content;
    display: flex;
    flex-direction: column;
    font-size: 1vw;
    border-radius: 1vw;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    transform: rotate(1deg) translateY(30px);
    pointer-events: none;
    opacity: 0;
    transition: all 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
}


.collectionOptions a {
    height: 2.5vw;
    padding: 0 2vw;
    display: flex;
    align-items: center;
    transition: padding 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: inherit;
    text-decoration: none;
}

.collectionOptions a:hover {
    box-sizing: border-box;
    padding-left: 2.5vw;
    background: hsl(40, 33%, 89%);
}

.collectionOptions a.hoverred {
    box-sizing: border-box;
    padding-left: 2.5vw;
    background: hsl(42, 23%, 85%);
}

.collectionOptions>a:nth-last-child(1):after {
    display: none;
}

.displayNone {
    display: none;
}

.mobileOptions,
.mobileMenuButton {
    display: none;
}

@media (max-width: 599px) {
    nav {
        height: 8vh;
        justify-content: space-between;
        padding: 0 4vw;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(136, 136, 136, 0.3);
        transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1) 100ms;
    }

    nav.opened {
        background: var(--dark-secondary);
        transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    .options {
        display: none !important;
    }

    .mobileOptions a {
        color: inherit;
        text-decoration: none;
    }

    .mobileMenuButton {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 75%;
        aspect-ratio: 1 / 1;
        transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    nav.opened .mobileMenuButton{
        background: var(--bg);
        border-radius: 100vw;
        transform: rotate(270deg);
        color: black;
    }

    .mobileMenuButton .bi {
        height: 8vw;
        width: 8vw;
    }

    .mobileOptions {
        display: flex !important;
        position: absolute;
        flex-direction: column;
        align-items: start !important;
        justify-content: start !important;
        top: 100%;
        box-sizing: border-box;
        left: 0;
        height: calc(92dvh + 1px) !important;
        min-width: 100vw;
        max-width: 100vw;
        background: var(--bg);
        box-sizing: border-box;
        padding: 0 4vw !important;
        background: var(--dark-secondary);
        padding-top: 1vh !important;
        opacity: 0;
        pointer-events: none;
        transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1) 100ms;
    }

    nav.opened .mobileOptions {
        transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
        opacity: 1;
        pointer-events: all;
    }

    .navItem.active {
        font-weight: 300;
    }

    .navItem.active::after {
        width: 8px;
        height: 8px;
        display: flex;
    }

    .navItem::after {
        position: absolute;
        content: "";
        border-radius: 100%;
        background: rgb(0, 0, 0);
        left: 100%;
        top: 50%;
        transform: translateY(-50%) translateX(-100%);
        display: none;
    }

    .mobileNavCont1,
    .mobileNavCont2 {
        background: var(--bg);
        border-radius: 4vw;
        width: 100%;
        height: 55vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        font-size: 6.5vw;
        box-sizing: border-box;
        padding: 8vw;
        margin-bottom: 1.5vh;
        font-weight: 300;
        opacity: 0;
        transform: rotate(5deg) translateY(10vh);
        transition: all 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
        color: black;
    }

    .navItem {
        width: 100%;
        height: max-content;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }



    .mobileNavCont2 {
        position: absolute;
        top: calc(55vw + 2.5vh);
        width: calc(100% - 8vw);
        height: max-content;
        display: flex;
        flex-direction: column;
        justify-content: start !important;
        align-items: start !important;
        transform: rotate(-5deg) translateY(10vh);
        z-index: 99999;
    }

    .mobileNavCont2.navDropped{
        top: 1vh;
    }

    .mobileNavCont2.navDropped .collectionOptions2{
        max-height: 105vw;
        opacity: 1;
        pointer-events: all;
        margin-top: 8vw;
    }

    .collectionOptions2 {
        left: 0;
        width: 100%;
        max-height: 0;
        top: 100%;
        display: flex;
        flex-direction: column;
        opacity: 0;
        pointer-events: none;
        transition: all 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
        margin-top: 0vw;
    }

    .collectionOptions2 a{
        margin-bottom: 4vw;
        display: flex;
        justify-content: space-between;
    }

    .collectionOptions2 a:nth-last-child(1){
        margin-bottom: 0;
    }

    .navItem.connect {
        background: black;
        border-radius: 4vw;
        padding: 6vw 8vw;
        font-size: 6.5vw;
        font-weight: 300;
        justify-content: space-between;
        width: 100%;
        transform: rotate(-5deg) translateY(10vh);
        transition: all 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
        margin-top: calc(6.5vw + 17.5vw + 1.5vh);
    }

    .navItem.connect img {
        height: 7vw;
        margin-left: 0vw;
        width: auto;
        transform: rotate(-45deg);
    }

    nav.opened .mobileNavCont1,
    nav.opened .mobileNavCont2,
    nav.opened .connect {
        opacity: 1;
        pointer-events: all;
        transform: rotate(0deg) !important;
    }

}