body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

#arContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

a-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
   width: 100%;
}

label {
  font-size: 14px;
  margin-bottom: 5px;
}

input[type="range"] {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 25px;
  height: 25px;
  background-color: #007BFF;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
}

#glowEffect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 5px solid rgba(0, 255, 0, 0.5);
  box-sizing: border-box;
  pointer-events: none;
  display: none;
  animation: glow 1s infinite alternate;
}

@keyframes glow {
  from {
    border-color: rgba(0, 255, 0, 0.5);
  }
  to {
    border-color: rgba(0, 255, 0, 1);
  }
}

#icon3D {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 10; /* Ensure the icon is above the 3D object */
  pointer-events: auto; /* Ensure the icon captures click events */
}

#icon3D img {
  width: 30px;
  height: 30px;
}

#objectList {
  position: absolute;
  top: 80px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 10; /* Ensure the object list is above the 3D object */
  max-height: 300px; /* Set a maximum height for the list */
  overflow-y: auto; /* Enable vertical scrolling */
}

#objectList button {
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
}

#objectList button:hover {
  background-color: #0056b3;
}
