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

}

header {
    position: sticky;
    top: 0;
    left: 0;

    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    
    padding: 1em 1.5em;
    background-color: var(--headerBackgroundColor);
    box-shadow: 1px 1px 5px 2px 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;
}

/* Home link (left side) */
#homeLogo, #homeText {
    justify-self: start;
}
#homeText {
    display: none;
}

/* Title (middle) */
#title {
    margin: 0;
    font-size: large;
    grid-column: 2;
    max-width: 70vw;
    padding: 0em 0.5em;
}

/* Menu (right side) */
#menuSVG {
    width: 1.6em;
    height: 1.6em;
    justify-self: end;
}

.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){
    #homeText {
        display: inline;
    }
    #homeLogo {
        display: none;
    }
}
