/* Styling af hjemmesiden */
.main-nav {
  background-color: #f2f2f2;
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #ccc;
  border-radius: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: text-decoration 0.2s ease;
}

.main-nav a:hover {
  text-decoration: underline;
}

.profile-img-top {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover;
  border-radius: 50% !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #222;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2 {
  color: inherit;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #3b5bff;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
/* HR-streg mellem sektioner */
hr {
  border: none;
  height: 2px;
  background: #bbb;
  margin: 2rem 0;
}
/* --- Header med billede i højre side --- */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.title-container {
  flex: 1;
}

.profile-img-top {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 1rem;
}

p {
  display: block;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Forbedret kortdesign */
.download-cards .card {
  border-radius: 10px;
  background-color: #f2f2f2;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 500px;
  width: 90%;
  min-height: 200px;
  background: white;
  text-align: left;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  width: 90%;
}

/* Styling til billederne ved siden af kortene */
.card-image img {
  width: 180px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Større billeder for elementer med large-image */
.card-image.large-image img {
  width: 280px;
}

@media (max-width: 650px) {
  /* Header */
  .top-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-img-top {
    margin-left: 0;
    margin-top: 1rem;
  }

  .title-container {
    margin-bottom: 0.5rem;
  }

  /* Download-kort */
  .download-cards {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .download-cards .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }

  /* Generel styling */
  body {
    padding: 1rem 1rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  /* Navigation */
  .main-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  #toggle-theme {
    margin: 1rem 0 0;
  }
}



/* Smooth scroll ved klik på navigation */
html {
  scroll-behavior: smooth;
}

/* === Toggle Dark Mode Button === */
#toggle-theme {
  background-color: #d3d3d3;
  color: #000;
  border: none;
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 1rem;
}

body.dark-mode #toggle-theme {
  background-color: #303030;
  color: #fff;
}

#toggle-theme:hover {
  background-color: #c0c0c0;
}

body.dark-mode #toggle-theme:hover {
  background-color: #505050;
}

/* --- Dark mode --- */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode a,
body.dark-mode .main-nav a {
  color: #82aaff;
}

body.dark-mode .main-nav {
  background-color: #222;
  border-radius: 10px;
}

body.dark-mode .main-nav a:hover {
  text-decoration: underline;
  color: #aad4ff;
}

body.dark-mode .download-cards .card {
  background-color: #1e1e1e;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
  color: #ccc;
}
/* HR i dark mode */
body.dark-mode hr {
  background: #444;
}


body.dark-mode .top-header {
  background-color: transparent;
  color: #eee;
}

body.dark-mode .profile-img-top {
  box-shadow: 0 0 10px 2px rgba(130, 170, 255, 0.6);
}

.download-cards h2,
.download-cards .subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.download-cards .subtitle {
    color: #000; /* Sort farve */
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 600;
}

.top-header {
    text-align: center; /* Centrerer alt tekst og inline-elementer */
    margin-bottom: 3rem; /* Tilføjer lidt plads under headeren */
}

.title-container {
    display: inline-block; /* Så alt indeni holder sig samlet */
}

