/* bot_app/web_app/css/animations.css */

/* Стили для модального окна анимации */
#animation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Затемнение фона */
    z-index: 1201; /* Выше, чем у баров */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px; /* Отступ от верхнего бара */
    padding-bottom: 80px; /* Отступ от нижнего бара */
    box-sizing: border-box; /* Убедимся, что padding учитывается в общей высоте */
}

/* Анимация */
#animation-modal .animation-container {
    width: 100%;
    height: 100%; /* Занимает всю доступную высоту внутри родителя */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
}
.reel-container { position: relative; overflow: hidden; background: #0d0d0d; box-shadow: inset 0 0 15px rgba(0,0,0,0.5); flex-shrink: 0; }
.reel-container:first-of-type { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.reel-container:last-of-type { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.reel-container::before, .reel-container::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.reel-container::before { left: 0; background: linear-gradient(to right, #0d0d0d 20%, transparent); }
.reel-container::after { right: 0; background: linear-gradient(to left, #0d0d0d 20%, transparent); }
.reel {
    display: flex;
    height: 100%;
    position: absolute;
    left: 0;
    will-change: transform;
    /* Фикс для предотвращения исчезновения элементов при длинной анимации */
    transform: translateZ(0);
    backface-visibility: hidden;
}
.reel-item {
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    color: #ccc;
    text-align: center;
    border-right: 1px solid #333; /* Серый разграничитель */
}
.reel-item span { line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.reel-item p {
    display: none; /* Скрываем текст */
}

.reel-item img,
.reel-item span {
    max-height: 80%; /* Увеличиваем высоту изображения/эмодзи, так как текста нет */
    max-width: 80%; /* Ограничиваем ширину изображения/эмодзи */
    object-fit: contain;
    flex-shrink: 0; /* Предотвращаем сжатие */
}

/* Индикаторы-стрелки */
.reel-arrow-indicator { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.reel-arrow-indicator svg { width: 100%; height: 100%; color: #28a745; filter: drop-shadow(0 0 6px #28a745) drop-shadow(0 0 12px rgba(40, 167, 69, 0.6)); animation: pulse-arrow 2s infinite ease-in-out; }
@keyframes pulse-arrow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.8; } }
