/* Allgemeine Einstellungen */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    text-align: center;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column; /* Damit die Elemente in der Reihenfolge gestapelt werden */
    min-height: 100vh; /* Stellt sicher, dass der Körper die gesamte Höhe des Viewports ausfüllt */
}

/* Hintergrund mit Kaaba */
.background {
    background: url('https://www.shutterstock.com/image-photo/kaaba-makkah-night-view-600w-1613381637.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100%; /* Hintergrund über die gesamte Höhe */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Damit der Hintergrund den gesamten freien Raum einnimmt */
}

/* Overlay */
.overlay {
    background-color: rgba(0, 0, 0, 0.7); /* Etwas dunkler für bessere Lesbarkeit */
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    color: white;
    display: flex;
    flex-direction: column; /* Flexbox für vertikale Anordnung */
    justify-content: flex-start; /* Stellt sicher, dass die Elemente von oben nach unten ausgerichtet sind */
    height: 100%; /* Overlay nimmt die gesamte Höhe ein */
}

/* Eingabebereich */
.input-section {
    margin-bottom: 20px;
}

/* Erklärungstext */
.about {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    flex-shrink: 0; /* Verhindert, dass der Erklärungstext die Gebetszeiten nach unten drückt */
    display: none; /* Der Erklärungstext wird nur angezeigt, wenn er angeklickt wird */
}

/* Eingabefeld und Button */
#postalCode {
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    width: 80%;
    margin-bottom: 15px;
    background-color: #ffffff;
    color: #333;
}

button {
    padding: 12px 20px;
    font-size: 1rem;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;
}

button:hover {
    background-color: #218838;
}

/* Gebetszeiten */
.prayer-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px; /* Damit der Abstand zur Erklärung etwas kleiner wird */
}

.prayer-section ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    flex-wrap: wrap; /* Ermöglicht flexibles Umfließen */
    margin: 0;
}

.prayer-section li {
    background: rgba(255, 255, 255, 0.2);
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    min-width: 100px; /* Verhindert, dass die Elemente zu klein werden */
    flex: 1 1 30%; /* Jede Gebetszeit nimmt mindestens 30% der Breite ein */
}

/* Footer */
footer {
    margin-top: 30px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.ad-banner {
    margin-top: 20px;
}

/* Responsives Design */
@media (max-width: 768px) {
    .overlay {
        width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #postalCode, button {
        font-size: 0.9rem;
    }

    .prayer-section li {
        font-size: 1rem;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .overlay {
        width: 95%;
        padding: 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    #postalCode, button {
        font-size: 0.85rem;
        padding: 10px;
    }

    .prayer-section li {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}
