/* initialiseren van alle elementen*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*maak een algemene stijl voor tekst*/
html {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1em;
    scroll-behavior: smooth;
}

/*opmaak van de titels en teksten*/
h1 {
    color: #D7C5BC;
    font-family: 'Georgia', serif;
    overflow: hidden;
}


h2, h3, h4 {
    clear: both;
    overflow: hidden;
    color: #d93030;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    line-height: 1.3em;
    font-family: 'Playfair Display', serif;
}

p {
    line-height: 1.5em;
    margin: 1.5em 0;
}


/*geen enkel element in de main mag breder worden dan 40em*/
main * {
    max-width: 40em;
}

/*plaats de main in het midden*/
main {
    margin: 40px auto;
}

/*
Hieronder vind je alle stijlen voor de header
*/
header img {
    margin: 15px;
    width: 150px;
}

header {
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    background: #640202;
}

#title {
    max-width: 1500px;
    margin: auto;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}


/*Stijlen van de navigatiebalk*/
nav {
    width: 100%;
    padding-left: 10px;
    background: #8c0303;
    border-top: 5px solid #1b1713;
    /* border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
     */

}

nav a {
    transition: color 300ms;
    color: #D7C5BC;
    text-decoration: none;
}

nav li {
    list-style: none;
    font-size: 1.4em;
}

nav ul {
    padding: 15px 0 15px 0;
    max-width: 1500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    gap: 5px;

}

nav a:hover {
    color: #1b1713;
    transition: color 300ms;
}

/*Stijl voor de articles en inhoud*/
article img {
    max-width: 80%;
    width: 65vw;
    margin: auto;
}

article img {
    display: block;
    margin-bottom: 15px;
}

article {
    padding-bottom: 15px;
    border-bottom: 1px solid #8c0303;
    border-top: 1px solid #8c0303;
    margin: auto;
}


/*Stijl voor de contactaside*/
.contactaside li, .contactaside h2 {
    list-style: none;
    font-size: 1.3em;
    color: #D7C5BC;
    margin-top: 5px;
    margin-left: 15px;
}

.contactaside {
    background: #640202;
    position: fixed;
    width: calc((100% - 40em) / 2 - 2%); /*Dit berekent de witruimte naast mijn article - 2%*/
    border-radius: 30px 0 0 30px;
    right: 0;
    top: 250px;
    display: none;
    border: 4px solid #1b1713;
    padding-bottom: 15px;
}


/*stijl voor de footer*/
footer {
    background: #8c0303;
    border-top: 5px solid #1b1713;
    bottom: 0;
    width: 100%;
    /*height: 30vh;*/
    color: #D7C5BC;
    padding-left: 15px;
    position: relative;
    padding-bottom: 50px;
}

#copyright {
    position: absolute;
}

footer h2 {
    color: #D7C5BC;
    margin-left: 15px;
    margin-top: 35px;
}


footer ul li {
    list-style: none;
    font-size: 1.5em;
    margin-left: 15px;
}

#copyright {
    position: absolute;
    right: 15px;
    bottom: 15px;
    /*border: 3px dotted red; */
}

footer h3 {
    color: #D7C5BC;
    margin-left: 10px;
}

/*stijl van de contactlijst op de contactpagina*/
dl dd {
    margin-bottom: 10px;
}

/*stijl voor de pagina waarop je je bevindt*/
.here {
    /*color: #17252a;*/
    border-bottom: 2px solid #D7C5BC;
}

/*stijl van het formulier*/
.form input {
    margin-left: 15px;
}

.form {
    border: 5px solid #1b1713;
    border-radius: 20px;
    position: relative;
    padding: 15px 15px 100px;
    background: #8c0303;
}

.form input, .form textarea {
    max-width: 90%;
    border: 3px solid #1b1713;
}

.form .firstpart input {
    width: 90%;
}

.form textarea {
    display: block;
    resize: none;
}

#stemSoort label {
    display: block;
}

.form p {
    margin: 0;
    color: #D7C5BC;
}

