html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

:root {
  --sky-top: #5faaf2;
  --sky-mid: #7fc1fb;
  --sky-bottom: #a9daff;
}

body {
  background: #000;
  color: #FFFFFF;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.sky-gradient,
.stars,
.haze,
.readability,
.checkerboard,
.pixel-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky-gradient {
  z-index: 0;
  background: linear-gradient(
    to bottom,
    var(--sky-top) 0%,
    var(--sky-mid) 54%,
    var(--sky-bottom) 100%
  );
}

/* Subtiele atmosferische gloed zonder zon */
.haze {
  z-index: 2;
  background:
    radial-gradient(
      ellipse 170% 56% at 50% 100%,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.03) 30%,
      transparent 64%
    ),
    radial-gradient(
      ellipse 150% 34% at 50% 0%,
      rgba(255,255,255,0.025) 0%,
      transparent 72%
    );
  mix-blend-mode: screen;
  opacity: 0.46;
  animation: hazePulse 10s ease-in-out infinite;
}

.readability {
  z-index: 3;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.02) 40%,
      rgba(0,0,0,0.09) 100%
    );
}

/* Schaakbordpatroon:
   blokjes half zo groot als hiervoor.
   Per 2x2 groep is alleen rechtsonder net anders. */
.checkerboard {
  z-index: 4;
  opacity: 0.2;
  mix-blend-mode: soft-light;

  background-image:
    linear-gradient(
      to right,
      transparent 0 50%,
      rgba(0,0,0,0.08) 50% 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0 50%,
      rgba(0,0,0,0.08) 50% 100%
    );

  /* grootte van 1 blokje = 13px → 2x2 = 26px */
  background-size: 26px 26px;
}

/* Sterren */
.stars {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s linear;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff8d6;
  box-shadow: 0 0 8px rgba(255, 248, 214, 0.35);
  animation: twinkle 3.8s steps(2) infinite;
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  background: #fff8d6;
}

.star::before {
  left: 1px;
  top: -2px;
  width: 1px;
  height: 7px;
}

.star::after {
  left: -2px;
  top: 1px;
  width: 7px;
  height: 1px;
}

.star.s1 { top: 11%; left: 12%; animation-delay: 0.2s; }
.star.s2 { top: 18%; left: 24%; animation-delay: 1.1s; }
.star.s3 { top: 8%; left: 38%; animation-delay: 2.2s; }
.star.s4 { top: 14%; left: 51%; animation-delay: 0.7s; }
.star.s5 { top: 10%; left: 63%; animation-delay: 1.8s; }
.star.s6 { top: 22%; left: 75%; animation-delay: 2.7s; }
.star.s7 { top: 9%; left: 87%; animation-delay: 0.4s; }
.star.s8 { top: 28%; left: 18%; animation-delay: 1.5s; }
.star.s9 { top: 30%; left: 33%; animation-delay: 2.8s; }
.star.s10 { top: 20%; left: 58%; animation-delay: 1.9s; }
.star.s11 { top: 26%; left: 82%; animation-delay: 0.9s; }
.star.s12 { top: 34%; left: 69%; animation-delay: 2.4s; }

.bg-wrap {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  max-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: -1;
  pointer-events: none;

}

.bg-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: -30px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
}

@media only screen and (min-width: 701px) {
  .bg-wrap {  
    background: url("background_ground.png") repeat bottom center;
    background-size: contain;
  }
}

.bg-image {
  display: block;
  width: auto;
  height: auto;
  max-height: 50vh;
  max-width: 100%;
}

@media only screen and (max-width: 700px) {
  .bg-image {
    min-width: 700px;
  }
}

.content {
  position: relative;
  z-index: 6;
  box-sizing: border-box;
  padding: 30px 20px;
  margin: 0 auto;
  overflow-y: auto;
  height: calc(var(--content-height, 100vh) - 30px);
  scrollbar-gutter: stable;
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: #ffff00 transparent; /* Firefox */
}

/* Chrome, Edge, Safari */
.content::-webkit-scrollbar {
  width: 16px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: #ffff00;
  border: none;
  box-shadow: none;
}

.content::-webkit-scrollbar-corner {
  background: transparent;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.info-column {
  text-align: left;
}

.info-column h2 {
  text-align: left;
  margin-bottom: 24px;
}

.closing {
  text-align: center;
  margin: 34px auto 0;
  max-width: 800px;
}

.starter {
  text-align: center;
  margin: 0 auto 34px;
  max-width: 800px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "title";
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

h1 {
  font-size: 40px;
  line-height: 1;
}

h2, h3, h4, h5, h6 {
  font-size: 25px;
  line-height: 1;
}

p {
  font-family: "text";
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 20px 0;
  line-height: 1.6;
}

a {
  color: #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  text-decoration: none;
}

a:hover {
  color: #E9477C;
  border-bottom: 2px solid #E9477C;
}

span {
  color: #ffff00;
}

.scroll-arrows {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scroll-arrow {
  width: 50px;
  height: 50px;
  border: none;
  background: #000;
  color: inherit;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.18s ease;
}

.scroll-arrow.is-disabled {
  opacity: 0.16;
}

.pixel-arrow {
  position: relative;
  width: 24px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.pixel-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: transparent;
  box-shadow:
    /* rij 1 */
    8px 0 #ffff00,
    12px 0 #ffff00,

    /* rij 2 */
    8px 4px #ffff00,
    12px 4px #ffff00,

    /* rij 3 */
    0 8px #ffff00,
    4px 8px #ffff00,
    8px 8px #ffff00,
    12px 8px #ffff00,
    16px 8px #ffff00,
    20px 8px #ffff00,

    /* rij 4 */
    4px 12px #ffff00,
    8px 12px #ffff00,
    12px 12px #ffff00,
    16px 12px #ffff00,

    /* rij 5 */
    8px 16px #ffff00,
    12px 16px #ffff00;
}

.scroll-arrow-up .pixel-arrow {
  transform: rotate(180deg);
}

.scroll-arrow-down .pixel-arrow {
  transform: none;
}

.scroll-arrow,
.pixel-arrow {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.scroll-arrow {
  touch-action: none;
}

@media only screen and (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 700px;
  }

  .info-column h2 {
    margin-bottom: 20px;
  }

  .closing {
    max-width: 700px;
    margin-top: 20px;
  }
  .starter {
    max-width: 700px;
    margin-bottom: 20px;
  }
}

@keyframes hazePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.46;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.54;
  }
}

@keyframes twinkle {
  0%   { transform: scale(1); opacity: 0.68; }
  50%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.72; }
}
