
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
}

model-viewer {
  width: 100%;
  height: 100%;
}

select{
  color: black;
}

#backButton{
  position: absolute;
  top: 10px;
  left: 10px;
  background: #00000069;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  z-index: 1000;
  color: white;
}

#ar-button {
  display: block;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #00000069;
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  color: white;
}

.options-selector {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1002;
  padding: 10px;
  background: #0000007a;
  border-radius: 7px;
}

.slider-control {
  margin-top: 10px;
}

.slider-control label {
  display: block;
  margin-bottom: 5px;
}

.slider-control input {
  width: 100%;
}

.slider {
  width: 100%;
  text-align: center;
  overflow: hidden;
  position: absolute;
  bottom: 16px;
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  display: none;
}

.slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  margin-right: 10px;
  border-radius: 10px;
  border: none;
  display: flex;
}

.slide.selected {
  border: 2px solid #4285f4;
}

.slide:focus {
  outline: none;
}

.slide:focus-visible {
  outline: 1px solid #4285f4;
}

.dimensionLineContainer {
  pointer-events: none;
  display: block;
}

.dimension-line {
  stroke: #dbdbdb;
  stroke-width: 2;
  stroke-dasharray: 2.5;
}

.dimension-label {
  position: absolute;
  background: #ffffffd6;
  padding: 7px 2px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 4.5rem;
}

.dimension-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  display: none;
}

/* .dimension-dot {
  position: absolute;
  width: 0px;
  height: 10px;
  background: rgb(255, 255, 255);
  border-radius: 72%;
  display: none;
  padding: 3px;
} */

.hide{
  display: none !important;
}

.styled-select{
  padding: 3px 16px;
  border-radius: 5px;
  font-size: 14px;
  width: 8rem;
  cursor: pointer;
}

.styled-label{
  font-size: 14px;
}

/* Smaller toggle button styles */
.toggle-wrapper-container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap; /* Prevents wrapping */
  border-radius: 5px;
  padding: 4px 0px;
}

.toggle-label {
  font-size: 14px;
  margin-right: 8px;
}

.toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 40px; /* Reduced width */
  height: 20px; /* Reduced height */
  background-color: #ccc;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.4s;
  margin-bottom: -2px;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 16px; /* Smaller handle size */
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

input:checked + .toggle-slider {
  background-color: #2196F3;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px); /* Adjust for smaller size */
}