@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&family=IBM+Plex+Mono&display=swap");

*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  --color--background--100: rgb(65, 65, 65);
  --color--foreground--100: rgb(225, 225, 225);
  --color--accent--100: rgb(200, 220, 220);
  --font-primary: "Inter", sans-serif;
  --font-secondary: "IBM Plex Mono", monospace;
  --margin: 32px;
  --gutter: 16px;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: radial-gradient(
    circle at 10% 20%,
    rgb(85, 85, 85) 0%,
    /* Near black */ rgb(0, 0, 0) 90% /* Very dark gray */
  );
  color: var(--color--foreground--100);
  letter-spacing: -0.03em;
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: transparent
    url("./images/noise-transparent.png") repeat 0 0;
  background-size: 300px 300px;
  -webkit-animation: noise-animation 0.3s steps(5) infinite;
          animation: noise-animation 0.3s steps(5) infinite;
  opacity: 0.9;
  will-change: transform;
  z-index: 100;
  pointer-events: none;
}

@-webkit-keyframes noise-animation {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  20% {
    transform: translate(-4%, 2%);
  }
  30% {
    transform: translate(2%, -4%);
  }
  40% {
    transform: translate(-2%, 5%);
  }
  50% {
    transform: translate(-4%, 2%);
  }
  60% {
    transform: translate(3%, 0);
  }
  70% {
    transform: translate(0, 3%);
  }
  80% {
    transform: translate(-3%, 0);
  }
  90% {
    transform: translate(2%, 2%);
  }
  100% {
    transform: translate(1%, 0);
  }
}

@keyframes noise-animation {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  20% {
    transform: translate(-4%, 2%);
  }
  30% {
    transform: translate(2%, -4%);
  }
  40% {
    transform: translate(-2%, 5%);
  }
  50% {
    transform: translate(-4%, 2%);
  }
  60% {
    transform: translate(3%, 0);
  }
  70% {
    transform: translate(0, 3%);
  }
  80% {
    transform: translate(-3%, 0);
  }
  90% {
    transform: translate(2%, 2%);
  }
  100% {
    transform: translate(1%, 0);
  }
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
  z-index: 10;
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 20;
  min-height: 100vh;
  padding: 2rem;
  pointer-events: none;
}

.text-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color--foreground--100);
  font-family: var(--font-primary);
  margin: 1.5rem 0;
  max-width: 600px;
}

.text-wrapper .small-text {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color--accent--100);
  font-family: var(--font-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1rem 0;
}

.dg.ac {
  z-index: 999 !important;
}

/* Fix dat.gui styling */
.dg .title {
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* Audio controls */
.audio-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 30px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.audio-button {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.audio-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.audio-button svg {
  width: 20px;
  height: 20px;
}

.audio-status {
  margin-left: 10px;
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
}