* {
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

body {
  background: linear-gradient(108deg, #7fff00, #3fff9f);
  /* I decided to use a suggestion from github.com/system-fonts/modern-font-stacks for now */
  /* font-family: 'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive; */
  /* Then I decided to add some more fonts from windows */
  font-family:
    "Trattatello", "Segoe Script", "Segoe Print", "Chalkduster", "SignPainter", "Bradley Hand", "Brush Script MT",
    "Ink Free", "Gabriola", "Apple Chancery", "Noteworthy", "Comic Sans MS", Chilanka, "Marker Felt", TSCu_Comic, casual,
    cursive;
  padding: 1em;
  animation-name: bodyblur;
  animation-duration: 149s;
}

h1,
h2 {
  color: white;
  width: fit-content;
}

h1 {
  margin-left: 1em;
  animation-name: h1shadow;
  animation-duration: 41s;
}

h2 {
  background-color: hsl(0deg 0% 0% / 50%);
  padding: 0.3em 1.2em;
  border-radius: 0.8em;
  text-shadow:
    0 0 3px hsl(230deg 100% 75% / 60%),
    0 0 6px hsl(220deg 100% 70% / 60%),
    0 0 9px hsl(210deg 100% 65% / 60%),
    0 0 12px hsl(200deg 100% 60% / 60%),
    0 0 15px hsl(190deg 100% 55% / 60%),
    0 0 18px hsl(180deg 100% 50% / 60%);
}

main {
  z-index: -1;
  position: relative;
  background-image: repeating-linear-gradient(
    0,
    hsl(140deg 70% 50% / 30%),
    hsl(140deg 70% 50% / 30%) 1.35em,
    hsl(0deg 0% 100% / 30%) 1.35em,
    hsl(0deg 0% 100% / 30%) 2.7em,
    hsl(330deg 70% 60% / 30%) 2.7em,
    hsl(330deg 70% 60% / 30%) 4.05em,
    hsl(0deg 0% 100% / 30%) 4.05em,
    hsl(0deg 0% 100% / 30%) 5.4em
  );
}

li[id] {
  width: fit-content;
  border: 1px solid hsl(90deg 50% 25% / 50%);
  padding: 1em;
  border-radius: 0.3em;
  max-width: 24em;
  animation-name: liwiggle;
  animation-duration: 251s;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 1em;
  margin-bottom: 0.3em;
  list-style: none;
  height: fit-content;
}

@keyframes h1shadow {
  0% {
    text-shadow:
      0px 0px 5px hsl(290deg 100% 50% / 25%),
      0px 0px 9px hsl(300deg 100% 50% / 25%),
      0px 0px 13px hsl(310deg 100% 50% / 25%),
      0px 0px 17px hsl(320deg 100% 50% / 25%),
      0px 0px 21px hsl(330deg 100% 50% / 25%),
      0px 0px 25px hsl(340deg 100% 50% / 25%);
  }
  50% {
    text-shadow:
      3px 12px 5px hsl(290deg 100% 50% / 25%),
      4.5px 18px 9px hsl(300deg 100% 50% / 25%),
      6.8px 27.2px 13px hsl(310deg 100% 50% / 25%),
      10.2px 40.8px 17px hsl(320deg 100% 50% / 25%),
      15.3px 61.2px 21px hsl(330deg 100% 50% / 25%),
      23px 92px 25px hsl(340deg 100% 50% / 25%);
  }
  100% {
    text-shadow:
      0px 0px 5px hsl(290deg 100% 50% / 25%),
      0px 0px 9px hsl(300deg 100% 50% / 25%),
      0px 0px 13px hsl(310deg 100% 50% / 25%),
      0px 0px 17px hsl(320deg 100% 50% / 25%),
      0px 0px 21px hsl(330deg 100% 50% / 25%),
      0px 0px 25px hsl(340deg 100% 50% / 25%);
  }
}

@keyframes bodyblur {
  0% {
    filter: blur(0);
  }
  98% {
    filter: blur(0);
  }
  99% {
    filter: blur(1.5em);
  }
  100% {
    filter: blur(0);
  }
}

@keyframes liwiggle {
  0% {
    transform: perspective(25em) rotate3d(0, 0, 0, 0deg);
  }
  96% {
    transform: perspective(25em) rotate3d(0, 0, 0, 0deg);
  }
  97% {
    transform: perspective(25em) rotate3d(0.1, 0.6, -0.2, 5deg);
  }
  98% {
    transform: perspective(25em) rotate3d(0.6, 0, 0.3, 15deg);
  }
  99% {
    transform: perspective(25em) rotate3d(-0.2, 0.4, 0.4, 10deg);
  }
  100% {
    transform: perspective(25em) rotate3d(0, 0, 0, 0deg);
  }
}

a {
  color: #b057ff;
  text-decoration: none;
}

.murmur {
  opacity: 0.5;
}

p:hover {
  background-image: repeating-linear-gradient(
    in lch 0.25turn,
    lch(30 100 40),
    lch(30 100 90) 13%,
    lch(30 100 230) 25%,
    lch(30 100 300) 38%,
    lch(30 100 40) 50%
  );
  background-clip: text;
  color: rgba(0, 0, 0, 0);
  transition: 3s;
  animation-name: textgrad;
  animation-duration: 5s;
  background-size: 200%;
}

@keyframes textgrad {
  0% {
    background-position-x: 0;
  }
  50% {
    background-position-x: 50%;
  }
  100% {
    background-position-x: 100%;
  }
}

ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

button {
  font-family: serif;
  font-weight: 700;
  filter: drop-shadow(1.5em 0.5em 0em hsl(210deg 50% 80% / 50%));
  border-radius: 3px;
  border: 2px solid white;
  padding: 0.5em 1em;
  background-color: white;
  cursor: pointer;
}

button:hover {
  border: 2px solid black;
}

main:after {
  z-index: -1;
  display: block;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  content: " ";
  background-image: repeating-linear-gradient(
    0.25turn,
    hsl(330deg 80% 90% / 30%),
    hsl(330deg 80% 90% / 30%) 1.35em,
    hsl(0deg 0% 100% / 30%) 1.35em,
    hsl(0deg 0% 100% / 30%) 2.7em,
    hsl(330deg 60% 70% / 30%) 2.7em,
    hsl(330deg 60% 70% / 30%) 4.05em,
    hsl(0deg 0% 100% / 30%) 4.05em,
    hsl(0deg 0% 100% / 30%) 5.4em
  );
}

html {
  scrollbar-color: #3d8c27 #66ff3d;
}

main > p {
  width: fit-content;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.1em 0.3em;
}
