/* =========================
   GRUND
   ========================= */

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 3rem 4rem;

  min-height: 100vh;
  overflow: hidden;

  font-family: "Times New Roman", serif;
  background: transparent;

  color: rgba(255, 255, 255, 0.92);

  animation: pageFade 1.4s ease forwards;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   BIOSPHERE ATMOSPHERE
   ========================= */

#biosphere-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#biosphere-atmosphere iframe {
  width: 100%;
  height: 100%;
  border: none;

  opacity: 0.65;

  filter:
    blur(0.7px)
    saturate(0.85)
    brightness(1.05)
    contrast(1.05);

  transform: scale(1.02);
}


/* =========================
   LAYOUT
   ========================= */

.container {
  position: relative;
  max-width: 700px;
  z-index: 2;
}

.site-title {
  position: relative;
  z-index: 2;

  font-weight: 500;
  letter-spacing: 0.02em;

  color: rgba(255,255,255,0.96);
  text-shadow:
    0 0 6px rgba(0,0,0,0.55),
    0 0 18px rgba(0,0,0,0.35);
}


/* =========================
   SERIE-LISTE (FORSIDE)
   ========================= */

.series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.series-list li {
  margin-bottom: 0.8rem;
}

.series-list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);

  text-shadow:
    0 0 8px rgba(0,0,0,0.6),
    0 0 20px rgba(0,0,0,0.4);
}

.series-list a:hover {
  text-decoration: underline;
}


/* =========================
   DISCLAIMER
   ========================= */

.biosphere-note {
  position: fixed;
  bottom: 1.2rem;
  right: 1.6rem;

  max-width: 240px;

  font-size: 0.7rem;
  line-height: 1.35;

  color: rgba(255,255,255,0.55);
  text-shadow: 0 0 10px rgba(0,0,0,0.6);

  pointer-events: none;
}


/* =========================
   SERIE-SIDER (KRIDHVID)
   ========================= */

body.series-page {
  background: #ffffff !important;
  color: #000000 !important;

  overflow-y: auto;
}

body.series-page #biosphere-atmosphere,
body.series-page .biosphere-note {
  display: none;
}

.series-page .container {
  max-width: none;
  padding-top: 2rem;
}


/* =========================
   SERIE-BILLEDER – BASIS
   ========================= */

.series {
  width: 100%;
}

.series img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   MOBIL – 1 AD GANGEN
   ========================= */

@media (max-width: 899px) {
  body {
    padding: 2rem;
  }

  .series {
    display: block;
  }

  .series img {
    margin: 0 auto 3rem auto;
    max-width: 100%;
  }

  .biosphere-note {
    right: 1rem;
    bottom: 1rem;
  }
}


/* =========================
   DESKTOP – 2 OG 2
   ========================= */

@media (min-width: 900px) {
  .series {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6rem 4rem;

    max-width: 1100px;
    margin: 0 auto;
  }

  .series img {
    max-width: 100%;
    margin: 0;
    justify-self: center;
    align-self: center;
  }

  /* let, næsten usynlig forskydning pr. par */
  .series img:nth-child(4n + 1),
  .series img:nth-child(4n + 2) {
    transform: translateY(1.2rem);
  }
}
