#lastWinners {
  margin-top: 20px;
  padding: 10px;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#lastWinners div {
    margin-bottom: 5px;
}

.container {
    text-align: center;
}

#box {
    margin: 0 auto;
    background-image: url('img/box-closed.png');
    background-size: cover;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    #box {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 769px) {
    #box {
        width: 350px;
        height: 350px;
    }
}

#creditsBox {
    position: absolute;
    color: white;
    padding: 140px;
    white-space: nowrap;
    animation: moveCredits 15s linear infinite;
    z-index: 1
}

.creditItem {
    position: absolute;
    color: white;
    padding: 10px;
    white-space: nowrap;
    animation: moveCredits 15s linear infinite;
    z-index: 1
}

@keyframes moveCredits {
    0% { transform: translateX(100%) translateY(0); }
    100% { transform: translateX(-10%) translateY(0); }
}

.opened {
    background-image: url('img/box-opened.png') !important;
}

#box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vibrate {
    animation: vibrate 0.5s ease infinite;
}

@keyframes vibrate {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}


.swal-title,
.swal-content {
    color: white; 
}

.swal-confirm-button {
    color: white; 
}

#wheelCanvas {
    position: relative;
}

/* Default styles */
#wheelCanvasContainer {
    position: relative;
    width: 650px;
    height: 650px;
    margin: 30px auto;
    border-radius: 50%;
    overflow: hidden;
    background-image: url('img/background.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Styles for mobile devices */
@media (max-width: 768px) {
    #wheelCanvasContainer {
        width: 350px;
        height: 350px;
        margin: 15px auto; /* Adjust the margin as needed for mobile layout */
    }
}

#spinButton {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#result {
    font-size: 24px;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 3s linear infinite;
}