/* Основные стили (оставляем без изменений) */
body { 
    padding: 0; 
    margin: 0; 
}
#unity-container { 
    position: absolute; 
}
#unity-container.unity-desktop { 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
}
#unity-container.unity-mobile { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
}
#unity-canvas { 
    background: #FFFFFF; 
}
.unity-mobile #unity-canvas { 
    width: 100%; 
    height: 100%; 
}
#unity-loading-bar { 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    display: none; 
}
#unity-logo { 
    width: 154px; 
    height: 130px; 
    background: url('unity-logo-dark.png') no-repeat center; 
}
#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-footer { 
    position: fixed; /* Меняем на fixed */
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    display: block; /* Оставляем видимым */
    z-index: 1000;
    background: transparent; /* Прозрачный фон */
}

#unity-fullscreen-button { 
    position: absolute; /* Меняем на absolute внутри footer */
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    background: #4d00ff url('fullscreen-button2.png') no-repeat center; /* Добавляем цвет фона */
    background-size: 70%;
    cursor: pointer;
    z-index: 1001;
    border: 2px solid #00ffea;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,255,234,0.5);
    transition: all 0.3s ease;
}
#unity-fullscreen-button {
    /* Ваши текущие стили */
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    background: #00000 url('fullscreen-button2.png') no-repeat center;
    background-size: 70%;
    cursor: pointer;
    z-index: 1001;
    border: 2px solid #00ffea;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(24,0,255,0.5);
    transition: all 0.3s ease;
    
    /* Новые свойства для анимации */
    opacity: 0.3; /* Начальная прозрачность */
    animation: fadePulse 4s infinite ease-in-out;
}

/* Анимация пульсации прозрачности */
@keyframes fadePulse {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 10px rgba(0,255,234,0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(0,255,234,0.8);
    }
}

/* При наведении делаем кнопку полностью видимой */
#unity-fullscreen-button:hover {
    opacity: 1;
    animation: none; /* Отключаем анимацию при наведении */
    transform: translateX(-50%) scale(1.1);
    background-color: #6a00ff;
    box-shadow: 0 0 20px rgba(0,255,234,1);
}