body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Times New Roman', Times, serif;
    
    /* Новые стили для фона */
    background-image: url('1win.jpg'); /* Замените ссылку */
    background-size: cover;       /* Растягивает на весь экран */
    background-position: center;  /* Центрирует изображение */
    background-repeat: no-repeat; /* Убирает повторение */
    background-attachment: fixed; /* Фон фиксируется при скролле (опционально) */
}

/* Затемнение фона (для лучшей читаемости текста) */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Прозрачный чёрный (можно изменить) */
    z-index: -1;
}

.container {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    animation: fadeIn 1.5s ease-out;
}

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

/* Стили для картинки */
.center-image {
    display: block; /* Чтобы margin: 0 auto работал */
    width: 300px;   /* Ширина (можно изменить) */
    height: auto;   /* Сохраняет пропорции */
    margin: 0 auto 30px; /* Отступ снизу 20px */
    border-radius: 10px; /* Закруглённые углы (опционально) */
}

.center-image {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень */
}



.text {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 auto 25px;
    max-width: 300px;
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(76, 101, 175, 0.8);
}

.text {
    animation: fadeIn 1.5s ease;
}

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

.button {
    display: inline-block;
    padding: 30px 60px;
    background: linear-gradient(-45deg, #1500ff, #0051ff, #00a2ff, #00a2ff, #0051ff, #1500ff);
    background-size: 100% 100%;
    animation: gradientBG 15s ease infinite;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.679);
    text-decoration: none;
    border-radius: 5px;
    font-size: 21px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    animation: idleAnimation 1s infinite ease-in-out;
    border: 5px solid #FFFFFF;
}

        /* Анимация в состоянии покоя */
@keyframes idleAnimation {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
    }
}


@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Анимация тряски при наведении (если нужно) */
.button:hover {
    background-color: #ff5900;
    animation: shake 0.5s ease infinite; /* Можно сделать другую анимацию */
}

.button {
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
            
.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
}
        
.button:hover::after {
    transform: translateX(100%);
}
        
.button:active {
    transform: translateY(1px) scale(0.98);
    transition: all 0.1s ease;
}
        
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 184, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); }
}
        
.button.pulse {
    animation: pulse 2s infinite;
}

.button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #d67600;
}