@font-face {
  font-family: "PixelOperator";
  src: url("./pixeloperator.woff2");
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.5;
  margin: 0 auto;
  max-width: none;
}

main {
  animation: 20s ease infinite fade;
  background-image: linear-gradient(to top right,
      hsl(171, 100%, 86%),
      hsl(207, 100%, 86%),
      hsl(243, 100%, 86%),
      hsl(279, 100%, 86%),
      hsl(315, 100%, 86%),
      hsl(351, 100%, 86%),
      hsl(27, 100%, 86%));
  background-position: center top;
  background-size: 700% 100%;
  line-height: 1.5;
  margin: 0;
  max-width: none;
  padding: 22% 0;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  text-transform: lowercase;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow-block: clip;
}

p {
  font-family: "PixelOperator", sans-serif;
  font-style: normal;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 50%);
}

@media screen and (max-width: 1000px) {
  main {
    padding: 100% 0;
  }

  p {
    margin: auto;
    width: 80%;
    text-align: center;
    line-break: auto;
  }
}

/* animation keyframes */

@keyframes fade {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 0%;
  }

  100% {
    background-position: 0% 0%;
  }
}
