.topnav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: var(--topnav-height);
    background-color: var(--topnav-bg);
    box-shadow: 0 0 4px #0004;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 30px;
    z-index: 2;
}

.topnav .title {
    height: 100%;
}

.topnav .title a {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 10px;
    font-family: title, sans-serif;
    font-size: var(--h3);
    color: var(--col-dark);
    transition-timing-function: ease-in-out;
}

.topnav .title img {
    padding: 22px 0;
    height: 100%
}

.topnav .title svg {
    padding: 18px 0;
    height: 100%;
    transform: translateY(-1px);
}

.topnav .nav {
    margin-left: auto;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.topnav .nav .nav-button-hold {
    width: fit-content;
    height: 100%;
    position: relative;
}

.topnav .nav a.nav-button::before {
    content: '';
    position: absolute;
    top: calc(50% + 15px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 2px;
    background-color: var(--nav-col-hover);
    transition: .3s cubic-bezier(.98,0,.4,1);
}

.topnav .nav a.nav-button:hover::before {
    width: 70%;
}

.topnav .nav a.nav-button {
    display: flex;
    align-items: center;
    color: var(--nav-col);
    font-family: body, sans-serif, monospace;
    height: 100%;
    font-size: var(--h4);
    position: relative;
}
.topnav .nav a.nav-button:hover {
    color: var(--nav-col-hover);
}

.topnav .nav a.nav-button.hovered {
    animation: wobble 1s;
}

#bars {
    padding: 20px 0;
    height: 100%;
    cursor: pointer;
    transition: .1s;
    display: none;
    position: absolute;
    right: 30px;
}

#bars:hover {
    transform: scale(1.07);
}

@keyframes wobble {
    0% {transform: scale(1) rotate(0)}
    20% {transform: scale(1.1) rotate(-3deg)}
    40% {transform: scale(1.1) rotate(3deg)}
    60% {transform: scale(1.1) rotate(0)}
    100% {transform: scale(1) rotate(0)}
}