﻿/* ================================================================
   KLEUREN & CSS-VARIABELEN
================================================================ */
:root {
    --brand: #ffb44d;
    --bg-light: #fceedc;
    --bg-dark: #f7fae8;
    --bg-other: #ffffec;
    --text-dark: #0d2545;
    --text-darker: #041020;
    --bg-clear: #fff;
    --card-bg: #ffffffee;
    --radius: 18px;
    --shadow: 0 6px 22px rgba(0,0,0,.08);
    --header-height: 72px;
}

/* ================================================================
   RESET & BASIS
================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}
    html.no-snap {
        scroll-snap-type: none !important; 
    }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}
.muis { cursor: pointer; }

.fullscreen {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

html {
    scroll-behavior: smooth; 
    scroll-snap-type: y mandatory;
}

.fullscreen {
    scroll-snap-align: start; 
}
footer {
    scroll-snap-align: end; 
    scroll-snap-stop: always;
}
@media (min-width: 768px) { 
    .fullscreen {
        min-height: calc(100vh - var(--header-height));
    }
}
.linkBtn {text-decoration: none;}
/* ================================================================
   TYPO
================================================================ */
h1, h2, h3 {
    font-weight: 700;
    color: var(--text-dark);
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: .6rem;
}
.exampleLink 
{ 
    text-decoration:none; 
    color: var(--text-dark); 
}
.exampleLink:hover
{ 
   color: var(--text-); 
}
/* ================================================================
   SECTIES
   – padding
   – scroll-offset voor sticky header
================================================================ */
section {
    padding: 3rem 1rem;
    /* ⇩ zorgt dat anchors (#customiser) niet onder de header verdwijnen */
    scroll-margin-top: calc(var(--header-height) + 12px);
}

/* ================================================================
   FORMS / INPUTS
================================================================ */
input,
select,
textarea {
    width: 100%;
    padding: .65rem .9rem;
    margin-top: .4rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font: 1rem 'Poppins', sans-serif;
}

/* ================================================================
   CTA-BUTTONS
================================================================ */
.cta {
    background: var(--brand);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: .9rem 2rem;
    border-radius: var(--radius);
    font-size: 1.05rem;
    transition: box-shadow .2s ease, transform .15s ease;
    margin-top: 20px; /* default marge */
}

    .cta:hover {
        box-shadow: var(--shadow);
        transform: translateY(-2px);
    }

    .cta.secondary {
        background: var(--text-dark);
    }

    .cta.third {
        background: var(--bg-clear);
        color: var(--text-dark);
        border: 1px solid #0d2545;
    }

/* ================================================================
   HERO
================================================================ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-light);
}

.checkoutSection {
    display: flex;
    align-items: flex-start;
    text-align: left;
    flex-direction: column;
    background: var(--bg-light);
}

.hero-text {
    max-width: 480px;
    padding: 1rem;
}

.hero-cover {
    width: 400px;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    border-radius: var(--radius, 18px);
    overflow: hidden;
}

.hero-cover__title {
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,.4);
    padding: .5rem .75rem;
    font-weight: 900;
    width: 100%;
}

.hero-cover__subtitle {
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,.4);
    padding: 1.5rem .75rem;
    font-weight: 100;
    width: 100%;
}

.hero-cover__coverImage {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: contain; 
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
}

.hero-cover__coverTitle {
    position: absolute; 
    inset: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top; 
    z-index: 2; 
    pointer-events: none; 
}
.hero .cta-holder {
    display: flex; 
    flex-direction: column;
    gap: 1rem; 
    width: 100%;
    align-items: flex-start;
}

    .hero .cta-holder .cta {
        width: 100%; 
        margin-top: 0; 
    }

.purchase {
    background: #fff5e9;
    text-align: center;
}

    .purchase .cta.big {
        font-size: 1.25rem;
        padding: 1.2rem 3rem;
    }

/* ---- TABLET+ ---- */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
        padding: 3.5rem 4rem;
    }

    .hero-text {
        text-align: left;
        max-width: 420px;
        padding: 0;
    }

    .hero-cover {
        width: 270px;
        margin: 0;
    }
}

/* ---- DESKTOP+ ---- */
@media (min-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-cover {
        width: 320px;
    }
}

/* ---- MOBIEL: CTA’s onder elkaar ---- */
@media (max-width: 767px) {
    .characters-row {
        flex-direction: column;
    }
        .characters-row .character-block {
            flex: 1 1 100%; /* overschrijft basis:320px  */
            width: 100%; /* extra zekerheid           */
            margin-left: 0; /* optioneel: uitlijnen      */
            margin-right: 0; /* optioneel: uitlijnen      */
        }

        .characters-row .portal-block {
            flex: 1 1 100%; /* overschrijft basis:320px  */
            width: 100%; /* extra zekerheid           */
            margin-left: 0; /* optioneel: uitlijnen      */
            margin-right: 0; /* optioneel: uitlijnen      */
        }

    .hero .cta-holder {
        width: 100%;
        flex-direction: row; /* naast elkaar */
        max-width: none; /* mag nu de volle breedte gebruiken */
        align-content: center;
    }

        .hero .cta-holder .cta {
            flex: 1 1 0; /* beide knoppen nemen 50 % */
        }
}

/* ================================================================
   CUSTOMISER
================================================================ */
.customiser {
    background: #fafafa;
}

.customiser-sub {
    color: #555;
    margin-top: -.3rem;
    margin-bottom: 1.4rem;
}

.customiser .container {
    max-width: 1100px;
    margin: 0 auto;
}

