* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    margin: 0;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero {
    position: relative;

    background: transparent;

    display: -webkit-flex;
    -webkit-justify-content: space-around;
	-webkit-align-items: center;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.hero-content {
    text-align: center;
    width: 66%;

    color: #FAEDE3;
    font-family: 'Moret', serif;
    font-size: 5.4rem;
    font-weight: bold;
}

.header {
    padding: 1%;
    z-index: 100;
    position: fixed;

    width: 100vw;

    display: -webkit-flex;
    -webkit-justify-content: space-between;
    -webkit-align-items: flex-start;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-nav-bar {
    color: #FAEDE3;

    display: -webkit-flex;
    -webkit-justify-content: space-between;
    
    display: flex;
    justify-content: space-between;

    /* width: calc(100vw - 324px); */
    max-width: 1200px;
}

.header-nav-link {
    font-family:'Mundial', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
    vertical-align: middle;
    margin: auto 20px auto 20px;
}

.header-nav-link:hover {
    text-underline-offset: 10px;
    text-decoration: underline;
}

.header-nav-bar.mobile-header {
    display: none;
}

/* Hamburger Nav Begin  */

#hamburger_toggle {
  opacity: 0;
  cursor: pointer;
}
#hamburger_toggle:checked + .hamburger-button > span {
  transform: rotate(45deg);
}
#hamburger_toggle:checked + .hamburger-button > span::before {
  top: 0;
  transform: rotate(0deg);
}
#hamburger_toggle:checked + .hamburger-button > span::after {
  top: 0;
  transform: rotate(90deg);
}
#hamburger_toggle:checked ~ .hamburger-menu {
  left: 0 !important;
}

.hamburger-menu-icon-fallback {
    width: 32px;
    height: 32px;
    /* display: none; */
}

@supports selector(#hamburger_toggle:checked + .hamburger-button > span::after) {
    .hamburger-menu-icon-fallback {
        display: none;
    }
}

.hamburger-button {
  position: fixed;

  width: 32px;
  height: 32px;

  display: -webkit-flex;
  -webkit-align-items: center;

  display: flex;
  align-items: center;
  
  cursor: pointer;
  z-index: 100;
}

@supports (content: '') {
    .hamburger-button > span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: rgb(173, 116, 104);
        transition-duration: .25s;
    }

    .hamburger-button > span::after {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: inherit;
        transition-duration: .25s;
    }

    .hamburger-button > span::before {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: inherit;
        transition-duration: .25s;
    }

    .hamburger-button > span::after {
        content: '';
        top: 8px;
    }

    .hamburger-button > span::before {
        content: '';
        top: -8px;
    }
}

/* Not supported by Safari 9 */
.hamburger-button.beige > span {
    background-color: #FAEDE3 !important;
}

.hamburger-button.green > span {
    background-color: #18483D !important;
}



.hamburger-menu {
    background: linear-gradient(to right, rgba(0,0,0,0.7) 65%, rgba(0,0,0,0.0));

    color: white;

    display: block;
    position: absolute;
    top:0;
    left: -150%;

    margin-top: 0;
    padding-top: 96px;

    height: 100vh;
    width: 80vw;

    list-style: none;

    transition-duration: 0.2s;
}

.hamburger-item {
    margin-bottom: 18px;
    margin-top: 18px;
    max-width: 80vw;
}

.header-nav-link-hamburger {
    font-family:'Mundial', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    vertical-align: middle;

    text-shadow: 4px 2px rgba(0, 0, 0, 0.5);
}

/* Hamburger Nav End */

.header-nav-bar.green {
    color: #18483D;
}

.header-logo {
    width: 198px;
}

.header-logo.beige {
    filter: brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(1405%) hue-rotate(300deg) brightness(99%) contrast(97%);
}

.footer {
    color: #FAEDE3;
    background-color: #1C2E2B;

    overflow: hidden;
}

.footer-main {
    padding: 2.5%;
}

.footer-nav {
    display: -webkit-flex;
    -webkit-justify-content: space-between;
    -webkit-align-items: center;

    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 75vw;
}

.footer-logo {
    width: 340px;
}

.footer-flexbox {
    display: -webkit-flex;
    -webkit-justify-content: space-between;
    -webkit-align-items: center;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav-header {
    font-family: 'Moret', serif;
    font-weight: bold;
    font-size: 2.75rem;
    margin-right: 12px;
}

.footer-nav-link {
    font-family:'Mundial', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    margin-left: 8px;
    margin-right: 8px;
    text-align: center;
}

    .footer-nav-link:hover {
    text-underline-offset: 10px;
    text-decoration: underline;
}

.footer-logo {
    /* width: 340px; */
    /* width: max(120px, 18%); */
    width: 18%;

    filter: brightness(0) saturate(100%) invert(84%) sepia(5%) saturate(1291%) hue-rotate(112deg) brightness(83%) contrast(87%);
    opacity: 41%;
}

.footer-contact-us-header {
    margin-bottom: 22px;

    font-family: 'Moret', serif;
    font-weight: bold;
    font-size: 2.75rem;
    text-underline-offset: 10px;
    text-decoration: underline;
}

.footer-contact-us-text {
    margin: 4px 0px 4px 0px;
    font-family: 'Mundial', sans-serif;
    font-weight: bold;
    font-size: 1.5rem; 
}

.footer-grants-message {
    background-color: #B34A31;
    padding: 24px;

    color: #E0CFC7;
    font-family: 'Mundial', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    text-align: center;
    
}

.footer-copyright {
    font-family: 'Mundial', sans-serif;
    font-weight: 600;
    font-size: 2rem;
}

.centering-flex {
    display: -webkit-flex;
    -webkit-justify-content: space-around;
    -webkit-box-align: center;
    -webkit-align-items: center;

    display: flex;
    justify-content: center;
    align-items: center;
}

.round-button {
    border-radius: 38px;
    min-width: 25vw;
    padding: 16px 10px 16px 16px;

    font-family: 'Mundial', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
}

.green-button {
    background-color: #18483D;
    color: #FAEDE3
}

.green-button:hover {
    background-color: #18483D;
}

.blue-button {
    background-color: #374854;
    color: #FAEDE3;
}

.blue-button:hover {
    background-color: #374854;
}

.color-change {
    transition: color 0.5s; /*, filter 0.2s; */
}

.header.fallback-background {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 80%, transparent 100%);
}

