/* Basisstile für den Hintergrund */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    background-image: url('SN_Couple-1173-scaled.jpg'); /* Dein Hintergrundbild */
    background-size: cover; /* Bild deckt den gesamten Bildschirm ab */
    background-position: center; /* Bild wird zentriert */
    background-attachment: fixed; /* Bild bleibt fixiert, wenn die Seite gescrollt wird */
    color: white; /* Textfarbe wird auf weiß gesetzt, um auf dem Hintergrund gut lesbar zu sein */
    font-family: 'Playfair Display', serif;
}

/* Weißer Balken ganz oben */
.topbar {
    position: fixed;              /* fixiert die Leiste oben */
    top: 0;                       /* kein Abstand oben */
    left: 0;
    right: 0;
    width: 100vw;                 /* volle Breite */
    background-color: rgba(255, 255, 255); /* leicht transparent */
    color: rgb(145, 139, 21);
    padding: 10px 0;              /* etwas schmaler machen */
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 9999;
}

/* Container für den Inhalt */
.container {
    margin-top: 100px;
    background-color: rgba(0, 0, 0, 0.5); /* Transparente Hintergrundfarbe für bessere Lesbarkeit */
    padding: 30px;
    border-radius: 10px;
    max-width: 100%; /* Container auf volle Breite setzen */
    width: 90%; /* Container kann auf 90% der Breite auf mobilen Geräten skalieren */
}

/* Stil für das Suchfeld */
input {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
    width: 100%; /* Volle Breite für das Suchfeld */
    max-width: 400px; /* Maximale Breite für das Suchfeld */
    box-sizing: border-box; /* Boxmodel so einstellen, dass das Padding nicht das Layout stört */
}

/* Stil für die Gäste-Liste */
#guestList {
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#guestList div {
    padding: 8px;
    background-color: #f4f4f4;
    margin-bottom: 10px;
    border-radius: 5px;
}

#result {
    font-size: 20px;
    font-weight: bold;
}
 
/* Gästeliste Styling */
.guest-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    margin: 8px 0;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guest-name {
    font-weight: 600;
}

.guest-table {
    color: #666;
}

#result {
    margin: 15px 0;
    font-size: 1.1em;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Stil für das Ergebnis der Suchanfrage */
h2 {
    margin-top: 40px;
}

.tamil-highlight {
    font-family: 'Noto Serif Tamil', serif;
    font-weight: 380;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
} 

/* Medienabfragen für mobile Geräte */
@media only screen and (max-width: 600px) {
    body {
        padding: 10px; /* Weniger Abstand auf mobilen Geräten */
    }

    .container {
        padding: 20px; /* Weniger Padding im Container */
    }

    h1 {
        font-size: 24px; /* Kleinere Schriftgröße für den Titel */
    }

    #result {
        font-size: 18px; /* Kleinere Schriftgröße für das Ergebnis */
    }

    /* Diashow auf mobilen Geräten anpassen */
    .slideshow-container {
        width: 100%; /* Diashow soll die ganze Breite auf mobilen Geräten einnehmen */
    }

    .mySlides img {
        width: 100%; /* Bilder sollen die volle Breite auf mobilen Geräten einnehmen */
        height: auto; /* Bildhöhe automatisch skalieren */
    }

    input {
        width: 100%; /* Maximale Breite für das Eingabefeld */
    }
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

#showMapBtn {
    padding: 8px 12px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    cursor: pointer;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: 0 0 20px #000;
}

#pagination button {
    padding: 6px 12px;
    margin: 4px;
    border: none;
    background-color: #eee;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

#pagination button.active-page {
    background-color: #666;
    color: white;
}
