body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    -webkit-user-select: none; /* Отключение выделения текста для iOS Safari */
    -moz-user-select: none;    /* Отключение выделения текста для старых Firefox */
    -ms-user-select: none;     /* Отключение выделения текста для IE/Edge */
    user-select: none;         /* Отключение выделения текста для современных браузеров */
    -webkit-touch-callout: none; /* Отключение всплывающего меню на iOS */
    touch-action: none;        /* Отключение жестов, таких как масштабирование и скроллинг */
}

#unity-container {
    position: absolute;
    touch-action: none; /* Отключение всех жестов на контейнере */
    pointer-events: auto; /* Включение взаимодействий только для игрового контейнера */
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Современные браузеры */
    touch-action: none;          /* Отключение жестов для десктопа */
}

#unity-container.unity-mobile {
    width: 100%;
    height: 100%;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Современные браузеры */
    touch-action: none;          /* Отключение жестов для мобильных устройств */
}

#unity-canvas {
    background: #000000;
    touch-action: none; /* Отключение жестов, таких как зум и выделение, на холсте */
    -webkit-user-select: none; /* Отключение выделения текста для iOS Safari */
}

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

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    touch-action: none; /* Отключение жестов на элементе загрузки */
}

#unity-logo {
    width: 384px;
    height: 134px;
    background: url('unity-logo-dark.png') no-repeat center;
    touch-action: none; /* Отключение жестов на логотипе */
}

#unity-progress-bar-empty {
    width: 384px;
    height: 18px;
    margin-top: 100px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
    touch-action: none; /* Отключение жестов на пустом прогресс-баре */
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 100px;
    background: url('progress-bar-full-dark.png') no-repeat center;
    touch-action: none; /* Отключение жестов на полном прогресс-баре */
}

#unity-footer {
    position: relative;
    touch-action: none; /* Отключение жестов на футере */
}

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

#unity-webgl-logo {
    float: left;
    width: 204px;
    height: 38px;
    background: url('webgl-logo.png') no-repeat center;
    touch-action: none; /* Отключение жестов на логотипе WebGL */
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px;
    touch-action: none; /* Отключение жестов на заголовке */
}

#unity-fullscreen-button {
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    touch-action: none; /* Отключение жестов на кнопке полноэкранного режима */
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
    touch-action: none; /* Отключение жестов на предупреждении */
}
