#money {
    position: absolute;
    top: 0%;
    left: -1%;
    width: 101%;
    height: 6%;
    /* border-radius: 4px; */
    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%);
    }
}

#id_gameCanvas {
    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 {
    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%;
    }
}

#pic_random_tile {
    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;
}

#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;
}

#randempic {
    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%;
    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;
}

#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;
}