body {
    background: #fff;
    color: #000;
    font-family: Helvetica,Arial,sans-serif;
    text-align: left;
    padding-left: 5%;
    padding-right: 5%;
}

h1 {
    font-size: 3.5rem;
    font-weight: 100;
    line-height: 1;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

p {
    font-size: 1rem;
    font-weight: 100;
    line-height: 1.5;
}

li {
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 100;
    list-style-type: square;
}

/* Feedback/bug report section */
.feedback-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.feedback-section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.feedback-section p {
    font-size: 1rem;
    font-weight: 100;
    line-height: 1.5;
}

.feedback-section a {
    color: #007bff;
    text-decoration: none;
}

.feedback-section a:hover {
    text-decoration: underline;
}

.credits-section {
    text-align: center;
}

.credits-individual-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}


.credits-individual-section h2 {
    font-size: 1.5rem; /* Adjust the font size as needed */
}

footer {
    text-align: center;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.container a, .container img {
    margin: 10px 10px 10px 0;
}

.container img:last-child {
    margin-right: 0;
}
nav {
    background-color: #f9f9f9;
    border-radius: 10px;
    color: black;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}
nav a {
    color: black;
    text-decoration: none;
    padding: 10px 20px;
}
nav a:hover {
    background-color: black;
    color: white;
    border-radius: 5px;
}

/* Hide the full text on smaller screens and show the short text */
.short-text {
    display: none;
}

@media (max-width: 768px) {
    .full-text {
        display: none;
    }
    .short-text {
        display: inline;
    }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
  font-family: monospace;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Language switcher dropdown - alphabetical order */
.nav-languages {
  margin-left: auto;
  position: relative;
  display: inline-block;
}

.nav-languages-toggle {
  padding: 6px 12px;
  font-size: 0.9em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: bold;
  min-width: 160px;
}

.nav-languages-toggle .lang-code {
  font-weight: bold;
}

.nav-languages-toggle .lang-name {
  color: #666;
  font-size: 0.95em;
  font-weight: normal;
}

.nav-languages-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
}

.nav-languages-toggle::before {
  content: "🌐";
}

.nav-languages-toggle::after {
  content: "▼";
  font-size: 0.7em;
  margin-left: auto;
}

/* Dropdown menu */
.nav-languages-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 1000;
  padding: 8px 0;
}

/* Footer dropdown should open upward */
footer .nav-languages-menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

/* Footer arrow points up */
footer .nav-languages-toggle::after {
  content: "▲";
}

.nav-languages:hover .nav-languages-menu,
.nav-languages:focus-within .nav-languages-menu {
  display: block;
}

.nav-languages-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
  font-size: 0.9em;
}

.nav-languages-menu a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-languages-menu a.current {
  background-color: rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.nav-languages-menu a .lang-code {
  font-weight: bold;
  margin-right: 8px;
}

.nav-languages-menu a .lang-name {
  color: #666;
  font-size: 0.85em;
}

/* Ensure navigation is flexible */
nav[role="navigation"][aria-label="Main navigation"],
nav[role="navigation"][aria-label="Huvudnavigering"],
nav[role="navigation"][aria-label="Aðalvalmynd"],
nav[role="navigation"][aria-label="Navigation principale"],
nav[role="navigation"][aria-label="Hovednavigation"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Ensure footer navigation is also flexible */
footer nav[role="navigation"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  nav[role="navigation"][aria-label="Main navigation"],
  nav[role="navigation"][aria-label="Huvudnavigering"],
  nav[role="navigation"][aria-label="Aðalvalmynd"],
  nav[role="navigation"][aria-label="Navigation principale"],
  nav[role="navigation"][aria-label="Hovednavigation"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .nav-languages {
    order: -1; /* Move to top on mobile */
    align-self: flex-end;
  }
  
  .nav-languages-toggle {
    font-size: 0.85em;
    padding: 5px 10px;
    min-width: 140px;
  }
  
  .nav-languages-menu {
    right: 0;
    left: auto;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .nav-languages-menu {
    min-width: 140px;
  }
  
  .nav-languages-menu a {
    padding: 6px 12px;
    font-size: 0.85em;
  }
}

/* Social media links in navigation */
.nav-social {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-left: auto;
  margin-right: 10px;
}

.nav-social a {
  padding: 8px 10px;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 5px;
  transition: transform 0.2s ease;
}

.nav-social a:hover {
  transform: scale(1.15);
  background-color: black;
}

/* Adjust language dropdown positioning when social links are present */
nav .nav-languages {
  margin-left: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-social {
    order: -1;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 5px;
  }
  
  .nav-social a {
    font-size: 1.2rem;
    padding: 6px 8px;
  }
}
