/* style.css: UI layout and appearance */
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Subtle gray gradient background shown through transparent canvas */
  background: linear-gradient(#f0f0f0, #808080);
}

/* Canvas (injected by Three.js) fills the screen */
#viewer-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  background: none; /* allow body gradient to show */
}

/* UI container positioned at top-right */
#ui {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  font-family: Arial, sans-serif;
}

/* Main menu buttons (Door, Camera, etc.) */
.main-btn {
  display: block;
  width: 120px;
  margin: 5px 0;
  padding: 8px 12px;
  text-align: left;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
}
.main-btn:hover {
  background: #444;
}

/* Popup submenu panels (hidden by default) */
.popup {
  display: none;
  position: absolute;
  top: 0;
  right: 100%;  /* position to the left of main button */
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  margin-right: 10px;
  border-radius: 4px;
}
.popup button {
  display: block;
  width: 100px;
  margin: 5px 0;
  padding: 6px 10px;
  text-align: left;
  background: #555;
  color: #fff;
  border: none;
  cursor: pointer;
}
.popup button:hover {
  background: #666;
}
/* Class to show a popup */
.popup.open {
  display: block;
}
