*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: url('../images/image.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    position: relative;
}

.container {
    text-align: center;
    animation: fadeIn 2s ease-in-out;
    background: rgba(255, 255, 255, 0.8); /* Прозрачный белый фон для лучшей читаемости текста */
    padding: 20px;
    border-radius: 15px;
    z-index: 2; /* Размещаем контейнер поверх падающих слов */
}

.title h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 30px;
    animation: bounce 1.5s ease infinite alternate;
}

.promo h2 {
    font-size: 1.8rem;
    color: #3498db;
    margin-bottom: 20px;
    animation: slideIn 2s ease forwards;
}

.buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    background-color: #e74c3c;
    padding: 15px 40px;
    margin: 10px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fall {
    0% {
        top: -50px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        top: 110vh;
        opacity: 0;
    }
}

.falling-words {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* Слой падающих слов позади контейнера */
}

.word {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    animation: fall 5s linear infinite;
}

.word:nth-child(odd) {
    font-size: 3rem;
    animation-duration: 7s;
}

.word:nth-child(even) {
    animation-duration: 6s;
}

@media (max-width: 768px) {
    .title h1 {
        font-size: 2.5rem;
    }

    .promo h2 {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 1.2rem;
        padding: 10px 30px;
    }

    .word {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title h1 {
        font-size: 2rem;
    }

    .promo h2 {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 1rem;
        padding: 8px 25px;
    }

    .word {
        font-size: 1rem;
    }
}
