header {
  position: sticky;
  top: 0;
  background-color: #F5F7FA;
}

#navbar {
    height: 6em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;

}

#navbar #logo img {
    text-decoration: none;
    height: 10em;
    left: -25px;
    position: relative;
}

#menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#menu li {
    position: relative;
}

#menu li a {
    display: inline-block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 2em;
}

#hamburger {
    display: none;
    text-decoration: none;
    font-size: 3em;
    padding-right: 0.5em;
    transition: transform 0.3s ease;
    color: black;
}

@media screen and (min-width: 601px) {
    nav {
        min-height: 5em;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 600px) {
    #navbar {
        height: 6em;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #hamburger {
        display: flex;
        align-items: flex-end;
    }

    #menu {
        display: none;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        flex: 100%;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    #menu.open {
        display: flex;
    }

    #menu li {
        display: block;
    }

    #menu li.dropdown {
        display: block;
        max-height: 500px;
    }

    #menu li a {
        display: block;
        text-align: left;
    }
}
