#stage {
    margin: 0 auto;
    width: 600px;
    padding: 0 0 40px;
    }

    .perspective-on {
    -webkit-perspective: 1000px;
        -moz-perspective: 1000px;
            perspective: 1000px;    /* Setting the perspective of the contents of the stage but not the stage itself*/
    }
    .perspective-off {
    -webkit-perspective: 0;
        -moz-perspective: 0;
            perspective: 0;
    }

    #rotate {
    margin: 0 auto 0;
    width: 450px;
    height: 220px;
    padding-top: 200px;
    /* Ensure that we're in 3D space */
    transform-style: preserve-3d;
    }

    .ring {
        margin: 0 auto;
        height: 80px;
        width: 90px;
        float: left;
        transform-style: preserve-3d;
    }
    .slot {
    position: absolute;
    width: 90px;
    height: 80px;
    box-sizing: border-box;
    opacity: 0.9;
    color: rgba(0,0,0,0.9);
    background: #fff;
    border: solid 2px #000;
    -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
            backface-visibility: hidden;
    }

    .backface-on {
    -webkit-backface-visibility: visible;
        -moz-backface-visibility: visible;
            backface-visibility: visible;
    }

    .slot p {
    font-size: 36px;
    font-weight: bold;
    line-height: 80px;
    margin: 0;
    text-align: center;
    }

    .go {
    display: block;
    margin: 0 auto 20px;
    padding:10px 30px;
    font-size: 20px;
    cursor: pointer;
    }
    full_name {
    cursor: pointer;
    display: inline-block;
    width: 45%;
    text-align: center;
    }
    .tilted {
    transform: rotateY(45deg);
    }
    /*=====*/
    .spin-0     { transform: rotateX(-3719deg); }
    .spin-1     { transform: rotateX(-3749deg); }
    .spin-2     { transform: rotateX(-3779deg); }
    .spin-3     { transform: rotateX(-3809deg); }
    .spin-4     { transform: rotateX(-3839deg); }
    .spin-5     { transform: rotateX(-3869deg); }
    .spin-6     { transform: rotateX(-3899deg); }
    .spin-7     { transform: rotateX(-3929deg); }
    .spin-8     { transform: rotateX(-3959deg); }
    .spin-9     { transform: rotateX(-3989deg); }
    .spin-10    { transform: rotateX(-4019deg); }
    .spin-11    { transform: rotateX(-4049deg); }
    /*=====*/
    @keyframes back-spin {
        /*0%    { transform: rotateX(0deg); }*/
        100%  { transform: rotateX(30deg); }
    }
    @keyframes tiltin {
        0%    { transform: rotateY(0deg);}
        50%   { transform: rotateY(0deg);}
        100%  { transform: rotateY(45deg);}
    }
    @keyframes tiltout {
        0%    { transform: rotateY(45deg);}
        100%  { transform: rotateY(0deg);}
    }

    @keyframes spin-0 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3719deg); }
    }
    @keyframes spin-1 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3749deg); }
    }
    @keyframes spin-2 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3779deg); }
    }
    @keyframes spin-3 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3809deg); }
    }
    @keyframes spin-4 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3839deg); }
    }
    @keyframes spin-5 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3869deg); }
    }
    @keyframes spin-6 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3899deg); }
    }
    @keyframes spin-7 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3929deg); }
    }
    @keyframes spin-8 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3959deg); }
    }
    @keyframes spin-9 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-3989deg); }
    }
    @keyframes spin-10 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-4019deg); }
    }
    @keyframes spin-11 {
        0%    { transform: rotateX(30deg); }
        100%  { transform: rotateX(-4049deg); }
    }
    text{
        font-family:Helvetica, Arial, sans-serif;
        font-size:11px;
        pointer-events:none;
    }
    #chart{
        width:500px;
        height:500px;
        top:0;
        left:0;
    }
    #question{
        position: absolute;
        width:400px;
        height:500px;
        top:0;
        left:520px;
    }
    #question h1{
        font-size: 50px;
        font-weight: bold;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        position: absolute;
        padding: 0;
        margin: 0;
        top:50%;
        -webkit-transform:translate(0,-50%);
                transform:translate(0,-50%);
    }
    button {
        font-family: "Open Sans";
        color: #fff;
        text-align: center;
        position: absolute;
        top: 345px;
        left: 160px;
        font-size: 18px;
        border: none;
        width: 158px;
        border-radius: 3px;
        padding: 10px;
        background-color: #ffa500;
        box-sizing: border-box;
        cursor: pointer;
    }
    .scene {
        font-family: "Open Sans";
    }
    #lottery {
        position: relative;
    }

    /* where ball placed after draw */
    #ball-place {
        position: absolute;
        top: 0px;
        left: 160%;
    }

    @media (min-width: 1480px) {
        #ball-place {
            position: absolute;
            top: 0px;
            left: 160%;
        }
    }

    .lottery-machine {
        position: inherit;
        border-radius: 100%;
        width: 200px;
        height: 0.1px;
    }
    .lottery-machine-canvas {
        position: inherit;
        top: 0px;
        width: 700px;
        height: 700px;
        padding: 7px;
        border-radius: inherit;
        box-sizing: border-box;
        transition: opacity 0.7s;
    }
    .lottery-machine::before {
    content: '';
    position: absolute;
    top: 0px;
    width: 600px;
    left: -5px;
    height: 600px;
    background-color: rgba(13, 34, 40, 0.3);
    border: 7px solid #ffa500;
    border-radius: inherit;
    box-sizing: border-box;
    transition: opacity 0.7s;
    animation: neonGlow 1s infinite alternate;
    background-position: center;

}
.lottery-machine::after {
    content: '';
    position: absolute;
    top: 0px;
    width: 600px;
    left: -5px;
    height: 600px;
    border-radius: inherit;
    box-sizing: border-box;
    transition: opacity 0.7s;
    background-position: center;
    background-image: 
        url('../../src//assets/ingconight.png'), /* First image */
        url('../../src//assets/masqqpng.png');   /* Second image */
    background-size: 
        200px,  /* Size for INGCONITE.png */
        550px; /* Size for masqqpng.png */
    background-position: 
        center, /* Position for INGCONITE.png */
        center 10px;    /* Position for masqqpng.png */
        z-index: -1; 
}
    @keyframes neonGlow {
    from {
        box-shadow: 0 0 0px 0px #ffa500;
    }
    to {
        box-shadow: 0 0 5px 1px #8f1475;
    }
}
    .lottery-machine.disabled .lottery-machine-canvas {
        opacity: 0;
        pointer-events: none;
    }
    .lottery-machine.disabled::after {
        opacity: 0;
        pointer-events: none;
    }

    /*
    .lottery-machine .lottery-base {
    position: absolute;
    background-image: url('https://svgur.com/i/DH4.svg');
    width: 165px;
    height: 75px;
    left: 0;
    top: 141px;
    z-index: 2;
    } */

    .lottery-machine .lottery-lever {
    position: absolute;
    background-image: url('https://svgur.com/i/DGD.svg');
    width: 830px;
    height: 23px;
    left: 340px;
    top: 605px;
    transition: transform 0.5s;
    transform-origin: left center;
    }

    .lottery-machine .lottery-lever.hover {
        transform: rotate(-10deg);
    }
    .lottery-machine .lottery-lever.down {
        transform: rotate(20deg);
    }

    /* .lottery-machine .lottery-tube {
    position: absolute;
    background-image: url('https://svgur.com/i/DHH.svg');
    width: 110px;
    height: 182px;
    left: 61px;
    top: 3px;
    z-index: 1;
    } */
    .lottery-machine .lottery-right-door, .lottery-machine .lottery-left-door {
        position: absolute;
        background-image: url('https://svgur.com/i/DJ5.svg');
        width: 50px;
        height: 29px;
        left: 17px;
        margin-left: 280px;
        margin-top: 180px;
        top: 420px;
        z-index: 4;
        transition: left 0.75s;
    }
    .lottery-machine .lottery-right-door.animation, .lottery-machine .lottery-left-door.animation {
        left: 25px;

    }
    .lottery-machine .lottery-left-door {
        background-image: url('https://svgur.com/i/DHF.svg');
        left: -14.5px;

    }
    .lottery-machine .lottery-left-door.animation {
        left: -25px;
    }
    .lottery-machine .lottery-lift {
        position: absolute;
        background-color: #f00000;
        width: 13px;
        height: 0;
        left: 290px;
        top: 625px;
        box-sizing: border-box;
        border: 1px solid #ffa500;
        border-radius: 2px;
        transition: top 1s, height 1s;
        z-index: 1;
    }
    .lottery-machine .lottery-lift.animation {
        top: 0px;
        height: 500px;
    }
    .lottery-machine .lottery-ball {
    width: 15px; /* Increase size for better visibility */
    height: 15px; /* Increase size for better visibility */
    line-height: 1.380;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    border-radius: 50%;
    position: absolute;
    left: 288.8px;
    top: 610px;
    transition: top 1s, transform 0.75s ease-in;
    background: linear-gradient(to right, violet, indigo, blue, green, yellow, orange, red); /* Rainbow gradient */
    background-size: 200% auto;
    animation: rainbow 5s linear infinite;
    transition: top 1s, transform 1s ease-in;
}
@keyframes rainbow {
    0% {
        background-position: 0 0; /* Start position of the gradient */
    }
    100% {
        background-position: 200% 0; /* End position of the gradient */
    }
}
.lottery-machine .lottery-ball::before {
    content: "✪"; /* Insert question mark */
    color: #ffa500; /* Color of the question mark */
    font-size: 14px; /* Size of the question mark */
    transform: rotate(-180deg); 
}
    .lottery-machine .lottery-ball.invisible {
        opacity: 0;
    }
    .lottery-machine .lottery-ball.animation-up {
        top: -10px;
    }
    .lottery-machine .lottery-ball.animation-roll {
        transform-origin: 7.3px 317px;
        transform: rotate(180deg);
    }
    .lottery-machine .lottery-ball.blink:after {
        content: '';
        background-color: #fff;
        position: absolute;
        left: 10px;
        top: 4px;
        width: 40px;
        height: 40px;
        transform-origin: 0 0;
        transform: rotate(0);
    }
    .lottery-machine .lottery-ball.no-transition {
        transition: none;
    }
    .lottery-machine .lottery-hover-area {
        position: absolute;
        top: 0;
        left: 0;
        height: 214px;
        width: 100%;
        z-index: 5;
    }
    .lottery-ball.clone {
        position: absolute;
        width: 18px;
        height: 18px;
        font-size: 12px;
        line-height: 1.375;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .lottery-ball.clone.invisible {
        opacity: 0;
    }
    .lottery-ball.clone.no-transition {
        transition: none;
    }
    #play{
        margin-top:420px;
        margin-left:100px;
    }
    @keyframes glassEffect {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.glass-animation {
    animation: glassEffect 2s infinite linear;
    background-image: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    background-size: 200% 100%;
    transition: background-position 0.3s;
}