/* sequencingMiniGame styles */

.bubbles-container {
    width:100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
}

/* .bubbles-container::before {
    content: "";
    width:100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    border-bottom: 1px solid rgba(255, 255, 255, 0.105);
    inset: -50px;
} */

.bubble {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    /* Adjust base size as needed */
    border-radius: 50%;
    background:radial-gradient(closest-side, #3f87a622, #ebf8e11c, #f69c3c00);
    /* Base color, will be overridden inline */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.177);
    /* Subtle shadow for depth */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Adjust as needed */
    color: black;
    /* Text color */
    position: absolute;
    /* animation: rotateBubble 20s linear infinite, floatBubble 3s ease-in-out infinite; */
    animation: rotateBubble var(--speed) linear infinite;
    transform: rotate(var(--initial-rotation));
    transition: background-color 0.3s;
    /* Smooth transition for color change */
}

.bubble::before{
    content: "";
    position: absolute;
    /* background-image: radial-gradient(closest-side, #3f87a622, #ebf8e1cb, #f69c3c00); */
    padding: 10px;
    border-top: 1px solid var(--fun-frenzia-color);
    z-index: -1;
    inset: 1px;
    border-radius: 50%;
}

.bubble::after{
    content: "";
    position: absolute;
    /* background-image: radial-gradient(closest-side, #3f87a622, #ebf8e1cb, #f69c3c00); */
    padding: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.086);
    z-index: -1;
    inset: 1px;
    border-radius: 50%;
}

/* Bubble rotate animation */
@keyframes rotateBubble {
    from {
        transform: rotate(var(--initial-rotation));
    }

    to {
        transform: rotate(calc(var(--initial-rotation) + var(--direction) * 360deg));
    }
}


/* Bubble float animation */
@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.bubble.wrong {
    background: rgba(255, 0, 0, 0.7);
    /* Darken or change color when wrong */
}

.burst {
    animation: burstBubble 0.25s forwards;
    /* Adjust time as needed */
}

@keyframes burstBubble {
    0% {
        transform: scale(1);
        opacity: 1;
        background-color: #FFD700;
        /* Gold color for a rewarding feel */
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes rotate-bubbles-container {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}