/* Bronnen & bronvermelding:
Hulp gevraagd bij het opschonen van mijn css van mijn songtekst: https://chatgpt.com/c/6adfb9fd-5ec0-83ed-a178-b979ac5663f3  
Code voor de media query: https://gemini.google.com/app/ddf67af027d4a8dc  */

@font-face {
  font-family: "Seraphs";
  src: url("font/SeraphsVF.woff2") format("woff2");
}

@font-face {
  font-family: "BebasNeue";
  src: url("font/BebasNeue-Regular.ttf");
  font-weight: 100;
  font-style: normal;
}

html {
  box-sizing: border-box;
  color-scheme: light dark;

  --bg-roodblauw: light-dark(#ce0000, #0b13cb);
  --bg-lichtroze: light-dark(#ffd7e7, #db88f6);
  --bg-wit: white;
  --tekst-wit: white;
}

[data-scheme="dark"] {
  display: none;
}

@media (prefers-color-scheme: dark) {
  [data-scheme="light"] {
    display: none;
  }

  [data-scheme="dark"] {
    display: block;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 1000;
  padding: 8px;

  background: var(--bg-wit);
  color: var(--color-roodblauw);
}
.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--tekst-wit);
}

header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;

  width: 100%;
  height: 6rem;

  padding: 0 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: var(--bg-roodblauw);
  font-family: "BebasNeue", sans-serif;
  box-sizing: border-box;
}

header a {
  font-size: 2.5rem;
  letter-spacing: 0.1em;

  color: var(--color-lichtroze);
  font-family: "BebasNeue", sans-serif;
}

header h1 a {
  text-decoration: none;
  color: var(--bg-lichtroze);
}

header nav a {
  display: inline-block;

  margin: 0 2.5rem 0 1rem;
  padding: 0.5rem 0.75rem;

  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--bg-lichtroze);
}

a:hover {
  color: var(--tekst-wit);
  text-decoration: underline;
}

body.lyrics-page {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 100vh;
  margin: 0;
  padding: 8rem 2rem 2rem;
  box-sizing: border-box;

  background-color: var(--bg-lichtroze);
  font-family: "Seraphs", sans-serif;
}

.lyrics-title,
footer {
  width: 100%;
  max-width: 650px;
  padding: 15px 20px;
  margin: 1rem 0rem 1rem 0rem;
  box-sizing: border-box;

  background-color: var(--bg-roodblauw);
  color: var(--tekst-wit);
  font-family: "BebasNeue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.lyrics-title h1 {
  margin: 0;
  color: var(--tekst-wit);
  font-family: "BebasNeue", sans-serif;
  font-size: 1rem;
  font-weight: normal;
}

.poster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(auto, max-content);
  gap: 1.5rem;

  width: 100%;
  max-width: 650px;
  padding: 40px;
  box-sizing: border-box;

  background-color: var(--bg-wit);
  color: black;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

#arabier {
  grid-column: 1 / 4;
  grid-row: 1;
  font-size: 0.9em;
  line-height: 1.5;

  font-variation-settings:
    "wght" 100,
    "SRFS" 0;
  transition: 1s;
}

#arabier:hover {
  font-variation-settings:
    "wght" 200,
    "SRFS" 44;
  font-size: 1.3em;
  color: var(--bg-lichtroze);
}

#drillers {
  grid-column: 1 / 5;
  grid-row: 2;
  font-size: 0.9em;
  line-height: 1.5;

  font-variation-settings:
    "wght" 100,
    "SRFS" 0;
  transition: 1s;
}

#drillers:hover {
  font-variation-settings:
    "wght" 200,
    "SRFS" 10;
  font-size: 1.3em;
  color: var(--bg-roodblauw);
}

.ze {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  grid-column: 1 / 5;
  grid-row: 3;
  margin-top: 10px;
}

.ze h2 {
  margin: 0;

  color: var(--bg-roodblauw);
  font-size: 2em;
  font-weight: 100;
  font-style: italic;

  transition: 0.3s;
  animation: --gnome-animation 5s infinite;
}

.ze h2:hover {
  color: var(--bg-lichtroze);
}

@keyframes --gnome-animation {
  0% {
    rotate: 0turn;
  }
  100% {
    rotate: 1turn;
  }
}

.rechten {
  grid-column: 3 / 5;
  grid-row: 4;

  font-size: 0.85em;
  font-weight: 50;
  line-height: 1.2;
  text-align: right;

  transition: transform 0.5s;
}

.rechten:hover {
  transform: rotate(180deg);
}

.nu {
  display: flex;
  align-items: baseline;
  gap: 15px;

  grid-column: 1 / 5;
  grid-row: 5;
}

.nu p:first-child {
  margin: 0;

  font-size: 2em;
  font-weight: bold;

  animation: heenenweer 0.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--rij, 0) * -0.2s - var(--p, 0) * 1s);
}

@keyframes heenenweer {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

.nu p:last-child {
  margin: 0;
  position: relative;
  display: inline-block;

  letter-spacing: 10px;
  font-size: 1.1em;
  font-weight: 30;
}

.nu p:last-child::before,
.nu p:last-child::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;

  color: var(--bg-roodblauw);
  pointer-events: none;
  white-space: pre;

  animation: fx-echo 3s ease-out infinite;
}

.nu p:last-child::after {
  color: var(--bg-roodblauw);
  animation-delay: 1.5s;
}

