/*
Animation timings:
b: 0.1s for 1s
&: 0.6s for 1s
v: 1.1s for 1s
Opening fade: 5.5s for 1s
Typing slogan: 1.7 for 2s
Red line: 4s for 1s
Fade out of opening: 5.5s for 1s
Font page fade in: 6.5s for 1s
Navigation, logo and footer: 7.1s
*/


body {
    background-color: black;
    color: white;
    font-family: calibri;
    /*overflow: hidden; prevents scrolling*/
    margin-left: 0px;
    margin-right: 0px;
}

/*Intro animation*/

.opening {
    background-color: black;

    width:100%;
    height:800px;
    padding-top:400px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    animation: openingfade 1s 5.5s forwards;
}

@keyframes openingfade {
    from {opacity:1;}
    to {opacity:0;}
}

.openinglogo {
    display: block;
    text-align: center;
    margin: 50px auto;
    overflow: hidden;
}

.opening img{
    height: 130px;
}

.b{
    animation: fallin 1s 0.1s forwards;
    opacity:0
}

.and{
    animation: fallin 1s 0.6s forwards;
    opacity:0
}

.v{
    animation: fallin 1s 1.1s forwards;
    opacity:0
}

@keyframes fallin {
    from {opacity:0; transform: translateY(-60px);}
    to {opacity:1; transform: translateY(0px);}
}

.typewriter {
    width: 168px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.typewriter h1 {
    font-size:1.5em;
    width: 100%;
    background-color: black;

    color: #fff;
    font-family: monospace;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid red; /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: .075em;
    animation: 
    typing 1.7s steps(26, end) 2s both,
    blink-caret 1s step-end 1s infinite both;
    opacity: 0;
}

/* The typing effect */
@keyframes typing {
  0% { width: 0px; opacity:1; }
  100% { width: 100%; opacity:1; }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: red }
}

.red-line {
    height: 2px;
    background-color: red;
    width: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    
    animation: growLine 1s cubic-bezier(0.7, 0, 0.3, 1) 4s forwards;
}

@keyframes growLine {
    from {
        width: 0;
    }
    to {
        width: 110%; /* Groeit tot de breedte van de tekst */
    }
}


/* menu */
section {
    margin: 0px 3vw;
    min-width: 230px;
    flex-shrink: 0;
}

img.logo {
    /*centers image under nav*/
    display: block;
    margin: auto;

    margin-top: 30px;
    width:160px;

    animation: NavSlide 1s ease-out 7.1s forwards;
    opacity: 0;
}

img.small-logo {
    display:none;
}

nav {
    margin-top: 7px;
    border: solid 2px red;

    background-color: #111;
    /*background-color: black;*/

    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5), 
                0 0 10px rgba(255, 0, 0, 0.2);

    animation: NavSlide 1s ease-out 7.1s forwards;
    opacity:0;
    
}

@keyframes NavSlide {
    from {
        transform: translateX(-200px);
        opacity: 0;
    }
    to {
        transform: translateX(0px);
        opacity: 1;
    }
}


nav ul li {
    list-style: none;
    color: white;
    line-height: 40px;
}
nav ul li:hover {
    list-style: disc;
    color: red;
    font-size: 1.11em;
}

#special:hover {
    color: white;
    list-style: none;
    font-size: 1em;
}

#page {
    color: red;
}

a.menu {
    text-decoration: none;
    color: white;
}

/* content */

article.main {
    /*padding: 5% 20%;*/
    /*padding-top: 50px;*/
    text-align: center;
    margin: auto;
    margin-top: 23px;
}

.main {
    animation: positioningfade 1s 6.5s backwards;
}

@keyframes positioningfade {
    from {opacity:0;}
    to {opacity:1;}
}

article.main h2 {
    font-size:1.25em;
}

h1 {
    color: grey;
    font-size: 4rem;
}

article.inline {
    float: left;
    margin: 0px 0px 0px 0px;
}

h1 {
    padding: 0px;
    margin: 0px;
}


/* footer */

article.center {
    top: 700px;
    /*
    margin: 120px 0 20px;
    text-align: center;
    width: 100%;
    position: absolute;
    */
    margin: auto;
    width: 100%;
    text-align: center;
    position: absolute;

    /*
     position

    left: 0;
    bottom: 0;
    height: 50px;

    overflow: hidden;
    */

}

footer {
    animation: footerfade 1s ease-out 7.1s forwards;
    opacity: 0;
}

footer p {
    display: inline-block;
    color: grey;
}

p.footer:nth-child(even) {
    color: red;
}

