﻿/* Animatiesleutelframes voor het pulserende effect */
@keyframes tijdelijk-pulsing {
    0% {
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 5px rgba(255,255,255,0.8);
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
        text-shadow: 0 0 10px rgba(255,255,255,0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 5px rgba(255,255,255,0.8);
    }
}

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

/* Maak alle geanimeerde elementen aanvankelijk onzichtbaar */
.tijdelijk-container, .tijdelijk-icon, .tijdelijk-h1, .tijdelijk-h2, .tijdelijk-countdown-item, .tijdelijk-countdown-label, .tijdelijk-p1, .tijdelijk-p2 {
    opacity: 0;
}

@font-face {
    font-family: 'Moonbright Demo';
    src: url('../fonts/Moonbright Demo.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('../fonts/JosefinSans-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anthony Hartman';
    src: url('../fonts/Anthony Hartman.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arapey';
    src: url('../fonts/Arapey-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Mrs Saint Delafield';
    src: url('../fonts/MrsSaintDelafield-Regular.woff2') format('woff2'), 
         url('../fonts/MrsSaintDelafield-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    --tijdelijk-bg-makeupkwast-groen: url("../img/tijdelijk/bg-makeupkwast-groen-960x1440.webp");
    --tijdelijk-bg-makeupkwast-beige: url("../img/tijdelijk/bg-makeupkwast-beige-960x1440.webp");
    --tijdelijk-bg-makeupkwast-roze: url("../img/tijdelijk/bg-makeupkwast-roze-960x1440.webp");
    --twistvliet-loc-veld-full: url("../img/twistvliet/TwistvlietVeldCeremonieFull.webp");
    --twistvliet-loc-veld-isle: url("../img/twistvliet/TwistvlietVeldCeremonieIsle.webp");
    --uitnodiging-achtergrond: #fff;
    --uitnodiging-ProgAchtergrond: #90a69b;
    --uitnodiging-tekstKleurGroen: #6e7e71;
    --uitnodiging-tekstKleurRoze: #EFC0A5;
    --uitnodiging-fontTitels: 'Arapey', serif;
    --uitnodiging-fontHoofdTekst: 'Josefin Sans', 'Trebuchet MS', 'Arial', sans-serif;
    --uitnodiging-fontAltTekst: 'Anthony Hartman', cursive;
    --uitnodiging-fontFancyTekst: 'Mrs Saint Delafield';
    --uitnodiging-font-grootte-titels: 2.5rem;
    --uitnodiging-font-grootte-tekst: 1.2rem;
    --uitnodiging-font-grootte-incidenteel: 1.5rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--uitnodiging-fonthoofdtekst);
    background: transparent;
    color: var(--uitnodiging-tekstKleurGroen);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: var(--twistvliet-loc-ceremonie);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
}

    body.uitnodiging-heledag {
        --tijdelijk-bg-after: var(--tijdelijk-bg-makeupkwast-beige);
    }

    body.uitnodiging-middag {
        --tijdelijk-bg-after: var(--tijdelijk-bg-makeupkwast-roze);
    }

    body.uitnodiging-avond {
        --tijdelijk-bg-after: var(--tijdelijk-bg-makeupkwast-groen);
    }

    body::before,
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
    }

    body::before {
        background: var(--twistvliet-loc-veld-full) no-repeat center center;
        background-size: cover;
        filter: brightness(50%);
        z-index: -10;
    }

    body::after {
        background: var(--tijdelijk-bg-after) no-repeat center center;
        background-size: contain;
        z-index: -1;
        background-position: center;
        background-repeat: no-repeat;
        mask-image: linear-gradient(to left, transparent, black 30%, black 70%, transparent);
        -webkit-mask-image: linear-gradient(to left, transparent, black 30%, black 70%, transparent);
    }


.tijdelijk-container {
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2.2rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 2.2px solid rgba(255, 255, 255, 0.2);
    margin: auto;
    max-height: 88vh;
    overflow-y: auto;
}

.tijdelijk-status-container {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tijdelijk-menu-overlay-bg {
    z-index: 50 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.tijdelijk-icon {
    width: clamp(40px, 5vw, 70px);
    max-width: 96px;
    max-height: 96px;
    height: auto;
    margin: 0.05rem auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
    object-fit: contain;
}

.h1-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.h1-group h1 {
    margin: 0;
}
.h1-group h1:not(:last-child) {
    margin-bottom: 0.01em;
 }

 .h1-group h1:nth-child(1),
 .h1-group h1:nth-child(2) {
    margin-bottom: 0.05em;
 }
 .h1-group h1.tijdelijk-h1:last-child {
    margin-top: 0.5em;
 }

.tijdelijk-h1 {
    font-family: var(--uitnodiging-fontFancyTekst);
    font-size: clamp(2.8rem, 6.0vw, 3.3rem);
    color: var(--uitnodiging-tekstKleurGroen);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    width: 100%;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 0;
    line-height: 1.0; /* of zelfs 0.9 of 0.8 als je het nog compacter wilt */
}

.tijdelijk-hd1 {
    font-family: var(--uitnodiging-fontAltTekst);
    font-size: clamp(4.0rem, 8.2vw, 4.5rem);
    color: var(--uitnodiging-tekstKleurRoze);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    width: 100%;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 0; /* verwijder extra marge */
    line-height: 1.0; /* of zelfs 0.9 of 0.8 als je het nog compacter wilt */
}

.tijdelijk-h1andper {
    font-family: var(--uitnodiging-fontFancyTekst);
    font-size: clamp(2.8rem, 6.0vw, 3.3rem);
    color: var(--uitnodiging-tekstKleurGroen);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    width: 100%;
    text-align: center;
    white-space: nowrap;
    margin: 0;
    line-height: 1.0;
    margin-bottom: 0em;
    position: relative;
    top: 20px;
}

.tijdelijk-h2 {
    font-family: var(--uitnodiging-fontTitels);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 1.5rem;
    color: var(--uitnodiging-tekstKleurRoze);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.tijdelijk-countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.tijdelijk-countdown-item {
    font-family: var(--uitnodiging-fontTitels);
    font-size: clamp(2.2rem, 3.0vw, 2.5rem);
    color: var(--uitnodiging-tekstKleurGroen);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

    .tijdelijk-countdown-item span {
        display: block;
        font-family: var(--uitnodiging-fontFancyTekst);
        font-size: clamp(2.5rem, 5vw, 3rem);
        font-weight: bold;
        margin-bottom: 0.3vw;
        line-height: 1;
        text-shadow: 0 0 5px rgba(0,0,0,0.5);
    }

.tijdelijk-countdown-label {
    font-family: var(--uitnodiging-fontFancyTekst);
    font-size: clamp(2.2rem, 3.0vw, 2.5rem);
    line-height: 1;
    color: var(--uitnodiging-tekstKleurRoze);
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.tijdelijk-p1 {
    margin: 0 auto;
    font-family: var(--uitnodiging-fontTitels);
    font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    color: var(--uitnodiging-tekstKleurRoze);
    line-height: 1.8;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    width: 100%;
    display: block;
    text-align: center;
}

    .tijdelijk-p1 span {
        display: block;
        line-height: 1.0;
        margin: 0;
        padding: 0;
    }

.tijdelijk-p2 {
    margin: 0 auto;
    font-family: var(--uitnodiging-fontTitels);
    font-size: clamp(1.0rem, 3.8vw, 1.4rem);
    color: var(--uitnodiging-tekstKleurRoze);
    line-height: 1.8;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    width: 100%;
    display: block;
    text-align: center;
}

.tijdelijk-countdown-container .tijdelijk-h2 {
    font-family: var(--uitnodiging-fontTitels);
    font-size: clamp(2rem, 4vw, 2.4rem);
    font-weight: normal;
    color: var(--uitnodiging-tekstKleurGroen);
    text-align: center;
    margin-bottom: 1rem;
}

/* Aangepaste scrollbar-stijlen */
.tijdelijk-container::-webkit-scrollbar {
    width: 8px;
    height: 25%;
    position: absolute;
    right: 0;
    top: 37.5%;
}

.tijdelijk-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    height: 25%;
    position: absolute;
    right: 0;
    top: 37.5%;
}

.tijdelijk-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
}

/* Firefox-scrollbar */
.tijdelijk-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.05);
}

/* Edge/IE-scrollbar */
.tijdelijk-container {
    -ms-overflow-style: scrollbar;
}

.p-group {
    display: flex;
    flex-direction: column;
    gap: 0em;
}