/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Bungee+Inline&family=Press+Start+2P&family=Roboto:wght@400;700&display=swap');

/* Body styles */
body {
    background-color: #2c3e50;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #fff;
}

/* Game container */
.game-container {
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    border: 20px solid #f39c12;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    z-index: -1;
    border-radius: 10px;
}

/* Jackpot panel */
.jackpot-panel {
    background: linear-gradient(to bottom, #2c3e50, #34495e);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.major-jackpot {
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
}

.major-jackpot h2 {
    font-family: 'Bungee Inline', cursive;
    font-size: 36px;
    margin: 0 0 10px 0;
    color: #c0392b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#major-jackpot-amount {
    font-family: 'Press Start 2P', cursive;
    font-size: 48px;
    font-weight: bold;
    color: #c0392b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.other-jackpots {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.minor-jackpot, .micro-jackpot, .non-jackpot {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #ecf0f1;
    margin: 5px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.minor-jackpot {
    color: #f39c12;
}

/* Slot machine panel */
.slot-machine-panel {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7);
}

.reels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #ecf0f1;
    padding: 10px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.reel {
    background-color: #fff;
    border: 5px solid #f39c12;
    border-radius: 10px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.reel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#spin-button {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(to bottom, #f1c40f, #f39c12);
    border: none;
    border-radius: 50%;
    color: #c0392b;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#spin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

#spin-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Bottom panel */
.bottom-panel {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    border-radius: 10px;
    padding: 15px;
    text-align: right;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

#player-money {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: #182b3d;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes flash-background {
    0%, 100% { background: linear-gradient(45deg, #c0392b, #e74c3c); }
    25% { background: linear-gradient(45deg, #f1c40f, #f39c12); }
    50% { background: linear-gradient(45deg, #2ecc71, #27ae60); }
    75% { background: linear-gradient(45deg, #3498db, #2980b9); }
}

@keyframes flash-panel {
    0%, 100% { background: linear-gradient(to bottom, #2c3e50, #34495e); }
    33% { background: linear-gradient(to bottom, #f1c40f, #f39c12); }
    66% { background: linear-gradient(to bottom, #e74c3c, #c0392b); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Winning animations */
.game-container.winning {
    animation: flash-background 0.5s linear infinite;
}

.jackpot-panel.winning, .slot-machine-panel.winning, .bottom-panel.winning {
    animation: flash-panel 0.7s linear infinite;
}

.winning {
    color: #2c3e50;
}

.winning h2, .winning #player-money {
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.jackpot-updated {
    animation: pulse 0.5s ease-in-out;
}