﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scrollbar-gutter: stable;
}

.click-through {
    pointer-events: none;
}

    .click-through button,
    .click-through a,
    .click-through [role="button"] {
        pointer-events: auto;
    }

/*body {
    display: flex;
    justify-content: center;
    margin-left: 10px;
    margin-right: 10px;
}

.custom-fade {
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

.custom-fade p {
    margin: 20px;
}*/
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXA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43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ───────── Bottom-nav overlay – Flic Runs ───────── */

/* container: fixed, centered, grid */
.bottom-nav {
    position: fixed;
    inset: auto 0 1.625rem 0; /* ⬅︎ 6px higher than 1.25rem */
    display: flex;
    justify-content: center;
    z-index: 1050;
    pointer-events: none;
}

    /* container for inner grid layout */
    .bottom-nav .nav-inner {
        display: grid;
        grid-auto-flow: column;
        gap: clamp(1.5rem, 6vw, 2.5rem); /* ⬅︎ mobile-to-desktop spacing */
        pointer-events: auto;
    }
    /* ─── add anywhere after the .bottom-nav rule ─────────────── */
    .bottom-nav::before {
        content: "";
        position: fixed; /* ties it to the viewport   */
        left: 0;
        right: 0;
        bottom: 0; /* starts at the screen edge */
        height: 12rem; /* fade depth – adjust freely */

        background: linear-gradient( to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100% );
        pointer-events: none; /* never blocks clicks       */
        z-index: -1; /* sits under nav buttons    */
    }
/* each circle button */
.nav-circle {
    --size: 3.75rem;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid #fff;
    backdrop-filter: blur(4px);
    padding-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .25s, transform .25s;
    text-decoration: none;
    pointer-events: auto;
}

    /* hover / active */
    .nav-circle:hover,
    .nav-circle:focus {
        background: rgba(0, 0, 0, .8);
    }

    .nav-circle:active {
        transform: scale(.92);
    }

    /* icon inside */
    .nav-circle i {
        font-size: 1.4rem;
        line-height: 1;
    }

/* label under button */
.nav-label {
    position: absolute;
    top: calc(100% + .25rem);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: .9rem;
    color: #fff;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}

.nav-circle:hover .nav-label {
    opacity: 1;
}

.settings-wrapper {
    position: relative; /* Anchor for the absolute child */
    display: flex;
    justify-content: center;
}

.settings-flyout {
    position: absolute;
    bottom: 100%; /* Force expansion UPWARD */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Center and offset for animation */

    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Increased spacing between buttons as requested */
    margin-bottom: 2.5rem; /* Space between the flyout and the gear icon */

    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1100; /* Ensure it stays above the gradient */
}

    .settings-flyout.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

/* Gear icon rotation when active */
.nav-circle.active i {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.site-bg-video { /* your rule, +z-index */
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* stays behind UI        */
}

    /* helper when image is in front */
    .site-bg-video.bg-front {
        z-index: 9999;
    }

/* ▸ NEW — invisible click catcher */
#bg-sentinel {
    position: fixed;
    inset: 0;
    z-index: 10; /* above #app, below UI   */
    pointer-events: auto; /* receive taps           */
}


.text-div {
    border-radius: 12px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 8px;
}

/* Light mode (default) */
.theme-aware-bg {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Dark mode when data-bs-theme="dark" */
[data-bs-theme="dark"] .theme-aware-bg {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Light mode: mild dim */
[data-bs-theme="light"] .site-bg-video {
    filter: brightness(75%);
}
[data-bs-theme="light"] .text-div {
    background: rgba(0,0,0,.75);
    color: #ffffff; /* keep text readable */
}
/* Dark mode: stronger dim */
[data-bs-theme="dark"] .site-bg-video {
    filter: brightness(35%);
}
/* Dark mode → 75 % white */
[data-bs-theme="dark"] .text-div {
    background: rgba(255,255,255,.75);
    color: #000000; /* keep text readable */
}

/* ───────── Offline overlay ───────── */
.offline-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200; /* above nav & splash */
}

.offline-dialog {
    max-width: 90vw;
    padding: 2.5rem 1.5rem 3rem;
    background: var(--bs-body-bg, #fff);
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,.35);
    color: var(--bs-body-color, #000);
}

    /* optional: make the OK button sit under the text nicely */
    .offline-dialog .nav-circle {
        margin: 0 auto;
    }

/* ────────── Toggleable background image  ────────── */
.bg-toggle {
    position: fixed;
    inset: 0;
    z-index: -1; /* default: behind everything   */
    transition: opacity .25s ease, z-index 0s step-end .25s;
}

    .bg-toggle.bg-front {
        z-index: 9999; /* on top of everything          */
        opacity: 1; /* if you want dimmed → use .8   */
        transition: opacity .25s ease;
    }

        /* ─────────── Typography ─────────── */
.logo-text {
    font-family: 'Permanent Marker', cursive;
    font-weight: bold;
    font-size: 3rem;
    background: linear-gradient(#09b922, #258cfb);
    background-clip: text;
    -webkit-text-stroke: 1px white;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

    :root {
        --banner-height: 10vh;
    }

    /* ─────────── Logo banner ─────────── */
    .logo-banner {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1000;
        max-width: 100%;
        padding: 10px;
        height: var(--banner-height);
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
        pointer-events: none;
    }

        .logo-banner img {
            width: 3rem;
            height: auto;
        }

/* ───── fluid page container ─────────────────────────────── */
/* StatCounter (May 2025) shows 1920×1080 is still #1 on desktop
   (~24 % share) :contentReference[oaicite:0]{index=0}                                         */
:root {
    /* easy to update if the “most-popular” width ever changes */
    --page-max-width: 120rem; /* 120 rem  ≈ 1920 px at root-16px */
}

/* your existing wrapper in MainLayout.razor */
.page {
    inline-size: 100%; /* grow fluidly with viewport   */
    max-inline-size: var(--page-max-width);
    margin-inline: auto; /* centre the block             */
    /* optional padding—keeps text off the very edges on small screens */
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

    /* (optional) keep content article in sync */
    .page > main > .content {
        inline-size: 100%;
        max-inline-size: inherit;
    }

/* This will compile as scoped CSS and apply only to Home.razor */
/* Sticky banner across the app */
.logo-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Hide the layout banner only on Home (scoped, so use :global) */
:global(.logo-banner) {
    display: none;
}

/* Make the full-screen stack not intercept clicks */
.hero-logo {
    position: fixed;
    /*inset: 0; /* if you're covering the screen */
    display: grid;
    place-items: center;
    text-align: center;
    width: min(50vw, 400px);
    margin: auto;
    transform: none; /* if you used translate before */
    z-index: 2;
    pointer-events: none; /* <-- let clicks pass through */
}

/* apply the same typography the banner used */
.hero-word {
    /*font-family: 'Permanent Marker', cursive;*/ /* <- bring back your font */
    /*font-weight: 400;
    letter-spacing: .06em;
    line-height: 1;
    font-size: clamp(28px, 8vw, 64px);
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 1px rgba(0,0,0,.65);*/
    font-family: 'Permanent Marker', cursive;
    font-weight: bold;
    letter-spacing: .06em;
    line-height: 1;
    font-size: clamp(56px, 16vw, 128px);
    background: linear-gradient(#09b922, #258cfb);
    background-clip: text;
    -webkit-text-stroke: 1px white;
    -webkit-text-fill-color: transparent;
    color: transparent;
}


.hero-core {
    display: block;
    margin: .35rem auto;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

