/* === Grundinställningar === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Julius Sans One", sans-serif;
  background-color: #e6e3db;
  color: #ffffff;
  line-height: 1.6;
}

/* === Header === */
.header {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 30px;
  background-color: transparent;
}

.header h1 {
  font-family: "Dancing Script", cursive;
  font-size: 81px;
  color: #405b50;
  margin-bottom: 10px;
}

.header p {
  font-size: 16px;
  color: #405b50;
}

.header-picture img {
  position: relative;
  width: 100%;
  height: 100vh; /* täcker hela skärmen */
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.2s ease-out;
}

/* === Navigering === */
.button-row {
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.text-button {
  font-size: 16px;
  font-family: "Julius Sans One", sans-serif;
  color: #405b50;
  text-decoration: none;
  padding: 12px 24px;
  border: none;
  background: none;
  cursor: pointer;
}

.text-button:hover {
  background-color: #405b50;
  color: #fff;
  border-radius: 12px;
}

.text-button.active {
  background: #405b50;
  color: #fff;
  border-radius: 4px;
  padding: 12px 24px;
}

.hamburger {
  display: none; /* syns bara på mobil */
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}

/* === Sektioner === */
.information {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  font-family: "Playfair", serif;
}

/* Bild och text till vänster/höger */
.information-text h2 {
  font-family: "Dancing Script", cursive;
  font-size: 40px;
  color: #405b50;
  margin-bottom: 10px; /* lägg till detta */
  text-align: center;
  align-items: center;
}
.information-text img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  margin-bottom: 4rem;
  object-fit: cover;
}
.information-text p {
  text-align: center;
  font-size: 16px;
  color: black;
}

.mainInfo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.mainInfo-part {
  padding: 1.5rem;
  width: 400px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
/* Our story layout */
.ourStory {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.ourStory h2 {
  font-family: "Dancing Script", cursive;
  color: #e6e3db;
  font-size: 35px;
  text-align: center;
}

.ourStory p {
  color: #e6e3db;
  font-size: 16px;
}

.firstMeeting,
.secondMeeting {
  background-color: #405b50;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: "Playfair", serif;
  border-radius: 12px;

}

/* === Gallery layout === */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.gallery img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  margin: 1rem;
}

.uploadForm {
  background-color: #fffaf6;
  max-width: 500px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  font-family: "Julius Sans One", sans-serif;
  color: #405b50;
  text-align: center;
}

.uploadForm h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #405b50;
}

.uploadForm p{
  margin-bottom: 1.5rem;
}

.uploadForm input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 1.2rem;
  border: 1.5px solid #405b50;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #405b50;
  background-color: #fffaf6;
  transition: border-color 0.3s ease;
}

.uploadForm input[type="file"]:focus {
  border-color: #405b50;
  outline: none;
  box-shadow: 0 0 6px #7e8b7c;
}

.uploadForm button {
  width: 100%;
  background-color: #405b50;
  border: none;
  padding: 14px;
  font-family: "Dancing Script", cursive;
  font-size: 1.5rem;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.uploadForm button:hover {
  background-color: #405b50;
}

/* === Bridalparty layout === */
.bridalparty {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  text-align: center;
}

.bridalparty h1 {
  font-family: "Dancing Script", cursive;
  font-size: 2.8rem;
  color: #405b50;
}

.brudtärnor,
.brudgummar,
.värdpar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.bridalparty li {
  color: #e6e3db;
  list-style: none;
}

.bridalparty a {
  text-decoration: none;
  color: #e6e3db;
  font-size: 12px;
}
.person {
  background-color: #405b50;
  padding: 1.5rem;
  border-radius: 12px;
  width: 400px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.person h2 {
  font-family: "Dancing script", sans-serif;
  font-size: 2.8rem;
  color: #e6e3db;
  margin-bottom: 0.5rem;
}

.person p {
  font-family: "Delius", sans-serif;
  font-size: 1rem;
  color: #e6e3db;
}

.person img {
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
/* === Rsvp layout === */

/* === RSVP Formulär === */

.rsvp {
  background-color: #fffaf6; /* ljus bakgrund som bridalparty */
  max-width: 500px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  font-family: "Julius Sans One", sans-serif;
  color: #405b50;
}

.rsvp h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #405b50;
}

.rsvp p {
  margin-bottom: 1.5rem;
}

.rsvp label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #405b50;
}

.rsvp input[type="text"],
.rsvp input[type="number"],
.rsvp textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 1.2rem;
  border: 1.5px solid #405b50;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #405b50;
  background-color: #fffaf6;
  transition: border-color 0.3s ease;
}

.rsvp input[type="text"]:focus,
.rsvp input[type="number"]:focus,
.rsvp textarea:focus {
  border-color: #405b50;
  outline: none;
  box-shadow: 0 0 6px #405b50;
}

.rsvp textarea {
  min-height: 100px;
  resize: vertical;
}

.rsvp select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 1.2rem;
  border: 1.5px solid #405b50;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #405b50;
  background-color: #fffaf6;
  transition: border-color 0.3s ease;
  -webkit-appearance: none; /* ta bort default pilar i vissa webbläsare */
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.rsvp select:focus {
  border-color: #405b50;
  outline: none;
  box-shadow: 0 0 6px #405b50;
}

.rsvp button {
  width: 100%;
  background-color: #e6e3db;
  border: none;
  padding: 14px;
  font-family: "Dancing Script", cursive;
  font-size: 1.5rem;
  color: #405b50;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.rsvp button:hover {
  color: #e6e3db;
  background-color: #405b50;
}

#osa-message {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: #405b50;
}

.modal {
  display: none; /* gömd som standard */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fffaf6;
  margin: 15% auto;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  font-family: "Julius Sans One", sans-serif;
  color: #405b50;
}

.close {
  color: #405b50;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #405b50;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #405b50;
  color: #e6e3db;
  font-size: 14px;
}

footer li {
  display: inline;
}

footer a {
  color: #e6e3db;
  text-decoration: none;
}
/* === Responsivitet === */
@media (max-width: 768px) {
  body {
    padding: 0px;
  }

  .button-row {
    display: none; /* göm initialt */
    flex-direction: column; /* vertikal layout */
    top: 80px;
    right: 20px;
    padding: 10px;
    border-radius: 8px;
    z-index: 1000;
  }

  .button-row.active {
    display: flex; /* visa när active */
  }

  .hamburger {
    display: block; /* visa hamburger */
    color: #405b50;
  }

  .header-picture img {
    width: 100%;
  }

  .information-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .information-text img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  .header h1 {
    font-size: 40px;
    text-align: center;
  }

  .header p {
    text-align: center;
    font-size: 16px;
  }

  .information {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .information-text {
    width: 100%;
    padding: 10px;
  }

  .information-text h2 {
    font-size: 28px;
    text-align: center;
  }

  .information-text p {
    font-size: 16px;
    text-align: center;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .rsvp {
    padding: 1.5rem;
    margin: 1.5rem 1rem 3rem;
  }

  .rsvp h2 {
    font-size: 2rem;
  }

  .rsvp button {
    font-size: 1.3rem;
  }
  .header-picture img {
    height: 30vh; /* ännu mindre höjd på små skärmar */
    object-position: center 10%;
  }
}
