/* Сброс стандартных стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили для body */
body {
    font-family: 'Fredoka One', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* Главный контейнер с фоновым изображением */
.main-container {
    position: relative;
    min-height: 100vh;
    background-image: url('/static/images/banner.jpg'); /* Ваше фоновое изображение */
    background-size: auto; /* Масштабируем фон, чтобы заполнил контейнер */
    background-position: 15% center; /* Сдвиг вправо на 20% от контейнера */
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Затемняющий оверлей для лучшей читаемости текста */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Контейнер для контента */
.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 900px;
    width: 100%;
}

/* Стили для заголовка */
.site-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative; /* Добавляем position: relative */
    top: -110px; /* Поднимаем на 60 пикселей */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 1s ease-out;
}

.site-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative; /* Добавляем position: relative */
    top: -110px; /* Поднимаем на 60 пикселей */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 1s ease-out;
}

/* Контейнер для YouTube видео с адаптивным соотношением сторон */
.video-container {
    position: relative;
    top: -100px;
    width: 100%;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    margin-bottom: 40px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Стили для iframe YouTube */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Контейнер для кнопки */
.button-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: -75px
}

.left-button {
    margin-left: 0;
    width: auto;
}

.right-button {
    margin-right: 0;
    width: auto;
}

/* Стили для кнопки с текстурой */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    letter-spacing: 2px; 
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    color: #ffffff; /* Текст остаётся видимым */
    background: url('/static/images/texture.jpg'); /* Указание текстуры как фон */
    background-size: cover; /* Масштаб текстуры чтобы она покрывала кнопку */
    background-position: center; /* Центрование текстуры в кнопке */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Эффекты при наведении */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); /* Лёгкая тень */
}

/* Эффект при наведении */
.action-button:hover {
    transform: translateY(-3px); /* Лёгкое поднятие кнопки */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); /* Усиление тени */
}

.action-button .icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Анимация появления сверху */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация появления снизу */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивные стили для планшетов */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .action-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .action-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .content {
        padding: 15px;
    }
}
