html {
    height: 100%;
}

body {
    height: 100%;
    /* for IE 11 */
    min-height: 100%;
    /* for older mobile safari */
    display: -webkit-flex;
    /* for older mobile safari */
    -webkit-flex-direction: column;
    /* for older mobile safari */
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: 5x minmax(-webkit-min-content, 1fr) 40px;
    -ms-grid-rows: 5px minmax(min-content, 1fr) 40px;
    -ms-grid-columns: 1fr;
    grid-template: "header" 5px
        "main" minmax(-webkit-min-content, 1fr) "footer" 40px / 1fr;
    grid-template: "header" 5px
        "main" minmax(min-content, 1fr) "footer" 40px / 1fr;
    margin: 0;
    font-size: 18px;
    font-family: Avenir, Verdana, Arial;
    background-color: snow;
    color: #001a00;
}

header {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    -webkit-flex-shrink: 0;
    /* for older mobile safari */
    grid-area: header;
    padding: 8px;
    background-color: darkred;
}

main {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
    display: block;
    /* for IE11 */
    -webkit-flex-grow: 1;
    /* for older mobile safari */
    grid-area: main;
    padding: 12px;
    margin: 0 auto;
}

footer {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    -webkit-flex-shrink: 0;
    /* for older mobile safari */
    grid-area: footer;
    padding: 12px;
}

nav {
    max-width: 170px;
    font-size: 20px;
    text-transform: uppercase;
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: flex-end;
    align-items: flex-end;
}

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

.home-content {
    width: 100%;
    max-width: 1920px;
    height: 100%;
    max-height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}

img#main {
    max-width: 90vw;
    max-height: 90vh;
}