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

canvas {
    border: 2px solid #333;
    background-color: #000;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
}

#ui-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 16px;
    pointer-events: none;
}

#game-over, #start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}

button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ff0;
}

#high-scores {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    max-width: 300px;
}

.scores-container {
    display: flex;
    justify-content: center;
}

.scores-column {
    width: 100%;
}

.score-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.player-name {
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.player-score {
    font-weight: bold;
}

.name-input {
    margin: 15px 0;
    text-align: center;
}

.name-input input {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #4CAF50;
    color: white;
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    margin-top: 5px;
}

.health-bar {
    width: 200px;
    height: 20px;
    background-color: #333;
    margin-top: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background-color: #0f0;
    transition: width 0.3s;
}

.power-up-indicator {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border: 2px solid white;
    border-radius: 5px;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
}

.active {
    background-color: rgba(0, 255, 0, 0.5);
}