/* frontend/public/css/spinning_wheel.css */

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 350px;
}

.pointer {
    font-size: 32px;
    color: #ffcc00;
    position: absolute;
    top: 5px; /* Position pointer just above the image's center */
    z-index: 10;
    text-shadow: 0px 2px 3px rgba(0,0,0,0.4);
}

/* Styles for the new wheel image */
.wheel-image-style {
    width: 300px; /* Or the actual size of your image */
    height: 300px;
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1); /* Animation timing */
}

#spinButton {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1rem;
    cursor: pointer;
}
#spinButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Legend and result styles */
#prize-legend {
    padding: 20px;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    max-width: 400px;
}

#prize-legend h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 12px auto;
    max-width: 250px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.legend-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.color-box {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 15px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prize-description {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.result-area {
    text-align: center; 
    margin-top: 20px;
}

.error-message {
    display: none; 
    color: #ff4444; 
    text-align: center; 
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 68, 68, 0.1);
    border-radius: 4px;
}
