* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(to bottom, #BBBBBB, #FBFBFB);
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    text-align: center;
}

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

#unity-canvas {
    min-height: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: url('back-portrait.webp') no-repeat center center;
    background-size: contain;
    position: fixed;
    top: 0;
    left: 0;
}

#unity-loading-bar {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    height: 100vh;
    justify-content: space-between;
    padding: 20px;
}

#unity-progress-bar-empty {
    width: calc(100% - 100px); /* 100% ширины минус отступы */
    max-width: 630px; /* Уменьшено на 25% от 840px для ПК */
    height: 18px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 100px auto;
    position: relative;
}

#unity-progress-bar-full {
    width: 0%; /* Начальная ширина заполнения */
    height: 18px;
    background: url('progress-bar-full-dark.png') no-repeat center;
    background-size: cover;
    border-radius: 12px;
    transition: width 0.3s ease;
}

#loading-text {
    position: fixed;
    bottom: 64px; /* 200 pixels above the bottom of the screen */
    width: 100%;
    color: black; /* Text color */
    font-family: 'Nunito', sans-serif; /* Font family */
    font-weight: 800; /* Extra bold */
    font-size: 24px; /* Adjust the font size as needed */
    text-align: center; /* Center the text */
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}
/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    #unity-progress-bar-empty {
        height: 27px; /* Оригинальная высота для мобильных */
        max-width: 840px;
    }

    #unity-progress-bar-full {
        height: 27px; /* Оригинальная высота для мобильных */
    }
}
