:root {
  --primary-glow: #8a2be2;
  --secondary-glow: #00ffff;
}

/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

/* body {
  font-family: "Outfit", sans-serif;
  width: 100vw;
  height: 100vh;
} */

#webgl-container {
  background-color: #050505;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  position: relative;
}

#webgl-container .text {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#webgl-container .text h1 {
  font-size: 50px;
  margin-bottom: 16px;
  color: var(--second-color);
  transition: 0.5s;
  opacity: 0;
  transform: translateY(-20px);
  font-weight: 500;
}

#webgl-container .text h1.act {
  opacity: 1;
  transform: translateY(0);
}

#webgl-container .text h5 {
  font-size: 28px;
  transition: 0.5s;
  transition-delay: 0.2s;
  opacity: 0;
  transform: translateY(-20px);
  font-weight: 400;
  color: #fff;
}

#webgl-container .text h5.act {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  #webgl-container {
    height: auto;
  }
  #webgl-container .text {
    width: 100%;
  }
  #webgl-container .text h1 {
    font-size: 8vw;
  }
  #webgl-container .text h5 {
    font-size: 5vw;
  }
  #webgl-container .text h5 br {
    display: none;
  }
}

.ui-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* Let clicks pass through to 3D canvas */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  /* Enable interaction within panel */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(138, 43, 226, 0.15),
    transparent 60%
  );
  animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
