:root {
    --light-blue: #2ce4ff;
    --sp-blue-1: #008FD2;
    --sp-blue-2: #183b64;
}

@font-face {
    font-family: 'Miso';
    src: url('../fonts/miso-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    overflow: hidden
}

h1, h2, h3 {
    font-family: 'Miso', sans-serif;
    font-weight: normal;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 36px;
    line-height: 40px;
}

p, li, span, div {
    font-family: 'Roboto', Arial, sans-serif;
}

a {
    color: var(--light-blue);
    text-decoration: none;
}

.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    line-height: 1.4;
    color: white;
}


.btn-nav {
    border: none;
    background-color: transparent;
    color: white;
    text-decoration: underline;
}

@media (min-width: 770px) {
    html {
        font-size: 16px;
    }
}

.desktop {
    display: none;
}

.mobile {
    display: none;
}

@media (max-width: 769px) {
    .desktop {
        display: none !important;
    }

    .mobile {
        display: flex !important;
    }

    .btn-sbmt {
        /*font-size: 14px;*/
    }

    .btn-nav {
        color: var(--sp-blue-2);
        font-size: 12px;
    }
}

@media (min-width: 770px) {
    .desktop {
        display: flex !important;
    }

    .mobile {
        display: none !important;
    }

    .btn-sbmt {
        font-size: 16px;
    }
}


.centering {
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

.background-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: url('../images/background.svg') no-repeat center;
    background-size: cover;
}

.overlay-png {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    opacity: 0.7;
    mix-blend-mode: screen;
    filter: invert(1);
    background-image: url('../images/overlay.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    pointer-events: none;
}

.logo-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 10;
    height: auto;
    pointer-events: none;
    z-index: 10;
    transition: filter 0.05s linear;
}

.content {
    margin-top: 20px;
    text-align: center;
}

.btn-sbmt {
    border: none;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--sp-blue-2);
    min-height: 48px;
    transition: all 0.3s;
}

    .btn-sbmt:disabled {
        background-color: rgba(255, 255, 255, 0.9);
    }

    .btn-sbmt:hover,
    .like-btn-sbmt:hover {
        color: var(--sp-blue-1);
        background-color: rgba(255, 255, 255, 0.5);
    }

.swal2-confirm {
    font-size: 24px;
    font-weight: 80000;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 12px;
    padding: .2rem 1.5rem;
    transition: all 0.3s;
}

    .swal2-confirm:hover {
        background-color: transparent;
        border: 2px solid var(--light-blue);
        color: var(--light-blue);
        border-radius: 12px;
        padding: .2rem 1.5rem;
    }

.swal2-styled {
}
/* ==============================
   Normbruch (tuned)
   ============================== */

.normbruch-title {
    font-family: Miso;
    font-size: 26px;
    text-align: center;
    margin-bottom: 6px;
}

.normbruch-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* IMPORTANT: one source of truth for geometry */
    --nb-thumb: 22px; /* must match thumb size */
    --nb-inset: calc(var(--nb-thumb) / 2);
}
/* Range */
.normbruch-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    cursor: pointer;
    outline: none;
    border-radius: 999px;
    height: 1rem;
    background: linear-gradient(to right, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.22) 0%);
    padding: 0;
}
    /* Ensure track height matches actual element height */
    .normbruch-range::-webkit-slider-runnable-track {
        height: 2rem;
        background: transparent;
        border-radius: 999px;
    }

    .normbruch-range::-moz-range-track {
        height: 2rem;
        background: transparent;
        border-radius: 999px;
    }
    /* Thumb */
    .normbruch-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: var(--nb-thumb);
        height: var(--nb-thumb);
        border-radius: 50%;
        background: #fff;
        border: 2px solid rgba(255,255,255,0.9);
        box-shadow: 0 0 0 6px rgba(255,255,255,0.12);
        cursor: pointer;
        /* Center thumb within 2rem track */
        margin-top: calc((2rem - var(--nb-thumb)) / 2);
    }

    .normbruch-range::-moz-range-thumb {
        width: var(--nb-thumb);
        height: var(--nb-thumb);
        border-radius: 50%;
        background: #fff;
        border: 2px solid rgba(255,255,255,0.9);
        box-shadow: 0 0 0 6px rgba(255,255,255,0.12);
        cursor: pointer;
    }
/* Stops row: align endpoints to thumb center */
.normbruch-stops {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Pull dots onto the bar, but keep them slightly BELOW the thumb grab area */
    transform: translateY(-26px);
    margin-bottom: -26px;
    /* IMPORTANT: do NOT block dragging */
    pointer-events: none;
}
/* Dots: display only (no pointer events -> no drag blocking) */
.normbruch-stop {
    pointer-events: none; /* <-- key fix: stops can’t steal drag */
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.30);
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

    .normbruch-stop.is-past {
        background: rgba(255,255,255,0.45);
        border-color: rgba(255,255,255,0.55);
    }

    .normbruch-stop.is-active {
        background: rgba(255,255,255,0.65);
        border-color: rgba(255,255,255,0.95);
    }
/* Labels: same inset as dots, smaller font, outer labels further out */
.normbruch-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    font-family: Miso;
    font-size: 12px; /* smaller */
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.normbruch-label {
    text-align: center;
    cursor: pointer;
    user-select: none;
    opacity: 0.6;
    transition: opacity .15s ease, color .15s ease;
}

    .normbruch-label.is-active {
        opacity: 1;
        color: rgba(255,255,255,0.95);
    }
