body {
  margin: 0;
  overflow: auto !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: black;
  color: white;
}

.a-enter-vr {
  display: none;
}

#no-ar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.hidden {
  display: none !important;
}

/* Loading indicator */
.a-loader-title {
  color: #ff6b6b;
  font-weight: bold;
}

/* Custom cursor */
.a-cursor {
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Improve text readability */
.a-text {
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Make clickable elements more obvious */
.clickable {
  cursor: pointer;
}

/* Fullscreen mode styling */
.a-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* QR Scanner styling */
#qr-reader {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

#qr-reader__scan_region {
  position: relative;
}

#qr-reader__scan_region::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #4ecdc4;
  border-radius: 8px;
  z-index: 1;
}

#qr-reader__dashboard {
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

#qr-reader__dashboard button {
  background-color: #4ecdc4;
  color: black;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px;
  font-weight: 500;
}

#qr-reader__dashboard button:hover {
  background-color: #45b7d1;
}

#qr-reader__dashboard select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

#qr-reader__camera_permission_button {
  display: block !important;
  width: 100%;
  padding: 10px;
  background-color: #4ecdc4 !important;
  color: black !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px 0;
  font-size: 16px;
  font-weight: 500;
}

#qr-reader__camera_permission_button:hover {
  background-color: #45b7d1 !important;
}

/* Fix QR reader styling */
#qr-reader__dashboard_section_swaplink {
  color: #4ecdc4 !important;
}

#qr-reader__status_span {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  padding: 5px !important;
  border-radius: 4px !important;
}

#qr-reader__dashboard_section_csr span {
  color: white !important;
}

/* Custom animations */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Media queries for better responsiveness */
@media screen and (max-width: 768px) {
  #qr-reader {
    max-width: 100%;
  }

  #ar-helper {
    font-size: 14px;
  }
}

@media screen and (max-height: 500px) {
  /* Landscape mode adjustments */
  #qr-reader {
    max-height: 60vh;
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  body,
  .a-body-mounted-container {
    height: -webkit-fill-available;
  }
}

/* Ensure scrolling works */
html,
body {
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden;
}

/* Fix A-Frame container to allow scrolling */
.a-canvas {
  position: fixed !important;
}

/* Fix for AR scene */
#ar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Fix for QR reader container */
#qr-reader-container {
  overflow-y: auto;
  max-height: 100vh;
  padding-bottom: 50px;
}

