/* ============================================================
   STYLE THEME 3 — Unity WebGL loader styles
   Place in TemplateData/style_theme3.css
   Referenced by index_theme3.php
   ============================================================ */

body { padding: 0; margin: 0; }

/* Canvas container — always fills parent exactly */
#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;
    display: block;
}

/* Loading */
.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: 220px;
    display: none;
    z-index: 1000;
}

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

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

#unity-warning { display: none; }
#unidm-fullscreen-button { cursor: pointer; }

/* Mobile — canvas always fills screen, no offset tricks */
@media only screen and (max-width: 768px) {
    .canvas-area {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        transform: none !important;
    }
    #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;
    }
}

/* Hard kill of old style.css mobile hacks */
@media only screen and (max-width: 600px) {
    #unidm-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
    }
}
