body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa url('../files/bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #333;
    position: relative;
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
        background-size: cover;
        min-height: 100vh;
        /* Создаем фиксированный фон через псевдоэлемент для iOS */
        position: relative;
    }
    
    body::after {
        content: "";
        background: #f8f9fa url('../files/bg.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -2;
    }
}

@media (max-width: 768px) {
    body {
        background-image: url('../files/bg_m.png');
    }
    
    /* Fix for iOS devices on mobile */
    @supports (-webkit-touch-callout: none) {
        body::after {
            background-image: url('../files/bg_m.png');
            background-size: cover;
            background-position: center top;
            min-height: 100vh;
            min-height: -webkit-fill-available;
        }
    }
}

/* Затемнение фона */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Настройте прозрачность здесь (0.5 = 50% затемнение) */
    z-index: 0;
    pointer-events: none; /* Чтобы элемент не мешал кликам */
}

/* Контейнер должен быть над затемнением */
.container {
    position: relative;
    z-index: 1;
}

/* Добавляем класс для случая, когда изображение не загрузилось */
body.no-bg-image {
    background: #f8f9fa;
}

body.no-bg-image::before {
    display: none; /* Убираем затемнение если нет фонового изображения */
}

.casino-card {
    opacity: 0;
    transition: transform 0.3s ease-out;
}

.casino-card:hover {
    transform: translateY(-5px);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #eab308;
}

.badge:hover {
    transform: scale(1.05);
}

.rating-stars {
    color: #ffc107;
}

.rating-stars span.text-gray-500 {
    color: #718096;
    font-style: italic;
}

.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.top-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    min-width: 100px;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-in {
    opacity: 0;
    animation: slideIn 0.6s ease-out forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.main-heading {
    color: white;
}

.pre-footer-text {
    color: white;
}

/* Heading and pre-footer text styles */
.space-y-6 > h2.text-3xl {
    color: white !important;
}

/* Only the disclaimer text should be white */
.disclaimer {
    color: white !important;
}

/* Reset text color for casino cards and info blocks */
.casino-card .text-gray-600,
.grid.grid-cols-1.md\:grid-cols-2 .text-gray-600 {
    color: #4B5563 !important;
} 