body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: Poppins;
    background-image: url(/image/test.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

}


.left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 2;
}

.right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* border: 10px solid white;s */
}

#canvas-desktop {
    border-radius: 100%;
    border: 8px solid white;
}

#canvas-mobile {
    display: none;
}

#spin-button, #spin-button-mobile {
    position: absolute;
    border: none;
    height: 180px;

    cursor: pointer;
    transition: background-color 0.3s;
}

#spin-button-mobile {
    height: 80px;
    display: none;
}

#result {
    margin-top: 20px;
    font-size: 34px;
    text-align: center;
    font-weight: bold;
    color: white;
}


@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
  }
  
  .shake {
    animation: shake 0.5s ease;
  }
  
 


@media (max-width: 768px) {
    body {
      flex-direction: column; /* Stack the divs vertically */
    }
}

@media (max-width: 1600px) {
    .right img {
        height: 250px;
    }
}

@media (max-width: 1200px) {
    .right img {
        height: 180px;
    }
}

@media (max-width: 1000px) {
    body {
        flex-direction: column;
        padding-top: 100px;
        gap: 50px;
    }

    /* #spin-button {
        height: 100px;
    } */
}

@media (max-width: 800px) {
    body {
        gap: 0;
    }


    #canvas-desktop {
        display: none;
    }

    #canvas-mobile {
        display: block;
    }

    #spin-button {
        display: none;
    }

    #spin-button-mobile {
        display: block;
    }

    #result {
        font-size: 20px;
        text-align: center;
    }
}