:root {
    --nav-h: 60px;
}

nav {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 2;

    width: 100%;
    height: var(--nav-h);
    transform: translateX(-50%);

    border-bottom: 1px var(--bg-2) solid;

    background-color: var(--root);
    color: var(--txt);

    font-family: var(--text-font);

    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-content {
    width: var(--whole-w);
    height: 100%;
    display: flex;
    gap: 10px;
    padding: 0 50px;
}

#title-hold {
    display: flex;
    width: fit-content;
    height: 100%;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-family: var(--brand-font);
}

#title-logo {
    height: 100%;
}

#title-logo img {
    height: 100%;
}

#title-text {
    font-family: var(--title);
    font-size: 1rem;
    font-weight: bold;
    color: var(--txt);
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links {
    height: 100%;
    margin-left: auto;
    margin-right: 0;
}

.nav-buttons {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    font-family: var(--body);
}

.nav-button-hold {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.nav-button-hold:hover {
    background-color: var(--bg-2);
}

#bars-hold {
    display: none;
    background-color: var(--bg-2);
    width: auto;
    aspect-ratio: 1;
    height: 100%;
    border: none;
    position: relative;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#bars {
    width: 30px;
    position: relative;
    transform: translate(-50%, -2.5px);
    transition: .1s cubic-bezier(.5,.5,0,1);
}
#bars-hold:active #bars {
    transform: scale(.8) translate(-50%, -2.5px);
}

#bars div {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #000;
    width: 100%;
    height: 5px;
    border-radius: 10px;
    transform-origin: center;
    transform: none;
    transition: .3s cubic-bezier(.5, .5, 0, 1);
}

#bars div.top-bar {
    transform: translateY(-11px);
}
#bars div.bot-bar {
    transform: translateY(11px);
}

.engaged #bars div.top-bar {
    transform: rotate(45deg);
}
.engaged #bars div.mid-bar {
    width: 0;
}
.engaged #bars div.bot-bar {
    transform: rotate(-45deg);
}