:root {
    /* Achtergrondkleuren */
    --primary-background: #FFF9F0;
    --cards-background: #f3faedae;
    --content-blocks-background-hover: #fffbe9;
    --content-background: #c3cfaf;

    /* Kernaccenten */
    --primary-accent: #6aa341;
    --primary-accent-dark: #568F34;    /* contrast en hover-effecten */
    --primary-accent-hover: #8BCF6F;   /* mouseover states */

    /* Extra accenten */
    --secondary-accent: #FF6F61;
    --tertiary-accent: #4FC3F7;

    /* Tekstkleuren */
    --text: #333333;
    --heading-color: #375b21;
    --subtle-highlight: #B8C5A1;

    /* content panels */
    --background: rgba(255, 255, 255, 0.205);
    --border-color: rgba(255, 255, 255, 0.2);
    --border-width: 1px;
    --border-radius: 16px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

::selection {
    color: var(--text);
    background: var(--primary-background);
}

html {
    font-size: 130%;
    scroll-behavior: smooth;
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--primary-background);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--heading-color, #7AAE7A);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04rem;
}

h1 small {
    display: block;
    font-size: 0.4em;
    font-weight: 900;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text, #333333);
}

h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02rem;
}

h3 {
    font-weight: 700;
    font-size: 16px;
    margin: 0.75rem 0;
}

p {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 1em 0;
}

a {
    text-decoration: none;
    font-weight: 700;
}

a {
    color: var(--primary-accent-dark, #4c644c);
}

hr {
    border: none;
    height: 5px;
    border-radius: 5px;
    background: var(--primary-accent);
}

.wrapper{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100vh;
}

.side-bar {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    position: fixed;
    top: 10px;
    bottom: 10px;
    right: 10px;
    width: 350px;
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */

    background-color: var(--content-background);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--border-color);
}

.side-bar::-webkit-scrollbar {
    display: none;
}

.content {
    flex: 1 1 auto;
    width: auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    padding:0px 35px 0px 35px;
    margin-right: 350px;
}

.content-box {
    box-sizing: border-box;
    width: 100%;
    padding: 40px;
    padding-top: 20px;

    background-color: var(--content-background);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--border-color);
}

.conditional-break {
    display: none;
    flex-basis: 100%;
    height: 0;
}

#about {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

#about-flex {
    display: flex;
    flex-flow: column nowrap;
}

.fold-top {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    height: auto;
    width: min(100%, auto);
    align-items: center;
    gap: 20px;
}

.title {
    margin-left: -10px;
    width: 200px;
    height: auto;
    user-select: none !important;
}

.title > img {
    max-width: 300px;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    overflow: clip;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(4px 4px 2px var(--text));
}

.about {
    width: max(50%, 600px);
}

.about-button-container {
    flex-grow: 4;
    margin-right: 0px;
    display: flex;
    justify-content: center;
}

.about-button-container > a > span {
    width: 120px;
    margin-left: auto;
}

.break {
    flex-basis: 100%;
    height: 0;
}

.top-bar {
    display: flex;
    position: relative;
    width: 95%;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 5%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.top-bar::before, .top-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--lightblue-a);
    border-radius: 5px;
}

.top-bar::before {
    top: 0;
}

.top-bar::after {
    bottom: 0;
}

.cat-icon {
    background-color: var(--primary-accent-dark);
    border-radius: 50px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.cat-icon > img {
    width: 20px;
    height: 20px;
}

.content-wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 20px;
}

.social-bar {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 5%;
    margin-bottom: 20px;
}

.button {
    display: flex;
    flex-flow: center;
    align-items: center;
    justify-content: flex-start;
    padding: 0.25em 0.75em;
    background-color: var(--primary-accent);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.button > h3 {
    margin: 0;
    font-weight: 500;
    color: var(--primary-background);
    transition: padding-left 0.25s ease-in-out;
}

.card-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: auto;
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;

    width: 9em;
    height: auto;
    padding: 0.5em;;
    margin-bottom: 1em;
    border-radius: 25px;
    background: var(--cards-background);
    text-align: left;
    border: 5px solidvar(--cards-background);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 10% 10% 2% 2%;
    overflow: clip;
    border: 10px solid var(--white);
}

.card-image > img {
    overflow: clip;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card-bottom {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100%;
    margin-left: 5px;;
    align-items: center;
    text-align: left;
    gap: 5px;
    padding: 5px;
    padding-top: 15px;
}

.card-text {
    width: 135px;
}

.card-text > h2 {
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 20px;
}

.card-text > h3 {
    margin-top: 4px;
    margin-bottom: 0;
    color: var(--text);
}

#footer {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding-bottom: 20px;
}

#footer-flex {
    display:flex;
    flex-flow: column nowrap;
}

@media (max-width: 1480px) {
    .about-button-container {
        order: 2;
    }

    .about {
        order: 3;
    }
}

@media (max-width: 1200px) {
    .top-bar {
        flex-flow: column wrap;
    }
}

@media (max-width: 992px) {
    h1, h2, h3 {
        letter-spacing: 0;
    }

    .side-bar {
        overflow: scroll;
        overflow-x: hidden;
        width: 35%;
    }

    .content {
        margin-right: 35%;
    }

    .card-container {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 808px) {
    .content {
        flex-flow: column nowrap;
        padding: 5% 5% 0% 5%;
        margin-right: 0%;
    }

    .wrapper {
        display: flex;
        flex-flow: column nowrap;
    }

    .side-bar {
        position: static;
        width: 100%;
        height: auto;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .fold-top {
        margin-bottom: 20px;
        flex-flow: column wrap;
        align-items: flex-start;
        margin-top: 0%;
    }

    .title {
        width: 100%;
        align-content: center;
    }
    
    .title > img {
        max-width: 100%;
        max-height: 300px;
        width: auto;
        height: 100%;
        object-fit: contain;
    }

    #about {
        border-top-left-radius: var(--border-radius);
        border-top-right-radius: var(--border-radius); 
    }

    .about {
        width: 100%;
    }

    .header-small::before {
            content:"\a";
            white-space: pre;
    }

    .conditional-break {
        display: block;
    }
}

@media (max-width: 632px) {
    .project-card {
        width: 150px;
    }
}

@media (max-width: 400px) {
    .title {
        width: 100%;
        text-align: center;
    }
    
    .title > img {
        max-width: 100%;
        max-height: 300px;
        width: auto;
        height: 100%;
        object-fit: contain;
    }
}

.bottom-bar{
    margin-top:auto;              /* duwt inhoud naar de onderkant */
    display:flex;
    justify-content:flex-end;     /* knop rechts uitlijnen */
}

/* laat knop zelf auto-breedte houden */
.lang-toggle{
    width:auto;
    white-space:nowrap;
}

/* voorbeeld: geen hover-lift voor toggle */
.lang-toggle:hover{
    transform:none;
    box-shadow:none;
}

/* je had bullets, maar voor zekerheid: */
.lang-toggle .cat-icon img{ width:20px; height:20px; }

/* Handles different language display*/
.lang {
    display: none;
}

.active {
    display: block;
}