/* spinning-wheel.css */

.spinning-wheel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 95%;
    margin: auto;
    gap: 30px;
    flex-wrap: wrap;
}

.spinning-wheel-left {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

#selected-question {
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    min-height: 60px;
    margin-bottom: 20px;
    line-height: 1.4;
}

#spin-button {
    padding: 12px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    /* Use static colors from PHP variables */
    background-color: #800080; /* primary_purple */
    color: #FFFFFF;            /* text_on_button */
    border: none;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 4px #6a0dad;    /* darker_purple */
}

.spinning-wheel-right {
    flex: 1;
    min-width: 350px;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Needed for pointer positioning */
}

#wheel-pointer {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
     /* Use static color from PHP variable */
    border-left: 25px solid #800080; /* pointer_color / primary_purple */
    border-right: none;
    position: absolute;
    left: -25px; /* Adjust as needed based on container */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
}

#wheel-canvas {
    border-radius: 50%;
    cursor: grab;
    width: 100%;
    height: 100%;
    border: 1px solid #eee;
    /* Remove explicit width/height here, handled by container aspect-ratio */
}


/* Interaction States */
#wheel-canvas:active {
    cursor: grabbing;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

#spin-button:hover:not(:disabled) {
    background-color: #6a0dad !important; /* darker_purple */
}

#spin-button:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px #6a0dad !important; /* darker_purple */
}

#spin-button:disabled {
    background-color: #BDBDBD !important; /* disabled_bg */
    cursor: not-allowed;
    box-shadow: 0 4px #757575 !important; /* disabled_shadow */
    color: #757575 !important; /* Dim text color */
}