/* ApeTerra real Bee Sound player. */

.apeterra-bee-sound-runtime-button {
    cursor: pointer !important;
    user-select: none !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}

.apeterra-bee-sound-runtime-button:hover,
.apeterra-bee-sound-runtime-button:focus-visible {
    transform: scale(1.06) !important;
    filter: brightness(1.06) !important;
}

.apeterra-bee-sound-runtime-card.is-audio-playing
.apeterra-bee-sound-runtime-button {
    animation:
        apeterraBeeSoundButtonPulse
        1.15s ease-in-out infinite !important;
}

.apeterra-bee-sound-runtime-bar {
    transform-origin: center !important;
}

.apeterra-bee-sound-runtime-card.is-audio-playing
.apeterra-bee-sound-runtime-bar {
    animation:
        apeterraBeeSoundBarPulse
        .58s ease-in-out infinite alternate !important;

    animation-delay:
        var(
            --apeterra-sound-delay,
            0s
        ) !important;

    will-change:
        opacity,
        filter !important;
}

@keyframes apeterraBeeSoundButtonPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0
            rgba(239, 178, 37, .12);
    }

    50% {
        transform: scale(1.055);
        box-shadow:
            0 0 0 10px
            rgba(239, 178, 37, .10);
    }
}

@keyframes apeterraBeeSoundBarPulse {
    0% {
        opacity: .48;
        filter: brightness(.82);
    }

    100% {
        opacity: 1;
        filter: brightness(1.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .apeterra-bee-sound-runtime-card.is-audio-playing
    .apeterra-bee-sound-runtime-button,
    .apeterra-bee-sound-runtime-card.is-audio-playing
    .apeterra-bee-sound-runtime-bar {
        animation: none !important;
    }
}
