/* Reset and basic styles */
body {
  margin: 0;
  font-family: 'PT Serif', serif;
}

#welcomeLink {
  font-family: 'Dekko', sans-serif;
  font-weight: bold;
  text-decoration: none; /* Remove default underline */
  color: #333; /* Text color */
  padding: 10px;
  display: inline-block;
  transition: border-bottom 0.3s ease; /* Optional: smooth transition */
  margin: 0 10px;
  font-size: 1.2rem; /* A bit larger than the original */
  border-bottom: 2px solid #000; /* Line under the link */
}
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navbar Container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 0.75rem; /* Slightly more padding */
  height: 100px; /* Slightly taller */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Logo Styles */
.navbar-logo img {
  height: 50px;
  width: auto;
}

/* Top Navigation */
.topnav {
  display: flex;
  align-items: center;
}

.topnav a, 
.dropdown-button {
  background-color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Dekko', sans-serif;
  text-decoration: none; /* Remove default underline */
  color: #333; /* Text color */
  padding: 10px;
  display: inline-block;
  transition: border-bottom 0.3s ease; /* Optional: smooth transition */
  margin: 0 10px;
  font-size: 1.2rem; /* A bit larger than the original */
}

.topnav a:hover,
.dropdown-button:hover {
  font-weight: bold; /* Makes the text bold */
  border-bottom: 2px solid #000; /* Line under the link */
}

/* Dropdown Menu */
.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  min-width: 200px;
  text-decoration: none !important; /* Removes underline */
}

.dropdown-content a {
  color: black;
  padding: 10px;
  text-decoration: none !important;
  display: block;
}

.dropdown-content a:hover {
  background-color: hsl(0, 0%, 90%);
  border-bottom: none; /* Removes any border-bottom */
  text-decoration: none; /* Ensures underline is removed */

}

.dropdown:hover .dropdown-content {
  display: block;
  text-decoration: none !important;
}

.dropdown-button {
  background: none;
  border: none;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Hamburger Icon - Hidden by Default */
.icon {
  display: none;
  font-size: 24px;
  color: black;
  cursor: pointer;
}

/* Responsive Design for Screens Smaller than 480px */
@media screen and (max-width: 480px) {
  .topnav {
    flex-direction: column;
    align-items: flex-start;
    display: none; /* Hidden by default */
    background-color: #f1f1f1; /* Optional: Background for dropdown menu */
    width: 100%; /* Full width */
    position: absolute; /* Overlay behavior */
    top: 100px; /* Adjust based on navbar height */
    left: 0;
    z-index: 1000; /* Ensure it appears above other elements */
    border-top: 1px solid #ddd; /* Optional: Border for clarity */
  }

  .topnav a,
  .dropdown-button {
    display: block; /* Stack as blocks */
    color: #444; /* Slightly darker text color */
    background-color: #f1f1f1; /* Optional: Slightly darker background */
    padding: 10px 20px; /* Adjust padding for better spacing */
    width: 100%; /* Ensure full width for touch-friendly links */
    text-align: left; /* Align text to the left */
    box-sizing: border-box; /* Ensure padding and borders fit */
    border: none; /* Remove default borders */
  }

  .topnav > a,
  .topnav > .dropdown {
    display: block; /* Stack items vertically */
    color: #444; /* Text color */
    background-color: #f1f1f1; /* Background color */
    padding: 10px 20px; /* Padding for touch-friendly areas */
    width: 100%; /* Full width */
    text-align: left; /* Align text to the left */
    box-sizing: border-box; /* Ensure padding and borders fit */
    border-bottom: 1px solid #aaa; /* Small grey line between items */
  }

  .icon {
    display: block; /* Show hamburger icon */
  }

  .topnav.responsive {
    display: flex; /* Show menu when responsive class is added */
  }

  .dropdown-content {
    display: none; /* Ensure dropdowns are hidden initially */
    background-color: #f1f1f1; /* Match background */
  }

  .dropdown-content a {
    color: #444; /* Match text color */
    background-color: #f1f1f1; /* Match background */
    padding: 10px 20px; /* Same padding as main links */
    width: 100%; /* Full width */
    box-sizing: border-box;
    border: none;
  }

    .dropdown-content a + a {
    border-top: 1px solid #ccc; /* Slightly lighter line inside dropdowns */
  }

  .dropdown-button:focus + .dropdown-content {
    display: block; /* Show dropdown on button press */
  }
}


header {
  position: relative; 
  background-image: url('images/forside-banner-rigtig.svg');
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  min-height: 500px; 
  text-align: center; 
  color: white; 
  display: flex; 
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  padding: 20px; /* Adds padding for smaller screens */
}

header h1 {
  font-weight: 300; 
  font-family: 'Dekko', sans-serif;
  font-size: 40px;
  margin-bottom: 20px; /* Spacing below heading */
}

.button-yellow-light {
  background-color: #ffd367;
  color: #000; /* Text color */
  text-decoration: none; /* Remove underline */
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #000; /* Small black border */
  border-radius: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  font-family: 'Dekko', sans-serif;
  font-size: 22px;
 
}

.button-yellow-light:hover {
  background-color: #e6bc5b;
  border-color: #444; /* Slightly darker border on hover */
}

.button-yellow-light:hover {
  background-color: #e6bc5b;
  border-color: #444; /* Slightly darker border on hover */
}

@media (max-width: 480px) {
  header {
    min-height: 250px;
    padding: 10px; /* Add tighter padding */
  }

  header h1 {
    font-size: 24px;
    line-height: 1.2; /* Improve readability on small screens */
  }

 
.button-yellow-light {
    width: 80%; /* Buttons take 80% width */
    margin: 10px auto; /* Center buttons */
    text-align: center;
  }
}

/* Default styles (desktop and larger screens) */
.text-section {
  padding: 20px;
  background-color: white;
  max-width: 800px;
  margin: auto;
  border-radius: 8px;
}

.info-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background: #ffffff;
}

