:root{
    --primary: #D9C2B0;
    --secondary: #f4C2C2;
    --light: #f7f7f7;
    --dark: #222222;
    --shadow: #cccccc 2px 2px 4px;
    --shadow-small:#cccccc 1px 1px 4px;
    --shadow-bruinSmall:#a08674 1px 1px 4px;
    --shadow-Ssmall:#cccccc 0px 1px 3px;
    --shadowContact:#a08674 2px 2px 4px;
    --lightHover: rgb(232, 232, 232);
    --background: url(../content/media/backgroundTexture.webp);
}


/*------------ OVER MIJ ------------ */
#overMij{
    padding: 3em 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5em;
    width: 90%;
    margin: auto;
    height: min-content;
}
#overMijLinks{
    margin-left: 3em;
    opacity: 1;
    margin-top: 0;
}

#overMijTitel{
    display: flex;
    flex-direction: row;
}
#overMijTitel img{
    width: 2em;
    margin-left: 0.5em;
}

#overMijTekst{
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 1.5em;
    margin-top: 2em;
}

.overMijOnderwerp button{
    position: relative;
    display: flex;
    gap: 0.5em;
    align-items: center;
    font-size: 19px;
    width: 100%;
    border-bottom: var(--primary) solid 2px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 3px;
}
.overMijOnderwerp img{
    height: 1.6em;
    margin-bottom: 0.2em;
}
.accImgRechts{
    position: absolute;
    right: 0;
    height: 1em !important;
}

.overMijOnderwerp button:hover{
    background-color: #00000021;
}

.accordion{
    display: none;
}

/*------------ PORTRET CAROUSEL ------------ */
#overMijRechts{
    display: flex;
    justify-content: center;
    max-height: auto;
    transform: scale(1);
}

#portret{
    position: relative;
    width: 50%;
    margin-top: 3em;
    margin-left: -10%;
}
#portret > img{
    position: absolute;
    width: 100%;
    border: solid var(--light) 10px;
    box-shadow:var(--shadow);
}
#detail{
    transform: rotate(7deg);
}
#detail2{
    transform: rotate(-5deg);
}

#voor{
    animation: voor 7s infinite;
}
#achter{
    animation: achter 7s infinite;
}


/*------------ TECHNIEK ------------ */
#techniek{
    margin: 3em 0;
    padding: 3em 0 1em 0;
    background-color: var(--primary);
    box-shadow: var(--shadow);
}
#techniek h2{
    color: var(--light);
    text-align: center;
    margin-bottom: 1em;
    font-size: 28px;
}

#techniekOnderwerpen{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2em;
    width: 90%;
    margin: auto;
}

.kaart{
    background-color: var(--light);
    box-shadow: var(--shadowContact);
    padding: 1em;
    height: max-content;
    margin-top: 0;
    opacity: 1;
}
.kaart:hover{
    background-color: var(--lightHover);
    animation: smallHover 1.5s ease-in-out;
}

.techniekOnderwerpTitel{
    position: relative;
    display: grid;
    grid-template-columns: 9% auto 9%;
    margin-left: 1%;
    align-items: center;
}
.kaart h3{
    font-weight: normal;
    font-family: 'textFont';
    font-size: 18px;
}
.techniekIcoon{
    height: 1.5em;
}
.techniekProgramIcoon{
    height: 2.5em;
    margin: auto;
}
.lijn2{
    width: 95%;
    height: 2px;
    background-color: var(--primary);
    margin: 0.5em auto;
}
.uitvouwen{
    display: none;
}

#extraLogos{
    display: flex;
    float: row;
    gap: 4em;
    justify-content: center;
    margin: 2em 0 0 0;
}
.logoMetTekst{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
    color: var(--light);
    font-weight: bold;
}

.logoBreedte{
    width: 2em;
}
.logoHoogte{
    height: 2em;
}
#logoArduino{
    height: 1.5em;
}
.logoMetTekst img  {
    filter: invert(1);
}


/*------------ KENNIS EN ERVARING ------------ */
#werkHighlights{
    padding: 4em 0 6em 0;
    position: relative;
    z-index: 2;
    background-image: var(--background);
    background-repeat: repeat;
    background-size: 8em 8em;
    box-shadow: var(--shadowContact);
}

#werkHighlights h2{
    text-align: center;
}

#highlighting{
    position: absolute;
    background-color: #f4c2c2aa;
    width: 6.3em;
    height: 1.4em;
    padding: 0.2em 0;
    margin-left: -5.5em;
    margin-top: -0.2em;
    z-index: -1;
}

#topWerken{
    display: flex;
    gap: 3em;
    margin: 4em auto 2em auto;
    width: 90%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}
.topWerk{
    background-color: var(--primary);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .3s;
}
.topWerk:hover{
    transition: all 0.3s ease-in-out;
    transition-delay: 0.2s;
    transform: rotate(3deg);
    background-color: #ccb29f;
}

.topWerkIcoon {
    position: absolute;
    top: -3.5em;
    background-color: var(--light);
    width: 6.5em;
    height: 6.5em;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: var(--shadow-small);
}
.topWerkIcoon img{
    width: 70%;
}
:root {
    --topwerkIframeWidth: 29em;
}
.topWerk iframe{
    height: calc(var(--topwerkIframeWidth) * 0.5625);
    width: var(--topwerkIframeWidth);
    margin: 1.5em 0 0 0;
}
.topWerk h3{
    font-weight: bold;
    margin: 1em;
    color: var(--light);
}




#meerWerk{ 
    display: flex;
    justify-content: center;
}
#meerWerk a{
    text-align: center;
    display: flex;
    align-items: center;
    width: max-content;
    font-size: 19px;
    margin-right: 0.5em;
}

#meerWerk img{
    height: 1.3rem;
    margin-left: 0.3rem;
    animation: pijltje 3s infinite;
}


@media (prefers-reduced-motion: no-preference){
    @keyframes voor{
        30% {left: 0%; transform: scale(100%); transform: rotate(0deg);}
        40% {left: 30%; opacity: 1; z-index: 1; transform: scale(97%);transform: rotate(9deg);}
        50% {left: 0%; z-index: -1; opacity: 0.3; transform: scale(95%);transform: rotate(0deg);}
        51% {opacity: 1;transform: scale(100%);}
    }
    @keyframes achter{
        80% {left: 0%; transform: scale(100%); transform: rotate(0deg);}
        90% {left: 30%; opacity: 1; z-index: 1; transform: scale(97%);transform: rotate(9deg);}
        99% {left: 0%; z-index: -1; opacity: 0.3; transform: scale(95%);transform: rotate(0deg);}
        100% {opacity: 1;transform: scale(100%);}
    }
    @keyframes smallHover{
        0% {transform: rotate(0deg);}
        30% {transform: rotate(0.75deg);}
        60% {transform: rotate(-1.5deg);}
        0% {transform: rotate(0deg);}
    }
    @keyframes pijltje{
        0% {
            margin-left: 0;
            margin-right: 0.6rem;
        }
        30% {
            margin-left: 0.4rem;
            margin-right: 0.2rem;
        }
        50% {
            margin-left: 0.2rem;
            margin-right: 0.4rem;
        }
        80% {
            margin-left: 0.6rem;
            margin-right: 0;
        }
        100% {
            margin-left: 0;
            margin-right: 0.6rem;
        }
    }
}


