@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap");

@media (prefers-color-scheme: dark) {
    body {
    background-color: #0d0d0d !important;
    }

    h2 {
    color: #f1f1f1 !important;
    }

    article {
        outline: #333 2px solid !important;
    }

    #newsletter {
        outline: #333 2px solid !important;
    }

    #newsletter h3 {
        color: #f1f1f1 !important;
    }

    #notification {
        background-color: #051b11 !important;
        outline-color: #0f5132 !important;
    }

    #notification h3 {
        color: #75b798 !important;
    }

    #alert {
        background-color: #2c0b0e !important;
        outline-color: #842029 !important;
    }

    #alert h3 {
        color: #ea868f !important;
    }

    #close-icon {
        width: 16px !important;
        opacity: 0.5 !important;
        cursor: pointer !important;
    }

    #close-icon-black {
        display: none !important;
    }
}

#close-icon {
    display: none !important;
}

#close-icon-black {
    width: 16px !important;
    opacity: 0.5 !important;
    cursor: pointer !important;
}

* {
    display: 0;
    margin: 0;
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
}

a button {
    cursor: pointer;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
}

header {
    width: 100%;
    height: 60px;
    background-color: #09214D;
    position: sticky;
}

#newsletter {
    width: 100%;
    outline: #D3D3D3 2px solid;
    margin-top: 20px;
    padding: 20px;
    box-sizing: border-box;
}

#newsletter h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #030B19;
}

#newsletter button {
    height: 46px;
    padding: 10px;
    flex: auto;
    background-color: #124299;
    color: white;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    width: 100%;
}

#notification {
    width: 100%;
    outline: #a3cfbb 2px solid;
    margin-top: 20px;
    padding: 20px;
    box-sizing: border-box;
    background: #d1e7dd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#notification h3 {
    font-size: 16px;
    color: #0a3622;
}

#alert {
    width: 100%;
    outline: #f1aeb5 2px solid;
    margin-top: 20px;
    padding: 20px;
    box-sizing: border-box;
    background: #f8d7da;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#alert h3 {
    font-size: 16px;
    color: #58151c;
}

#more-button {
    height: 46px;
    padding: 10px;
    flex: auto;
    background-color: #124299;
    color: white;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
}

.wrapper {
    width: 708px;
}

.headliner {
    margin-top: 20px;
}

h2 {
    margin-top: 20px;
    font-weight: 900;
    color: #030B19;
    font-size: 20px;
    font-weight: 700;
}

section {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolommen van gelijke breedte */
    gap: 20px; /* ruimte tussen de artikelen */
}

.headliner h3 {
    font-size: 24px;
    position: absolute;       /* positioneer relatief aan article */
    left: 20px;               /* 24px van de linkerkant */
    right: 20px;              /* 24px van de rechterkant */
    bottom: 20px;             /* 24px van de onderkant */
    margin: 0;
    color: #f1f1f1;
    z-index: 2;               /* boven de gradient */
    text-align: left;         /* links uitlijnen */
    word-wrap: break-word;    /* lange woorden afbreken indien nodig */
}

article h3 {
    font-size: 16px;
    position: absolute;       /* positioneer relatief aan article */
    left: 10px;               /* 24px van de linkerkant */
    right: 10px;              /* 24px van de rechterkant */
    bottom: 10px;             /* 24px van de onderkant */
    margin: 0;
    color: #f1f1f1;
    z-index: 2;               /* boven de gradient */
    text-align: left;         /* links uitlijnen */
    word-wrap: break-word;    /* lange woorden afbreken indien nodig */
}

.gradient {
    position: absolute; /* overlay boven de img */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, black 100%);
    pointer-events: none; /* zorgt dat klikbare elementen eronder werken */
}

article {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative; /* belangrijk voor overlay */
    outline: #D3D3D3 2px solid;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

footer {
    height: 250px;
    width: 100%;
    background-color: #09214D;
    margin-top: 20px;
}

@media (max-width: 748px)  { /* smartphones, Android phones, landscape iPhone */ 
    section {
        margin-top: 20px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px; /* ruimte tussen de artikelen */
    }

    .wrapper {
        width: calc(100% - 40px);
    }

    .headliner h3 {
        font-size: 16px;
        position: absolute;       /* positioneer relatief aan article */
        left: 10px;               /* 24px van de linkerkant */
        right: 10px;              /* 24px van de rechterkant */
        bottom: 10px;             /* 24px van de onderkant */
        margin: 0;
        color: #f1f1f1;
        z-index: 2;               /* boven de gradient */
        text-align: left;         /* links uitlijnen */
        word-wrap: break-word;    /* lange woorden afbreken indien nodig */
    }
}