* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 10px;
    font-size: 2rem;
    font-weight: bold;
}

#player-score, #computer-score {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 20px;
    border-radius: 5px;
    min-width: 60px;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    background-color: #000000;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    max-width: 100%;
}

.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.difficulty {
    display: flex;
    align-items: center;
    gap: 10px;
}

select {
    padding: 8px;
    border-radius: 5px;
    background-color: #333;
    color: white;
    border: 1px solid #555;
}

.instructions {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.instructions h2 {
    margin-bottom: 10px;
    color: #4CAF50;
}

.instructions p {
    margin-bottom: 5px;
}

@media (max-width: 850px) {
    canvas {
        width: 100%;
        height: auto;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .score-board {
        gap: 30px;
    }
}