body {
  overflow: hidden;
  /* Prevents scrollbars from absolute elements */
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
}

canvas {
  width: 100%;
  height: 100vh;
  cursor: grab;
  position: absolute;
  z-index: 9998;
  top: -15%;
  left: 0;
  right: 0;
  margin: 0;
  /* Fixed overflow caused by 50px margin */
}

p {
  font-family: var(--font-blocus);
  text-align: center;
  position: absolute;
  font-size: 1.5em;
  line-height: 1.7em;
  width: 100%;
  color: #9e9e9e;
  /* Keeping specific gray */
}

.god {
  position: absolute;
  z-index: 10;
  top: -15%;
  left: -10%;
}

.godeye {
  width: 70%;
  height: auto;
}

.prayer {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  margin-left: 50px;
  margin-right: 50px;
}

.pray {
  position: absolute;
  z-index: -1;
  bottom: -5%;
  height: 43%;
  left: 1%;
}

.pray2 {
  position: absolute;
  height: 50%;
  z-index: 2;
  left: 35%;
  bottom: -5%;
}

.pray3 {
  position: absolute;
  z-index: 2;
  height: 30%;
  left: 30%;
  bottom: -5%;
  opacity: 0.7;
}

.pray4 {
  position: absolute;
  height: 43%;
  z-index: 2;
  left: 72%;
  bottom: -5%;
}

.pray5 {
  position: absolute;
  height: 30%;
  z-index: 2;
  left: 88%;
  bottom: -5%;
}

.prayerButton {
  cursor: pointer;
  position: absolute;
  text-align: center;
  left: 0;
  right: 0;
  margin-left: 50px;
  margin-right: 50px;
  top: 75%;
  z-index: 9999;
}

#prayerButton {
  /* Opaque Ethereal Style */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(229, 232, 237, 0.9) 100%);
  /* removed invalid background-opacity */
  color: #777777;
  /* Dark slate blue for readability */
  border: none;
  border-radius: 50px;
  padding: 6px 18px;
  font-family: var(--font-karrik);
  font-size: 0.8em;
  text-transform: lowercase;
  cursor: pointer;

  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Spectral Aura */
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    /* Core light */
    0 0 20px rgba(167, 167, 169, 0.4);
  /* Ethereal glow */
}

#prayerButton:hover {
  transform: translateY(-2px) scale(1.02);
  background: #ffffff;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 1),
    0 0 40px rgba(150, 180, 255, 0.6);
}

#popupBox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;

  /* Glassy Overlay - Reduced Blue */
  background: rgba(240, 245, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#popupBox .loading-container {
  display: none;
  /* Hide static loader to prevent overlap */
}

#popupBox.show {
  display: flex;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#pop-up-txt {
  text-align: center;
  font-family: 'vg5000_regularregular';
  font-size: 1em;
  color: #515151;
  /* Slate blue */
  max-width: 800px;
  padding: 20px;

  /* Ethereal Glow */
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);

  /* Fix overlap caused by global p absolute positioning */
  position: relative;
}

#closeButton {
  /* Text Only Style with Ethereal Effect */
  background: radial-gradient(circle, #888888, #6c6c6c, #424242, #1b1b1b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  border: none;
  padding: 30px 30px;

  font-family: 'Fungal-Grow-500-Thickness-500';
  font-weight: bold;
  font-size: 1.5em;

  cursor: pointer;
  margin-top: 30px;

  /* Layout Fix */
  position: relative;
  top: auto;

  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: blur(1.5px);
  /* Stronger default blur */
}

#closeButton:hover {
  transform: scale(1.2);
  filter: blur(0.8px);
  /* Kept blurry on hover */

  /* Lighter gradient for feedback */
  background: radial-gradient(circle, #888888, #6c6c6c, #424242, #1b1b1b);
  -webkit-background-clip: text;
  background-clip: text;
}

.hidden {
  display: none;
}

/* Hypnotic Animation */
.hypno-container {
  position: relative;
  width: 200px;
  /* Space for largest ring */
  height: 160px;
  /* Enough vertical space */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  pointer-events: none;
  /* Let clicks pass through if needed */
}

.hypno-text {
  font-family: 'vg5000_regularregular';
  font-size: 0.75em;
  color: #777;
  z-index: 10;
  text-transform: lowercase;
  animation: breatheText 4s ease-in-out infinite;
  letter-spacing: 1px;
}

.hypno-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(100, 100, 100, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.r1 {
  width: 110px;
  height: 110px;
  border-top: 1px solid rgba(100, 100, 100, 0.4);
  border-bottom: 1px solid rgba(100, 100, 100, 0.4);
  animation: spinRing 8s linear infinite;
}

.r2 {
  width: 80px;
  height: 80px;
  border-left: 1px solid rgba(100, 100, 100, 0.3);
  border-right: 1px solid rgba(100, 100, 100, 0.3);
  animation: spinRing 12s linear infinite reverse;
}

.r3 {
  width: 140px;
  height: 140px;
  border: 1px dashed rgba(100, 100, 100, 0.15);
  animation: spinRing 20s linear infinite;
}

@keyframes spinRing {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes breatheText {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
}

.success-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* Glassy Card */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 15px 50px rgba(100, 130, 180, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.5);

  font-family: var(--font-vg5000);
  font-size: 1.1em;
  color: #777777;

  padding: 30px;
  min-width: 270px;
  border-radius: 24px;
  z-index: 10000;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  /* Prevent clicks while hidden */
}

.success-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.success-box.show {
  opacity: 1;
}

.success-box.show-message {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #777777;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-spinner.loading-spinner-hidden {
  opacity: 0;
}

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

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