/* // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
//
// The examples provided by Facebook are for non-commercial testing and evaluation
// purposes only. Facebook reserves all rights not expressly granted.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

body { padding: 0; margin: 0 }
#unity-container { position: absolute; overflow: hidden; }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar{
    position:fixed;
    inset:0;

    background:url('loading-page.jpg') center center no-repeat;
    background-size:cover;
}

#loading-text{
    position:absolute;
    left:50%;
    top:12%;
    transform:translateX(-50%);

    color:white;
    font-size:clamp(14px, 4vw, 28px);
    font-weight:bold;
    text-shadow:2px 2px 8px black;
    white-space:nowrap;
    text-align:center;
}




#unity-progress-bar-empty{
    position:absolute;

    left:50%;
    bottom:18vh;

    transform:translateX(-50%);

    width:min(700px, 75vw);
    height:clamp(14px, 3vh, 28px);

    background:#3a2200;
    border:2px solid #d4a017;
    border-radius:20px;
    overflow:hidden;
}

#unity-progress-bar-full{
    width:0%;
    height:100%;
    background:linear-gradient(
        90deg,
        #ffb300,
        #ffd700,
        #fff176
    );
}

#loading-percent{
    position:absolute;

    left:50%;
    bottom:calc(18vh + clamp(14px, 3vh, 28px) + 8px);

    transform:translateX(-50%);

    color:white;
    font-size:clamp(14px, 3.5vh, 32px);
    font-weight:bold;
    text-shadow:2px 2px 10px black;
    white-space:nowrap;
}

/* Landscape / short screens */
@media (max-height: 500px) {
    #unity-progress-bar-empty{
        height:clamp(10px, 2.5vh, 20px);
        bottom:12vh;
        width:min(400px, 50vw);
        border-width:2px;
    }
    #loading-percent{
        font-size:clamp(13px, 3.5vh, 22px);
        bottom:calc(12vh + clamp(10px, 2.5vh, 20px) + 6px);
    }
    #loading-text{
        font-size:clamp(10px, 2.5vh, 16px);
        top:8%;
    }
}
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

iframe{
border: none;
outline: none;
box-shadow: none;
background: transparent;

}

.test-overlay{
    overflow:hidden;
}
.test-overlay-text{
    color:pink;
    font-size: 2rem;
    z-index: 9999;
    position: absolute;
}
.test-overlay-image{
    width:90%;
    height:90%;
    position:absolute;
    z-index: 0;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}
.test-overlay-image-big{
    width:90%;
    height:90%;
    position:absolute;
    z-index: 0;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}
.test-overlay-image-top{
    width:90%;
    height:90%;
    position:absolute;
    z-index: 99;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

.test-overlay-button{
    z-index:999;
}
