/* VARIABLES */
:root {
    --cb-blue: #B0CAEF;
    --cb-dark-blue: #4C6C90;
    --cb-offwhite: #f4f4f4;
    --cb-white: #fdfdfd;
    --cb-green: #a8e6cf;
    --cb-pink: #cbaacb;
    --cb-black: #4a4a4a;

    --ff-normal: 'Roboto', Arial, Helvetica, sans-serif;
    --ff-bold: 'Roboto Slab', Arial, Helvetica, sans-serif;
    --fs-h1: 3rem;
    /* 48px */
    --fs-h2: 2.25rem;
    /* 36px */
    --fs-h3: 1.6875rem;
    /* 27px */
    --fs-h4: 1.25rem;
    /* 20px */
    --fs-h5: 1rem;
    /* 16px */
    --fs-h6: 0.875rem;
    /* 14px */

    --shadow: 0px 4px 4px rgba(74, 74, 74, 0.25);
}

/* BASIC */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    animation: fade-in 1s ease forwards;
    /* height: auto; */

}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    background-color: var(--cb-blue);
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 15vw 85vw;
    -webkit-font-smoothing: antialiased;
    /* voor toegankelijkheid */
    text-rendering: optimizelegibility;
    /* voor toegankelijkheid */
    min-height: 100vh;
}

@media (max-width: 991.98px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        min-height: unset;
    }
}

/* Elementen verbergen maar nog wel zichtbaar voor screenreaders */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* LINKS */
a,
a:visited,
a:active,
a:hover,
a:focus,
a:link,
a:visited {
    text-decoration: none;
}

a:focus {
    border: none;
    outline: none;
    box-shadow: 0 0 0 0.2em var(--cb-blue);
    /* background-color: var(--cb-white); */
}

a:hover {
    text-decoration: underline;
}

/* TYPOGRAFIE (Perfect Fourth - 1.333) */
h1 {
    font-size: var(--fs-h1);
    line-height: 1.2;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.3;
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.4;
}

h4 {
    font-size: var(--fs-h4);
    line-height: 1.5;
}

h5 {
    font-size: var(--fs-h5);
    line-height: 1.6;
}

h6 {
    font-size: var(--fs-h6);
    line-height: 1.6;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto Slab', Arial, Helvetica, sans-serif;
    font-weight: bold;
}

/* MAIN */
main {
    grid-column: 2 / 3;
    margin: 0 2rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    /* min-height: 100vh; */
}

@media (max-width: 991.98px) {
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        width: 100%;
    }
}

header h1,
h2 {
    font-family: var(--ff-bold);
    color: var(--cb-black);
}

header {
    display: flex;
    flex-direction: column;
    margin: 1rem 1rem 2rem;
    width: 90%;
    text-align: center;
}

header h1 {
    font-size: var(--fs-h2);
    margin: 1rem 0;
}

header h2 {
    font-size: var(--fs-h4);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

header button {
    align-self: start;
    margin: 1rem 0 0 0.5rem;
}

/* SECTION */
section {
    width: 100%;
}

.card-container,
.table-container,
.button-container,
.accordion-container,
.form-container {
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.accordion-container,
.table-container {
    flex-direction: column;
}

.card-container {
    justify-content: space-around;
    flex-wrap: wrap;
}

.error {
    color: #FF0000;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0.5rem;
    padding: 0.5rem;
    background-color: var(--cb-offwhite);
    border: 1px solid #FF0000;
    border-radius: 0.5rem;
}

.succes {
    color: green;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0.5rem;
    padding: 0.5rem;
    background-color: var(--cb-offwhite);
    border: 1px solid green;
    border-radius: 0.5rem;
}