@font-face {
    font-family: montserrat;
    src: url('../fonts/Montserrat-VariableFont_wght.ttf');
}

* {
    font-family: montserrat, sans-serif ;
    font-size: 16px;
    /*color: black;*/
    margin: 0;
    Padding: 0;
    box-sizing: border-box;
}

body {
    background-repeat: no-repeat;
    background-position: center top;
    background-color: rgb(1,64,64);
}

#wrapper {
    max-width: 1000px;
    background-color: rgb(1,64,64);
    margin: 0 auto;
    display: grid;
    grid-template-areas:
        "banner"
        "menu"
        "content"
        "base";
    grid-template-columns: 1fr;
    grid-template-rows: 100px minmax(50px, auto) minmax(500px, auto) minmax(160px, auto);
    padding: 1em
}

header {
    max-width: 100%;
    background-color: rgb(1,64,64);
    grid-area: banner;
    display: grid;
    grid-template-areas:
        "logo company company company";
    grid-template-columns: repeat(4, 1fr);
}

header h1 {
    grid-area: company;
    background-color: rgb(1,64,64);
    font-size: 45px;
    color: rgb(2,115,94);
    padding: 1em;
    /*margin: 5px;*/
}

#logo {
    grid-area: logo;
    max-width: 100%
}

nav {
    max-width: 100%;
    background-color: rgb(1,64,64);
    grid-area: menu;
    margin: 1em 0 1em 0;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}

nav a {
    text-decoration: none;
    display: block;
    padding: 1em;
    color: rgb(242, 242, 242);
}

nav a:hover {
    color: rgb(242,242,242);
    background: rgb(3,166,120);
}

main {
    width: 100%;
    background-color: rgb(1,64,64);
    grid-area: content;
    display: grid;
    grid-template-areas:
        "left middle right";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 1em;
    padding: 1em;
    margin: 0 0 1em 0;
}

#main-content1 {
    background-color: rgb(1,64,64);
    grid-area: left;
    display: flex;
    align-items: center;
}

aside {
    background-color: rgb(1,64,64);
    color: rgb(242,242,242);
    grid-area: middle;
    line-height: 2em;
}

aside h2 {
    text-align: center;
    line-height: 50px;
}

aside h3 {
    text-align: center;
}

#about { 
    grid-column: 2 / span 2;
    color: rgb(242,242,242);
    line-height: 5em;
}

form {
    width: 40em;
    background: rgb(3,166,120);
    border: 1px solid rgb(242,116,5);
    display: flex;
    justify-content: center;
    padding: 1em;
}

fieldset {
    padding: 1em;
}

main h2 {
    font-size: 40px;
}

main h3 {
    font-size: 30px;
    line-height: 50px;
}

main p {
    line-height: 35px;
    padding: 1em;
}

aside p {
    line-height: 20px;
}

aside ul {
    list-style-position: inside;
    line-height: 30px;
}

#main-content3 {
    background-color: rgb(1,64,64);
    grid-area: right;
}

#main-content3 ul {
    list-style: none;
}

footer {
    max-width: 100%;
    background-color: rgb(1,64,64);
    grid-area: base;
    display: grid;
    grid-template-areas:
        "last1 last2";
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr;
    gap: 1em;
    padding: 1em;
}

#fnav {
    background-color: rgb(1,64,64);;
    padding: 1em;
}

footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: rgb(1,64,64);
    grid-area: last1;
}

footer ul li a {
    text-decoration: none;
    display: block;
    width: 50%;
    color: rgb(242,242,242);
    padding: 0;
}

footer ul li a:hover {
    background-color: rgb(3,166,120);
    color: rgb(242,242,242);
}

#blurb {
    grid-area: last2;
    padding: 1em;
    background-color: rgb(1,64,64);
}

@media screen and (max-width:600px){
    header {
        grid-template-columns: 1fr;
    }
    header h1 {
        display: none;
    }
    main {
        grid-template-areas:
        "left" 
        "middle" 
        "right";
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }
}