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

/* ===== BASIS ===== */
html, body {
    height: 100%;
}

body {
    font-family: "Cinzel", "Georgia", serif;
    background-color: #000;
    color: #d7c693;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Achtergrond met affiche (zorg dat de bestandsnaam klopt op de server) */
.background-x {
    position: fixed;
    inset: -5%;
    background:
        radial-gradient(circle at 50% 15%, rgba(0,0,0,0.45), transparent 55%),
        url("Affiche lalegende.png") center center / cover no-repeat;
    z-index: 0;
    filter: saturate(1.1) contrast(1.1);
}

/* Donkere vignet-overlay */
.overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(0,0,0,0.2), transparent 45%),
        radial-gradient(circle at bottom, rgba(0,0,0,0.85), rgba(0,0,0,1));
    z-index: 1;
}

/* ===== GIGANTISCHE RODE X VOOR INDEXPAGINA ===== */
/* Deze laag gebruik je alleen op index.php (niet op bevestiging.php) */
.big-x-layer {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2; /* achter mist en content, boven overlay */
}

.big-x-layer .big-x {
    font-size: min(80vw, 120vh);   /* schermvullend */
    line-height: 0.8;
    font-family: "Cinzel", serif;
    color: #8b1111;
    text-shadow:
        0 0 40px rgba(0,0,0,0.95),
        0 0 90px rgba(0,0,0,0.9);
    opacity: 0.95;
}

/* ===== BEWEGENDE MIST ===== */
.fog-layer {
    position: fixed;
    inset: -15%;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 60%),
        radial-gradient(circle at 80% 40%, rgba(255,255,255,0.04), transparent 55%),
        radial-gradient(circle at 30% 80%, rgba(255,255,255,0.05), transparent 55%);
    z-index: 3;
    animation: drift 30s infinite linear;
    opacity: 0.4;
}

.fog-layer.front {
    animation-duration: 45s;
    opacity: 0.6;
}

@keyframes drift {
    0% { transform: translateX(-8%); }
    100% { transform: translateX(8%); }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 2.5rem 1.5rem 2.75rem;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(4px);
}

/* ===== TITELS VOLGENS AFFICHE ===== */
.title-top {
    font-size: clamp(1.4rem, 5vw, 2.1rem);
    letter-spacing: 0.32rem;
    color: #d7c693;
    margin-bottom: 0.8rem;
}

.title-x {
    font-size: clamp(5rem, 34vw, 9rem);
    line-height: 0.9;
    color: #8b1111;
    text-shadow: 0 0 24px rgba(0,0,0,0.95);
    margin-bottom: 0.8rem;
}

.title-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    letter-spacing: 0.35rem;
    text-transform: uppercase;
}

.title-bottom .separator {
    font-size: 1.1em;
}

/* ===== VIDEO WRAPPER (legende.mp4) ===== */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 1.6rem auto 2.1rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 26px rgba(0,0,0,0.9);
    background: rgba(0,0,0,0.75);
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 verhouding */
}

.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* ===== MYSTERIEKNOP ===== */
.mystery-button {
    margin-top: 2.3rem;
    padding: 0.9rem 2.8rem;
    width: 100%;
    max-width: 260px;
    font-size: 0.95rem;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(215,198,147,0.75);
    background: rgba(0,0,0,0.55);
    color: rgba(245,245,245,0.96);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(4px);
}

.mystery-button::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 10% 0, rgba(255,255,255,0.08), transparent 55%);
    opacity: 0;
    transform: translateX(-20%);
    transition: all 0.7s ease;
}

.mystery-button:hover::before {
    opacity: 1;
    transform: translateX(10%);
}

.mystery-button:hover {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 26px rgba(0,0,0,0.9);
}

.mystery-button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ===== BERICHT OP BEVESTIGINGSPAGINA ===== */
.message {
    margin-top: 1.8rem;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(230,220,200,0.95);
}

.message p + p {
    margin-top: 0.8rem;
}

.highlight {
    color: #e3c276;
    font-weight: 600;
}

/* ===== MYSTERIEUS KADER MET X-ACHTERGROND (BEVESTIGINGSPAGINA) ===== */
.mystery-frame {
    position: relative;
    padding: 1.8rem 1.4rem;
    margin-top: 2rem;
    border: 1px solid rgba(215,198,147,0.45);
    border-radius: 14px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    box-shadow:
        0 0 22px rgba(0,0,0,0.8),
        inset 0 0 18px rgba(215,198,147,0.15);
    overflow: hidden; /* X blijft binnen het kader */
}

/* Rode X als achtergrond in het kader */
.mystery-frame::after {
    content: "X";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: min(70vw, 90vh);
    font-weight: 700;
    font-family: "Cinzel", serif;
    color: rgba(139, 17, 17, 0.22);
    text-shadow:
        0 0 20px rgba(0,0,0,0.8),
        0 0 40px rgba(0,0,0,0.9);

    pointer-events: none;
    z-index: 0;
}

/* Tekst boven de X */
.mystery-frame .message {
    position: relative;
    z-index: 1;
}

/* ===== FOOTER-JAREN ===== */
.footer-years {
    margin-top: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ===== RESPONSIVE EXTRA ===== */
@media (min-width: 768px) {
    .container {
        padding-top: 3.2rem;
        padding-bottom: 3.2rem;
    }
}
/* ===== TRANSPARANTE RODE X OVERLAY ===== */
.x-overlay {
    position: fixed;
    inset: 0;
    background: url("x-overlay.png") center center / contain no-repeat;
    opacity: 0.50; /* transparantie van de X */
    z-index: 2; /* boven achtergrond, onder mist en content */
    pointer-events: none;
    filter: saturate(1.05) brightness(0.85);
}

