/* geimporteerde font */
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Jersey+25&display=swap');

/*algemene reset en basisopmaak*/
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Arimo', sans-serif;
    font-size: 1em;
}

/* fix voor consistente layout*/
body > main,
body > footer {
    width: 100%;
    margin: 0 auto;
    padding: 0 1em;
    box-sizing: border-box;
}

body > header {
    padding-bottom: 1em;
}

body > footer {
    padding-top: 1em;
}

/* body */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* header */
header {
    position: sticky;
    top: 0;
    padding: 1em 1em 0.5em;
    color: rgba(4, 2, 9, 0.9);
    background: linear-gradient(
        135deg,
        #3e3eff,
        #aa00ff,
        #ff2ca3,
        #ff6a00,
        #ffc300
    );
}

header h1 {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    font-family: 'Jersey 25', sans-serif;
    margin: 0;
    margin-bottom: 0.5em;
}

/* tekst-stijl */
h1,
h2,
h3,
p {
    margin-bottom: 1em;
    padding: 0;
}

h2 {
    margin-top: 1em;
    font-size: 1.25em;
    text-align: left;
}

h3 {
    font-size: 1em;
}

p {
    font-size: 1em;
}

/* algemene layout */
main {
    flex: 1;
    width: 100%;
    padding: 1.5em 1em;
    background-color: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

/* footer */
footer {
    padding: 1em;
    color: rgba(255, 255, 255, 0.9);
    background-color: #505050;
    text-align: left;
    font-size: 0.8em;
    
}

footer p {
    margin-bottom: 0.5em;
}

/* formulierstijlen */
form {
    background: #e0e0e0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 2em;
    border-radius: 1em;
    border: 1px solid #ccc;
    max-width: 600px;
    margin: 2em auto;
}

fieldset {
    border: none;
    margin-bottom: 1.5em;
    padding: 0;
}

legend {
    font-weight: bold;
    margin-bottom: 0.5em;
}

label {
    margin-top: 1em;
    display: block;
}

input,
textarea,
select {
    width: 100%;
    max-width: 100%;
    margin-top: 0.3em;
    padding: 0.5em;
    box-sizing: border-box;
}

input[type='radio'],
input[type='checkbox'] {
    width: auto;
    display: inline-block;
    margin-top: 0;
}

input[type='range'] {
    width: 100%;
    accent-color: rgba(80, 80, 80, 1);
}

.form-question {
    display: block;
    margin-top: 1.5em;
    margin-bottom: 0;
    font-weight: bold;
}

#submit-button {
    font-size: 1em;
    margin-top: 1.5em;
    padding: 0.5em;
    color: white;
    background-color: #505050;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 0.5em;
    cursor: pointer;
}

#submit-button:hover {
    color: #505050;
    background-color: white;
}

/* afbeeldingen */
section {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-bottom: 2em;
}

section img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5em;
}

picture {
    flex: 1 1 250px;
    max-width: 100%;
}

img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5em;
}

figure {
    margin: 1em auto;
    text-align: center;
    max-width: 100%;
}

figcaption {
    font-size: 0.9em;
    color: #555;
    margin-top: 0.5em;
}

/* afbeelding pixelart*/
.pixelart {
    display: inline-block;
    height: 1em;
    width: auto;

}

/* navigatie */
input[type='checkbox'].nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: block;
    font-size: 1em;
    color: white;
    text-align: left;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    padding-top: 5em;
    transition: left 0.3s ease;
    z-index: 1000;
}

.nav-toggle:checked + .nav-toggle-label + .mobile-sidebar {
    left: 0;
}

.navlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navlist li {
    padding: 1em;
}

.navlist a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* desktop navigatie */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .nav-toggle-label,
    .mobile-sidebar {
        display: none;
    }

    .desktop-nav {
        display: block;
        text-align: center;
    }

    .desktop-nav .navlist {
        display: flex;
        justify-content: center;
        gap: 2em;
    }

    .desktop-nav .navlist li {
        padding: 0.5em;
        background-color: rgba(0, 0, 0, 0.33);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        border-radius: 0.5em;
    }

    .desktop-nav .navlist a {
        font-size: 0.9em;
    }

    main {
        max-width: 80%;
    }
}
