:not(:defined) > * {
  display: none;
}
* {
  font-family: 'tthoves', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
}

model-viewer {
  width: 100%;
  height: 90%;
  background: rgba(0, 0, 0, 0.9);

  --progress-bar-color: transparent; // Disabling / hiding progress-bar
}

.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-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);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

.ar-button {
  position: absolute;
  bottom: 15px;
  right: 15px;

  min-width: 45px;
  height: 45px;

  background-image: url("assets/symbols/open-in-ar.svg");
  background-size: 30px 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;

  border: none;
  border-radius: 1000px;
}
.ar-button:before {
  position: absolute;
  top: 0; right: 0;
  z-index: -1;

  display: flex;
  align-items: center;

  height: 45px;
  padding:0 55px 0 30px;

  background-color: #000;
  color: #fff;
  font-size: 1.1em;
  content: 'view in ar';
  white-space: nowrap;
  border-radius: 1000px;
}
.ar-button #qr-code, .ar-button #qr-code img {
  border-radius: 20px;
  border-bottom-right-radius: 0;
}
.ar-button #qr-code {
  opacity: 0;
  position: absolute;
  bottom: 65px;
  right: 0;
  padding: 15px;
  background-color: #000;
  transition: 0.5s;
}
.ar-button #qr-code img { margin-top: 10px; }
.ar-button #qr-code:after {
  position: absolute;
  bottom: -39px;
  right: 0;

  width: 50px; height: 40px;
  background-image: url('assets/symbols/speech-bubble-drip.svg');
  background-position: top center;
  background-size: 45px 30px;
  background-repeat: no-repeat;
  content: '';
}
.ar-button #qr-code:before {
  content: 'SCAN WITH SMARTPHONE';
  font-size: 1.1em;
  color: #fff;
}
.ar-button.desktop:hover #qr-code {
  opacity: 1;
  bottom: 85px;
}

/* #ar-button {
  background-image: url(ar_icon.png);
  background-repeat: no-repeat;
  background-size: 30px 30px;
  background-position: 12px 50%;
  background-color: #000;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  white-space: nowrap;
  padding: 0px 16px 0px 40px;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color:#4285f4;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  border: 1px solid #DADCE0;
} */

/* #ar-button:active {
  background-color: #E8EAED;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 1px solid #4285f4;
} */

@keyframes circle {
  from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
  from { transform: translateX(100px); }
  to   { transform: translateX(-100px); }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}


/* Added: Maximilian Rudolph - 24.05.2022 */
*
{
  user-select: none;
  -webkit-tap-highlight-color:transparent;
}

*:focus
{
  outline: none;
}

.button-on-off {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);

  width: 110px;
  height: 40px;

  border: 2px solid #fff;
  border-radius: 1000px;
  background-color: #fff;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.1)
}
.button-on-off-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.button-on-off-checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.button-on-off-knobs, .button-on-off-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.button-on-off-knobs {
  z-index: 2;
}
.button-on-off-knobs:before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;

  width: 32px; height: 32px;

  background-image: url(https://uploads-ssl.webflow.com/6244171ac1f7f02807c2f473/627511c1ab4f66b984753922_gradient.jpg);
  background-position: right bottom;
  background-size: 200%;

  border-radius: 50%;

  transition: 0.3s cubic-bezier(0.18, 0.89, 0.37, 0.99) all;
}

.button-on-off-layer {
  width: 100%;

  color: #fff;
  background-color: #000;
  border-radius: 1000px;

  transition: 0.3s ease all;
  z-index: 1;
}
.button-on-off-layer:before {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 0;

  height: 100%;
  width: calc(100% - 32px);

  content: 'ON';
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.37, 0.99) all;
}

.button-on-off-checkbox:checked + .button-on-off-knobs:before {
  left: 74px;
  background-position: left center;
}
.button-on-off-checkbox:checked ~ .button-on-off-layer:before {
  right: 32px;
  color: #000;
  content: 'OFF';
}
.button-on-off-checkbox:checked ~ .button-on-off-layer {
  background-color: #fff;
}
