
/* Algemene instellingen */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background-color: #666666ff;

    font-family: Helvetica, sans-serif;
    font-size: 16px;
}

/* Centrale container */

.container {
    width: 100%;
    max-width: 992px;
    min-height: 100vh;
    margin: 0 auto;

    display: grid;
    grid-template-rows: 1fr auto;
}

/* Header */

.header {
    position: fixed;
    z-index: 100;

    top: 0;
    left: 0;
    right: 0;

    height: 120px;

    padding-inline: max(10px, calc((100vw - 992px) / 2));

    background-color: #007b74ff;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    transition: 0.5s;
}

.header--hidden {
    transform: translateY(-100%);
}

header {
    display: flex;
    align-items: center;
    min-width: 0;
}

header img {
    display: block;
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding: 10px;

    color: white;
    font-size: 3em;
}

/* Inhoud */

.content {
    min-width: 0;

    grid-row: 1 / 2;

    background-color: #eeeeeeff;

    padding: 40px;
    padding-top: 145px;
}

/* Footer */

.footer {
    grid-row: 2 / 3;

    background-color: black;
    color: white;

    text-align: right;

    padding: 5px;
    font-size: 0.75em;
}

/* Artikelgegevens */

.articlefooter {
    display: grid;
    grid-template-columns: 1fr 1fr;

    padding-bottom: 50px;
    font-size: 0.75em;
}

.articleauthor {
    grid-column: 1 / 2;
    text-decoration: none;
}

.postingtime {
    grid-column: 2 / 3;
    text-align: right;
}

/* Algemene tekstopmaak */

p, blockquote {
    margin-block-start: 0;
    text-align: justify;
}

a:link {
    text-decoration: none;
}

h2 {
    font-size: 2em;
    text-align: center;
    color: #007b74ff;
}

h3 {
    margin-block-end: 0;
}

p.caption {
    font-style: italic;
}

/* TABLET */

@media (max-width: 900px) {

    .content {
        padding: 30px;
        padding-top: 135px;
    }

    .header {
        height: 110px;
    }

    nav {
        font-size: 2.5em;
    }

    header img {
        max-height: 90px;
    }

}

/* SMARTPHONE */

@media (max-width: 600px) {

    body {
        font-size: 18px;
        line-height: 1.4;
    }

    .header {
        height: 85px;
        padding-inline: 10px;
    }

    header img {
        max-height: 70px;
    }

    nav {
        font-size: 1.5em;
        padding: 5px;
    }

    .content {
        padding: 18px;
        padding-top: 105px;
    }

    h2 {
        font-size: 1.6em;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.2em;
    }

    .articlefooter {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .articleauthor {
        grid-column: 1;
    }

    .postingtime {
        grid-column: 1;
        text-align: left;
    }
}

/* Afbeeldingen schalen mee met het scherm */
.content img {
    max-width: 100%;
    height: auto;
}

/* YouTube-video's schalen mee met het scherm */
.content iframe {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Voorkom dat de inhoud de pagina breder maakt */
.content {
    min-width: 0;
    overflow-wrap: anywhere;
}