html {
    box-sizing: border-box;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #231F20;
    background-image: url('your-side-image.jpg'); /* Ваше изображение для боковых частей */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#unity-container {
    position: relative;
    width: 100%;
    max-width: calc(100vh * (9/16)); /* Сохраняем соотношение 9/16 */
    height: 100vh;
    margin: 0 auto;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #231F20;
    display: block;
}

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

/* Остальные стили остаются без изменений */
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    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 rgba(255, 211, 37, 0.7);
    padding: 2px;
    border-radius: 12px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: rgba(63, 162, 255, 1);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.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, 211, 37, 0.2);
    border-right: 1.1em solid rgba(255, 211, 37, 0.2);
    border-bottom: 1.1em solid rgba(255, 211, 37, 0.2);
    border-left: 1.1em solid rgba(63, 162, 255, 1);
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

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