/* Stile für den Splashscreen */
html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    overflow: hidden; /* Verhindert Scrollbalken */

    /* --- HINTERGRUNDBILD HINZUFÜGEN --- */
    background-image: url('assets/sprites/background.jpg'); /* ÄNDERE DIESEN PFAD */
    background-size: cover; /* Sorgt dafür, dass das Bild den ganzen Bildschirm ausfüllt */
    background-position: center; /* Zentriert das Bild */
    background-repeat: no-repeat; /* Verhindert, dass das Bild gekachelt wird */
    background-color: #000; /* Fallback-Farbe, falls das Bild nicht lädt */
}

.splash-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
    background-color: rgba(0, 0, 0, 0.5); /* Dunkler Overlay, damit Text lesbar bleibt */
    color: #eee;
    padding: 20px; /* Füge etwas Padding hinzu, um den Inhalt von den Rändern fernzuhalten */
    box-sizing: border-box; /* Stellt sicher, dass Padding in der Gesamtbreite/-höhe enthalten ist */
}

.splash-container p {
	/* margin-bottom: 5%; /* Reduziere den unteren Rand, um Platz für den Scrolltext zu schaffen */
}

#logo {
	width:	40%;
}

.game-title {
    font-size: 3em;
    color: #00ff00;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 0px; /* Mehr Abstand für den Button */
}

/* --- STILE FÜR DEN NEUEN BUTTON --- */
.start-button {
    background-color: #008800;
    color: white;
    border: 2px solid #00ff00;
    padding: 15px 30px;
    font-size: 2em;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 1px 1px 2px #000;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-top: 16px; /* Füge etwas Abstand über dem Button hinzu */
}

.start-button:hover {
    background-color: #00aa00;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.7);
}

/* --- STILE FÜR DEN NEUEN SCROLLTEXT-BEREICH --- */
.scroll-text-container {
    width: 100%; /* Breite des Textbereichs */
    max-width: 800px; /* Maximale Breite */
    height: 400px; /* Feste Höhe für den Scrollbereich */
    overflow-y: auto; /* Ermöglicht vertikales Scrollen */
    /*border: 1px solid #00ff00; /* Grüner Rahmen */
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7); /* Dunkler Hintergrund für den Text */
    color: #eee;
    font-size: 1.0em;
    line-height: 1.8;
    border-radius: 8px;
    margin-top: 20px; /* Abstand zum Logo */
    margin-bottom: 20px; /* Abstand zum Button */
    text-align: left; /* Text linksbündig ausrichten */
}

/* Scrollbar-Stil (Webkit-Browser) */
.scroll-text-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-text-container::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

.scroll-text-container::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 10px;
}

.scroll-text-container::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}


/* Keyframe-Animation für das Einblenden */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 1000px) {
		#logo {
		width:	80%;
	}
}

/* Media Queries für kleinere Bildschirme */
@media (max-width: 600px) {
    .game-title {
        font-size: 2em;
    }
	#logo {
		width:	80%;
	}
    .start-button {
        font-size: 1.2em;
        padding: 12px 24px;
    }
    .scroll-text-container {
        width: 90%; /* Auf kleineren Bildschirmen breiter */
        height: 120px; /* Etwas geringere Höhe */
        font-size: 0.8em;
    }
}
