body {
    margin: 0px;
    padding: 0px;
    font-family: "Lato";
    overflow-x: hidden;
    background-color: #c7d9dd;
}

h1 {
    font-family: "Montserrat";
    font-weight: bold;
    font-size: 48px;
    text-align: center;
    margin: 0px;
    padding: 70px;
    background-color: #427660FF;
    color: white;
}

p {
    font-family: "Lato";
    font-size: 20px;
}

button {
    border: 1px solid #55828b;
    width: 100px;
    height: 50px;
    margin: 10px;
    font-size: 18px;
    font-family: "Lato";
    text-align: center;
    background-color: white;
}

button:hover {
    background-color: #d2e6dc;
}

ul {
    text-align: left;
}

footer {
    padding: 70px;
    font-family: "Montserrat";
    text-align: center;
    background-color: #427660FF;
}

#top {
    background-image: url("images/nztproj.jpg");
    background-size: cover;
    overflow-x: hidden;
    height: auto;
    padding: 100px 10px;
}

.context {
    text-align: center;
    color: white;
}

p.context {
    font-size: 16px;
    font-weight: thin;
}

.square {
    border: 1px solid #55828b;
    width: 150px;
    height: 150px;
    margin: 10px;
    text-align: center;
    background-color: #d2e6dc;
}

.square:hover {
    background-color: #87bba2;
}

.flexbox {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* CSS for modal boxes W3Schools: https://www.w3schools.com/howto/howto_css_modals.asp */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #55828b;
    width: 80%;
}

.close {
    color: #55828b;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover {
    color: black;
    text-decoration: none;
}

.popup-flex.button {
    font-family: "Lato";
    font-size: 20px;
    border: 0px;
}

#chart {
    display: flex;
    justify-content: center;
    align-content: center;
    padding-bottom: 60px;
    overflow-x: scroll;
}

#netzero,
#absolutezero,
#climateneutral,
#emissionsreduction,
#carbonneutral,
#ghgneutral {
    display: flex;
    align-items: center;
    justify-content: center;
}

#cards {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#map {
    margin: 60px;
    padding: 30px;
}

#cards {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

#definition {
    padding: 40px;
    font-size: 28px;
    text-align: center;
}



@media screen and (max-width: 320px) {
    #map {
        margin: 10px 5px;
        padding: 5px;
    }

    h1 {
        padding: 30px;
    }

    .context {
        text-align: center;
        margin: 10px 20px;
        padding: 20px;
    }

    h3.context {
        font-size: 20px;
        line-height: 22px;
    }

    #chart {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .flexbox {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 10px;
    }
}

/*Additional breakpoint for column header view on phones */
@media screen and (min-width: 321px) and (max-width: 540px) {
    h1 {
        padding: 40px;
    }

    #map {
        margin: 10px;
        padding: 5px;
    }

    .context {
        text-align: center;
        margin: 10px 30px;
        padding: 20px;
    }

    h3.context {
        font-size: 22px;
        line-height: 26px;
    }

    #chart {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .flexbox {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 10px;
    }
}

/*Additional breakpoint for column header view on tablets, phones */
@media screen and (min-width: 541px) and (max-width: 1024px) {

    .context {
        text-align: center;
        margin: 30px 70px;
        padding: 20px;
    }

    h3.context {
        font-size: 24px;
        line-height: 28px;
    }

    #chart {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: left;
    }

    .flexbox {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin-bottom: 10px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1920px) {

    .context {
        text-align: center;
        margin: 50px 125px;
        padding: 20px;
    }

    h3.context {
        font-size: 24px;
        line-height: 28px;
    }
}

@media screen and (min-width: 1921px) {

    .context {
        text-align: center;
        margin: 50px 150px;
        padding: 20px;
    }

    h3.context {
        font-size: 32px;
        line-height: 38px;
    }
}