:root {
    --g3asr-bg: #02879d;
    --g3asr-bg-light: #353535;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #212529;
    background: #d3d3d3;
    ;
}

body {
    margin: 0 auto;
}

#main a {
    color: #007bff;
    text-decoration: none;
}

#main a:hover {
    text-decoration: underline;
}

h1 {
    background: var(--g3asr-bg);
    margin-top: 0px;
    margin-bottom: 0px;
}

h2 {
    background: var(--g3asr-bg-light);
    padding: 10px;
    color: white;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
}

h3 {
    margin-top: 0px;
    margin-bottom: 0px;
}

div.blurb {
    background: white;
    padding: 10px;
    border: 1px solid lightgray;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
}

div.blurb>*:first-child {
    margin-top: 0px;
}

div.blurb>*:last-child {
    margin-bottom: 0px;
}

#header {
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.097);
    padding: 20px;
    color: white;
    background: var(--g3asr-bg);
    margin-bottom: 0px;
    display: grid;
    justify-content: center;
    align-items: center;
}

#logo {
    height: 100px;
    margin-right: 10px;
}

#header .logocontainer {
    grid-column-start: 1;
}

#header .textcontainer {
    grid-column-start: 2;
    text-align: left;
}

#main {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 150px auto;
    align-items: stretch;
    justify-items: stretch;
    justify-content: stretch;
    align-content: stretch;
    grid-row-gap: 10px;
    background: white;
    padding: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.097);
}

#main h2 {
    grid-column-start: 1;
    grid-column-end: 2;
    margin: 0;
}

#main .blurb {
    grid-column-start: 2;
    grid-column-end: 3;
}

#mainContainer {
    display: flex;
    justify-content: center;
}

.blurbimg {
    width: auto;
    height: 200px
}

figure {
    margin: 4px;
    padding: 5px;
    border: 1px solid lightgray;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.149);
}

figcaption {
    font-size: smaller;
    text-align: center;
    font-style: italic;
}

#footer {
    margin-top: 40px;
    padding: 30px;
    padding-bottom: 50px;
    font-size: smaller;
    background: var(--g3asr-bg);
    color: white;
}

table,
tr,
td,
th {
    border-collapse: collapse;
    border: 1px solid lightgray;
    padding: 5px;
}

#nav {
    background: var(--g3asr-bg-light);
    color: white;
    display: flex;
    flex-direction: row;
    border-top: 1px solid var(--g3asr-bg-light);
    border-bottom: 1px solid var(--g3asr-bg-light);
    justify-content: center;
    margin-bottom: 10px;
}

#nav div {
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    transition: background 0.2s;
}

#nav div:hover {
    background: var(--g3asr-bg);
    cursor: pointer;
}

#nav a,
#nav a:visited {
    color: white;
    text-decoration: none;
}

#imgcontainer{
    margin-bottom: 10px;
    float: right
}

#imgcontainer figure{
    display: block;
}



@media (max-width: 650px) {
    #main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #header {
        text-align: left;
    }

    div.blurb {
        border-bottom-left-radius: unset;
        border-top-left-radius: unset;
        border-bottom-right-radius: 20px;
        border-top-right-radius: 20px;
    }

    #imgcontainer{
        float: none
    }

    #imgcontainer figure{
        display: inline-block;
    }

}

@media (max-width: 400px) {
    #nav {
        flex-direction: column;
        justify-content: left;
    }
}