.viewer-3d-component {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container for the canvas and controls */
#canvas-container {
  position: relative;
  width: 100%;
  height: auto;
  background-color: lightblue;
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  justify-content: center;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Canvas styling */
#imageCanvas {
  width: 100%;
  aspect-ratio: 1 / 1; /* Maintains a square aspect ratio */
  background-color: #ccc;
  overflow: hidden;
  position: relative;
  user-select: none;
  cursor: grab;
}

#imageCanvas img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the container */
  pointer-events: none;
}

#imageCanvas:active {
  cursor: grabbing;
}

/* Controls styling */
.controls-container {
  position: absolute;
  bottom: 5px;
}

#controls {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 5px;
}

#controls button {
  cursor: pointer;
  border: none;
  background-color: transparent;
  object-fit: cover;
  background-size: contain;
  background-repeat: no-repeat;
  height: 2rem;
  width: 2rem;
}

#restartAutoRotate {
  background-image: url("../toolbar/play-button.png");
}

#prevImage {
  background-image: url("../toolbar/left-arrow.png");
}

#nextImage {
  background-image: url("../toolbar/right-arrow.png");
}

#fullScreenButton {
  background-image: url("../toolbar/fullscreen.png");
}

#loading-container {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 100;
  height: 100%;
  width: 100%;
  background-color: lightgrey;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-container {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 100;
  height: 100%;
  width: 100%;
  background-color: lightgrey;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-spinner-container {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 99;
  width: 1.5rem;
  height: 1.5rem;
  padding-top: 5px;
  padding-right: 5px;
}

#loading-spinner-container img {
  width: 100%;
  height: 100%;
}

/* Progress Bar Styles */
#progress-bar {
  width: 80%; /* Adjust width as needed */
  height: 20px; /* Adjust height as needed */
  background-color: #e0e0e0; /* Background color of the progress bar */
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0; /* Space around the progress bar */
}

#progress-fill {
  width: 0%;
  height: 100%;
  background-color: #76c7c0; /* Color of the progress fill */
  transition: width 0.3s ease;
}

