/* HEADER */

header {
    display: flex;
    position: fixed;
    z-index: 2;
    width: 100vw;
    height: var(--header-height);
    background-color: #465645;
}

header > * {
    display: inline-flex;
    justify-content: center;
    flex: 1;
    margin: 0 25px;
}

/* NAV */

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 4 !important;
    gap: 10px;
    font-family: 'Ledger';
}

#nav-logo {
    justify-content: left;

}

#nav-logo a {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

#nav-logo img {    
    object-fit: contain;
    margin-right: auto;
    width: 200px;
}

#nav-overlay {
    position: fixed;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-color: #2c2c2c80;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

#nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 22px;
    cursor: pointer;
}

#nav-burger > div {
    transition: 0.3s ease;
}

.burger {
    width: 35px;
    height: 4px;
    border-radius: 2px;
    background-color: white;
}

.burger1 {
    rotate: -45deg !important;
    margin-bottom: -8.5px !important;
}

.burger2 {
    width: 0;
}

.burger3 {
    rotate: 45deg !important;
    margin-top: -8.5px !important;
}

.nav-links-toggle {
    right: 0 !important;
}

.nav-overlay-toggle {
    opacity: 1 !important;
    visibility: visible !important;
}

#nav-links {
    display: flex;
    flex-direction: row;
    gap: 1.5vw;
    font-size: 1.1vw;
    color: white;
    user-select: none;
}

#nav-links > a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: font-size 0.3s ease;
}

#nav-links > a:hover {
    font-size: 1.4vw;
}

#nav-contact {
    justify-content: right;
    align-items: center;
}

#nav-btn {
    width: 7vw;
    aspect-ratio: 7/3;
    font-size: 1.3vw;
    font-family: 'Ledger';
    border: #586D57 3px solid;
    background: transparent;
    border-radius: 5px;
    box-shadow: none;
}

@media screen and (max-width: 1000px) {

    /* HEADER */
    header {
        justify-content: end;
    }

    nav {
        position: fixed;
        flex-direction: column;
        flex: none !important;
        z-index: 3;
        justify-content: flex-start;
        gap: 30px;
    }

    #nav-logo {
        flex: 1;
        justify-content: center;
    }

    #nav-burger {
        display: flex;
        padding-top: calc(calc(var(--header-height) - 22px) / 2); /* 22px is the height of the burger menu */
        z-index: 4;
        align-items: center;
    }

    #nav-links {
        flex-direction: column;
        width: 250px;
        height: 100vh;
        z-index: 3;
        background-color: #5d715be5;
        padding-top: calc(calc(var(--header-height) / 2) + 42px);
        margin-top: calc(calc(var(--header-height) / -2) - 42px);
        align-items: center;
        right: -250px;
        position: fixed;
        top: 88px;
        transition: 0.35s ease;
        font-size: 17px;
    }

    #nav-links > a:hover {
        font-size: 19px;
    }

    #nav-contact {
        display: none;
    }
}

@media screen and (max-width: 600px) {

    /* HEADER */
    #nav-logo {
        justify-content: left;
    }

    #nav-logo img {
        width: 150px;
    }

}


