body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    perspective: 1000px;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}

h1 {
    color: #333;
}

.slot-machine {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    perspective: 1000px;
}

.slots {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    gap: 10px;
}

/* Container for each slot wheel */
.slot-container {
    position: relative;
    width: 100px;
    height: 120px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
/*     background: linear-gradient(to bottom, #e9e9e9, #f8f8f8, #e9e9e9);
 */    perspective: 500px;
}

/* Highlight and shadow effects */
.slot-container::before, 
.slot-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 25px;
    z-index: 5;
    pointer-events: none;
}

/* .slot-container::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.slot-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0));
} */

/* 3D wheel */
.wheel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(-90px) rotateX(0deg);
    transition: transform 0.5s ease-out;
}

/* Individual items on the wheel */
.wheel-item {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    transform-origin: center;
    backface-visibility: hidden;
    transition: all 0.3s ease;
}

/* Style for highlighted emoji */
.wheel-item.highlighted {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    transform-origin: center;
    animation: glow 1.5s infinite alternate;
    z-index: 10;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffdd00, 0 0 20px #ffdd00; }
    to { text-shadow: 0 0 10px #fff, 0 0 15px #ff9500, 0 0 20px #ff9500, 0 0 25px #ff9500; }
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#spin-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

#spin-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#spin-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: scale(1);
}

#spin-button:active {
    transform: scale(0.98);
}

#sound-toggle {
    background-color: #4a90e2;
    color: white;
    border: none;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#sound-toggle.sound-off {
    background-color: #e24a4a;
}

#sound-toggle:hover {
    opacity: 0.9;
}

#message {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    height: 30px;
    min-height: 30px;
}

.instructions {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Responsive design for smaller screens */
@media (max-width: 500px) {
    .container {
        margin: 20px auto;
    }
    
    .slots {
        gap: 5px;
    }
    
    .slot-container {
        width: 80px;
        height: 100px;
    }
    
    .wheel-item {
        width: 80px;
        height: 80px;
        font-size: 45px;
    }
    
    h1 {
        font-size: 24px;
    }
}

.win {
    color: #4CAF50;
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes spinning {
    0% { transform: translateZ(-90px) rotateX(0deg); }
    100% { transform: translateZ(-90px) rotateX(360deg); }
}