* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #92238e;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    text-align: center;
    max-width: 600px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2.5em;
    color: #ff4081;
}

.star-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000; /* Dunkler Hintergrund */
    overflow: hidden;
    z-index: -1; /* Hinter den Inhalten */
}

.subtext {
    color: #b72020;
    font-weight: bold;
}

/* Sterne-Styling */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: twinkle 2s infinite alternate;
    opacity: 0;
}

/* Animation fürs Funkeln */
@keyframes twinkle {
    0% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Unterschiedliche Sternengrößen */
.star.small { width: 2px; height: 2px; }
.star.medium { width: 4px; height: 4px; }
.star.large { width: 6px; height: 6px; }

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 300px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center; /* Zentriert die Bilder vertikal und horizontal */
}

.schatz {
    color: #b72020;
}

.welcome {
    color: rgb(57, 26, 26);
}

.slide {
    width: auto; /* Breite automatisch */
    height: 100%; /* Höhe auf Slideshow-Höhe anpassen */
    object-fit: contain; /* Passt das Bild an, ohne es zu beschneiden */
    opacity: 0;
    transition: opacity 1s;
}

.slide.active {
    opacity: 1;
}


/* Login Formular */
form {
    margin-top: 20px;
}

input[type="password"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

button {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #e91e63;
}

/* Message */
.message {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}