* {
    font-family: "Piedra", system-ui;
    font-weight: 100;
    font-style: normal;
}

body {
    background-color: rgb(1, 5, 1);
}

#container {
    display: grid;
    grid-template-areas:
        "header header header header"
        "content1 content2 content3 content4"
        "footer footer footer footer";
    grid-auto-rows: 120px; 
    grid-template-rows: 100px 700px 100px;
    gap: 8px;
}

div {
    font-size: 14px;
}

.header, .footer, .content {
    border: 3px inset;
}

.header { 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    grid-area: header; 
    background-color: rgba(22, 71, 19, 0.373);
    color: white;
    border: lime 2px solid;
    border-radius: 10px;
    box-shadow: lime 0px 0px 5px;
}

.header img {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    filter: brightness(0%)invert();
}

.header h1 {
    margin: 0;
    font-size: 30px;
    padding-left: 30px;
    font-family: "IM Fell Great Primer SC", serif;
    font-weight: 400;
    font-style: normal;
}

#hamburger {
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.nav {
    display: flex;
    background-color: rgba(22, 71, 19, 0.771);
    color: white;
    border: lime 2px solid;
    border-radius: 10px;
    box-shadow: lime 0px 0px 5px;
    padding: 10px;
    margin-top: 5px;
    margin-right: 30px;
}

.nav a:hover {
    cursor: pointer;
}

.nav a {
        margin: 0 10px;
        text-decoration: none;
        color: inherit;
}

.content1 {
    grid-area: content1; 
    background-color: lightgreen; 
}

.content2 { 
    grid-area: content2; 
    background-color: lightcoral; 
}

.content3 { 
    grid-area: content3; 
    background-color: lightgoldenrodyellow; 
}

.content4 { 
    grid-area: content4; 
    background-color: lightpink; 
}

.content {
    padding: 20px;
    background-color: rgba(22, 71, 19, 0.373);
    color: white;
    border: lime 2px solid;
    border-radius: 10px;
    box-shadow: lime 0px 0px 5px;
    font-size: 17px;

}

.content-img {
    float:right;
    width:clamp(120px, 28%, 260px);
    height:auto;
    margin:8px 0 8px 16px;
    object-fit:cover;
    border-radius:6px;
    border: lime 2px solid;
    border-radius: 10px;
    box-shadow: lime 0px 0px 5px;
}

/* .content5 { 
    grid-area: content5; 
    background-color: lightseagreen; 
}    */

.footer { 
    grid-area: footer; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background-color: rgba(22, 71, 19, 0.373);
    color: white;
    border: lime 2px solid;
    border-radius: 10px;
    box-shadow: lime 0px 0px 5px; 
}

/*-------------------------------------------------------------------------------------------------------------------------------- */

@media only screen and (max-width: 1199px) {
    
    #container {
        grid-template-areas: 
        "header header"
        "content1 content2"
        "content3 content4"
        "footer footer";

        grid-template-rows: 100px 350px 350px 100px;
    }

    .nav {
        display: none;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #hamburger {
        display: inline-block;
        order: 2;
        margin-right: 10px;
    }

    .content {
        font-size: 14px;
    }
    
    h2 {
        font-size: 25px;
        margin-top: 0;
        margin-bottom: 0;
        font-family: "IM Fell Great Primer SC", serif;
        font-weight: 400;
        font-style: normal;
    }

    /* When toggled open */
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0px;
        gap: 10px;
        background-color: rgba(22, 71, 19, 0.771);
        color: white;
        border: lime 2px solid;
        border-radius: 10px;
        box-shadow: lime 0px 0px 5px;
        z-index: 1000;
        font-size: 15px;
    }

    .content-img {
        width:30%
    }
}

@media only screen and (max-width: 799px) {
    .content {
        font-size: 12px;
    }
}

@media only screen and (max-width: 599px) {
    
    #container {
        grid-template-areas: 
        "header"
        "content1"
        "content2"
        "content3"
        "content4"
        "footer";

        grid-template-rows: 100px 175px 175px 175px 175px 100px;
    }

    .nav {
        display: none;
    }

    h2 {
        font-size: 18px;
        margin-bottom: -10px;
        margin-top: -10px;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #hamburger {
        display: inline-block;
        order: 2;
        margin-right: 10px;
    }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0px;
        background-color: rgba(22, 71, 19, 0.771);
        color: white;
        border: lime 2px solid;
        border-radius: 10px;
        box-shadow: lime 0px 0px 5px;
        padding: 10px;
        z-index: 1000;
    }
    .content-img {
        width:10%
    }
}

@media only screen and (max-width: 499px) {
    .content {
        font-size: 11px;
    }

    h2 {
        font-size: 16px;
    }
}