
header { 
    z-index: 9000;
    position: relative;
    font: bold 16px degular,sans-serif;
    display: flex;
}
header::after {
    content: '';
    clear: both;
    display: block;
}

header a { 
    text-decoration: none;
    color: black;
}
header .row { 
    width: 100%;
}
#header-nav {
    flex-basis: fit-content;
    flex-grow: 10;
    padding: 2rem 8rem 2rem 0;
    margin-left: auto;
}

#header-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background: white;
    float: right;
}

#header-nav li a {
    position: relative;
    display: block;
    width: 100%;
}
#header-nav li.menu-item-has-children {
    position: relative;
}
#header-nav li.menu-item-has-children a:after {
    font-size: .7rem;
    content: ' \25BC';
}
#header-nav li.menu-item-has-children.open a:after {
    content: ' \25B2';
}
#header-nav li.menu-item-has-children .sub-menu a:after,
#header-nav li.menu-item-has-children.open .sub-menu a:after {
    content: '';
}
#header-nav button.donate {
    background: red;
    position: absolute;
    right: 2rem;
    top: 24px;
    border: 2px solid #000;
    padding: 0.25rem .75rem; 
    font: bold 14px degular,sans-serif;
    color: white;
    text-decoration: none;
}

#header-nav.open #popout-close,
#popout-close {display: none;}
#header-nav .sub-menu { display: none; }
#header-nav li.open .sub-menu { display: block; }
#header-nav ul.sub-menu {
    border: 0;
    margin: 0;
    padding: 0;
    float: none;
    background: white;
    white-space: nowrap;
}
#header-nav ul.sub-menu li {
    border: none;
    font-weight: normal;
    padding-top: 2rem;
    margin: 0;
    float: none;
    position: relative;
}
#header-nav ul.sub-menu li:first-of-type {
    padding-top: 1rem;
    z-index: 9001;
}
#header-nav .sub-menu li a {
    position: absolute;
    left: 0;
}

header .logo img {
    height: auto;
    object-fit: contain;
    max-height: 150px;
    padding: 26px;
    width: 240px;
}
header .logo {
    padding-right: 0;
}

header #nav-hamburger {
    display: none;
}
#header-nav li {
    float: left;
    margin-left: 1.7rem;
}
#header-nav li:first-of-type {
    margin-left: 0;
}


/* Desktops */
@media only screen and (min-width:992px) {
}

/* Tablets */
@media only screen and (max-width: 991px) {
}
/* Mobile */
@media only screen and (max-width: 765px) {
    header .logo img {
        width: 157px;
        padding: 17px;
    }
    header #nav-hamburger {
        display: block;
        position: absolute;
        right: 12px;
        top: 9px;
        text-align: right;
        padding: 0;
        width: auto;
    }
    #header-nav {
        position: fixed;
        right: 0;
        left: 0;
        width: auto;
        font-size: 30px;
        background: white;
        padding: 0 1rem;
    }
    #header-nav.open #popout-close { 
        display: block;
        position: absolute;
        right: 12px;
        top: 9px;
    }
    /* begin hamburger menu */
    #header-nav ul {
        list-style-type: none;
        padding: 0;
        display: block;
        margin: 60px 0 0;
        border-top: 2px solid black;
        width: 100%;
    }
    #header-nav li {
        width: auto;
        margin: 0;
        float: none;
        padding-bottom: .5rem;
        padding-top: .5rem;
        border-bottom: 1px solid #D1D1D1;
    }
    #header-nav li a {
        text-align: left;
    }
    #header-nav li:last-of-type {
        border-bottom: 0;
    }
    #header-nav li.menu-item-has-children a:after {
        position: absolute;
        right: 20px;
        top: 0;
    }
    #header-nav a.donate {
        position: fixed;
        left: 15px;
        top: 5px;
    }
    #header-nav button.donate {
        top: 0;
        left:0;
        position: relative;
    }
    #header-nav.open { display:block; z-index: 900; }
    #header-nav { display:none; }
    #header-nav ul.sub-menu {
        position: relative;
        font-size: 25px;
    }
    #header-nav ul.sub-menu li,
    #header-nav ul.sub-menu li:first-of-type {
        left: 1rem;
        padding: 0;
        line-height: 40px;
        font-size: 25px;
    }
    #header-nav ul.sub-menu li a {
        position: relative;
    }

    #header-nav li.menu-item-has-children a:after {
        font-size: 30px;
    }

    /* end hamburger menu */

}
/* small mobile */
@media only screen and (max-width: 575px) {
    header .logo img {
        max-height: 90px;
    }
}
