body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

#gameContainer {
    position: relative;
    margin-top: 20px;
}

canvas {
    border: 2px solid #00ff00;
    background: linear-gradient(180deg, #000033 0%, #000066 50%, #000099 100%);
}

#ui {
    display: flex;
    justify-content: space-between;
    width: 800px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #00ff00;
}

.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -15%);
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border: 2px solid #00ff00;
    border-radius: 10px;
    display: none;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

#startScreen {
    display: block;
}

button {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    margin: 5px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

button:hover {
    background: #00cc00;
}

button:disabled {
    background: #666;
    cursor: not-allowed;
}

button:active,
.reset-button:active {
    transform: scale(0.98);
}

.controls {
    margin-top: 20px;
    font-size: 14px;
    color: #cccccc;
}

.title {
    font-size: 32px;
    color: #00ff00;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
}

.level-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.center-button {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

#pauseButton {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.level-info,
.player-info {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 5px;
}

.leaderboard {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff00;
    border-radius: 5px;
    text-align: left;
}

.leaderboard h3 {
    color: #00ff00;
    margin-bottom: 10px;
    text-align: center;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #003300;
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

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

.name-input input {
    background: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border-radius: 3px;
    margin: 0 10px;
}

.loading {
    color: #ffff00;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

.error {
    color: #ff6666;
    font-size: 14px;
    margin-top: 10px;
}

.reset-button {
    background: #ff6600 !important;
    color: #fff !important;
}

.reset-button:hover {
    background: #ff4400 !important;
}

/* Responsive Design */
@media (max-width: 900px) {
    #ui {
        width: 90%;
        max-width: 800px;
    }

    canvas {
        width: 99%;
        height: auto;

    }

    .screen {
        width: 90%;
        min-width: 300px;
        padding: 20px;
    }
    .title {
        font-size: 24px;
    }

    button {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* Animationen */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
