body {
    margin: 0;
    overflow: hidden; /* Verhindert Scrollen auf dem Handy */
    background-color: #1a1a2e; /* Dunkler Nachthintergrund */
    font-family: sans-serif;
    color: white;
    touch-action: none; /* Wichtig für Touch-Steuerung */
}
canvas {
    display: block;
}

/* Screen Overlays */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Scrollbar für längere Inhalte */
}

.screen h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #ffcc00;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.screen p {
    font-size: 20px;
    margin: 15px 0;
    color: #aaddff;
}

.screen button {
    margin: 15px;
    padding: 15px 30px;
    font-size: 20px;
    background: #ffcc00;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 200px;
}

.screen button:hover {
    background: #ffdd44;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.screen button:active {
    transform: scale(0.95);
}

#introImageContainer {
    margin: 20px 0;
    max-width: 200px;
    width: 90%;
    position: relative;
}

#introImage {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.4),
                0 0 60px rgba(255, 204, 0, 0.2),
                inset 0 0 20px rgba(255, 204, 0, 0.1);
    display: block;
    object-fit: cover;
    /* Verschwommener Rand-Effekt */
    filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.3));
}

#startStats {
    margin: 30px 0;
}

#startStats p {
    font-size: 24px;
    margin: 20px 0;
}

#gameOverScreen h1 {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

#gameOverTime {
    font-size: 24px;
    margin: 20px 0;
}

#gameOverTime span {
    color: #ffcc00;
    font-size: 32px;
    font-weight: bold;
}

#nicknameInput {
    margin: 30px 0;
}

#nicknameInput input {
    padding: 12px 20px;
    font-size: 18px;
    border: 2px solid #00d2ff;
    border-radius: 8px;
    background: rgba(0, 210, 255, 0.1);
    color: white;
    text-align: center;
    width: 250px;
    max-width: 80%;
}

#nicknameInput input::placeholder {
    color: #88aacc;
}

#nicknameInput input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

/* In-Game UI */
#ui {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none; /* Klicks gehen durch den Text durch */
    z-index: 100;
}
#ui h1 {
    margin: 10px 0;
    font-size: 24px;
}
#ui h2 {
    margin: 10px 0;
    font-size: 20px;
    color: #ffcc00;
}

/* About Screen */
#aboutContent {
    max-width: 800px;
    margin: 20px 0;
    padding: 0 20px;
}

#aboutContent p {
    font-size: 18px;
    line-height: 1.8;
    margin: 25px 0;
    color: #ddeeff;
    text-align: left;
}

#aboutContent p:first-child {
    margin-top: 0;
}

#aboutContent p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #ffcc00;
}

@media (max-width: 600px) {
    #aboutContent {
        max-width: 100%;
        padding: 0 10px;
    }
    
    #aboutContent p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .screen h1 {
        font-size: 36px;
    }
}

