/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #e5eaf5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 90%;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #444;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Slot Machine Styles */
.slot-machine {
    background: #2c3e50;
    padding: 30px 20px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 
        inset 0 5px 10px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2);
}

.reel-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    align-items: center;
}

.reel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reel-window {
    width: 120px;
    height: 80px;
    background: #ecf0f1;
    border: 4px solid #34495e;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.2);
}

.reel-strip {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    transition: transform 0.1s linear;
}

.reel-item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid #dee2e6;
}

.reel-item:last-child {
    border-bottom: none;
}

.reel-label {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ecf0f1;
    letter-spacing: 2px;
}

/* Spinning animation handled by JavaScript */

/* Button styles */
.spin-button {
    background: #ee5a24;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    margin: 20px 0;
}

.spin-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.spin-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Result display */
.result {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    border-radius: 10px;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result.show {
    /* display: block; */
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .reel-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .reel-window {
        width: 150px;
        height: 70px;
    }
    
    .reel-item {
        height: 70px;
        font-size: 1.8rem;
    }
}