@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap";

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url(/dist/assets/fonts/Roboto-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body, input {
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
}

h1 {
    min-width: 500px;
    margin-left: 40px;
    width: 60%;
}

img.flowfactory_logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 140px;
    display: block;
    z-index: 20;
    background: #ffffffcf;
    border-radius: 6px;
    padding: 6px;
    border: solid 1px #ffffff;
}

html, body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    background: rgba(165, 207, 179, 1);
    color: #e6edf3;
    font-family: "DM Sans", sans-serif !important;
}

.splash_box {
    background: #ffffffcf;
    color: #333;
    padding: 10px 30px;
    border: solid 1px #f5f5f5;
    border-radius: 20px;
    max-width: 100vw;
    margin: 20px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
}

#counter {
    font-size: 36px;
}

.long_wait {
    color: #8e1e1e;
}

#author {
    display: block;
    text-align: right;
    font-style: italic;
    margin-top: 6px;
}

.app-shell {
    position: relative;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    z-index: 1;
}

/* The animated background lives under everything */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
    filter: saturate(115%);
}

/* Optional: blur layer for a softer look (toggle in JS) */
#blur-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(40px) saturate(110%);
    -webkit-backdrop-filter: blur(40px) saturate(110%);
    pointer-events: none;
    z-index: 0; /* keep under content but above canvas */
}

.controls {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 8px 10px;
    backdrop-filter: blur(6px);
    z-index: 2;
}

    .controls button {
        appearance: none;
        border: 0;
        border-radius: 999px;
        padding: 8px 12px;
        background: rgba(255,255,255,0.08);
        color: #e6edf3;
        cursor: pointer;
        transition: background 120ms ease;
    }

        .controls button:hover {
            background: rgba(255,255,255,0.14);
        }

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 26px auto 14px;
}

    .loader .line {
        position: absolute;
        width: 8px; /* Line width */
        height: 0; /* Start with height 0 */
        top: 0; /* Align lines to the top */
        background: rgb(51,209,107);
        background: linear-gradient(185deg, rgba(51,209,107,1) 0%, rgba(41,157,72,1) 85%, rgba(9,109,45,1) 100%);
        opacity: .2; /* Start hidden */
        animation: moveLine 2s infinite ease-in-out; /* Slower animation */
    }

    .loader .line1 {
        left: 10%;
        animation-delay: 0s;
    }

    .loader .line2 {
        left: 30%;
        animation-delay: 0.2s;
    }

    .loader .line3 {
        left: 50%;
        animation-delay: .4s;
    }

    .loader .line4 {
        left: 70%;
        animation-delay: .6s;
    }

    .loader .line5 {
        left: 90%;
        animation-delay: .8s;
    }

@keyframes moveLine {
    0% {
        height: 0;
        opacity: .2;
    }

    45% {
        height: 80px;
        opacity: 1;
    }

    55% {
        height: 80px;
        opacity: 1;
    }

    100% {
        height: 0;
        opacity: .2;
    }
}

.loading-text {
    color: #69696c; /* Text color */
    font-size: 24px;
    margin-left: 20px;
    font-family: 'DM Sans', sans-serif !important;
    opacity: 0;
    animation: fadeIn 2s forwards;
    animation-delay: 0s; /* Adjusted delay to sync with slower animation */
}

.loading-text-small {
    font-size: 18px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}