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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    gap: 20px;
}

.blue-score, .red-score {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
}

.blue-score {
    background-color: #e6f0ff;
    border: 2px solid #3366cc;
}

.red-score {
    background-color: #ffe6f0;
    border: 2px solid #cc3366;
}

.score-label, .high-score-label {
    margin: 5px 0;
}

.blue-score .score-label, .blue-score .high-score-label {
    color: #3366cc;
}

.red-score .score-label, .red-score .high-score-label {
    color: #cc3366;
}

#gameCanvas {
    border: 2px solid #333;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.game-controls {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.game-controls p {
    margin: 5px 0;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 10px;
    display: none;
    z-index: 1000;
}

.game-over h2 {
    margin-bottom: 20px;
}

.game-over p {
    margin-bottom: 20px;
    font-size: 18px;
}

#restartBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restartBtn:hover {
    background-color: #45a049;
}

@media (max-width: 450px) {
    .game-container {
        width: 90%;
        padding: 15px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
}