canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#canvas {
  display: block;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#meshLabel {
  position: absolute;
  top: 20px;
  height: 30px;
  width: 60px;
  left: 20px;
  color: white;
}

.controlButton {
  position: absolute;
  width: 5vh;
  height: 5vh;
}

img {
  pointer-events: none;
}

body {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  width: 100%;
  height: 100%;
  /*position: fixed; overflow: auto;*/
}

dialog {
  width: 100%;
  text-align: center;
  max-width: 20em;
  color: white;
  background-color: #000;
  border: none;
  position: relative;
  transform: translate(-50%, -50%);
}
#progress-container {
  position: absolute;
  top: 50%;
  left: 50%;
}
progress {
  width: 100%;
  height: 1em;
  border: none;
  background-color: #fff;
  color: #eee;
}

progress::-webkit-progress-bar {
  background-color: #333;
}

progress::-webkit-progress-value {
  background-color: #eee;
}

progress::-moz-progress-bar {
  background-color: #eee;
}

/* Basic slider track styling */

#cameraSlider {
  position: absolute;
  z-index: 999;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  -webkit-appearance: none; /* Remove default styling */
  outline: none;
  border-radius: 10px;
  overflow: visible; /* allow thumb overflow */
}

/* WebKit track */
#cameraSlider::-webkit-slider-runnable-track {
  width: 95%;
  height: 10px;
  border-radius: 10px;
}

/* Track for Firefox */
#cameraSlider::-moz-range-track {
  height: 10px;
  width: 95%;
  border-radius: 10px;
}

/* Thumb styling for WebKit browsers (Chrome, Safari) */
#cameraSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background-image: url("https://cdn.prod.website-files.com/67fccf2231bc66a2a6a868f6/684a8357e8fe5388090f0356_46626fc87c91a4ef1dec753a38662d53_slider_circle.png"); /* Replace with your PNG URL */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border: none; /* Thumb border color */
  border-radius: 50%; /* Make thumb round */
  margin-top: -9px; /* Center thumb vertically on the track */
  position: relative;
  z-index: 1;
  /* no margin-left */
}

/* Thumb styling for Firefox */
#cameraSlider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background-image: url("https://cdn.prod.website-files.com/67fccf2231bc66a2a6a868f6/684a8357e8fe5388090f0356_46626fc87c91a4ef1dec753a38662d53_slider_circle.png"); /* Replace with your PNG URL */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.scene,
#message {
  position: absolute;
  display: flex;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
}
#message {
  font-weight: bold;
  font-size: large;
  color: red;
  pointer-events: none;
}

details {
  font-size: small;
}

#progress {
  position: absolute;
  top: 0;
  height: 5px;
  background: blue;
  z-index: 99;
  transition: width 0.1s ease-in-out;
}

#quality {
  position: absolute;
  bottom: 10px;
  z-index: 999;
  right: 10px;
}

#caminfo {
  position: absolute;
  top: 10px;
  z-index: 999;
  right: 10px;
}

#instructions {
  background: rgba(0, 0, 0, 0.6);
  white-space: pre-wrap;
  padding: 10px;
  border-radius: 10px;
  font-size: x-small;
}
body.nohf .nohf {
  display: none;
}
body.nohf #progress,
body.nohf .cube-face {
  background: #ff9d0d;
}
