* {
  margin: 0;
}

body {
  font-family: sans-serif;
  font-weight: bold;
}

#box {

  width: 100vw;
  height: 90vh;
  margin-left: auto;
  margin-right: auto;
}

.button {
  float: left;
  margin-top: 1%;
  z-index: 5;
  width: 24%;
  height: 6vh;
  font-size: 3vh;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  align-content: center;
  color: black;
}

.button:nth-child(1) {
  margin-left: 1%;
}

.button:nth-child(2),
.button:nth-child(3),
.button:nth-child(4) {
  margin-left: 0.5%;
}

.button:nth-child(4) {
  margin-right: 1%;
}

.button:hover {
  background-color: rgba(196, 62, 32, 0.856);
}

.button:active {
  background-color: rgba(196, 62, 32, 0.712);
}

#back {
  position: absolute;
  top: 2vh;
  right: 2vw;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  padding: 0.5em 1em;
  border-radius: 4px;
  color: black;
  pointer-events: auto;
  z-index: 100;
  font-size: 1em;
}

#back:hover {
  background-color: rgba(196, 62, 32, 0.856);
}

#back:active {
  background-color: rgba(196, 62, 32, 0.712);
}

.arrow {
  border: solid black;
  border-width: 0 4px 4px 0;
  border-radius: 2px;
  display: inline-block;
  padding: 4px;
  margin-bottom: 4px;

}

.left {
  transform: rotate(135deg) translateY(-7px);
  margin-right: 6px;
}

#qrcode {
  position: absolute;
  bottom: 3vh;
  left: 3vh;
}


/* model-viewer {
  --progress-bar-color: transparent;
} */

.progress-bar {
  display: block;
  width: 20%;
  height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
  transition: 2s;
}

.update-bar {
  background-color: green;
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: 2s;
}


#threedbut {
  display: none;
}

.dot {
  display: none;
}

.dim {
  background: #fff;
  border-radius: 4px;
  border: none;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: rgba(0, 0, 0, 0.8);
  font-size: 1em;
  max-width: 128px;
  overflow-wrap: break-word;
  padding: 0.5em 1em;
  position: absolute;
  width: max-content;
  height: max-content;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  --min-hotspot-opacity: 0;
}

.dimensionLineContainer {
  pointer-events: none;
}

.dimensionLine {
  stroke: rgb(115, 245, 9);
  stroke-width: 2;
  stroke-dasharray: 10;
}

.hide {
  display: none;
}

/* This keeps child nodes hidden while the element loads */
:not(:defined)>* {
  display: none;
}

#controls {
  position: absolute;
  top: 2vh;
  left: 2vw;
  max-width: unset;
  transform: unset;
  pointer-events: auto;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  padding: 0.5em 1em;
  border-radius: 4px;
}

.hotspot {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: none;
  background-color: transparent;
  box-sizing: border-box;
  pointer-events: none;
  --min-hotspot-opacity: 0;
}


.annotation {
  background-color: #888888;
  position: absolute;
  transform: translate(10px, -20px);
  border-radius: 10px;
  padding: 10px;
  opacity: 0.7;
}


.callout {
  position: absolute;
  z-index: 20;
  bottom: 35px;
  right: 20px;
  margin-left: 20px;
  max-width: 300px;
  opacity: 0;
  transition: 1s;
  text-align: center;
}

.callout-header {
  padding: 25px 15px;
  background: #555;
  font-size: 20px;
  color: white;
}

.callout-container {
  padding: 15px;
  background-color: #ccc;
  color: black
}

.closebtn {
  position: absolute;
  top: 5px;
  right: 15px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.closebtn:hover {
  color: rgba(196, 62, 32, 0.856);
}


@media only screen and (max-width: 600px) {
  .button {
    font-size: 1.5vh;
  }

  #threedbut {
    display: block;
  }

  .callout {
    top: 30vh;
    left: 50vw;
    width: 80vw;
    margin-left: -40vw;
  }

  :not(:defined)>* {
    display: none;
  }

}