/* ============================================================
   STYLE THEME 2 — Unity WebGL loader styles
   Replaces TemplateData/style.css for theme2
   ============================================================ */

body {
    padding: 0;
    margin: 0;
}

#unidm-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#unidm-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Loading animation */
.animationLoaderWrap {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

#loading-container {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

#loading-text {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
}

#unidm-loading-bar {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: 200px;
    z-index: 1000;
}

#unidm-progress-bar-empty {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}

#unidm-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Fullscreen button — hidden, we use our own */

#unity-warning { display: none; }

/* ── MOBILE ── */
@media only screen and (max-width: 768px) {

    /* Canvas fills the fixed canvas-area, no tricks needed */
    #unidm-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
    }

    #unidm-canvas {
        width: 100% !important;
        height: 100% !important;
    }

    #loading-text {
        color: #555;
        font-size: 13px;
    }

    #unidm-progress-bar-empty {
        background: rgba(0,0,0,0.1);
    }

    #unidm-progress-bar-full {
        background: #333;
    }
}



@media only screen and (max-width: 768px) {

    /* Canvas always full screen by default */
    .canvas-area {
        position: fixed !important;
        inset: 0 !important;
        height: 100vh !important;
        width: 100vw !important;
        z-index: 0;
        transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* ← smooth */
    }

    /* Canvas shrinks when sheet is open */
    .canvas-area.sheet-open {
        height: 45vh !important;
    }

    /* Unity container fills canvas-area always */
    #unidm-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
    }
}


