/**
 * Slot Machine Drum - Custom Styles
 */

.slot-drum-canvas,
.indicator-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.indicator-canvas {
    pointer-events: none;
    z-index: 10;
}

#drum-container {
    position: relative;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    transform-origin: center top;
}

/* Design-specific styles */
.drum-design-cryptocompany #drum-container {
    background: #0a2040;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.drum-design-splinterlands #drum-container {
    background: #2e1b0e;
    box-shadow: 0 10px 30px rgba(107, 68, 35, 0.4);
}

.drum-design-risingstar #drum-container {
    background: #1a0d2a;
    box-shadow: 0 10px 30px rgba(74, 29, 124, 0.3);
}

/* Animation for spinning */
@keyframes drum-spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.drum-spinning .slot-drum-items {
    animation: drum-spin 2s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #drum-container {
        width: 100% !important;
        transform: none !important;
    }
}

/* Highlighting effect for the winner */
.winner-highlight {
    animation: winner-pulse 1.5s ease-in-out infinite;
}

@keyframes winner-pulse {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(60, 223, 247, 0.6); }
    100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
}

/* Design-specific winner highlights */
.drum-design-splinterlands .winner-highlight {
    animation: winner-pulse-splinterlands 1.5s ease-in-out infinite;
}

@keyframes winner-pulse-splinterlands {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(241, 147, 11, 0.8); }
    100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
}

/* Add 3D effect */
.slot-drum-canvas {
    perspective: 1000px;
}

/* Improve the visual appearance of the drum items */
.drum-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Debug box styling */
#drum-debug {
    font-size: 12px;
    max-width: 50%;
    border-radius: 4px;
    white-space: pre-wrap;
}
