/* Styles for Monetum Pong - Retro meets Modern */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ff41;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.game-container {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.game-header {
    margin-bottom: 20px;
}

.game-header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5em;
    color: #00ff41;
    text-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41;
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00ff41, 0 0 30px #00ff41, 0 0 40px #00ff41; }
    to { text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41; }
}

.score-board {
    display: flex;
    justify-content: space-around;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 15px;
}

.player-score, .ai-score {
    text-align: center;
}

.score-board .label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #00ff41;
}

.score-board span:last-child {
    font-size: 2em;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px #00ff41;
}

.game-area {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    border: 3px solid #00ff41;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    background: #000;
}

#pong-canvas {
    display: block;
    background: linear-gradient(45deg, #000000 0%, #0a0a0a 100%);
    border-radius: 7px;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    backdrop-filter: blur(5px);
}

.game-overlay.hidden {
    display: none;
}

.start-message, .pause-message, .win-message {
    text-align: center;
    color: #00ff41;
}

.start-message h2, .pause-message h2, .win-message h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #00ff41;
}

.start-message p, .pause-message p, .win-message p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.start-button {
    font-family: 'Orbitron', monospace;
    font-size: 1.2em;
    font-weight: 700;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    color: #000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.5);
    background: linear-gradient(135deg, #00cc33, #00ff41);
}

.start-button:active {
    transform: translateY(0);
}

.controls-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.key {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid #00ff41;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

.action {
    color: #cccccc;
}

.fun-facts {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    font-size: 0.95em;
}

.fun-facts p {
    margin: 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header h1 {
        font-size: 1.8em;
    }
    
    #pong-canvas {
        width: 100%;
        height: auto;
        max-width: 600px;
    }
    
    .controls-info {
        gap: 15px;
        margin: 15px 0;
    }
    
    .control-item {
        font-size: 0.8em;
        flex-direction: column;
        gap: 5px;
    }
    
    .key {
        min-width: 80px;
    }
    
    /* Touch instructions for mobile */
    .mobile-instructions {
        display: block;
        margin: 15px 0;
        padding: 10px;
        background: rgba(0, 255, 65, 0.1);
        border: 1px solid rgba(0, 255, 65, 0.3);
        border-radius: 8px;
        font-size: 0.9em;
        color: #00ff41;
    }
}

.mobile-instructions {
    display: none;
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.5em;
    }
    
    .score-board {
        padding: 10px;
    }
    
    .start-message h2 {
        font-size: 1.5em;
    }
}