body {
  margin: 0;
  overflow: hidden;
  background-color: #050505;
  font-family: 'Rajdhani', sans-serif;
  touch-action: none;
}

canvas {
  display: block;
  outline: none;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #02060c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 1s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 2px solid #0a192f;
  border-top: 2px solid #00f3ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  margin-top: 20px;
  font-weight: 500;
  color: #00f3ff;
  letter-spacing: 5px;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

/* Overlay UI */
#overlay-ui {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: rgba(0, 243, 255, 0.4);
  font-size: 11px;
  letter-spacing: 3px;
  pointer-events: none;
  text-transform: uppercase;
  z-index: 10;
  transition: opacity 0.5s;
}

/* Tooltip */
#tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00f3ff;
  padding: 10px 20px;
  border-radius: 4px;
  color: #00f3ff;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}

#tooltip.visible {
  opacity: 1;
}

/* Website Overlay */
#website-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 75%;
  background: #000;
  border: 2px solid #00f3ff;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
  z-index: 500;
  display: none;
  flex-direction: column;
}

#website-overlay.visible {
  display: flex;
}

#website-header {
  height: 30px;
  background: #0a192f;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  border-bottom: 1px solid #00f3ff;
}

#close-btn {
  color: #00f3ff;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  background: none;
  border: none;
  letter-spacing: 1px;
}

#close-btn:hover {
  color: #ffffff;
}

iframe {
  flex-grow: 1;
  border: none;
  background: white;
}

/* Mobile */
@media (max-width: 768px) {
  #overlay-ui {
      font-size: 9px;
      width: 90%;
      left: 5%;
      bottom: 30px;
  }

  #website-overlay {
      width: 95%;
      height: 90%;
  }
}
