html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #CCCCCC;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    position: absolute;
    top: 12%;                    
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
}

#unity-logo {
    text-align: center;
    pointer-events: none;
}

    #unity-logo img {
        max-width: 80%;
        max-height: 80%;
        pointer-events: none;
    }

#unity-progress-bar-empty {
    width: 30%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}

#unity-progress-bar-full {
    height: 100%;
    width: 0%;                   /* будет анимироваться Unity */
    background-color: white;     /* белая линия заполнения */
    border-radius: 5px;
    transition: width 0.5s ease;
}

.light #unity-progress-bar-empty {
    width: 66%;                  /* ширина 66% от экрана */
    height: 37px;
    background-color: black;     /* фон черный */
    border: 2px solid white;     /* белая рамка */
    border-radius: 7px;
    box-sizing: border-box; 
}

.light #unity-progress-bar-full {
    background: black;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}

.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.spinner {
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid rgba(255, 255, 255, 1);
}

#unity-progress-bar-empty {
    border-color: rgba(255, 255, 255, 1);
    width: 66%;
}

#unity-progress-bar-full {
    background: rgba(255, 255, 255, 1);
}

.light #unity-progress-bar-empty {
	width: 66%;                  
    height: 37px;                
    margin: 0 auto;              
    background-color: black;     
    border: 2px solid white;     
    border-radius: 7px;          
    position: relative;
    top: -25%;                   
}

.light #unity-progress-bar-full {
    height: 100%;
    background-color: white;
    border-radius: 5px;
    transition: width 0.5s ease;
}



#unity-progress-bar-empty {
    height: 37px;
}


#unity-progress-bar-empty {
    border-radius: 7px;
}

#unity-progress-bar-full {
    border-radius: 5px;
    transition: width 0.5s ease;
}
