@font-face {
    font-family: "Plus Jakarta Sans";
    font-weight: 700;
    src: url("composeResources/com.clothlab.resources/font/plus_jakarta_sans_bold.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Caveat";
    src: url("composeResources/com.clothlab.resources/font/caveat_regular.ttf") format("truetype");
    font-display: swap;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #FBF8F1; /* brand cream, so there is no white flash before the canvas paints */
}

#composeApp {
    position: fixed;
    inset: 0;
}

/* Mirrors the Compose ClothLabSplash so the hand-over is seamless. */
#loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10; /* above the Compose canvas until the app is ready */
    background: #14432F;
    color: #FFFFFF;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

#loading .splash-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loading h1 {
    margin: 28px 0 0;
    font-size: 34px;
    font-weight: 700;
}

#loading .tagline {
    margin: 0;
    font-family: "Caveat", cursive;
    font-size: 22px;
    opacity: 0.85;
}

#loading .city {
    position: absolute;
    bottom: 32px;
    margin: 0;
    font-size: 13px;
    opacity: 0.6;
}

/*
 * The Firebase Auth emulator pins a warning banner over the bottom of the page, covering the Compose
 * canvas. It only appears in emulator mode; the same warning is still logged to the console.
 */
.firebase-emulator-warning {
    display: none !important;
}

/* Hand-off to the app: the splash fades out (main.kt removes it afterwards). */
#loading.done {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    #loading {
        transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1);
    }
}
