html {
    box-sizing: border-box;
}

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background-color: #231F20;
    overflow: hidden;
}

canvas {
    display: block;
}

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

/* Стили для контейнера Unity */
#unity-container.unity-desktop,
#unity-container.unity-mobile {
    width: 100%;
    height: 100%;
}

#unity-container.unity-mobile {
    position: fixed;
}

/* Стили для самого canvas */
#unity-canvas {
    background: #231F20;
     width: 100%;
    height: 100%;
    overflow: hidden;
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
}

/* Стили для прогрес-бару */
#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-full-dark.png') no-repeat center;
}

/* Стили для футера Unity */
#unity-footer {
    position: relative;
}

.unity-mobile #unity-footer {
    display: none;
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}