footer p.footer:last-child {
    color: red;
    text-decoration: none;
}

@keyframes footerfade {
    from {opacity:0; transform: translateY(30px);}
    to {opacity:1; transform: translateY(0px);}
}

a.email {
    text-decoration: none;
    color: red;
}

a.email:hover {
    text-decoration: underline;
}

.footer-text {
	display:block;
}

.footer-icons {
	display:none;
}

/* positioning */
.flex-container {
    margin-top: 1.9vw;
    display: flex;
    flex-direction: row;
    
}

section {
    margin: 0px 3vw;
    min-width: 230px;
    flex-shrink: 0;
}

nav {
    font-size: 1.1em;
    min-height: 420px;
    margin-top: 23px; /*margin-top of h1 + 7px*/
}

article.main {
    flex-shrink: 0;
    align-self:center;
    padding-right: calc(233px + 6vw);

}

/*phone compatibility*/
/* Verberg het hamburger icoon standaard (voor desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 10px;
    color: white;
    border-bottom: 1px solid red;
}

/* Media Query voor GSM/Mobiel */
@media screen and (max-width: 768px) {
    /* Stapel de flexbox elementen onder elkaar */
    .flex-container {
        flex-direction: column;
	margin-top:0px;
    }

    section {
        margin: 10px auto;
	margin-top: 0px;
        padding-right: 0px;
        width: 100%;
        background-color: black;

        position: fixed;
        top: 0;
        z-index: 1000;
    }



    img.logo {
    display:none;
    }

    img.small-logo {
        position: fixed;
        top: 8px;
        top: -192px;
	right:8px;
	display: block;
	height: 50px;

	opacity: 1; 

        animation: SmallLogoSlide 1s ease-out 7.1s forwards;
	transition: opacity 0.5s ease-in-out;
    }

    header {
    width:100%;
    word-wrap: break-word;
    }

/*    nav {
	margin-top: 10px;
        min-height: auto;
        padding-right: 0;
    }*/

    nav {
	margin: auto;
	margin-left: 8px;
        margin-top: 10px; /* Verwijder de marge aan de bovenkant voor een naadloze aansluiting */
        min-height: auto;
        padding-right: 0;
        width: 10%;
        box-shadow: 0 2px 10px rgba(255, 0, 0, 0.5);

	transition: width 0.5s ease-in-out;
    }

    /* Toon het hamburger icoon */
    .hamburger {
        display: block;
    }

    /* Verberg het menu standaard op mobiel */
    nav ul.first {
        display: block;
	opacity:0;
	max-height:0;
	overflow: hidden;
	transition: max-height 0.5s ease-in-out, opacity 0.3s ease;

        padding: 0;
        margin: 0;
	margin-left: 25%;
    }

    /* Toon het menu als de checkbox is aangevinkt */
    nav:has(#menu-toggle:checked) {
        width: 95%;
    }

    #menu-toggle:checked ~ ul {
        max-height:1200px;
	opacity:1;
    }

    body:has(#menu-toggle:checked) .small-logo {
        opacity:0 !important;
    }

    /* Sub-lijst (zorg, wonen, etc.) aanpassen voor mobiel */
    nav ul ul {
        display: block; /* Altijd tonen als het hoofdmenu open is */
    }

@keyframes NavSlide {
    from {
        transform: translateY(-200px);
        opacity: 0;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
    }

@keyframes SmallLogoSlide {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(200px);
    }
    }

    article.main {
        display: flex;
	flex-direction: column;
        padding-right: 0;
        width: 100%;

	margin-top: 53px;
    }

    header {
    margin-bottom: 0px;
    margin-top: 25px;
    }

    header.title {
    margin-bottom: 50px;
    margin-top: 0px;
    order: -2;
    }

    figure {
        margin-left: 0;
        width: 100%;
    }


    article.center {
        position: relative !important;
        top: 0 !important;
        margin: 40px 0 !important;
        transform: none !important;
        left: 0 !important;
    }


    .footer-text {
        display: none;
    }

    .footer-icons {
        display: flex;
        justify-content: center;
        gap: 30px; /* Ruimte tussen de iconen */
        margin-bottom: 15px;
    }

    .footer-icons a {
        color: red; /* Primaire kleur uit het ontwerp */
        font-size: 1.8rem;
        transition: transform 0.3s ease, color 0.3s ease;
        text-decoration: none;
    }

    .footer-icons a:hover {
        transform: scale(1.2);
        color: white; /* Kleurverandering bij hover */
    }

    .footer-icons {
        gap: 30px;
    }
    
    .footer-icons a {
        font-size: 1.2rem;
    }

}

