:root {
    --sage-green: #9db5a4; /* Adjust the hex value to your preferred shade of sage green */
    --wood-color: #a17a5e; /* Adjust the hex value to your preferred wood color */
    --beige-color: #f5f5dc; /* Beige color, also known as 'Beige' in CSS colors */
}

/* Einbinden der Schriftart */
@font-face {
    font-family: 'Aston Script';
    src: url('/font/font1.ttf') format('truetype'); /* TTF-Format */
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: x-large;
    text-align: center;
    background-color: var(--beige-color); /* Using beige as the background for the body */
    color: #333; /* Default text color */
    overflow-wrap: break-word;
}

header, footer {
    font-family: 'Aston Script', sans-serif;
    font-size: 2em;
    text-align: center;
    padding: 10px;
    color: var(--wood-color); /* Assuming white text for header and footer for contrast */
}

h1, h2 {
    font-family: 'Aston Script', sans-serif;
    color: var(--wood-color); /* Using wood color for headings */
}

h2 {
    font-size: x-large;
}

.header-image {
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Zentriert das Bild, falls es kleiner als die volle Breite ist */
    max-width: 70%; /* Stellt sicher, dass das Bild nie breiter als der Bildschirm ist */
    height: auto; /* Behält das Seitenverhältnis bei, während die Breite angepasst wird */
    border-radius: 50%; /* Gibt dem Bild einen runden Rand */
}

.invitation, .details, .rsvpForm {
    background-color: var(--sage-green);
    color: whitesmoke;
    border-radius: 15px; /* Abgerundete Ecken; Sie können diesen Wert anpassen */
    padding: 20px; /* Stellen Sie sicher, dass genügend Innenabstand vorhanden ist */
    margin-bottom: 10px;
}

#countdown-container {
    position: relative;
    text-align: center;
}

.countdown-image {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 70%; /* Stellen Sie sicher, dass das Bild die volle Breite des Containers einnimmt */
    height: auto; /* Behält das Seitenverhältnis des Bildes bei */
    border-radius: 50%;
}

#countdown {
    position: absolute;
    top: 50%; /* Zentriert den Countdown vertikal */
    left: 50%; /* Zentriert den Countdown horizontal */
    transform: translate(-50%, -50%); /* Verschiebt den Countdown so, dass sein Mittelpunkt zentriert ist */
    /* Weitere Stile für Ihren Countdown (Farben, Schriftarten, etc.) */
}

.time-box {
    background-color: rgba(255, 255, 255, 0.5); /* Weiß mit leichter Transparenz */
    border-radius: 10px; /* Etwas abgerundete Ecken */
    padding: 10px; /* Innerer Abstand */
    margin: 5px; /* Äußerer Abstand */
    display: inline-block; /* Damit die Boxen nebeneinander stehen */
}
    
.contact {
    padding: 20px;
    margin-bottom: 10px;
    color: var(--wood-color);
}

.contact-images {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.contact-item {
    margin-top: 5px;
    margin: 10px;
    flex-basis: 20%;
    color: var(--wood-color);
}

.contact-item img {
    width: 100%; /* Oder eine andere feste Größe */
    height: auto;
    border-radius: 50%; /* Macht das Bild rund */
    object-fit: contain; /* Stellt sicher, dass das Bild den Raum gut ausfüllt */
}
    
.contact-information {
    margin-top: 5px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.rsvpForm {
    text-align: center;
}

#rsvpForm label, #rsvpForm input, #rsvpForm select, #rsvpForm textarea, #rsvpForm button {
    flex: 1 1 45%; /* Nimmt 50% der Breite ein */
    display: block; /* Stellt sicher, dass jedes Element als Block gerendert wird */
    margin-bottom: 5px; /* Fügt einen Abstand zwischen den Elementen hinzu */
    margin-top: 5px;
    padding: 5px;
    border-radius: 10px;
    border: none;
    /* width: 100%; /* Optional: Stellt sicher, dass die Elemente die volle Breite einnehmen */
}

#rsvpForm button {
    margin-left: auto;
    margin-right: auto;
    padding: 20px 20px; /* Größerer Innenabstand für den Button */
    background-color: #4CAF50; /* Farbe des Buttons */
    color: white; /* Textfarbe des Buttons */
    border: none; /* Entfernt den Rand */
    cursor: pointer; /* Verändert den Cursor beim Hover über den Button */
    min-width: 20%;
    width: auto;
}

#rsvpForm button:hover {
    background-color: #45a049; /* Dunklere Farbe beim Hover */
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Zentriert den Inhalt horizontal */
    align-items: center; /* Zentriert den Inhalt vertikal */
    margin-bottom: 10px;
}

.button-container {
    margin: 0 auto;
}

/* Responsive design for different screen sizes */
@media only screen and (max-width: 1200px) {
    /* Styles for screens smaller than 1200px */
}

@media only screen and (max-width: 992px) {
    /* Styles for screens smaller than 992px */
}

@media only screen and (max-width: 768px) {
    /* Styles for tablet screens and smaller */
    .header-image, .countdown-image {
        max-width: 100%;
    }
  
    .container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .contact-item {
        flex-basis: 100%; /* Jedes Element nimmt die volle Breite ein */
    }

    .contact-information {
        flex-direction: column;
    }

    .form-group label, .form-group input, .form-group select, .form-group textarea {
        flex-basis: 100%; /* Nimmt auf kleinen Bildschirmen die volle Breite ein */
        margin-right: 0; /* Entfernt den rechten Abstand auf kleinen Bildschirmen */
    }

    #rsvpForm button {
        min-width: 40%;
    }
}

@media only screen and (max-width: 576px) {
    /* Styles for mobile screens */
  
    .header-image, .countdown-image {
        max-width: 100%;
    }
    
    .contact-item {
        flex-basis: 100%; /* Jedes Element nimmt die volle Breite ein */
    }

    .contact-information {
        flex-direction: column;
    }

    .container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .form-group label, .form-group input, .form-group select, .form-group textarea {
        flex-basis: 100%; /* Nimmt auf kleinen Bildschirmen die volle Breite ein */
        margin-right: 0; /* Entfernt den rechten Abstand auf kleinen Bildschirmen */
    }
    
    #rsvpForm button {
        min-width: 40%;
    }
}
