/* Super Mario Web Game Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    background: linear-gradient(to bottom, #5C94FC 0%, #5C94FC 70%, #00A800 70%, #00A800 100%);
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header Styles */
.game-header {
    width: 800px;
    background: #000;
    color: #fff;
    padding: 10px;
    border: 3px solid #fff;
    margin-bottom: 10px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-display, .lives-display, .coins-display, .level-display {
    color: #fff;
}

/* Main Game Area */
.game-main {
    position: relative;
    width: 800px;
    height: 400px;
}

#gameCanvas {
    border: 3px solid #000;
    background: linear-gradient(to bottom, #5C94FC 0%, #5C94FC 70%, #00A800 70%, #00A800 100%);
    display: none;
}

/* Screen Overlays */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #5C94FC 0%, #5C94FC 70%, #00A800 70%, #00A800 100%);
    border: 3px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.screen.hidden {
    display: none;
}

.screen h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
}

.screen h2 {
    font-size: 16px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #000;
}

.screen p {
    font-size: 12px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0px #000;
}

.controls {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.3);
}

.controls p {
    margin-bottom: 5px;
}

/* Footer */
.game-footer {
    width: 800px;
    background: #000;
    color: #fff;
    padding: 10px;
    border: 3px solid #fff;
    margin-top: 10px;
    text-align: center;
}

.instructions {
    font-size: 10px;
}

/* Responsive Design */
@media (max-width: 850px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header, .game-main, .game-footer {
        width: 100%;
        max-width: 800px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .game-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .screen h1 {
        font-size: 18px;
    }
    
    .screen h2 {
        font-size: 14px;
    }
    
    .screen p {
        font-size: 10px;
    }
}

/* Game Element Styles (for reference) */
.mario {
    width: 32px;
    height: 32px;
    background: #FF0000;
    border: 2px solid #000;
}

.goomba {
    width: 24px;
    height: 24px;
    background: #8B4513;
    border: 2px solid #000;
}

.coin {
    width: 16px;
    height: 16px;
    background: #FFD700;
    border: 2px solid #000;
    border-radius: 50%;
}

.platform {
    background: #8B4513;
    border: 2px solid #000;
}

.pipe {
    background: #00FF00;
    border: 2px solid #000;
}

/* Animation Classes */
.bounce {
    animation: bounce 0.3s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Power-up effects */
.power-up {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}