/* Pong Game Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    font-family: 'Courier New', monospace;
    color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    display: block;
    background-color: #000;
    border: 2px solid #333;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}

/* Overlay Styles */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    text-align: center;
    padding: 2rem;
}

/* Title Styles */
.game-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5rem;
}

.mode-title, .pause-title, .gameover-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

/* Button Styles */
.game-btn {
    display: block;
    width: 200px;
    height: 50px;
    margin: 1rem auto;
    background-color: #666;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.game-btn:hover {
    background-color: #888;
}

.game-btn:active {
    background-color: #555;
}

.game-btn.secondary {
    background-color: #444;
}

.game-btn.secondary:hover {
    background-color: #666;
}

/* Countdown Styles */
.countdown {
    font-size: 6rem;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.3);
}

/* Score Display */
.score-display {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    z-index: 5;
    display: none;
}

.score-display.active {
    display: block;
}

.score-display span {
    margin: 0 2rem;
}

/* Final Score Styles */
.final-score {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
    
    .mode-title, .pause-title, .gameover-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .game-btn {
        width: 180px;
        height: 45px;
        font-size: 1rem;
        margin: 0.8rem auto;
    }
    
    .countdown {
        font-size: 4rem;
    }
    
    .score-display {
        font-size: 1.5rem;
        top: 15px;
    }
    
    .score-display span {
        margin: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .mode-title, .pause-title, .gameover-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .game-btn {
        width: 160px;
        height: 40px;
        font-size: 0.9rem;
        margin: 0.6rem auto;
    }
    
    .countdown {
        font-size: 3rem;
    }
    
    .score-display {
        font-size: 1.2rem;
        top: 10px;
    }
    
    .score-display span {
        margin: 0 1rem;
    }
} 