@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark light;
  }
  canvas {
    background: linear-gradient(50deg, rgba(68,43,103,1) 0%, rgba(50,107,125,1) 45%, rgba(55,122,70,1) 100%);
  }
}

@media (prefers-color-scheme: light) {
  canvas {
    background: linear-gradient(50deg, rgba(150,97,226,1) 0%, rgba(93,214,255,1) 45%, rgba(158,255,181,1) 100%);
  }
}

html {
  position: relative;
}

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

canvas {
  width: 100%;
  height: 100%;
  display: block;
  background-size: 300% 100%;
  animation: background-shift 50s infinite;
}

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