:root{
    --navbar-height: max(100px,6vw);
    --footer-height : 150px;
    --navbar-animation-delay: 1s;
    --navbar-animation-bezier: ease;

}

.orage-navbar{
    display: flex;
    position: fixed;
    width: 100vw;
    left: 0;
    top: 0;
    flex-direction: row;
    background-color: var(--orage-navbar-color);
    height: var(--navbar-height);
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 12px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.navbody{
    margin-top: var(--navbar-height);
}
.navbar-item-container{
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    height: max-content;
}
.navbar-item{
    padding: 5px 20px 5px 20px;
    margin: 0;
    border-radius: 10px;
    color: #f3f0ff;
    transition: transform 0.2s ease;
}
.navbar-item:not(.orage-active):not(.profile-container):hover{
    background-color: #4c566a;
}
.profile-container:hover{
    background-color: #364fc7;
}
.navbar-item:not(.profile-container):hover{
    transform: rotate(1deg) scale(1.075);
}
.orage-active {
    background: #3f4244;
    position: relative;
    box-shadow: 0 4px 16px rgba(33,37,41,0.10);
    z-index: 11;
}
.profile-container{
    background: var(--orage_dark_blue_hover);
    position: relative;
    box-shadow: 0 4px 16px rgba(33,37,41,0.10);
    z-index: 11;
}

.navbar-item a{
    width: 100%;
    height: 100%;
    font-style: normal;
    text-decoration: none;
    color: #f3f0ff;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline-block;
}
.orage-active::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 3px;
    border-radius: 2px;
    background: var(--orage-accent-color);
    opacity: 0.95;
    pointer-events: none;
}
.navbarlogo{
    height: var(--navbar-height);
    width: var(--navbar-height);
    aspect-ratio: 1/1;
    min-width: var(--navbar-height);
    min-height: var(--navbar-height);
    max-width: var(--navbar-height);
    max-height: var(--navbar-height);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.logo{
    margin-top: 10px;
    width: auto;
    height: min(50%,75px);
    object-fit:cover;
}
.navbarlogo p {
    margin: 0;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    color: white;
}
.navbar-mobile{
    visibility: hidden;
}
.profile-dropdown{
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--orage-navbar-color);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    width: 100%;
    z-index: 100;
}
.profile-dropdown a{
    width: 100%;
    padding: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
}
/* MOBILE MODE*/
@media (max-width: 850px) {
    .navbar-mobile{
        visibility: visible;
        width: var(--navbar-height);
        height: auto;
        aspect-ratio: 1/1;
        position: static;
        float: left;
        margin-left: 0;
        margin-right: auto;
        left: 0;
        right: unset;
        transition: margin var(--navbar-animation-delay) var(--navbar-animation-bezier);
    }
    .navbar-item:hover{
        transform: rotate(0) scale(1.05);
    }
    .navbarlogo{
        visibility: hidden;
        position: fixed;
    }
    .navbar-icon{
        filter : invert(90%) contrast(95%);
    }
    .logo{

        height: calc(0.5*var(--navbar-height));
    }
    .navbar-mobile:hover{
        border-radius: 0% 0% 0% 10px;
        background-color: #4c566a;
    }
    .navbody{
        margin-top: 0;
    }
    .navbar-mobile img{
        position: relative;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        margin: 0 ;
    }
    .navbar-item a{
        font-size: 20px;
    }
    .orage-navbar{
        height: var(--navbar-height);
        width:  var(--navbar-height);
        padding: 0;
        display: flex;
        align-items: left;
        flex-direction: column;
        justify-content: left;
        position: fixed;
        right: 0;
        top: 0;
        left: unset;
        border-radius: 0% 0% 0% 10px;
        transition: width var(--navbar-animation-delay) var(--navbar-animation-bezier);
    }
    .expand{
        width: calc(2*var(--navbar-height));
        height: fit-content;
    }
    .navbar-item-container{
        visibility: hidden;
        height: 0;
    }
    .expand .navbar-mobile{
        border-radius: 0;
    }
    .expand .navbar-item{
        border-radius: 0;
    }
    .expand .navbar-item-container{
        visibility: visible;
        display: table-row;
        flex-direction: row;
        height: fit-content;
        width: 100%;

    }
    .navbar-item{
        width: 100%;
        margin: 0;
        padding: 0;
        padding-bottom: 10px;
        text-overflow: clip;
        white-space: nowrap;
        overflow: visible;

    }
    .profile-dropdown{
        position: relative;

        background-color: var(--orage-navbar-color);
        border: 1px solid #ccc;
        border-radius: 4px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        display: none;
        flex-direction: column;
        width: 100%;
        z-index: 100;
    }
    .expand .profile-container{
        padding-bottom: 0;

    }
    .expand .profile-container:focus-within, .expand .profile-container:hover,.expand .button-profile-active{
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-bottom: 5px;
    }

}
.orage-icon{
    width: 1.5em;
    height: 1.5em;
    margin-right: 8px;
    vertical-align: middle;
    filter: invert(100%);
}

.profile-dropdown a:hover{
    background-color: #4c566a;
}

/* Show dropdown when profile-container is focused within */
.profile-container:focus-within .profile-dropdown , .profile-container:hover .profile-dropdown, .button-profile-active .profile-dropdown{
    display: flex;
    border: 0;
}
.profile-container:focus-within .button-profile{
    filter: brightness(1.3);

}
.button-profile{

    cursor: pointer;
}
footer{
    width: 100%;
    height: var(--footer-height);
    margin-bottom: 0;
    padding-bottom: 0;
    position: relative;
    top: 100%;
    background: var(--orage-navbar-color);
}

