:root {
    --main-bg-header: #23b6ff;
    --main-bg-nav: #303c54;
    --main-bg-footer: #303c54;
}

body {
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
    box-shadow: inset 0 0 5px grey;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background-color: #14a8f3;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: #0384c5;
}

header {
    display: flex;
    justify-content: center;
    background-color: var(--main-bg-header);
    color: white;
    padding: 1em;
}

p {
    font-size: larger;
}

.intro {
    background-color: rgb(148, 148, 148);
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 30px;
}

/* CSS for buttons in main content */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 30px;
    background-color: #C0C0C0;
    color: white;
    padding: 20px;
}

.main-content div {
    margin-top: 20px;
}

.main-content button {
    padding: 25px;
    font-size: 24px;
    text-align: center;
    font-size: xx-large;
    cursor: pointer;
    outline: none;
    color: #fff;
    background-color: var(--main-bg-header);
    border: none;
    border-radius: 15px;
    box-shadow: 0 9px rgb(215, 215, 215);
}

.main-content button:hover {
    background-color: #1a8cff;
}

.main-content button:active {
    background-color: #1a8cff;
    box-shadow: 0 5px rgb(159, 159, 159);
    transform: translateY(4px);
}

h2 {
    font-size: 2em;
    margin-bottom: 75px;
}

.container {
    display: flex;
    flex: 1;
}

.sidenav {
    display: flex;
    flex-direction: column;
    background-color: var(--main-bg-nav);
    padding: 1em;
    margin: 10px;
    width: 200px;
    padding: 15px;
    border-radius: 30px;
    flex-shrink: 0;
}

.main-content {
    flex-grow: 1;
    padding: 1em;
}

.sidenav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

div.row {
    padding-bottom: 16px;
    padding-top: 16px;
}

.sidenav ul a {
    color: white;
    padding-bottom: 16px;
    padding-top: 16px;
    text-decoration: none;
}

.sidenav ul a:hover {
    text-decoration: underline;
}

.fa-solid,
.fa-regular {
    margin: 8px;
}

footer {
    background-color: var(--main-bg-footer);
    width: 100%;
    padding: 0px;
    display: flex;
    justify-content: center;
    justify-content: space-evenly;
    color: #fff;
    flex-wrap: wrap;
}

footer p {
    background-color: #888888;
    padding: 10px;
    border-radius: 10px;
}

.intro1,
.intro2 {
    margin-bottom: 50px;
}

.cv-section {
    margin-bottom: 20px;
}

.cv-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.cv-section h3 {
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 5px;
}

.cv-section p {
    margin: 5px 0;
}

.cv-section ul {
    list-style-type: disc;
    padding-left: 20px;
}


/* -------------- ANIMATIES -------------- */


header h1 span {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.1s ease-in-out forwards;
}

/* Definieer de fade-in animatie */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Voeg vertraging toe aan elke letter voor een sequentieel effect */
header h1 span:nth-child(1) {
    animation-delay: 0.1s;
}

header h1 span:nth-child(2) {
    animation-delay: 0.2s;
}

header h1 span:nth-child(3) {
    animation-delay: 0.3s;
}

header h1 span:nth-child(4) {
    animation-delay: 0.4s;
}

header h1 span:nth-child(5) {
    animation-delay: 0.5s;
}

header h1 span:nth-child(6) {
    animation-delay: 0.6s;
}

header h1 span:nth-child(7) {
    animation-delay: 0.7s;
}

header h1 span:nth-child(8) {
    animation-delay: 0.8s;
}

header h1 span:nth-child(9) {
    animation-delay: 0.9s;
}

header h1 span:nth-child(10) {
    animation-delay: 1.0s;
}

header h1 span:nth-child(11) {
    animation-delay: 1.1s;
}

header h1 span:nth-child(12) {
    animation-delay: 1.2s;
}

header h1 span:nth-child(13) {
    animation-delay: 1.3s;
}

header h1 span:nth-child(14) {
    animation-delay: 1.4s;
}

header h1 span:nth-child(15) {
    animation-delay: 1.5s;
}

header h1 span:nth-child(16) {
    animation-delay: 1.6s;
}

header h1 span:nth-child(17) {
    animation-delay: 1.7s;
}

header h1 span:nth-child(18) {
    animation-delay: 1.8s;
}

header h1 span:nth-child(19) {
    animation-delay: 1.9s;
}

header h1 span:nth-child(20) {
    animation-delay: 2.0s;
}

header h1 span:nth-child(21) {
    animation-delay: 2.1s;
}

header h1 span:nth-child(22) {
    animation-delay: 2.2s;
}

header h1 span:nth-child(23) {
    animation-delay: 2.3s;
}



/* -------------- RESPONSIVE - DESIGNS -------------- */



@media (max-width: 600px) {
    .main-content {
        margin-left: 10px;
    }

    header h1 {
        font-size: 20px;
        margin: 5px;
    }

    .container {
        flex-direction: column;
    }

    .sidenav {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 0;
        padding-right: 0;
    }

    .sidenav ul {
        display: flex;
        flex-direction: row;
        width: auto;
    }

    .sidenav ul a {
        flex-direction: row;
        padding: 10px;
    }

    div.row {
        display: flex;
        justify-content: center;
    }
}