/* Grundlæggende stil for hele hjemmesiden */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  height: 100%;
  margin: 0;
}

header {
  background-color: #004d40;
  padding: 0.5rem 0;
  color: white;
  
}

.navbar {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar li {
  margin: 0 1rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #80cbc4;
}

html, body {
  height: 100%;
  margin: 0;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  max-width: 1000px;  /* eller 900px hvis du vil have en smallere boks */
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
  flex: 1;
}


footer {
  text-align: center;
  padding: 1rem;
  background-color: #004d40;
  color: white;
  margin-top: 2rem;
}

h1 {
  color: #white;
}

h2 {
  color: #000;
  font-size: 1.0rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  color: #000;
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.site-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.stroke-text {
  color: white;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

.galleri-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.galleri-element {
  flex: 1 1 60%;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin: 1rem 0;
  text-align: center;
}

.galleri-element img {
  max-width: 60%;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.galleri-element figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Billeder som er links */
.galleri-element a img {
  max-width: 20%;
  max-hight: 50%;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.galleri-element a img:hover {
  transform: scale(1.03);
}

/* Nyttige links grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.link-item {
  text-align: center;
}

.link-item img {
  width: auto;
  height: 60px;
  max-height: 100px;
  margin-bottom: 0.5rem;
}

.link-item figcaption {
  font-style: italic;
  font-size: 0.9rem;
  color: #444;
}

 .menu-toggle {
      display: none;
      font-size: 2rem;
      background: none;
      border: none;
      color: white;
      cursor: pointer;
      margin: 0.5rem 1rem;
    }

    @media (max-width: 768px) {
      .navbar {
        display: none;
        flex-direction: column;
        background-color: #004d40;
        padding: 1rem;
      }

      .navbar.show {
  display: flex !important;
}

      .menu-toggle {
        display: block;
      }
    }