*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  font-size: 18px;
}

html,
body {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
  overscroll-behavior: none;
}

body {
  margin: 0;
  --color-text: #fff;
  --color-bg: #000;
  --color-link: #d1d1d1;
  --color-link-hover: #fff;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: mono45-headline, monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lil-gui {
  visibility: hidden;
  --background-color: rgba(5, 5, 10, 0.9);
  --text-color: #e0e0e0;
  --title-background-color: #000;
  --widget-color: #202020;
  --hover-color: #303030;
  --focus-color: #404040;
  --number-color: #00f3ff;
  --string-color: #ff0055;
  font-family: "Courier New", Courier, monospace;
  border: 1px solid #00f3ff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.lil-gui .title {
  color: #00f3ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #00f3ff;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
  background: linear-gradient(
    90deg,
    rgba(0, 243, 255, 0.1) 0%,
    transparent 100%
  );
}

.lil-gui .controller {
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.lil-gui .name {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.lil-gui .slider-fg {
  background: #ff0055;
  box-shadow: 0 0 5px #ff0055;
}

.lil-gui input:focus {
  border-color: #00f3ff !important;
  box-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.demo-4 .lil-gui {
  visibility: visible;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
  content: "";
  position: fixed;
  z-index: 1000;
}

.js .loading::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .loading::after {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
}

a:hover {
  color: var(--color-link-hover);
  outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
  /* Provide a fallback style for browsers
	 that don't support :focus-visible */
  outline: none;
  background: lightgrey;
}

a:focus:not(:focus-visible) {
  /* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
  background: transparent;
}

a:focus-visible {
  /* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
  outline: 2px solid red;
  background: transparent;
}

.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
}

.unbutton:focus {
  outline: none;
}

.frame {
  padding: 3rem 5vw;
  text-align: center;
  position: relative;
  z-index: 1000;
}

.frame__title {
  font-size: 1rem;
  margin: 0 0 1rem;
  font-weight: normal;
}

.frame__links {
  display: inline;
}

.frame__links a:not(:last-child),
.frame__demos a:not(:last-child) {
  margin-right: 1rem;
}

.frame__demos {
  margin: 1rem 0;
}

.frame__demo--current,
.frame__demo--current:hover {
  color: var(--color-text);
}

.content {
  display: grid;
  width: 100vw;
  height: calc(100vh - 13rem);
  position: relative;
  padding: 3rem;
}

.content__title {
  font-family: mono45-headline, monospace;
  font-size: 13vw;
  line-height: 1;
  color: #fff;
  max-width: 50vw;
  font-weight: 400;
  margin: 0;
  align-self: center;
  pointer-events: none;
}

.content__title--centered {
  text-align: center;
  justify-self: center;
}

.content__title--style-1 {
  font-family: new-order, sans-serif;
  font-weight: 600;
  font-size: 13vw;
  line-height: 0.85;
  background: linear-gradient(90deg, #71717a 0%, #ffffff 50%, #3f3f46 100%);
  background-size: cover;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.content__title--style-2 {
  font-family: bely-display, serif;
  font-weight: 400;
  font-size: 12vw;
  opacity: 0.7;
  line-height: 0.8;
}

@media screen and (min-width: 53em) {
  .frame {
    position: fixed;
    text-align: left;
    z-index: 100;
    top: 0;
    left: 0;
    display: grid;
    align-content: space-between;
    width: 100%;
    max-width: none;
    height: 100vh;
    padding: 1.5rem 3.35rem;
    pointer-events: none;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "title ..."
      "... ..."
      "links demos";
  }
  .frame__title-wrap {
    grid-area: title;
    display: flex;
  }
  .frame__title {
    margin: 0;
  }
  .frame__tagline {
    position: relative;
    margin: 0 0 0 0.25rem;
    padding: 0 0 0 1rem;
    opacity: 0.5;
  }
  .frame__demos {
    margin: 0;
    grid-area: demos;
    justify-self: end;
  }
  .frame__links {
    grid-area: links;
    padding: 0;
    justify-self: start;
  }
  .frame a {
    pointer-events: auto;
  }
  .content {
    height: 100vh;
  }

  .content__title--style-1 {
    font-size: 10vw;
    font-weight: 400;
  }

  .content__title--style-2 {
    font-size: 10vw;
  }
}
#canvasContainer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
#canvasContainer img {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
}