.form input:focus, .form textarea:focus {
    background-color: #0ff;
}

/*ruimte maken tussen de onderdelen van het formulier*/
.form .newPart {
    margin-top: 50px;
}

.form .submit {
    position: absolute;
    right: 25px;
    bottom: 15px;
}

.form .submit input:hover {
    background: #8c0303;
    transition: color 300ms;
}

.form .opmerking {
    margin-left: 15px;
}

.form .submit input {
    padding: 10px;
    border-radius: 10px;
    color: #1b1713;
    transition: color 300ms;
    box-shadow: 0 9px #DF5353;
}

.form .submit input:active {
    box-shadow: 0 5px #1b1713;
    transform: translateY(4px);
}

.form .submit input:hover {
    color: #D7C5BC;
}

/*stijl voor de fotopagina*/
.fotopagina .row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin: auto;
    max-width: 1400px;
}

.fotopagina .row .column img {
    max-width: 100%;
    width: 100%;
}

.fotopagina .row .column {
    flex: 100%;
}

.fotopagina h2 {
    max-width: 1400px;
    margin: 15px auto;
}

/*stijl van de google maps implementatie*/
.map {
    max-width: 1300px;
    width: 80%;
    margin: auto;
    display: block;
}

.omhoog {
    border: 3px solid #1b1713;
    background-color: #8c0303;
    padding: 15px;
    color: #D7C5BC;
    margin: 15px;
    display: block;
    width: 125px;
    list-style: none;
    border-radius: 10px;
}

.omhoog:hover {
    background-color: #d93030;
}

/*stijl voor hele smalle schermen*/
@media screen and (max-width: 410px) {
    .email {
        display: none;
    }

    h1 {
        font-size: 10vw;
    }

    #title {
        gap: 0;
    }

    footer address ul li {
        max-width: 100%;
    }

}

/*media query voor de eerste verspringing in de form en een 2de kolom in de fotopagina*/
@media screen and (min-width: 510px) {
    .form .firstpart label {
        position: relative;
    }

    .form .firstpart label input {
        position: absolute;
        left: 200px;
        max-width: 30vw;
        width: 380px;
    }

    .fotopagina .row .column {
        flex: 45%;
    }
}

/*tekstgrootte veranderen bij 800px*/
@media screen and (min-width: 800px) {

    main {
        width: 80vw;
    }

    html {
        font-size: 1.1em;
    }
}

/*navigatie-balk horizontaal maken en footer en formulier wordt een grid*/
@media screen and (min-width: 875px) {
    nav ul {
        flex-direction: row;
    }

    nav li {
        font-size: 1.2em;
    }

    .fotopagina .row .column {
        flex: 20%;
    }

    #footerGrid {
        display: grid;
        grid-template-columns: 1fr 3fr 3fr;
        grid-template-rows: 1fr 2fr;
        align-items: center;
        padding-bottom: 0;
        max-width: 1500px;
        margin: auto;
    }

    footer h2 {
        grid-column: 1;
        align-self: end;
        color: #D7C5BC;
        margin-bottom: 0;
    }

    footer address {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    footer #footerGrid > ul {
        grid-row: 2;
        grid-column: 3;
        align-self: start;
    }

    footer {
        padding-bottom: 0;
    }


    #stemSoortgrid {
        display: grid;
        grid-template-columns: 360px auto;
        grid-template-rows: 2fr 1fr;
    }

    #stemSoortgrid .opmerking {
        grid-row: 2;
        grid-column: 2;
    }

    #stemSoortgrid p {
        margin-top: 0;
        margin-bottom: 0;
    }

    .inlineFoto {
        float: right;
        margin-left: 15px;
        width: 350px;
    }

}

/*bij schermen kleiner dan 800ppx mag de main maar 80% innemen*/
@media screen and (max-width: 800px) {
    main {
        max-width: 80vw;
    }
}


/*Laat de contactaside verschijnen*/
@media screen and (min-width: 1450px) {
    .contactaside {
        display: block;
    }
}