@keyframes fx-echo {
  0% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  100% {
    transform: translate(10px, 5px);
    opacity: 0;
  }
}

.basedcomplex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  grid-column: 1 / 5;
  grid-row: 6;
}

.basedcomplex h3 {
  display: flex;
  gap: 0.15em;

  margin: 0;
  font-size: 2em;
  font-weight: 10;
}

.basedcomplex span {
  display: inline-block;
  font-weight: 200;
  transition-duration: 0.5s;
}

.basedcomplex:hover span {
  font-weight: 10;
  color: var(--bg-lichtroze);
}

.tijdsgeest-section {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;

  grid-column: 1 / 5;
  grid-row: 7;
}

.tijdsgeest-section .de1 {
  font-size: 2em;
  font-weight: 10;
  margin: 0;
  grid-column: 1;
}

.tijdsgeest-section h3 {
  font-size: 2em;
  font-weight: 300;
  margin: 0;
  grid-column: 2;
}

.tijdsgeest {
  grid-column: 2;

  margin: 0;
  font-size: 1.8em;
  font-weight: 10;
  text-align: right;

  span {
    display: inline-block;
    font-weight: 200;
    transition-duration: 0.5s;
    &:nth-of-type(1) {
      transition-delay: 0s;
    }
    &:nth-of-type(2) {
      transition-delay: 0.1s;
    }
    &:nth-of-type(3) {
      transition-delay: 0.1s;
    }
    &:nth-of-type(4) {
      transition-delay: 0.2s;
    }
    &:nth-of-type(5) {
      transition-delay: 0.2s;
    }
    &:nth-of-type(6) {
      transition-delay: 0.3s;
    }
    &:nth-of-type(7) {
      transition-delay: 0.3s;
    }
    &:nth-of-type(8) {
      transition-delay: 0.4s;
    }
    &:nth-of-type(9) {
      transition-delay: 0.4s;
    }
    &:nth-of-type(10) {
      transition-delay: 0.4s;
    }
  }
}

.tijdsgeest:hover {
  span {
    font-weight: 10;
    color: var(--bg-roodblauw);
  }
}

.tijdsgeest-section1 {
  grid-column: 1 / 5;
  grid-row: 8;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.tijdsgeest-section1 .de2 {
  font-size: 2em;
  font-weight: 10;
  margin: 0;
}

.tijdsgeest-section1 h3,
.tijdsgeest-section h3 {
  font-size: 2em;
  font-weight: 200;
  margin: 0;
  display: flex;

  span {
    display: inline-block;
    font-weight: 200;
    transition-duration: 0.5s;

    &:nth-of-type(1) {
      transition-delay: 0s;
    }
    &:nth-of-type(2) {
      transition-delay: 0.1s;
    }
    &:nth-of-type(3) {
      transition-delay: 0.1s;
    }
    &:nth-of-type(4) {
      transition-delay: 0.2s;
    }
    &:nth-of-type(5) {
      transition-delay: 0.2s;
    }
    &:nth-of-type(6) {
      transition-delay: 0.3s;
    }
    &:nth-of-type(7) {
      transition-delay: 0.3s;
    }
    &:nth-of-type(8) {
      transition-delay: 0.4s;
    }
    &:nth-of-type(9) {
      transition-delay: 0.4s;
    }
    &:nth-of-type(10) {
      transition-delay: 0.4s;
    }
  }
}

.tijdsgeest-section1 h3:hover,
.tijdsgeest-section h3:hover {
  span {
    font-weight: 10;
    color: var(--bg-roodblauw);
  }
}

.flip-section {
  grid-column: 1 / 5;
  grid-row: 9;

  margin-top: 1rem;
  text-align: center;
}

.flip-section p {
  margin: 0;

  font-size: 1.8em;
  font-weight: 10;
  line-height: 1.3;
}

.flip-section .flip1 {
  display: inline-block;
  transition: 1s;

  &:hover {
    display: inline-block;
    transform: rotate(180deg);
    font-size: 2em;
    font-weight: 200;
    color: var(--bg-roodblauw);
  }
}

.flip-section .flip2,
.flip-section .flip3 {
  display: inline-block;
  transform: rotate(180deg);
  transition: 1s;

  &:hover {
    display: inline-block;
    transform: rotate(0deg);
    font-size: 2em;
    font-weight: 200;
    color: var(--bg-lichtroze);
  }
}

@media (max-width: 640px) {
  header {
    height: auto;
    min-height: 5rem;
    padding: 0 1rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }

  header nav a {
    margin: 0 0.5rem;
    font-size: 1.1rem;
  }

  body.lyrics-page {
    padding: 7rem 1rem 1rem;
  }

  .poster {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 1.2rem;
  }

  #arabier,
  #drillers,
  .ze,
  .rechten,
  .nu,
  .basedcomplex,
  .tijdsgeest-section,
  .tijdsgeest-section1,
  .flip-section {
    grid-column: 1 / -1;
    grid-row: auto;
    text-align: left;
  }

  .rechten {
    text-align: left;
  }

  .ze h2,
  .nu p:first-child,
  .basedcomplex h3,
  .tijdsgeest-section .de1,
  .tijdsgeest-section h3,
  .tijdsgeest,
  .tijdsgeest-section1 .de2,
  .tijdsgeest-section1 h3,
  .flip-section p {
    font-size: 1.5em;
  }
}
