﻿.headerlogo{
    width: 7rem;
    max-height: 7rem;
    margin-right: 10px;
}

.navbar {
    position: relative;
    background: var(--background-nav);
    padding: 0.5rem 0;
    min-height: 2rem;
    z-index: 1000;
    overflow-x: hidden;
}

.nav-link {
    font-size: 1.2rem;
    color: var(--text-shade);
    text-align: center;
    margin: 0.1rem 1rem;
    padding: 0.2rem 1.2rem;
    text-decoration: none;
}

.nav-item, .djustconnect-button, .logout-button {
    width: fit-content;
    border-radius: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.active, .nav-item:hover {
    background: var(--background-tint);
    color: var(--text);
}

.active .nav-link, .nav-item:hover .nav-link {
    color: var(--text);
}

.djustconnect {
    background: var(--primary);
    border-radius: 5rem;
    cursor: pointer;
}

.djustconnect-button {
    color: var(--text-alt);
    padding: .3rem 1.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    margin: 0;
}

.djustconnect-button:hover {
    color: var(--text);
}

.logout {
    background: var(--background);
    color: var(--text);
    border-radius: 5rem;
    cursor: pointer;
}

.logout-button {
    padding: .3rem 1.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.logout:hover {
    background: var(--primary);
}

.logout:hover .logout-button {
    color: var(--text-alt);
}

.copyrighttxt {
    text-align: center;
    margin-top: 20px;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 1rem auto;
    width: fit-content;
    gap: 1rem;
}

.firsthidden {
    display: none;
}

.visible {
    position: relative;
    display: flex;
    animation: show-down 1s ease-out forwards;
}

.hidden {
    position: relative;
    animation: hide-up 1.2s ease-out forwards;
}

.menu-button {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    margin: 0 0.2em;
    border: none;
    background-color: transparent;
    font-size: 1em;
    color: var(--text);
    cursor: pointer;
}

.icon span {
    display: block;
    width: 1.5em;
    height: 0.15em;
    margin: 0.35em auto;
    transition: all 0.5s;
    background-color: var(--text);
}

.icon span:last-child {
    background-color: var(--text);
}

@media screen and (min-width: 60rem) {
    .menu-button {
        display: none;
    }

    .nav-link {
        padding: .4rem 1.2rem;
        margin: 0;
    }

    .logout-button, .djustconnect-button {
        margin: 0;
        padding: .4rem 1.2rem;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        list-style-type: none;
        gap: 3rem;
        margin: .5rem auto;
        animation: none;
    }

    .visible {
        animation: none;
    }
}

@keyframes hide-up {
    0% {
        left: 0;
        margin-top: 1em;
        opacity: 1;
    }

    60% {
        left: 110%;
        margin-top: 1em;
        opacity: 0.5;
    }

    100% {
        visibility: hidden;
        left: 110%;
        margin-top: -100%;
        opacity: 0;
    }
}

@keyframes show-down {
    0% {
        left: -100%;
        margin-top: -100%;
        opacity: 0;
    }

    40% {
        left: -100%;
        margin-top: 1em;
        opacity: 0;
    }

    100% {
        left: 0;
        margin-top: 1em;
        opacity: 1;
    }
}