: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: "mont", sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-content {
    width: var(--whole-w);
    height: 100%;
    font-size: 1rem;
    display: flex;
    gap: 0px;
    padding: 0 50px;
    align-items: center;
    justify-content: center;
    position: relative;
}

#title-hold {
    display: flex;
    width: fit-content;
    height: 100%;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
}

#title-logo {
    height: 100%;
}

#title-logo svg, #title-logo path {
    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 {
    width: 100%;
    height: 100%;
}

.nav-buttons {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 0px;
    font-family: "mont", sans-serif;
}

.nav-links.left .nav-buttons {
    justify-content: end;
}

.nav-links.right .nav-buttons {
    justify-content: start;
}

.nav-links-mobile {
    display: none;
}

.nav-button-hold {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-button-hold.active {
    background-color: var(--fg);
}

.nav-button {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

#bars-hold {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    background-color: var(--bg);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

#bars {
    width: 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateX(-50%);
}

#bars div {
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 4px;
    background-color: #000;
    border-radius: 10px;
    transform: translateY(-50%);
    transition: .2s cubic-bezier(.5, .5, 0, 1);
}
#bars .top-bar {transform: translateY(calc(-50% - 10px))}
#bars .bot-bar {transform: translateY(calc(-50% + 10px))}

#bars-hold.active #bars .top-bar {transform: translateY(-50%) rotate(45deg)}
#bars-hold.active #bars .mid-bar {width: 0}
#bars-hold.active #bars .bot-bar {transform: translateY(-50%) rotate(-45deg)}