:root {
    --headerBackgroundColor: rgb(255, 255, 255);

}

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Push items to opposite ends */
    align-items: center; /* Center elements vertically */
    
    padding: 0.8em 1em ;
    

    background-color: var(--headerBackgroundColor);
    box-shadow: 1px 1px 5px 0px rgb(224, 218, 218);
    text-align: center;
}

a {
    text-decoration: none;
    color: black;
    transition: opacity 0.3s ease-in-out;
}

a:hover {
    opacity: 0.3;
}

#title {
    margin: 0;
    font-size: larger;
    max-width: 70vw;
    text-align: left;

}

#menuSVG {
    width: 1.6em;
    height: 1.6em;
}

.menuBtn {
    stroke: #fff;
    fill: var(--headerBackgroundColor);
    fill-opacity: 0;
    stroke-opacity: 0;
    transition: 0.2s;
    cursor: pointer;
}
.menuBtn:hover {
    fill-opacity: 0.5;
}

#dropdownMenu {
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    position: absolute;
    top: 4em;
    right: 2%;
    overflow: hidden;
    max-height: 0px;
    background-color: white;
    border-radius: 10px;
    transition: 0.3s;
}
#dropdownMenu > * {
    padding: 1em;
}

#dropdownMenu.open-menu {
    max-height: 400px;
    box-shadow: 3px 3px 8px rgb(216, 216, 216);
}

@media only screen and (min-width: 800px){
    header {
        display: flex;
        padding: 0.3em 1.3em;
    }

    #menuSVG {
        display: none;
    }
    
    #dropdownMenu {
        position: initial;
        display: flex;
        flex-direction: row;
        max-height: none;
        background-color:unset;
    }
}
