﻿*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body
{
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
    background: #000000;
}

.engine-canvas
{
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
}

/*       ENGINE LOADING SCREEN        */

#engine-loading-screen
{
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    opacity: 1;
}

.engine-loading-screen-fadein
{
    animation: anim-engine-loading-screen-fadein 0.5s ease forwards;
}
.engine-loading-screen-fadeout
{
    animation: anim-engine-loading-screen-fadeout 0.5s ease forwards;
}

@keyframes anim-engine-loading-screen-fadein
{
    from
    {
        opacity: 0;
    }

    to
    {
        opacity: 1;
    }
}

@keyframes anim-engine-loading-screen-fadeout
{
    from
    {
        opacity: 1;
    }

    to
    {
        opacity: 0;
    }
}

#engine-loading-screen-header
{
    display: block;
    width: 40vw;
    height: auto;
    max-width: 800px;
    min-width: 500px;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 999999;
    user-select: none;
}

#engine-loading-screen-text
{
    display: block;
    position: absolute;
    width: auto;
    height: auto;
    color: gray;
    font-size: clamp(16px, 2vw, 24px);
    top: 55%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 999999;
    user-select: none;
}

#engine-loading-screen-bar
{
    display: block;
    width: 25vw;
    max-width: 500px;
    min-width: 250px;
    height: 16px;
    background: #5b5c5c;
    border-radius: 8px;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
}

#engine-loading-screen-bar-fill
{
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient( 45deg, #5b5c5c 0px, #5b5c5c 8px, #4a4b4b 8px, #4a4b4b 16px );
    background-size: 40px 40px;
    animation: anim-engine-loading-screen-bar-slide 1s linear infinite;
}

@keyframes anim-engine-loading-screen-bar-slide
{
    0%
    {
        background-position: 0 0;
    }

    100%
    {
        background-position: 40px 0;
    }
}

.controls-container
{
    user-select: none;
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 9999;
    padding: 16px;
    display: none;
    flex-direction: row; 
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.controls-container-left
{
    font-weight: bold;
    pointer-events: none;
    font-size: clamp(20px, 2.8vw, 22px);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 48%;
    height: 100%;
     color: white;
}

.controls-container-right
{
    pointer-events: none;
    user-select: none;
    text-align: center;
    position: relative;
    width: 48%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    justify-content: center;
}

.controls-container-inner
{
     
    font-weight: bold;
    pointer-events: none;
    user-select: none;
    font-size: clamp(18px, 2.8vw, 22px);
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 50%;
    color: white;
}

.controls-container-PC
{
    pointer-events: none;
    user-select: none;
    z-index: 9999;
    display: none;
    width: 40%;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

.controls-container-hide
{
    animation: hideUI 2s forwards;
}

@keyframes hideUI
{
    to
    {
        opacity: 0;
        pointer-events: none;
    }
}