/* molle-italic - latin */
@font-face {
  font-display: swap;
  font-family: "Molle";
  font-style: normal;
  font-weight: 400;
  src: url("molle-v25-latin-italic.woff2") format("woff2");
}

/* cherry-cream-soda-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Cherry Cream Soda";
  font-style: normal;
  font-weight: 400;
  src: url("cherry-cream-soda-v21-latin-regular.woff2") format("woff2");
}

:root {
  --primary-bg-color: #e6d6b5; /* This is now the solid background for the content area */
  --text-dark: #3a2c20;
  --text-light: #6e5e4e;
  --accent-orange: #e77e4d;
  --accent-pink: #c8997a;
  --accent-green: #799a77;
  --accent-blue: #a3c4c2;
  --accent-yellow: #f1b74a;
  --accent-brown:rgb(211, 123, 35);
}

body {
  font-family: "Cherry Cream Soda", cursive;
  color: var(--text-dark);
  background-color: var(--primary-bg-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;

  /* Standard baggrund for brede skærme (OVER 800px) */
  background-image: url("lovebeat_bg--org_L.jpg"), url("lovebeat_bg--org_R.jpg");
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;
  background-position: left center, right center;
  background-size: auto; /* Ændret til auto, så billederne ikke strækkes */
  padding-bottom: 90px;
}

.container {
  max-width: 700px;
  width: 90%;
  padding: 30px 20px;
  margin: 20px auto;
  border-radius: 10px;
  box-sizing: border-box;
  position: relative;
  animation: fadeIn 1.5s ease-out forwards;
  opacity: 0;
}

.container :where(h2, h3) {
  margin-block-start: 60px;
}

.container p {
  margin-block-end: 30px;
  font-size: clamp(0.95em, 1.5vw, 1.2em);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography styles med responsive scaling - disse er fine som de er */
h1, h2, h3, .festival-title, .names, .date {
  font-family: "Molle", cursive;
  line-height: 1.1;
}

.festival-title {
  font-size: clamp(2.2em, 12.8vw, 5em);
  color: var(--accent-brown);
  margin-top: 20px;
  margin-bottom: 5px;
  letter-spacing: 2px;
}
.names {
  font-size: clamp(1.8em, 6vw, 4em);
  color: var(--accent-pink);
  margin-top: 0;
  margin-bottom: 15px;
  letter-spacing: 1.5px;
}
.tagline {
  font-size: clamp(1em, 1.8vw, 1.4em);
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-block: 30px;
}

.container .date {
  font-size: clamp(2em, 5vw, 3.5em);
  color: var(--accent-brown);
  margin: 20px 0;
  letter-spacing: 3px;
  font-weight: normal;
}
.section-title {
  font-size: clamp(1.4em, 2.8vw, 2em);
  color: var(--accent-brown);
  letter-spacing: 1px;
}
.rsvp-info {
  font-size: clamp(0.9em, 1.4vw, 1.1em);
  color: var(--text-light);
  margin-top: 30px;
  margin-bottom: 10px;
}

.gallery {
  margin-block: 40px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  gap: 20px;
  scroll-snap-type: x proximity;
}

.gallery img {
  width: 80%;
  height: auto;
  object-fit: contain;
  display: block;
  scroll-snap-align: center;
}

/* --- OPTIMEREDE MEDIEFORESPØRGSLER --- */

/* For skærme op til 800px bredde (tablet / mindre desktop) */
@media (max-width: 800px) {
  body {
    /* Justering af position for de brede billeder */
    background-size: auto 100%;
    background-position:
        calc(50% - (min(700px, 90vw) / 2) - 40px) center,
        calc(50% + (min(700px, 90vw) / 2) + 40px) center;
  }

  .container {
    width: 95%;
    margin: 10px auto;
    padding: 20px 15px;
  }
}

/* For skærme op til 600px bredde (mobil / små tablets) */
@media (max-width: 600px) {
  body {
    /* SKIFT TIL ROTEREDE BAGGRUNDSBILLEDER HER */
    background-image: url("lovebeat_bg--org_T.jpg"), url("lovebeat_bg--org_B.jpg");
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    background-size: 100% auto, 100% auto; /* Fyld bredden, auto højde */
    background-position: center -50px, center calc(100% + 50px); /* Top og bund med offset */

    padding-block: 70px; /* Justeret padding for mindre menu */
  }

  /* Juster evt. .container yderligere for 600px hvis nødvendigt */
  .container {
    /* For eksempel, hvis du vil have endnu smallere margin eller padding her */
  }

  /* Menu justeringer for små skærme */
  .main-menu {
      flex-wrap: nowrap;
      padding: 8px 0;
  }
  .menu-item {
      flex-basis: 20%;
      margin-bottom: 0;
      padding: 5px 2px;
  }
}

/* For meget smalle skærme op til 400px bredde */
@media (max-width: 400px) {
  body {
    /* Yderligere justering af offset for meget små skærme, hvis nødvendigt */
    background-position: center -70px, center calc(100% + 70px);
  }
}


/* --- Menu Styles (Disse var i orden, men jeg flytter dem for kontekst) --- */
.main-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--accent-orange);
    padding: 10px 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-bg-color);
    font-size: clamp(0.8em, 2vw, 1.1em);
    font-family: "Cherry Cream Soda", cursive;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
    padding: 5px;
}

.menu-item:hover {
    transform: translateY(-5px) scale(1.05);
    color: var(--text-dark);
}

.menu-item .material-symbols-outlined {
    font-size: clamp(2em, 5vw, 3.5em);
    color: inherit;
    margin-bottom: 5px;
    transition: color 0.2s ease-in-out;
}

.menu-item:hover .material-symbols-outlined {
    color: inherit;
}

.menu-text {
    font-size: clamp(0.7em, 1.5vw, 1em);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
    font-weight: 600;
}

.menu-item:hover .menu-text {
    color: var(--primary-bg-color);
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48
}

/* Styling for lister med overnatningsmuligheder */
.accommodation-list {
    list-style: none;
    padding: 0;
    margin: 40px 20px;
    text-align: left;
    max-width: fit-content;
}

.accommodation-list li {
    margin-bottom: 10px;
}

.accommodation-list li a {
    color: var(--accent-orange);
    transition: color 0.2s ease-in-out;
}

.accommodation-list li a:hover {
    color: var(--accent-brown);
}

/* --- Baseline link styles: apply to all <a> tags except those specifically overridden --- */
a {
  color: var(--accent-orange);
  text-decoration: underline;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:visited {
  color: var(--accent-blue);
}
a:hover,
a:focus {
  color: var(--accent-brown);
  text-decoration: none;
}
a:active {
  color: var(--accent-green);
}
