/* Fullscreen overlay over the whole viewport */
#preloadPage {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    /* Fullscreen blue bg image */
    background: url("../Assets/Background.jpg") no-repeat center center;
    background-size: cover;
}

#preloadFrame {
    width: 720px;
    height: 1280px;
    text-align: center;
    color: #001e62;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* â¬… center vertically */
    gap: 3px;
    /* nice spacing between logo/motif/text */
}

/* Logo / motif / text */
#preloadLogo {
    max-width: 250px;
    margin: 0 auto ;
    display: block;
}

#preloadMotif {
    max-width: 300px;
    margin:  auto 0;
    display: block;
}

#preloadText {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #001e62;
}

/* Prevent black canvas while loading */
#unity-canvas {
    background: transparent !important;
}

/* Frame (static border/background) */
#preloadBar {
    position: relative;
    width: 300px;
    height: 30px;
    margin: 10px auto 0;
    background: url("../Assets/Loading_Frame.png") no-repeat center center;
    background-size: contain;
    /* shows frame only */
    overflow: hidden;
    /* ensures fill doesn't spill out */
}

/* Fill (progress animation) */
#preloadBarFill {
    position: absolute;
    top: 10%;
    left: 4.4%;
    height: 80%;
    width: 0%;
    /* will grow dynamically */
    background: url("../Assets/Loading_Motif.png") repeat-x left center;
    background-size: cover;
    transition: width 0.2s ease;
    /* smooth animation */

}

/* Text */
#preloadText {
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #001e62;
}
