:root {
    --lightblue: #00a0f0;
    --darkblue: #003060;
    --ghostwhite: #f8f8ff;
    --gainsboro: #d8d8e0;
    --darkgreen: #006830;
    --darkbluegray: #303840;
    --sans: 'Nunito', Arial, Helvetica, sans-serif
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--gainsboro);
    margin: 0;
    padding: 0;
}

#content {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: var(--ghostwhite);
    height: 100vh;
}

.header {
    height: 80px;
    background-color: var(--ghostwhite);
    border-bottom: 2px solid var(--gainsboro);
}

.headerrow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 90%;
    height: 100%;
    margin: 0 auto;
}

.headerimglink {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.headerimg {
    max-width: 400px;
    height: 90%;
    object-fit: contain;
}

.closeiconarea {
    display: none;
}

.navlist {
    list-style: none;
    margin: 0;
    height: 100%;
    padding: 0;
}

.navitem {
    display: inline-block;
    height: 100%;
}

.navlink {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    font-family: var(--sans);
    font-size: 24px;
    color: var(--darkbluegray);
    padding: 0 20px;
    height: 100%;
}

.navlink:hover {
    background-color: var(--lightblue);
    color: var(--ghostwhite);
}

.openiconarea {
    display: none;
}

.main {
    background-color: var(--ghostwhite);
    color: var(--darkbluegray);
    margin: 0;
    padding: 0;
    flex-grow: 2;
}

.hero {
    display: grid;
    grid-template: "hero";
    place-items: center;
    place-content: center;
    overflow: hidden;
    color: var(--ghostwhite);
    background: rgb(0, 160, 240);
    background: linear-gradient(135deg, rgba(0, 160, 240, 1) 0%, rgba(0, 48, 96, 1) 33%, rgba(0, 104, 48, 1) 100%);
    height: 50vh;
    width: 100%;
    margin: 0 auto;
}

.hero > * {
    grid-area: hero;
}

.heroimgarea {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100%;
}

.heroimg {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.herotext {
    position: relative;
    z-index: 1;
}

.herotitle {
    font-family: var(--sans);
    text-align: center;
    font-size: 48px;
    margin-bottom: 0;
}

.herosubtitle {
    font-family: var(--sans);
    text-align: center;
    font-size: 32px;
    margin-top: 10px;
}

.row {
    margin: 0 auto;
    width: 95%;
    font-size: 16px;
    text-align: center;
}

.row:last-child {
    margin-bottom: 10px;
}

.rowtitle {
    text-align: center;
    font-family: var(--sans);
    font-size: 32px;
    margin: 20px 0 10px;
}

.rowtext {
    line-height: 32px;
    font-size: 21px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

.rowlist {
    padding-left: 20px;
}

.rowlist > li {
    font-size: 18px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    line-height: 27px;
}

.cardrow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    margin: 0 1%;
    max-width: clamp(15%, 20%, 25%);
}

.cardimg {
    float: left;
    max-width: 100%;
    height: 150px;
    object-fit: cover;
}

.cardtitle {
    margin: 20px 10px 10px;
    font-size: 32px;
    font-family: var(--sans);
    text-align: center;
}

.cardtext {
    margin: 0 10px;
    flex-grow: 2;
    line-height: 27px;
    font-size: 18px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    text-align: center;
}

.cardlist {
    margin: 5px 0 0 20px;
    padding: 0 0 0 20px;
    flex-grow: 2;
}

.cardlist > li {
    font-size: 16px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    line-height: 24px;
}

.cardlist > li::marker {
    color: #303840;
    size: 16px;
}

.cardicon {
    width: 100%;
    text-align: center;
}

.emaillink {
    text-decoration: none;
    color: var(--darkbluegray);
}

.emaillink:hover {
    text-decoration: underline;
}

.footer {
    height: auto;
    background: var(--darkblue);
    background: linear-gradient(0deg, var(--darkblue) 90%, #303840 100%); 
    color: var(--ghostwhite);
    display: grid;
    grid-template-columns: 1fr auto;
}

.footerrow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
}

#footerimgarea {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footerimg {
    max-width: 300px;
    height: 90%;
    object-fit: contain;
}

.footercol > h3 {
    margin: 20px 0 0;
    font-family: var(--sans);
}

.footnav {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.footnavitem {
    margin: 10px 0;
}

.footnavitem a {
    text-decoration: none;
    font-size: 16px;
    color: var(--ghostwhite);
}

.footnavitem a:hover {
    text-decoration: underline;
}

.copyright {
    grid-row: 2;
    width: 95%;
    margin: 0 auto;
}

.copyrighttext {
    margin: 10px 0;
    padding: 0;
    font-size: 12px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

a.button {
    display: inline-block;
    border-radius: 5px;
    font-family: var(--sans);
    font-size: 21px;
    text-decoration: none;
    padding: 10px 20px;
}

.lightbutton {
    border: 2px solid var(--ghostwhite);
    color: var(--ghostwhite);
}

.lightbutton:hover {
    border: 2px solid var(--lightblue);
}

.darkbutton {
    border: 2px solid var(--darkblue);
    color: var(--darkblue);
}

.darkbutton:hover {
    border: 2px solid var(--lightblue);
    color: var(--ghostwhite)
}

a.button:hover {
    background-color: var(--lightblue);
    font-weight: bold;
}

.buttonarea {
    width: 100%;
    text-align: center;
}

#contactbuttonarea {
    height: 100%;
    display: flex;
    width: 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.material-icons-sharp.md-dark {
    color: var(--darkblue);
}

.material-icons-sharp.md-light {
    color: var(--ghostwhite);
}

.material-icons-sharp.md-large {
    font-size: 48px;
}

.hidden {
    display: none;
}

@media screen and (max-width: 1024px) {
    .headerleft {
        width: 50%;
    }

    .openiconarea {
        display: block;
        margin: auto 0;
    }

    .closeiconarea {
        margin: 0 auto;
    }

    .navicon {
        font-size: 24px;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        left: 100%;
        width: 50%;
        transition: all 0.5s ease-in;
        background: var(--ghostwhite);
        z-index: 10;
    }

    .smhide {
        display: none;
    }

    .closeiconarea {
        display: inline-block;
        width: 90%;
        margin: 10px 0;
        margin-left: 10px;
    }

    .closeicon {
        font-size: 48px;
        color: var(--darkbluegray);
    }

    .sidenav {
        left: 50%;
    }

    .navlist {
        height: auto;
    }

    .navitem {
        height: 20vh;
        text-align: center;
        width: 100%;
    }

    .cardrow {
        flex-direction: column;
    }

    .card {
        margin: 0 5%;
        max-width: 100%;
    }

    .footerrow {
        flex-direction: column;
    }

    #footerimgarea {
        margin-top: 10px;
    }

    .footercol {
        margin-left: 5%;
    }

    #contactbuttonarea {
        margin: 10px auto;
    }
}


html {
    visibility: visible;
}