/* Main Styles */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");

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

body {
  font-family: "Open Sans", sans-serif;
  user-select: none;
  display: flex;
  background-color: #cacaca;
  justify-content: center;
  align-items: center;
  overscroll-behavior: none;
}

#canvas-container {
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.p5Canvas {
  border-style: none;
}

/* Loader Styles */

.loader {
  position: fixed;
  inset: 0;
  color: #222;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity .3s;
}

.loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader__box {
  font-family: 'OpenSans-Variable', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font: 20px/1.2 system-ui, sans-serif;
}

.loader__bar {
  position: relative;
  width: min(440px, 82vw);
  height: 8px;
  background: #FFF;
  border-radius: 9999px;
  overflow: hidden;
}

.loader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  background: #222;
  border-radius: inherit;
  transition: width .05s linear;
}