/* Slot Spinner Game Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffd700;
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
    font-size: 1.1em;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ffd700;
}

.slot-machine {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border: 5px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 600px;
}

.reels {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.reel {
    width: 100px;
    height: 150px;
    background: #000;
    border: 3px solid #333;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.reel.spinning {
    animation: spin 2s ease-out;
}

.symbol {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    border-bottom: 1px solid #ccc;
    position: absolute;
    width: 100%;
    top: 50px;
}

.reel .symbol:nth-child(1) { top: -50px; }
.reel .symbol:nth-child(2) { top: 0px; }
.reel .symbol:nth-child(3) { top: 50px; }
.reel .symbol:nth-child(4) { top: 100px; }
.reel .symbol:nth-child(5) { top: 150px; }
.reel .symbol:nth-child(6) { top: 200px; }
.reel .symbol:nth-child(7) { top: 250px; }

.paylines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.payline {
    position: absolute;
    left: 30px;
    right: 30px;
    height: 2px;
    background: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 10px #ffd700;
}

.payline-center {
    top: 75px;
}

.payline-top {
    top: 25px;
    opacity: 0.6;
}

.payline-bottom {
    top: 125px;
    opacity: 0.6;
}

.controls {
    margin: 20px 0;
}

.bet-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

#spin-btn {
    background: #27ae60;
    font-size: 1.2em;
    padding: 15px 30px;
    animation: pulse 2s infinite;
}

#spin-btn:hover {
    background: #229954;
}

#spin-btn.spinning {
    animation: none;
    background: #666;
}

#decrease-bet, #increase-bet {
    background: #3498db;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#decrease-bet:hover, #increase-bet:hover {
    background: #2980b9;
}

#max-bet-btn {
    background: #f39c12;
}

#max-bet-btn:hover {
    background: #e67e22;
}

#message {
    font-size: 1.2em;
    margin: 20px 0;
    min-height: 30px;
    font-weight: bold;
    color: #ffd700;
}

.paytable {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.paytable h3 {
    margin-bottom: 10px;
    color: #ffd700;
    text-align: center;
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.paytable-row:last-child {
    border-bottom: none;
}

.instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #ffd700;
}

.instructions ul {
    list-style-type: disc;
    padding-left: 20px;
}

.instructions li {
    margin: 5px 0;
    line-height: 1.4;
}

/* Animations */
@keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .slot-machine {
        padding: 20px;
        margin: 10px;
    }

    .reels {
        gap: 10px;
    }

    .reel {
        width: 80px;
        height: 120px;
    }

    .symbol {
        font-size: 2em;
        height: 40px;
    }

    .reel .symbol:nth-child(1) { top: -40px; }
    .reel .symbol:nth-child(2) { top: 0px; }
    .reel .symbol:nth-child(3) { top: 40px; }
    .reel .symbol:nth-child(4) { top: 80px; }
    .reel .symbol:nth-child(5) { top: 120px; }
    .reel .symbol:nth-child(6) { top: 160px; }
    .reel .symbol:nth-child(7) { top: 200px; }

    .payline-center {
        top: 60px;
    }

    .payline-top {
        top: 20px;
    }

    .payline-bottom {
        top: 100px;
    }

    .bet-controls {
        font-size: 1em;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    #spin-btn {
        padding: 12px 25px;
    }
}