/* CSS bij RWD : ECO pagina - mobile first */

/* ---------- BASIS (mobiel) ---------- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    background: #ffffff url("../images/bg.jpg") no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
}

/* header */
header {
    padding: 16px;
    text-align: center;
}

header img {
    margin: 0 auto;
    height: 100%
}

/* navigatie: onder elkaar op Mobiel */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    border-top: 1px solid #ffffff;
}

nav a {
    display: block;
    padding: 20px 20px;
    margin: 1px;
    background: #000000;
    color: #ffffff;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
}

nav a:hover,
nav a:focus,
nav a.actief {
    background: #2f6b1a;
}

/* hoofd-inhoud */
main {
    display: flex;
    flex-direction: column-reverse;
    padding: 16px;
}


aside {
    text-align: center;
}

aside img {
    margin: 0 auto;
}

section {
    min-width: 0;
}

h1 {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    color: #666666;
    margin-bottom: 16px;
}

article {
    margin-bottom: 16px;
}

article p {
    margin-bottom: 16px;
}

.inleiding {
    font-weight: 700;
    color: #2f6b1a;
}

footer {
    min-height: 16px;
    background: #4a9a2f;
}

/* ---------- TABLET (600px) ---------- */
@media screen and (min-width: 1000px) {

    header {
        text-align: left;
        padding: 24px 32px;
    }

    header img {
        margin: 0;
        width: 200px;
    }

    /* Nav naast elkaar */
    nav ul {
        display: flex;
        column-fill: auto;
    }

    nav li {
        border-top: 0;
        border-left: 1px solid #ffffff;
        width: 100%;
        
    }

    nav li:first-child {
        border-left: 0;
    }

    main {
        padding: 32px;
    }

    h1 {
        font-size: 32px;
    }

    /* wereldbol links van de tekst */
    article:first-of-type p:first-child {
        float: left;
        margin: 0 24px 16px 0;
    }
}

/* ---------- DESKTOP (vanaf 900px) ---------- */
@media screen and (min-width: 900px) {

    /* banner links, tekst rechts */
    main {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }

    aside {
        flex: 0 0 120px;
    }

    section {
        flex: 1;
    }

    h1 {
        font-size: 36px;
    }

    /* artikels naast elkaar */
    section {
        display: flex;
        flex-wrap: wrap;
        gap: 0 32px;
    }

    section h1 {
        flex: 0 0 100%;
    }

    article {
        flex: 1 1 280px;
        min-width: 0;
    }
}