.nav {
    flex: 0.005;
    position: relative;
    margin: calc(1vw + 1vh);
    padding: calc(0.5vw + 0.5vh);
    background-color: rgba(var(--bg-color--rgb), var(--bg-color--alpha));
    font-size: 1rem;
    font-weight: bold;
    border-radius: 2vmin;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    align-items: center;
    color: var(--text-color);
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.nav-center {
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex: 1;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
}

.nav img {
    width: 3rem;
    height: auto;
    align-items: center;
}

.nav a {
    color: var(--text-color);
    padding: 1.4vmin;
    border-radius: 1.8vmin;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.nav button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 1.4vmin;
    border-radius: 1.8vmin;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: inline;
    z-index: 20;
}

.nav button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.mobile-nav-menu-button {
    display: none !important;
}

@media (max-width: 768px) {

    .nav-center {
        display: none;
    }

    nav .nav-right {
        white-space: nowrap;
    }

    .mobile-nav-menu-button {
        display: inline-block !important;
    }
}

@media (max-width: 480px) {
    .language-name {
        display: none;
    }
}