html,
body {
  height: 100%;
}

header {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)),
    url("./ditheredbg.png");
  background-position: top;
  background-size: cover;
  margin-top: 0;
}

body:has(#forside) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)),
    url("./ditheredbg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
  margin-top: 0;

  & header {
    background-color: #17301c00;
    background-image: none;
    margin-top: 0;
  }

  & footer {
    display: none;
  }
}

.frontPageHero {
  height: calc(80vh);
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 25px;
  margin-top: 0;
}

.frontPageFooter {
  height: calc(10vh);
  position: absolute;
  bottom: 1em;
  display: flex;
  align-items: end;
  justify-content: end;
  align-content: end;
  width: 120px;
  margin-right: auto;
  margin-top: 0;
  gap: 1.5vw;
}

.frontPageFooter>* {
  flex: 1 1 auto;
}

.frontPageTitel {
  flex: 1 1 40%;
  min-width: 300px;
  margin-top: 0;
}

.frontPageBeskrivelse {
  flex: 1 1 40%;
  margin-top: 0;
}

h1.heroTitel {
  font-weight: 900;
  color: white;
  margin: 0;
  font-size: calc(16px + 3.5vw);
}

h2.heroTitel {
  font-weight: 600;
  color: white;
  margin: 0;
  font-size: calc(10px + 1.2vw);
}

.frontpagewidth {
  max-width: 72ch;
  margin: 0 auto;
}

.navigationslinje {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: row wrap;
  gap: 10px 10px;
  margin: 0 auto;
}

a.logo img {
  max-width: 100%;
  padding: 10px;
}

.logo {
  display: block;
  height: 85px;
  width: 85px;
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 20px;
  justify-content: center;
}

.navigationslinje a:hover {
  color: lightblue;
}

nav a {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: whitesmoke;
  text-decoration: none;
  padding: 14px 0px;
  margin-left: auto;
  margin-right: 20px;
  text-wrap: nowrap;
}

.medlemsKnap {
  text-wrap: nowrap;
}

html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: none;
}

body {
  font-family: Arial, sans-serif;
  background: white;
  color: black;
  line-height: 1.5rem;
  margin: 0;
}

/* Juster Margin ved at ændr. værdien i max-width neden under */
main {
  max-width: 72ch;
  /* <-- Denne */
  margin: 0 auto;
  padding: 0 1rem;
}

main:has(#forside),
main:has(#forskere) {
  max-width: 200ch;
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3 {
  font-family: Arial, sans-serif;
  color: #17301c;
  margin-top: 1rem;
  line-height: 1.1;
}

h1 {
  margin-top: 4rem;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

h2 {
  margin-top: 3rem;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #17301c;
}

.fritekst h1,
.fritekst h2,
.fritekst h3 {
  color: white
}

ol,
blockquote {
  padding-left: 1.7rem;
  padding-right: 2rem;
  margin-left: 0;
  margin-right: 0;
  padding-right: 2rem;
}

blockquote {
  border-radius: 25px;
  background-color: #17301c;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: white;
  text-wrap: wrap;
}

blockquote a,
blockquote h1,
blockquote h2,
blockquote h3 {
  color: white;
}

pre {
  white-space: pre-wrap;
  /*overflow-x: auto;*/
  padding: 1rem;
  line-height: 1.2;
  border: 1px solid lightgray;
  border-radius: 4px;
  font-family: monospace;
}

ol li {
  margin: 0.4rem 0;
}

ol li::marker {
  color: lightgray;
}

p {
  margin: 0.75rem 0;
}

main img,
main video,
main audio {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
}

main video,
main audio {
  width: 100%;
}

main video {
  border: 1px solid lightgray;
  aspect-ratio: 16 / 9;
}

header .back-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  gap: 0.5rem;
  line-height: 1;
}

footer {
  padding: 1.4rem 3.5rem 1rem 3.5rem;
  margin: 0 0 0 0;
  background-color: #17301c;
}

footer div.footerFlex {
  display: flex;
  flex-wrap: wrap;
  gap: 5vw;

}

footer div.footerLogo {
  flex: 1 2 250px;
  align-content: center;
}

footer div.fritekst {
  flex: 2 1 20%;
  text-align: left;
  font-size: 1rem;
  line-height: 1.4rem;
  color: white;
  text-wrap: wrap;
}

footer a {
  text-decoration: none;
  color: lightgrey;
}

#socialeMedier {
  display: flex;
  justify-content: center;
  width: 120px;
  margin-right: auto;
  margin-top: 20px;
  gap: 1.5vw;
}

#socialeMedier>* {
  flex: 1 1 auto;
}

footer .lichen-plug {
  display: block;
  margin: 1rem auto;
  color: inherit;
  text-decoration: none;
}

table {
  border: solid 1px gray;
  border-collapse: collapse;
  border-spacing: 0;
  font: normal 13px Arial, sans-serif;
}

thead th {
  background-color: orchid;
  border: solid 1px black;
  color: white;
  padding: 10px;
  text-align: left;
}

tbody td {
  border: solid 1px black;
  color: #333;
  padding: 10px;
  text-shadow: 1px 1px 1px #fff;
}