html {
    scroll-behavior: smooth;
  }
  
  body, html {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif; /* Custom font */
    text-align: center;
  }
  
  /* Hero med gradient */
  .hero {
    position: relative;
    background: black; /* Black background for the padding */
    background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(0,0,0,0.8) 100%), 
                      url('../images/bryllup.jpg'); /* Keep the image inside */
    background-repeat: no-repeat;
    background-position: center; /* Default position */
    background-size: cover; /* Ensure the image covers the container */
    height: 130vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center;
    text-align: center;
    padding: 4rem 2rem; /* Default padding */
  }
  
  @media (max-width: 768px) {
    .hero {
      height: 100vh; /* Adjust height for smaller screens */
      padding: 2rem 1rem; /* Reduce padding for smaller screens */
      background-position: center center; /* Focus on the center of the image */
    }
  }
  
  @media (max-width: 480px) {
    .hero {
      height: 100vh; /* Keep the height consistent */
      padding: 1rem 0.5rem; /* Further reduce padding for very small screens */
      background-position: center center; /* Ensure the image stays centered */
    }
  }
  
  .hero h1 {
    font-family: 'Great Vibes', cursive; /* Use Great Vibes font */
    font-size: 5rem;
    font-weight: 100; /* Adjust weight for Great Vibes */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  }
  
  .hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
  }
  
  .line-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35%;
    margin-bottom: 2rem; /* Space below the line */
    color: white;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    position: relative;
  }
  
  .line-with-text::before,
  .line-with-text::after {
    content: '';
    flex: 1;
    height: 2px;
    background: white;
    margin: 0 1rem; /* Space around the text */
  }
  
  .line-with-text span {
    letter-spacing: 2px; /* Add spacing between letters */
  }
  
  /* Navigasjon */
  .nav-shortcuts {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between logo and links */
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.3); /* Transparent background */
    position: fixed; /* Make the navbar fixed at the top */
    top: 0;
    left: 0;
    width: 100%; /* Full width of the screen */
    z-index: 1000; /* Ensure it stays above other elements */
  }
  
  .nav-shortcuts img {
    width: 50px; /* Set the logo width */
    height: auto; /* Maintain aspect ratio */
    margin-right: 1rem; /* Add spacing between the logo and the menu */
    filter: brightness(0) invert(1); /* Make the logo white */
    margin-top: 1rem; /* Default spacing for larger screens */
  }
  
  .hamburger-menu {
    display: none; /* Hide the hamburger menu by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem; /* Space between links */
    margin-left: auto; /* Push links to the right */
  }
  
  .nav-links a {
    color: white; /* Ensure links are visible on a dark background */
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #FA8072; /* Optional: Change link color on hover */
  }
  
  @media (max-width: 768px) {
    .nav-shortcuts {
      justify-content: space-between; /* Keep logo and menu button spaced */
    }
  
    .hamburger-menu {
      display: block; /* Show the hamburger menu on smaller screens */
    }
  
    .nav-links {
      display: none; /* Hide links by default on smaller screens */
      flex-direction: column;
      background-color: rgba(0, 0, 0, 0.9); /* Darker background for dropdown */
      position: absolute;
      top: 100%;
      right: 0;
      padding: 1rem;
      border-radius: 0;
    }
  
    .nav-links.show {
      display: flex; /* Show links when the menu is toggled */
    }

    .nav-shortcuts img {
      margin-top: 0.5rem; /* Reduce spacing above the logo on smaller screens */
    }
  }
  
  @media (max-width: 480px) {
    .nav-shortcuts img {
      margin-top: 0.2rem; /* Further reduce spacing on very small screens */
    }
  }
  
  /* Seksjoner */
  section {
    padding: 4rem 2rem;
    text-align: center;
  }
  
  #info {
    background-color: #E9E5DA; /* Change background to white */
    color: black; /* Adjust text color for contrast */
    padding: 4rem 2rem;
    text-align: center; /* Center all text in the section */
  }
  
  #info .info-content {
    display: flex;
    flex-wrap: wrap; /* Ensure responsiveness */
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Space between columns */
  }
  
  #info .info-image {
    flex: 1;
    max-width: 100%; /* Tillat full bredde */
    text-align: center; /* Sørg for at innholdet er sentrert */
  }
  
  #info .info-image img {
    display: block; /* Sørg for at bildet oppfører seg som et blokk-element */
    margin: 0 auto; /* Sentrer bildet horisontalt */
    max-width: 100%; /* Gjør bildet responsivt */
    height: auto; /* Behold proporsjonene */
  }
  
  @media (max-width: 768px) {
    #info .info-image {
      text-align: center; /* Sørg for at containeren er sentrert */
    }
  
    #info .info-image img {
      max-width: 80%; /* Reduser størrelsen på bildet for mobil */
      margin: 0 auto; /* Sentrer bildet */
    }
  }
  
  #info .info-text {
    display: flex;
    flex-direction: column; /* Stable innholdet vertikalt */
    align-items: center; /* Sentrer innholdet horisontalt */
    justify-content: center; /* Sentrer innholdet vertikalt */
    text-align: center; /* Sentrer teksten */
  }

  #info .info-text img {
    display: block; /* Sørg for at bildet oppfører seg som et blokk-element */
    margin: 0 auto; /* Sentrer bildet horisontalt */
    max-width: 100%; /* Gjør bildet responsivt */
    height: auto; /* Behold proporsjonene */
  }
  
  #info .info-text {
    flex: 1;
    max-width: 50%; /* Limit the text width */
    text-align: center; /* Center the text */
  }
  
  #info .info-text h3 {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display font */
    font-size: 1.8rem; /* Adjust font size */
    color: #7a7a7a; /* Light grey color */
  }
  
  #info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: black; /* Adjust heading color for contrast */
  }
  
  #info h2 {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display font */
    font-size: 2.5rem; /* Adjust font size */
    color: #FA8072; /* Salmon-orange color for the date */
    display: flex;
    justify-content: center; /* Center the date horizontally */
    gap: 0.5rem; /* Add spacing between date parts */
    margin-bottom: 1rem;
  }
  
  #info h2 span {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display font */
    font-size: 2.5rem; /* Adjust font size */
    color: #FA8072; /* Salmon-orange color for text */
  }
  
  #info h2 span.pipe {
    color: #FA8072; /* Salmon-orange color for pipes */
  }
  
  #info p {
    font-family: 'Playfair Display', serif; /* Keep Playfair Display for letters */
    font-feature-settings: "lnum"; /* Use lining numerals */
    font-size: 1.2rem; /* Adjust font size */
    color: #7a7a7a; /* Light grey color */
    margin-bottom: 1rem; /* Add spacing below */
  }

  .info-text p {
    font-family: 'Playfair Display', serif; /* Apply Playfair Display font */
    font-size: 1.2rem; /* Adjust font size */
    color: #7a7a7a; /* Light grey color */
    margin-bottom: 1rem; /* Add spacing below */
  }
  
  .info-text h4.subheading {
    font-family: 'Great Vibes', cursive; /* Use the same font as h1 */
    font-size: 3rem; /* Smaller size than h1 */
    font-weight: 100; /* Match the weight of h1 */
    margin-bottom: 1rem; /* Add spacing below */
    color: black; /* Adjust color for contrast */
  }
  
  section:nth-of-type(2n) {
    background-color: #f9f9f9;
  }
  
  footer {
    text-align: center;
    padding: 2rem;
    background-color: #eee;
  }
  
  #program {
    padding: 4rem 2rem;
    text-align: center;
  }
  
  #program h2 {
    font-family: 'Great Vibes', cursive; /* Apply Great Vibes font */
    font-size: 3rem; /* Adjust the font size */
    font-weight: 400; /* Adjust the weight for better appearance */
    text-align: center; /* Center the text */
    margin-bottom: 2rem; /* Add spacing below */
    color: black; /* Optional: Set the text color */
  }
  
  .program-sections {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping to the next row */
    gap: 2rem; /* Dynamic spacing between squares */
    justify-content: center; /* Center the squares */
  }
  
  .program-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    flex: 1 1 calc(33.333% - 2rem); /* Dynamic width: 3 items per row with gap */
    max-width: 30%; /* Limit the maximum width */
    min-width: 250px; /* Ensure squares don't get too small */
    position: relative;
  }
  
  .program-image {
    position: relative;
    width: 100%; /* Ensure it takes the full width of its container */
    height: 400px; /* Increase the height to make it longer vertically */
    overflow: hidden;
  }
  
  .program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container without distortion */
  }
  
  .program-overlay {
    position: absolute;
    top: 5%; /* Add space from the top */
    left: 5%; /* Add space from the left */
    right: 5%; /* Add space from the right */
    bottom: 5%; /* Add space from the bottom */
    background-color: rgba(255, 255, 255, 0.9); /* White overlay with slight transparency */
    color: black; /* Text color for contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border-radius: 0; /* Remove rounded corners for sharp edges */
  }
  
  .program-overlay h3 {
    font-size: 1.5rem; /* Adjust heading size */
    margin-bottom: 0.5rem; /* Add spacing below heading */
  }
  
  .program-overlay p {
    font-size: 1rem; /* Adjust paragraph size */
    line-height: 1.4; /* Improve readability */
    margin-bottom: 0.5rem; /* Add spacing below text */
  }

  .program-overlay a {
    font-size: 0.9rem; /* Adjust link size */
    color: #FA8072; /* Match theme color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth hover effect */
  }

  .program-overlay a:hover {
    color: #FF6347; /* Slightly darker color on hover */
  }

  .program-overlay i {
    font-size: 2rem; /* Adjust the size of the icon */
    color: black; /* Set the color of the icon */
    margin-bottom: 0.5rem; /* Add spacing below the icon */
  }

  .program-overlay img {
    filter: brightness(0) saturate(100%) invert(67%) sepia(45%) saturate(500%) hue-rotate(-10deg) brightness(95%) contrast(90%);
  }
  
  @media (max-width: 768px) {
    .program-item {
      flex: 1 1 calc(50% - 2rem); /* 2 items per row on smaller screens */
    }

    .program-overlay h3 {
      font-size: 1.2rem; /* Scale down heading size on smaller screens */
    }

    .program-overlay p {
      font-size: 0.9rem; /* Scale down paragraph size on smaller screens */
    }

    .program-overlay a {
      font-size: 0.8rem; /* Scale down link size on smaller screens */
    }
  }

  @media (max-width: 480px) {
    .program-item {
      flex: 1 1 100%; /* 1 item per row on very small screens */
    }
  }

  #kontakt h2 {
    font-family: 'Great Vibes', cursive; /* Apply Great Vibes font */
    font-size: 3rem; /* Adjust the font size */
    font-weight: 400; /* Adjust the weight for better appearance */
    text-align: center; /* Center the text */
    margin-bottom: 2rem; /* Add spacing below */
    color: black; /* Optional: Set the text color */
  }

  #toastmaster h2 {
    font-family: 'Great Vibes', cursive; /* Apply Great Vibes font */
    font-size: 3rem; /* Adjust font size */
    font-weight: 400; /* Adjust font weight */
    text-align: center; /* Center the heading */
    color: black; /* Optional: Set the text color */
    margin-bottom: 1rem; /* Add spacing below */
  }

  #gaveønsker h2 {
    font-family: 'Great Vibes', cursive; /* Apply Great Vibes font */
    font-size: 3rem; /* Adjust font size */
    font-weight: 400; /* Adjust font weight */
    text-align: center; /* Center the heading */
    color: black; /* Optional: Set the text color */
    margin-bottom: 1rem; /* Add spacing below */
  }

  #praktiskinformasjon h2 {
    font-family: 'Great Vibes', cursive; /* Apply Great Vibes font */
    font-size: 3rem; /* Adjust font size */
    font-weight: 400; /* Adjust font weight */
    text-align: center; /* Center the heading */
    color: black; /* Optional: Set the text color */
    margin-bottom: 1rem; /* Add spacing below */
  }

  #gaveønsker ul,
  #praktiskinformasjon ul {
    list-style: none; /* Remove bullets */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
  }

  .map-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #FA8072; /* Salmon-orange text color */
    border: 2px solid #FA8072; /* Salmon-orange border */
    background-color: transparent; /* Transparent background */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Optional: Add rounded corners */
    transition: all 0.3s ease; /* Smooth hover effect */
  }

  .map-button:hover {
    background-color: #FA8072; /* Salmon-orange background on hover */
    color: white; /* White text on hover */
  }

  #bottom-section {
    background-color: white; /* White background */
    padding: 1rem 0; /* Reduce vertical padding */
    text-align: center; /* Center the text */
    border-top: 1px solid #ddd; /* Optional: Add a subtle border at the top */
  }

  .hotel-links a {
    display: inline-block; /* Makes each link behave like a block for spacing */
    font-family: 'Playfair Display', serif; /* Use an elegant font */
    font-size: 1.2rem; /* Adjust font size */
    color: #FA8072; /* Salmon-orange color */
    text-decoration: none; /* Remove underline */
    margin-bottom: 0.5rem; /* Add spacing between links */
    transition: color 0.3s ease; /* Smooth color transition on hover */
  }

  .hotel-links a:hover {
    color: #FF6347; /* Slightly darker salmon color on hover */
    text-decoration: underline; /* Add underline on hover */
  }

  h2, h3, h4 {
    font-family: 'Great Vibes', cursive, 'Playfair Display', serif; /* Custom font with fallback */
  }