html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

#overlay {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  pointer-events: none; /* Don't block clicks on the scene */
}

.clickable {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.a-canvas,
a-scene,
.mindar-video,
.mindar-canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

#ar-container { position: relative; }
#overlay-ui  { position: absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; }
.item2d      { position:absolute; width:80px; height:80px; pointer-events:auto; cursor:pointer; }

a-cursor {
  opacity: 0.01;
}

.mindar-video video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#start-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* ensure it's above A-Frame canvas */
  text-align: center;
  pointer-events: auto; /* allow clicks */
}

#start-menu input, #start-menu button {
  margin: 10px;
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  width: calc(100% - 40px);
}

#start-menu button {
  background-color: #28a745;
  color: white;
  cursor: pointer;
  width: calc(100% - 20px);
}

#container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  flex: 1;
}
html, body, a-scene {
  touch-action: manipulation;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

