#money {
    position: absolute;
    top: 0%;
    left: -1.5%;
    width: 101%;
    height: 6%;

    background: linear-gradient(135deg,
            rgba(0, 255, 136, 0.12) 0%,
            rgba(30, 43, 55, 0.85) 25%,
            rgba(20, 30, 45, 0.9) 50%,
            rgba(30, 43, 55, 0.85) 75%,
            rgba(19, 165, 194, 0.15) 100%);
    background-size: 400% 400%;
    animation: moneyGradientShift 10s ease infinite;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 136, 0.25);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 25px rgba(0, 255, 136, 0.12);
    user-select: none;
    overflow: hidden;
}

#money::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.1) 50%, transparent 100%);
    animation: moneyShimmer 4s linear infinite;
    pointer-events: none;
}

@keyframes moneyGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes moneyShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.money-loader {
    width: clamp(14px, 1.4vw, 18px);
    height: clamp(14px, 1.4vw, 18px);
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #00ff88;
    border-right-color: rgba(0, 255, 136, 0.55);
    border-radius: 50%;
    animation: rouletteMoneyLoaderSpin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.28);
    flex: 0 0 auto;
}

@keyframes rouletteMoneyLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

#Canvas {
    position: absolute;
    background: linear-gradient(135deg,
            rgba(19, 165, 194, 0.18) 0%,
            rgba(30, 43, 55, 0.95) 20%,
            rgba(20, 30, 48, 0.98) 50%,
            rgba(30, 43, 55, 0.95) 80%,
            rgba(0, 255, 136, 0.15) 100%);

    border-radius: 0px 7px 7px 0px;
    border: 2px solid rgba(0, 255, 136, 0.25);
    border-left: none;
}



#box {
    position: absolute;
    width: 23%;
    height: 89%;
    top: 7%;
    left: 5.7%;
    background: linear-gradient(135deg,
            rgba(0, 255, 136, 0.15) 0%,
            rgba(40, 56, 72, 0.92) 25%,
            rgba(30, 45, 60, 0.95) 50%,
            rgba(40, 56, 72, 0.92) 75%,
            rgba(19, 165, 194, 0.15) 100%);
    background-size: 400% 400%;
    animation: boxGradientShift 10s ease infinite;
    /* border-radius: 10px 0px 0px 10px;
    border: 2px solid rgba(19, 165, 194, 0.3);
    border-right: none;
    backdrop-filter: blur(10px); */
    box-shadow:
        inset 0 0 50px rgba(0, 255, 136, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(19, 165, 194, 0.12);
    user-select: none;
    overflow: hidden;
}

#box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(-45deg, transparent 35%, rgba(19, 165, 194, 0.08) 50%, transparent 65%);
    animation: boxShimmer 7s linear infinite;
    pointer-events: none;
}

#box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(19, 165, 194, 0.7), rgba(0, 255, 136, 0.5), rgba(19, 165, 194, 0.7));
    box-shadow: 0 0 18px rgba(19, 165, 194, 0.6);
    animation: boxBorderPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes boxGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes boxShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(-45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(-45deg);
    }
}

@keyframes boxBorderPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

#add-ball,
#add-ball2,
#add-ball3 {
    background: linear-gradient(135deg,
            rgba(19, 165, 194, 0.9),
            rgba(0, 255, 136, 0.7),
            rgba(19, 165, 194, 0.9));
    background-size: 200% 200%;
    animation: manualAutoFlow 3s ease infinite;
    box-shadow:
        0 0 15px rgba(0, 255, 136, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#add-ball:hover {
    box-shadow:
        0 0 25px rgba(0, 255, 136, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    cursor: pointer;
}

@keyframes manualAutoFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}


#decrementButton {
    background: linear-gradient(135deg,
            rgba(50, 103, 114, 0.911),
            rgba(5, 219, 169, 0.7),
            rgba(19, 165, 194, 0.9));
    background-size: 200% 200%;
    animation: manualAutoFlow 3s ease infinite;
    box-shadow:
        0 0 15px rgba(0, 255, 136, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#incrementButton {
    background: linear-gradient(135deg,
            rgba(19, 165, 194, 0.9),
            rgb(30, 43, 55),
            rgba(19, 165, 194, 0.9));
    background-size: 200% 200%;
    box-shadow:
        0 0 15px rgba(0, 255, 136, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}


#clear {
    background: linear-gradient(135deg, rgba(194, 19, 19, 0.9), rgb(30, 43, 55), rgba(194, 19, 19, 0.9));
    background-size: 200% 200%;

    border: 1px solid rgb(22 25 24 / 40%);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#set_bet {
    background: linear-gradient(135deg,
            rgba(19, 165, 194, 0.9),
            rgba(0, 255, 136, 0.7),
            rgba(19, 165, 194, 0.9));
    background-size: 200% 200%;
    animation: manualAutoFlow 3s ease infinite;
    box-shadow:
        0 0 15px rgba(0, 255, 136, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    #money {
        position: absolute;
        width: 400px;
        height: 5.9%;
        top: 0%;
        left: 50%;
        transform: translateX(-50%);
    }

    #conves {
        width: 400px;
        height: 57%;
        top: 6.02%;
        left: 50%;
        transform: translateX(-50%);
    }

    #boxs {
        position: absolute;
        top: 21%;
        left: 7%;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-gap: 2px;
        width: 90%;
        height: 49%;
        padding: 1%;
        border: black solid 0px;
        cursor: pointer;
        user-select: none;
    }

    #box {
        position: absolute;
        width: 400px;
        height: 100%;
        top: 63%;
        left: 50%;
        transform: translateX(-50%);

        user-select: none;
        border-radius: 0%;
    }
}
@media (max-width: 400px) {
        #money {
            width: 97%;
        }
         #conves {
            width: 97%;
        }
         #box {
            width: 97%;
        }
}