:root {
    --red: #da012e;
    --blue: #04305f;
    --beige: #ecd8b3;
}

* {
    box-sizing: border-box;
    margin: 0;
}

body {
    font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Center page */
div.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

/* Nav */
header {
    margin-bottom: 10px;
}

nav {
    margin-top: 10px;
    background-color: var(--beige);
    border-radius: 5px;
}

nav > ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    row-gap: 5px;
}

nav > ul > li > a {
    padding: 10px;
    line-height: 2rem;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--blue);
    transition-duration: 0.1s;
}
nav > ul > li > a:hover {
    color: var(--red);
    text-decoration: none;
}

/* Flex layout */
.content {
    display: flex;
}

form.searchform {
    display: flex;
    justify-content: flex-end;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

aside {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 300px;
}

aside .thumbnail {
    max-width: 30%;
    height: fit-content;
}

aside .nieuws > div {
    font-size: 0.8rem;
    display: flex;
    column-gap: 10px;
}

.groepen {
    display: flex;
    flex-wrap: wrap;
}

.groepen > div {
    width: 50%;
}

/**/
aside {
    height: 100%;
    margin-left: 10px;
    margin-bottom: 10px;
}

aside > a {
    color: white;
}

.voorpagina > div,
aside {
    border-radius: 5px;
    overflow: hidden;
}

.voorpagina > div:not(:last-child) {
    margin-bottom: 10px;
}

.voorpagina > div > h2,
aside h2 {
    color: white;
    background-color: var(--blue);
    padding: 10px;
    margin-bottom: 0;
}

.voorpagina > div > p,
aside > div {
    background-color: var(--beige);
    padding: 5px 10px;
}

/**/
a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/**/
footer {
    color: white;
    background-color: var(--blue);
    margin-top: 10px;
}

/* Misc */
.wp-post-image {
    height: fit-content;
    max-width: 100%;
}

.artikel .wp-post-image {
    max-width: 30%;
    margin-right: 10px;
}

.searchform {
    padding: 0 10px 10px 0;
}

.searchform input[type="submit"] {
    color: white;
    background-color: var(--blue);
    border: none;
    height: 100%;
    border-radius: 5px;
}

.searchform input[type="submit"]:hover {
    opacity: 0.9;
}

.voorpagina h2,
aside h2 {
    text-transform: uppercase;
    font-weight: normal;
    font-size: 1.1rem;
}

footer {
    padding: 20px;
}

footer > div {
    display: flex;
    justify-content: space-around;
}

footer > div > div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

footer > div.copyright {
    margin-top: 20px;
}

footer > div img {
    width: 40px;
    height: auto;
}

footer .logo {
    width: 100px;
    height: auto;
}

footer a {
    transition-duration: 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

svg {
    fill: white;
    stroke: white;
}

main > h1,
.artikel h1 {
    text-transform: uppercase;
    font-weight: normal;
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 10px;
}

main h2 {
    text-transform: uppercase;
    font-weight: normal;
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 5px;
}

.groepen > div {
    margin-bottom: 10px;
}

.groepen > div:nth-child(odd) {
    padding-right: 5px;
}

.groepen > div:nth-child(even) {
    padding-left: 5px;
}

.artikel > div {
    display: flex;
}

@media only screen and (max-width: 1000px) {
    aside {
        width: 250px;
    }
}

@media only screen and (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    main {
        order: 2;
    }

    aside {
        order: 1;
        width: unset;
        margin-left: unset;
        margin-top: 10px;
    }

    .groepen > div {
        width: 100%;
    }

    nav > ul > li {
        width: 100%;
    }

    aside .thumbnail {
        max-width: 20%;
    }

    .artikel > div {
        flex-direction: column;
    }
    .artikel .wp-post-image {
        max-width: 100%;
        margin-right: unset;
    }
}
