:root {
  --maxWH: max(200vh * 2.2, 200vw);
  --hyp: hypot(var(--maxWH), var(--maxWH));
  --offset: calc(-0.5 * var(--hyp));
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background: #0a0a0a;
  font-family: "Inter", sans-serif;
  perspective: 1000px;
  overflow: hidden;
}

#container {
  width: 100vw;
  height: 100vh;
}

#bg {
  position: absolute;
  width: var(--hyp);
  height: var(--hyp);
  background-color: #111;
  top: var(--offset);
  left: var(--offset);
  animation-timing-function: linear;
}

#sq {
  width: var(--prod);
  height: var(--prod);
  position: absolute;
  bottom: 0;
  right: 0;
}

#q1,
#q2,
#q3,
#q4 {
  /* position: absolute;
  border: 1px solid #222;
  width: 50%;
  height: 50%; */
}
#q1 {
  top: 0;
  left: 0;
}
#q2 {
  top: 0;
  right: 0;
}
#q3 {
  bottom: 0;
  left: 0;
}
#q4 {
  bottom: 0;
  right: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

@keyframes particleFloat {
  0% {
    transform: scale(0.15);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.15);
  }
}

@keyframes particleRotate {
  0% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
  100% {
    transform: rotate(359deg);
    animation-timing-function: linear;
  }
}
