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

body {
    font-family: Arial, sans-serif;
    background-color: #281248;
    color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}



header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main {
    display: flex;
    flex-direction: row;
    text-align: center;
}

img {
    max-width: 600px;
    animation: danse 1s infinite ease-in-out alternate;
    transform-origin: center;
}

@keyframes danse {
    0% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

section {
    width: 250px;
    height: 250px;
    border: #000 solid 4px;
    border-radius: 25px;
    flex: 1;
    margin: 20px;
    transition: all 0.3s ease-in-out;
}

section:hover {
    transform: scale(1.05);
    animation: danse 0.25s infinite ease-in-out alternate;
    box-shadow: 2px 4px 8px #ffffffbb;
    border: #7c7c7c solid 2px;
}

section:active {
    transform: scale(0.95) rotate(-5deg);
    box-shadow: inset 2px 4px 8px #000000bb;
    border: #000 solid 2px;
}

@media screen and (max-width: 1064px) {
    section {
        width: 160px;
        height: 160px;
    }

    img {
        max-width: 380px;
    }


}

@media screen and (min-width: 781px) {
    .paillette {
        animation: rainbow 4s infinite linear;
        background-color: #281248;

    }

    @keyframes rainbow {
        0% {
            background: linear-gradient(60deg,
                    #e40303,
                    #e40303,
                    #ff8c00,
                    #ffed00,
                    #008026,
                    #004dff,
                    #750787,
                    #750787);
        }

        20% {
            background: linear-gradient(60deg,
                    #750787,
                    #750787,
                    #e40303,
                    #ff8c00,
                    #ffed00,
                    #008026,
                    #004dff,
                    #004dff);
        }

        35% {
            background: linear-gradient(60deg,
                    #004dff,
                    #004dff,
                    #750787,
                    #e40303,
                    #ff8c00,
                    #ffed00,
                    #008026,
                    #008026);
        }

        50% {
            background: linear-gradient(60deg,
                    #008026,
                    #008026,
                    #004dff,
                    #750787,
                    #e40303,
                    #ff8c00,
                    #ffed00,
                    #ffed00);
        }

        65% {
            background: linear-gradient(60deg,
                    #ffed00,
                    #ffed00,
                    #008026,
                    #004dff,
                    #750787,
                    #e40303,
                    #ff8c00,
                    #ff8c00);
        }

        80% {
            background: linear-gradient(60deg,
                    #ff8c00,
                    #ff8c00,
                    #ffed00,
                    #008026,
                    #004dff,
                    #750787,
                    #e40303,
                    #e40303);
        }

        100% {
            background: linear-gradient(60deg,
                    #e40303,
                    #e40303,
                    #ff8c00,
                    #ffed00,
                    #008026,
                    #004dff,
                    #750787,
                    #750787);
        }
    }

}

@media screen and (max-width: 780px) {
    main {
        flex-direction: column;
    }

    img {
        max-width: 300px;
        margin-bottom: 10px;
    }

    section {
        width: 100px;
        height: 100px;
        margin: 8px;
    }

    body {
        justify-content: flex-start;
        background-size: cover;
    }

    .paillette {
        background-image: url(./img/paillette.gif);
        background-color: #281248;
    }

    #tiktok {
        transform: rotate(5deg);
    }

    #instagram {
        transform: rotate(-5deg);
    }

    #facebook {
        transform: rotate(5deg);
    }
}

#tiktok {
    background-image: url(./img/tiktok.webp);
    background-size: cover;
}

#instagram {
    background-image: url(./img/Instagram.webp);
    background-size: cover;
}

#facebook {
    background-image: url(./img/facebook.png);
    background-size: cover;
}

.audio-player {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

#toggle-audio {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

#toggle-audio:hover {
    transform: scale(0.9);
}

#toggle-audio.playing {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

#bar-left-fill,
#bar-right-fill {
    transition: all 0.2s ease;
}