#spinner-container {
    width: 800px;  /* Default size for desktop */
    height: 800px; /* Default size for desktop */
    margin: 0 auto; /* Center the spinner on the page */
    position: relative;
    border-radius: 50%;
    display: flex;  /* Flexbox for centering */
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    border-radius: 50%;
}

#arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent; /* Adjusted size */
    border-right: 20px solid transparent;
    border-top: 25px solid #dc3545; /* Adjusted arrow size */
    position: absolute;
    top: -25px; /* Adjusted for the spinner */
    left: 50%;
    margin-left: -20px; /* Center the arrow */
    border-radius: 5px; /* Slightly round the arrow edges */
}

#centerObjectCanvas {
    position: absolute;
    top: 50%; /* Dynamically center based on spinner size */
    left: 50%; /* Dynamically center based on spinner size */
    width: 30%; /* Adjusted to 30% of the spinner size */
    height: 30%; /* Adjusted to 30% of the spinner size */
    transform: translate(-50%, -50%); /* Center the object */
    pointer-events: none; /* Prevent interactions with the object */
}

/* Make the spinner responsive for mobile devices */
@media (max-width: 768px) {
    #spinner-container {
        width: 90vw;  /* 90% of viewport width */
        height: 90vw; /* 90% of viewport width */
        max-width: 90vw; /* Maximum width for smaller screens */
        max-height: 90vw; /* Maximum height for smaller screens */
        margin: 0 auto; /* Ensure the spinner stays centered */
    }

    #arrow {
        border-left: 15px solid transparent; /* Smaller arrow for mobile */
        border-right: 15px solid transparent;
        border-top: 15px solid #dc3545; /* Adjust arrow size */
        top: -15px; /* Adjust position for smaller arrow */
        margin-left: -15px; /* Center the arrow */
    }

    #centerObjectCanvas {
        width: 30%; /* Maintain 30% size of the spinner */
        height: 30%; /* Maintain 30% size of the spinner */
    }
}

#nameForm {
    margin-top: 20px;
    text-align: center;
}

#nameInput {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}

button:hover {
    background-color: #c82333;
}

#result {
    margin-top: 20px;
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

#winnerModal button {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

#winnerModal button:hover {
    background-color: #218838;
}

/* The popup window */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black background with transparency */
    justify-content: center;
    align-items: center;
}

/* Popup content */
.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border-radius: 10px;
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Button styling */
.button {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.button:hover {
    background-color: #c82333;
}

#advancedOptions {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#customImageUpload {
    margin-top: 10px;
    display: block;
}
