/* Grundlegende Stildefinitionen */
@font-face {
    font-family: 'Josefin Sans';
    src: url('fonts/Josefin_Sans/static/JosefinSans-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Yeseva One';
    src: url('fonts/Yeseva_One/YesevaOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Josefin Sans';
    background-color: #ede9e3;
    color: #000000;
    line-height: 1.6;
}

.heading {
    font-family: 'Yeseva One';
    font-size: 1.5em;
}

h3 {
    font-size: 1.5em;
}

/* Image Carousel */

.carousel {
    width: calc(100% - 300px);
    height: 700px; /* Adjust 500px to your image's height */
    overflow: hidden; /* Ensure images don't exceed the container */
    position: relative;
  }
  
  /* Select and apply styles to the carousel's images */
  .carousel-images img {
    display: none;
    width: 100%; /* Full width of their container */
    height: 700px; /* Fixed height, adjust as needed */
    object-fit: cover; /* Cover the area without distorting aspect ratio */
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
    
  .carousel-images img:first-child {
    display: block;
    opacity: 1;
  }
  
  @media (max-width: 900px) {
    .carousel {
      width: 100%;
      height: 300px;
    }
  
    .carousel-images img {
      height: 300px;
    }
  }

  @media (min-width: 901px) {
    .carousel {
      width: calc(100% - 300px);
      height: 700px;
    }
  
    .carousel-images img {
      height: 700px;
      object-fit: cover;
      object-position: center top;
    }
  }

.invitation, .date, #event, #rsvp, #wishes, #trauzeugen, #image-upload {
    background-color: #ede9e3;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

#svg {
    width: 10%;
    height: auto;
}

@media (max-width: 900px) {
    #svg {
        width: 30%;
    }
}

.date h2, #event h2 {
    margin-bottom: 30px;
}

.date ul, .timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    background-color: #ede9e3;
    /*border-radius: 5px;*/
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.2);*/
    width: 90%;
}

.date li, .timeline li {
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 20px;
}

.timeline h3 {
    margin-top: 0;
    color: #747f6f;
    font-weight: bold;
}

.timeline p, .date li {
    margin-bottom: 0;
    color: #333;
    font-weight: bold;
}

.link {
    color: #747f6f;
    font-weight: bold;
}

/* Sidebar Stile */
.sidebar {
    background-color: #747f6f;
    color: white;
    position: fixed;
    width: 300px;
    height: 100%;
    overflow-y: auto;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.sidebar p {
    font-family: 'Yeseva One';
    font-size: 3em;
    margin: 0;
    padding: 0 0 40px 0;
    border-bottom: solid 2px white;
    width: 100%;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

nav li {
    margin: 0;
}

nav a {
    font-family: 'Josefin Sans';
    font-size: 1.5em;
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

nav a:hover, nav a:focus {
    background-color: #5e6d5a;
    color: white;
}

/* Hamburger Icon */
#hamburger {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    padding: 15px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 900px) {
    #hamburger {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        padding-top: 0px;
        z-index: 1000;
    }

    .sidebar p {
        font-size: 1.5em;
    }

    nav a {
        font-size: 1em;
    }
}

/* Hauptinhalt Stile */
main {
    font-size: 1.2em;
    margin-left: 250px; /* Breite der Sidebar */
    padding: 20px;
    box-sizing: border-box;
    width: calc(100% - 250px); /* Breite des Inhaltsbereichs abzüglich Sidebar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Zentriert den Inhalt vertikal */
}

@media (max-width: 900px) {
    main {
        margin-left: 0;
        width: 100%; /* Setzt die Breite auf 100% auf kleineren Bildschirmen */
    }
}

/* RSVP Formular Stile */
.rsvp-form {
    max-width: 600px;
    margin: 10px auto;
    padding: 10px;
    background-color: #ede9e3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form-row {
    display: flex;
    justify-content: space-between;
}

.form-column {
    display: flex;
    flex-direction: column;
    flex-basis: 48%; /* Adjust the width of columns */
}

/* Standard-Eingabefelder */
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Radio-Button Stile */
.radio-group {
    margin-left: 40px;
    display: flex;
    flex-direction: column;
  }
  
  .radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Abstand zwischen den Radio-Optionen */
  }
  
  .radio-option label {
    margin-left: 0.5em; /* Abstand zwischen Radio-Button und Text */
  }

/* Stile für zusätzliche Gästefelder */
.additional-guest {
    width: 70%; /* Gleiche Breite wie andere Eingabefelder */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block; /* Stellt sicher, dass das Feld sichtbar ist */
}

/* Grüner Rahmen für gültige Eingaben */
input.valid,
select.valid,
textarea.valid {
    border: 2px solid green;
}

/* Roter Rahmen für ungültige Eingaben */
input.invalid,
select.invalid,
textarea.invalid {
    border: 2px solid red;
}