.color-change {
    /* Fallback for lack of modern JS support */
    color: white; 
}

.green {
    color: #18483D;
}

.beige {
    color: #FAEDE3;
}

svg.green {
    fill: #18483D;
}

svg.beige {
    fill: #FAEDE3;
}

@media screen and (max-width: 1800px) {
    .footer-nav {
        width: 83%;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 1600px) {
    .header-nav-link {
        font-size: 1.4rem;
    }

    .footer-nav {
        width: 90%;
    }

    .footer-nav-link {
        font-size: 1.3rem;
    }

    .footer-contact-us-text {
        font-size: 1.3rem;
    }

    .footer-copyright {
        font-size: 1.3rem;
    }

}

@media screen and (max-width: 1400px) {
    .header-nav-link {
        font-size: 1.2rem;
    }

    .footer-nav {
        width: 100%;
    }

    .footer-nav-link {
        font-size: 1.2rem;
    }

    .footer-contact-us-text {
        font-size: 1.2rem;
    }

    .footer-copyright {
        font-size: 1.2rem;
    }

}

@media screen and (max-width: 1200px) { 
    .hero-content {
        width: 70%;
        font-size: 5.2rem;

        padding-top: 50px;
    }

    .header-logo {
        width: 150px;
    }

    .footer-grants-message {
        font-size: 1.8rem;
    }

    .footer-nav-header {
        font-size: 2.5rem;
    }

    .footer-nav-link {
        font-size: 1.1rem;
    }

    .footer-contact-us-header {
        font-size: 2.5rem;
        text-underline-offset: 8px;
    }

    .footer-contact-us-text {
        font-size: 1rem;
    }

    .footer-copyright {
        font-size: 1rem;
    }

}

@media screen and (max-width: 1000px) {
    .hero-content {
        width: 80%;
        font-size: 5rem;

        padding-top: 75px;
    }

    .header-logo {
        width: 125px;
    }

    .footer-grants-message {
        font-size: 1.6rem;
    }

    .footer-nav-header {
        font-size: 2.25rem;
    }

    .footer-nav-link {
        font-size: 1rem;
    }

    .footer-contact-us-header {
        font-size: 2.25rem;
        text-underline-offset: 6px;
    }

}

@media screen and (max-width: 800px) { 
    .header-nav-bar.full-header {
        display: none;
    }

    .header-nav-bar.mobile-header {
        display: block;
        text-align: left;
        text-align-last: left; /* Fix for iPhone 16 Safari */
    }

    .header-nav-bar {
        margin-right: 36px;
    }

    .hero-content {
        width: 90%;
        font-size: 4.5rem;

        padding-top: 100px;
    }

    .footer-grants-message {
        font-size: 1.4rem;
    }

    .footer-nav-header {
        font-size: 2rem;
    }

    .footer-contact-us-header {
        font-size: 2rem;
        text-underline-offset: 6px;
    }

}

@media screen and (max-width: 650px) {
    .hero-content {
        font-size: 4rem;
    }

    .footer-main {
        padding: 16px;
    }

    .footer-grants-message {
        font-size: 1.2rem;
    }

    .footer-nav {
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: flex-start;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 24px;
    }

    .footer-nav-link {
        text-align: left;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .footer-nav-header {
        font-size: 1.75rem;
    }

    .footer-flexbox {
        margin-bottom: 24px;
    }

    .footer-logo {
        transform: translateY(10px);
    }

}

@media screen and (max-width: 500px) {
    .hero-content {
        font-size: 3.5rem;
    }

    .footer-grants-message {
        font-size: 1rem;
    }

    .footer-nav-header {
        font-size: 1.5rem;
    }

    .footer-contact-us-header {
        font-size: 1.5rem;
        text-underline-offset: 4px;
    }
  
}

@media screen and (max-width: 425px) {
    .header-nav-link-hamburger {
        font-size: 1.6rem;
    }
    
    .hero-content {
        font-size: 3rem;
    }

    .footer-grants-message {
        font-size: 0.9rem;
    }
    
}

@media screen and (max-width: 350px) {
    .header-nav-link-hamburger {
        font-size: 1.2rem;
    }

    .footer-grants-message {
        font-size: 0.8rem;
    }

}

@media screen and (max-width: 800px) {
    .footer-logo {
        width: 120px;
    }

}

@media screen and (max-width: 800px) and (max-height: 450px) {
    .hamburger-menu {
        padding-top: 12px;
        font-size: 1.2rem;
    }

    .hamburger-item {
        margin-top: 4px;
        margin-bottom: 4px;
    }
}