@font-face {
    font-family: "Geist";
    src: url('fonts/geist.woff2') format('truetype');
    font-weight: 500;
    font-style: normal;
}

*,
::after,
::before {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

html, body {
    margin:0;
    padding:0;
    color: var(--font-color);
    font-family: var(--font-family-sans), serif;
    font-size: var(--font-size-base);
    overflow-x: hidden;
    overflow-y: hidden;
    background: var(--background-color);
}

/* ######## PAGE LOADER OVERLAY ######## */

.kfw-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000000000000000;
    transition: var(--global-transition);
}

.kfw-loading-overlay-logo {
    font-size: 3rem;
    color: var(--font-color);
    margin-top: -100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2;
}

.kfw-loading-overlay-logo img {
    max-height: 65px;
}

.kfw-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.kfw-loading-overlay-progress-bar {
    width: 15%;
    margin-top: 50px;
    border-radius: 50px;
    height: 15px;
    background: #ccc;
    filter: blur(0.5px);
    z-index: 2;
}

html.dark .kfw-loading-overlay-progress-bar {
    background: #8c8c8c;
}

.kfw-loading-overlay-progress {
    width: 10%;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50px;
    transition: var(--global-transition);
    border: 2px solid #ccc;
}

html.dark .kfw-loading-overlay-progress {
    border: 2px solid #8c8c8c;
}

.kfw-loading-overlay-flash {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    justify-content: center;
    border-radius: var(--global-radius);
    overflow: hidden;
}

.kfw-loading-overlay-flash::before {
    content: "";
    position: absolute;
    inset: -80%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(var(--primary-rgb),0.2) 50%, rgba(255,255,255,0) 60%);
    opacity: 0.9;
    transform: translate(-60%, -60%);
    animation: kfw-form-loader-flash 2s linear infinite;
    pointer-events: none;
    width: 200%;
    height: 200%;
}

html.dark .kfw-loading-overlay-flash::before {
    background: linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 60%);
}
