* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    
    /* Фоновая картинка */
    background-image: url('../images/koleso.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* Затемняющий оверлей для лучшей читаемости */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

#playButton {
    padding: 20px 50px;
    font-size: 24px;
    background: rgb(15, 156, 15);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 300px;
}

#playButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

#playButton:active {
    transform: translateY(0);
}

#playButton.hidden {
    display: none;
}

audio {
    margin-top: 20px;
    display: none;
    width: 100%;
    max-width: 400px;
}

audio.visible {
    display: block;
}

/* Планшеты */
@media (max-width: 768px) {
    #playButton {
        padding: 18px 40px;
        font-size: 22px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    body {
        padding: 15px;
        background-attachment: scroll; /* На мобильных fixed вызывает лаги */
    }
    
    .container {
        padding: 10px;
    }
    
    #playButton {
        padding: 16px 30px;
        font-size: 20px;
        max-width: 100%;
    }
    
    audio {
        margin-top: 15px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    #playButton {
        padding: 14px 20px;
        font-size: 18px;
    }
}