/* Основной контейнер для затемнения */
.swipe-tutorial-overlay {
    display: none; /* По умолчанию скрыт */
}

/* Показываем только на мобильных */
@media (max-width: 600px) {
    .swipe-tutorial-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, var(--overlay-opacity, 0.7));
        display: flex;
        justify-content: flex-start; /* Выравнивание по верху */
        align-items: center;
        z-index: 1000;
        opacity: 1;
        transition: opacity 0.5s ease-out;
        padding-top: 20px; /* Отступ сверху */
    }
}

/* Контейнер для текста и анимации */
.swipe-tutorial-content {
    color: white;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Анимация свайпа */
.swipe-animation {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swipe-animation::before {
    content: '🔴';
    position: absolute;
    font-size: 24px;
    animation: swipeMove 2s infinite;
    transform: rotate(180deg); /* Поворачиваем палец влево */
    left: 50%;
}

@keyframes swipeMove {
    0% {
        transform: rotate(180deg) translate(-30px, 0);
        opacity: 0;
    }
    20% {
        transform: rotate(180deg) translate(-30px, 0);
        opacity: 1;
    }
    80% {
        transform: rotate(180deg) translate(30px, 0);
        opacity: 1;
    }
    100% {
        transform: rotate(180deg) translate(30px, 0);
        opacity: 0;
    }
}

/* Класс для анимации исчезновения */
.swipe-tutorial-fade-out {
    opacity: 0;
}