:root {
    --header-height: 80px
}
/*
#background {
    height: var(--header-height);
    width: 100vw;
    background: #f1e3d3;
}
*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header, .navbar {
    border-radius: 0 0 0px 0px;
}

.navbar {
    display: flex;
    background-color: whitesmoke;
    align-items: center;
    padding: 0 20px;
    height: var(--header-height);
    box-sizing: border-box;
    justify-content: space-between;
}

.navbar-logo img{
    height: 100%;
    max-height: var(--header-height);
    width: auto;
}

.navbar-menu {
    margin: 0;
    padding: 0;
    height: 100%;
}

.navbar-menu .navbar-menu-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%
}

.navbar-menu .navbar-menu-list li {
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
}

.navbar-menu .navbar-menu-list li a {
    display: flex;
    text-decoration: none;
    height: 50%;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s ease-in-out;
    color: black;
    background-color: transparent;
    margin: 1em 1em;
}

.navbar-menu .navbar-menu-list li:hover,
.navbar-menu .navbar-menu-list li a:hover {
    --thickness: 5px;
    .project {
        border-bottom: var(--thickness) solid #A96299;
    }
    .lab {
        border-bottom: var(--thickness) solid #99c1b9;
    }
    .engagement {
        border-bottom: var(--thickness) solid #d88c9a;
    }
    .ai-tool {
        border-bottom: var(--thickness) solid #f2d0a9;
    }
    .team {
        border-bottom: var(--thickness) solid #c5d2c6;
    }
}

.dropdown-content {
    --thickness: 3px;
    position: absolute;
    background-color: whitesmoke;
    min-width: fit-content;
    width: 100%;
    left: 0;
    border-radius: 0 0 10px 10px;
    top: 100%;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dropdown-shadow {
    box-shadow: 0px 2px 16px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 100%;
    z-index: 1;
    border-radius: 0 0 10px 10px;
}

.dropdown-content a:hover {
    background-color: lightgray;
}

.navbar-menu-list li:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

header.team-hover,
.navbar.team-hover {
    border-radius: 0 0 0 20px;
}