.content-box {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.left-section,
.right-section {
  flex: 1;
  padding: 20px;
  background: #f1f1f1;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Text styles */
.text-section h2 {
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Dekko', sans-serif;
  font-size: 22px; 
  font-weight: bold;
}

.text-section p {
  font-size: 16px;
  color: #555;
  font-family: 'PT Serif', serif;
}

.text-section ul {
  list-style: none;
  padding: 0;
  font-size: 16px;
  color: black;
  font-family: 'PT Serif', serif;
}

.text-section ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.text-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

@media (max-width: 480px) {
  .text-section {
    padding: 10px;
  }

  .text-section h2 {
    font-size: 18px; /* Further reduce font size for very small screens */
  }

  .text-section p,
  .text-section ul li {
    font-size: 14px;
  }

  .info-container {
    padding: 8px;
    margin: 10px auto;
  }

  .info-container {
    padding: 8px;
    margin: 10px auto;
  }

  .content-box {
    display: flex;
    flex-direction: column; /* Stack sections vertically */
    gap: 20px; /* Add spacing between the stacked sections */
  }

  .left-section,
  .right-section {
    flex: none; /* Prevent sections from stretching */
    width: 100%; /* Ensure sections take the full width */
  }

  .blyanter {
    display: block;
    margin: 0 auto 20px; /* Center align and add spacing below */
    max-width: 90%;
    height: auto; /* Maintain aspect ratio */
  }
}

footer h3 {
  font-family: 'Dekko', sans-serif;
  font-size: 22px; /* Adjust the size as needed */
  font-weight: bold;
}
footer p {
  color: black; /* Muted text */
  font-family: 'PT Serif', serif;
  font: 16px;
}

footer a {
  color: black; /* Muted text */
  font-family: 'PT Serif', serif;
  font: 16px;
}

.hand-drawn-line-blue {
  background-image: url('./images/dotted-line-blå.svg'); /* Path to your SVG */
  height: 10px;                /* Adjust height based on line style */
  background-repeat: repeat-x; /* Repeat the pattern horizontally */
}
.hand-drawn-line-green {
  background-image: url('./images/dotted-line-grøn.svg'); /* Path to your SVG */
  height: 10px;                /* Adjust height based on line style */
  background-repeat: repeat-x; /* Repeat the pattern horizontally */
}

.blyanter {
  height: 70px; /* Matches the font size */
  width: auto; /* Maintains aspect ratio */
  align-content: center; /* Aligns image with the text baseline */
  display: block; /* Makes the image behave like a block element */
  margin: 0 auto; /* Horizontally centers the image */
}
