body {
  margin: 0;
  margin-top: 15px;
  padding: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

button {
  font-size: 1em;
  background-color: #af97d5;
  border: 1px dashed #6e28d9;
  margin: 2%;
  padding: 20px;
  text-transform: capitalize;
  border-radius: 4px;
}

button:hover {
  transform: scale(1);
  box-shadow: 2px 4px 4px rgba(110, 40, 217, 0.4);
}

button:active {
  transform: scale(0.95);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 1%;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

/* slider styling for chrome */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #af97d5;
  height: 16px;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #6e28d9;
  border-radius: 4px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 8px rgba(110, 40, 217, 0.4);
  width: 20px;
  height: 20px;
  transform: translate(-5%, -5%);
}

/* slider styling for mozilla */
input[type="range"]::-moz-range-track {
  background-color: #af97d5;
  height: 16px;
  border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #6e28d9;
  border-radius: 4px;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb:hover {
  box-shadow: 0 0 8px rgba(110, 40, 217, 0.4);
  width: 20px;
  height: 20px;
  transform: translate(-5%, -5%);
}

/* slider styling for IE */
input[type="range"]::-ms-track {
  background-color: #af97d5;
  height: 16px;
  border-radius: 4px;
}

input[type="range"]::-ms-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #6e28d9;
  border-radius: 4px;
  cursor: pointer;
}

input[type="range"]::-ms-thumb:hover {
  box-shadow: 0 0 8px rgba(110, 40, 217, 0.7);
  width: 20px;
  height: 20px;
  transform: translate(-5%, -5%);
}

#camera-choosers {
  display: grid;
  grid-template-columns: repeat(auto-fit, Min(10em, 100%));
  justify-content: center;
}

#camera-label {
  padding: 1%;
  text-transform: capitalize;
}

#video-container {
  width: 100%;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.7);
}

#video-display {
  padding: 0;
  margin: 0;
  height: auto;
  width: auto;
  border-radius: 4px;
  position: relative;
}

#settingsInterface {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* slider refers to the top set of sliders */
.slider-container {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 0.5fr 1fr 3fr 1fr;
  border: 1px dashed #333;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin: 0.3em;
  padding: 0.5em 0.8em;
  font-family: "Arial", sans-serif;
  line-height: 1.4;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.slider-container .auto-button {
  font-size: 12px;
}

#laser-point-canvas {
  padding: 0;
  margin: 0;
  width: 95vw;
}

.hidden {
  display: none;
}

.small {
  font-size: 0.5em;
}

#camera-capabilities {
  font-size: 1rem;
  font-family: monospace;
  text-align: left;
}

#all-camera-capabilities {
  font-family: monospace;
  text-align: left;
}

.controllers-over-video {
  position: fixed;
  bottom: 14%;
  background-color: rgba(255, 255, 255, 0.7);
  width: 100%;
}

#camera-tests.controllers-over-video {
  bottom: 0%;
}

#capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.capability .range-element {
  font-size: 0.75em;
}

.capability select {
  font-size: 0.75em;
}

.capability {
  border: 1px dashed #333;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin: 0.3em;
  padding: 0.5em 0.8em;
  font-family: "Arial", sans-serif;
  line-height: 1.4;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}