/* blok */
.character-block {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2.2rem;
    box-shadow: var(--shadow);
}
.portal-block {
    padding: 2rem;
    padding-top: 0px;
    margin-bottom: 2.2rem;
}
.uploadProtagonist{

}
/* ================================================================
   CAROUSEL
================================================================ */
.carousel {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: .9rem;
    margin-top: 0.9rem;
    position: relative;
}

    .carousel .arrow {
        border: none;
        background: none;
        font-size: 1.8rem;
        color: var(--text-dark);
        cursor: pointer;
        line-height: 1;
    }

    .carousel .char-img {
        width: 128px;
        height: 128px;
        border-radius: 50%;
        object-fit: cover;
        object-position: 50% 0%;
        box-shadow: 0 2px 6px rgba(0,0,0,.12);
    }

    .carousel .upload-btn {
        background: none;
        border: none;
        cursor: pointer;
        transition: transform .15s ease;
    }

        .carousel .upload-btn img {
            width: 80px;
            height: 120px;
            border-radius: 50%;
            opacity: .8;
        }

        .carousel .upload-btn:hover img {
            opacity: 1;
            transform: scale(1.05);
        }

        .carousel .upload-btn.selected img {
            outline: 3px solid var(--brand);
            opacity: 1;
        }

/* ================================================================
   2-koloms layout + CTA
================================================================ */
.characters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

    .characters-row .character-block {
        flex: 1 1 320px;
    }
    .characters-row .portal-block {
        flex: 1 1 320px;
    }
.character-block,
.portal-block {
    display: flex; 
    flex-direction: column;
}
/* min-breedte */

/* ================================================================
   Algemene CTA-wrap (customiser)
================================================================ */
.cta-holder {
    flex: 0 0 260px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta.big {
    font-size: 1.15rem;
    padding: 1.1rem 2.4rem;
}

/* ================================================================
   SITE HEADER
================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    transition: transform .2s ease-out, box-shadow .2s;
    height: var(--header-height);
}

    .site-header.hidden {
        transform: translateY(-100%);
    }

    .site-header .header-inner {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .9rem 1.6rem;
    }
    .site-header .btn-group {
        display: flex;
        gap: .8rem;
    }
    /* buttons in header compacter + geen extra top-marge */
    .site-header .cta {
        margin-top: 0;
        padding: .55rem 1.6rem;
    }

/* ---- grotere padding op breed scherm ---- */
@media (min-width: 768px) {
    .site-header .header-inner {
        padding: .9rem 1.6rem;
    }
}

/* ---- Mobiel: characters-layout onder elkaar & header altijd zichtbaar ---- */
@media (max-width: 767px) {
    .characters-row {
        flex-direction: column;
    }

    .hero .cta-holder {
        margin: 2.8rem auto 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: stretch;
    }

        .hero .cta-holder .cta {
            flex: 1 1 0; /* elke knop krijgt gelijke ruimte */
        }

    .site-header.hidden {
        transform: none;
    }
}

#blazor-error-ui {
    display: none;
}

.story-preview {
    background: var(--bg-light);
    text-align: center;
    padding: 3rem 1rem;
    scroll-margin-top: calc(var(--header-height) + 12px);
}

    .story-preview .intro,
    .story-preview .outro {
        max-width: 680px;
        margin: 0.8rem auto;
        line-height: 1.55;
    }

.characters-card {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 1.8rem auto;
}

    .characters-card .char {
        border-radius: var(--radius);
    }

    .characters-card img {
        width: 160px;
        height: 240px;
        object-fit: contain;
        object-position: 50% 0;
        margin-top: 1.6rem;
    }

    .characters-card figcaption {
        font-weight: 600;
        color: var(--text-dark);
    }

    .characters-card .plus {
        font-size: 2rem;
        color: var(--brand);
    }

.char.env {
    position: relative;
}

    .char.env::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--radius);
        z-index: 0;
    }

    .char.env img {
        position: relative;
        z-index: 1;
    }
.bookRun-card .section-header {
    display: flex; 
    align-items: center; 
    gap: .75rem; 
}

    .bookRun-card .section-header h2 {
        margin: 0;
    }

    .bookRun-card .section-header .cta {
        margin-top: 0; 
        margin-left: auto; 
    }
.cta .spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    margin-right: .6rem;
    animation: btnspin .8s linear infinite;
    vertical-align: -0.125em;
}

@keyframes btnspin {
    to {
        transform: rotate(360deg);
    }
}
.del-btn,
.icon-btn.danger {
    background: none;
    border: none;
    outline: none;
    padding: .25rem;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #e00000; 
}

    .del-btn:focus,
    .icon-btn.danger:focus {
        outline: none; 
    }
@media (max-width: 540px) {
    .characters-card {
        flex-direction: column;
    }

        .characters-card .plus {
            display: none;
        }
}

.field {
    position: relative
}

.validation-message {
    position: absolute;
    left: auto;
    right: 0;
    text-align: right;
    top: -0.25rem;
    transform: translateY(-100%);
    background: #fde7e7;
    color: #0d2545;
    padding: .45rem .8rem;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.25;
    max-width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    z-index: 2; 
}

    .validation-message::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: auto;
        right: 24px;
        width: 12px;
        height: 12px;
        background: #fde7e7;
        transform: rotate(45deg);
        box-shadow: 0 2px 4px rgba(0,0,0,.04);
    }

    .validation-message::before {
        display: none;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.92)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}


.sweep-btn {
    background: #0d2545;
    color: #fff;
    border: none;
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    border-radius: 18px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .sweep-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
        transform: skewX(-20deg);
        animation: sweep 3.2s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes sweep {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

.sweep-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}