/* Fehlermeldungen */
.error-message {
    color: red;
    font-size: 0.8em;
    height: 20px; /* Reserviert Platz für Fehlermeldungen */
}

/* Stildefinitionen für den Submit-Button */
button[type="submit"] {
    background-color: #747f6f;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    position: relative;
    border-radius: 12px;
    width: 25%;
    padding: 7px;
    display: block;
    margin: 20px auto;
}

button[type="submit"]:hover {
    background-color: #5e6d5a;
}

/* Anpassungen für kleinere Bildschirme */
@media (max-width: 900px) {
    input, select, textarea, button[type="submit"] {
        width: 100%; /* Volle Breite auf mobilen Geräten für bessere Nutzbarkeit */
    }
    
    /* Anpassung der Größe der Eingabefelder für zusätzliche Gäste */
    .additional-guest {
        width: 100%; /* Volle Breite auf mobilen Geräten */
    }
    .form-row {
        flex-direction: column;
    }
    .form-column {
        flex-basis: 100%;
    }
    .radio-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Aligns items to the left */
    }
    
    .radio-option {
        display: flex;
        align-items: center;
    }
    
    .radio-option input[type="radio"] {
        margin-right: 5px; /* Adjust spacing as needed */
    }
    
    .radio-option label {
        white-space: nowrap; /* Prevents label text from wrapping */
    }
    
    button[type="submit"] {
        width: 70%;
    }
}

/* Trauzeugen Stile */
.trauzeugen {
    display: flex;
}

.trauzeuge {
    flex: 1;
    text-align: center;
}

.trauzeuge img {
    border-radius: 50%;
    width: 150px; /* Feste Breite für das Bild */
    height: 150px; /* Feste Höhe für das Bild */
    object-fit: cover; /* Sorgt dafür, dass das Bild den Container ausfüllt, ohne sein Seitenverhältnis zu verzerren */
    margin-bottom: 10px;
}

#oval {
    object-position: 0% center; 
}

@media (max-width: 900px) {
    .trauzeugen {
        flex-direction: column;
    }

    #oval {
        object-position: 0% center;
    }
}

/* Image upload */
#drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}
#drop-area.highlight {
    background-color: #f0f0f0;
}
#gallery .preview-div {
    width: 100px;
    margin: 10px;
    display: inline-block;
    position: relative;
}
#gallery .preview-div img {
    width: 100%;
    display: block;
}
.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    display: none;
}
.preview-div:hover .close-btn {
    display: block;
}
#progressBarContainer {
    width: 100%;
    background-color: #ddd;
    display: none;
}
#progressBar {
    height: 20px;
    width: 0%;
    background-color: #5e6d5a;
    text-align: center;
    line-height: 20px; /* Zentriert den Text vertikal */
    color: white;
}

/* Responsive Design für kleine Bildschirme */
@media (max-width: 900px) {
    #progressBarContainer {
        height: 30px; /* Größere Höhe für kleinere Bildschirme */
        display: none;
    }

    #progressBar {
        height: 30px; /* Größere Höhe für kleinere Bildschirme */
        display: block;
    }

    .close-btn {
        display: block;
    }
}

/* uploader text input smaller width */
#image-upload input[type="text"] {
    width: 30%;
}


/* Placeholder Schriftart*/
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    font-family: 'Josefin Sans', sans-serif;
    color: black;
    font-size: 16px;
  }
  
  input::-moz-placeholder,
  textarea::-moz-placeholder { /* Firefox 19+ */
    font-family: 'Josefin Sans', sans-serif;
    color: black;
    font-size: 16px;
  }
  
  input:-ms-input-placeholder,
  textarea:-ms-input-placeholder { /* IE 10+ */
    font-family: 'Josefin Sans', sans-serif;
    color: black;
    font-size: 16px;
  }
  
  input::-ms-input-placeholder,
  textarea::-ms-input-placeholder { /* Microsoft Edge */
    font-family: 'Josefin Sans', sans-serif;
    color: black;
    font-size: 16px;
  }
  
  /* Stil für den 'Placeholder' des select-Elements */
select {
    font-family: 'Josefin Sans', sans-serif;
    color: black; /* Standardfarbe für andere Optionen */
    font-size: 16px;
}

/* Stil für den ersten option-Eintrag, der als Placeholder dient */
select option[value=""] {
    color: black; /* Farbe speziell für den 'Placeholder' */
}

/* Footer Stile */
footer {
    background-color: #747f6f;
    color: white;
    text-align: center;
    position: static;
    left: 300px; /* Breite der Sidebar */
    width: calc(100% - left); /* Passt die Breite des Footers an */
    display: flex;
    justify-content: center; /* Zentriert den Inhalt des Footers */
}

@media (max-width: 900px) {
    main, footer {
        margin-left: 0;
        width: 100%; /* Setzt die Breite auf 100% auf kleineren Bildschirmen */
    }
}

main:after {
  content: "";
  display: block;
  height: 50px;
}

/* Hilfsklassen */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
