﻿

:root {
    --avatar-size: 40px;
    /* 🎨 Base RGB values (change to your desired color) */
    --ring-r: 0; /* Red   */
    --ring-g: 150; /* Green */
    --ring-b: 255; /* Blue  */

    --ring-opacity: 0.35; /* Transparency of wave rings */
    --ring-thickness: 3px; /* Ring border width */
    --wave-scale: 2.6; /* How large waves expand */
    --wave-duration: 2200ms; /* Duration of each animation */
    --wave-delay: 420ms; /* Delay between wave rings */

    --ASEFUISTYLE3_btn-width: 24px;
    --ASEFUISTYLE3_btn-height: 24px;
    --ASEFUISTYLE3_btn-radius: 30px;
    --ASEFUISTYLE3_heartbeat-scale: 1.2;
    --ASEFUISTYLE3_heartbeat-duration: 5.2s;
    --ASEFUISTYLE3_bg-color: #5ec4ff; /* light blue */
    --ASEFUISTYLE3_text-color: #fff;
    --ASEFUISTYLE3_border-thickness: 2px;
    --ASEFUISTYLE3_border-color: #9fe6ff; /* lighter blue border */
}

/* page background 
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(12, 20, 36);
    font-family: system-ui, sans-serif;
}*/

/* container for image + rings */
.avatar-wrap {
    position: relative;
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
}

    /* circular image itself */
    .avatar-wrap img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        border: 2px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    }

/* each wave ring */
.wave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: scale(1);
    border: var(--ring-thickness) solid rgba(var(--ring-r), var(--ring-g), var(--ring-b), var(--ring-opacity));
    box-shadow: 0 0 18px rgba(var(--ring-r), var(--ring-g), var(--ring-b), 0.15);
    opacity: 0;
    will-change: transform, opacity;
}

/* animation definition */
@keyframes waveAnim {
    0% {
        transform: scale(1);
        opacity: 0.9;
        filter: blur(0px);
    }

    50% {
        opacity: 0.45;
    }

    100% {
        transform: scale(var(--wave-scale));
        opacity: 0;
        filter: blur(5px);
    }
}

/* individual waves with staggered delays */
.wave[data-i="1"] {
    animation: waveAnim var(--wave-duration) ease-in-out infinite;
    animation-delay: calc(var(--wave-delay) * 0);
}

.wave[data-i="2"] {
    animation: waveAnim var(--wave-duration) ease-in-out infinite;
    animation-delay: calc(var(--wave-delay) * 1);
}

.wave[data-i="3"] {
    animation: waveAnim var(--wave-duration) ease-in-out infinite;
    animation-delay: calc(var(--wave-delay) * 2);
}

.wave[data-i="4"] {
    animation: waveAnim var(--wave-duration) ease-in-out infinite;
    animation-delay: calc(var(--wave-delay) * 3);
}

/* Optional: variations for style */
.wave.thin {
    border-width: 2px;
}

.wave.thick {
    border-width: 6px;
    opacity: 0.95;
}


/* --- Button Wrapper --- */
.ASEFUISTYLE3_btn-wrap {
    display: inline-block;
    position: relative;
}

/* --- Heartbeat Button --- */
.ASEFUISTYLE3_btn {
    width: var(--ASEFUISTYLE3_btn-width);
    height: var(--ASEFUISTYLE3_btn-height);
    border-radius: var(--ASEFUISTYLE3_btn-radius);
    background: var(--ASEFUISTYLE3_bg-color);
    color: var(--ASEFUISTYLE3_text-color);
    border: var(--ASEFUISTYLE3_border-thickness) solid var(--ASEFUISTYLE3_border-color);
    outline: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    animation: ASEFUISTYLE3_heartbeat var(--ASEFUISTYLE3_heartbeat-duration) ease-in-out infinite;
    transition: box-shadow 0.9s ease;
}

    /* --- Hover Effect --- */
    .ASEFUISTYLE3_btn:hover {
        box-shadow: 0 10px 28px rgba(0,0,0,0.55);
    }

/* --- Heartbeat Animation --- */
@keyframes ASEFUISTYLE3_heartbeat {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(var(--ASEFUISTYLE3_heartbeat-scale));
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(var(--ASEFUISTYLE3_heartbeat-scale));
    }

    40% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}