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

model-viewer {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
}

model-viewer.loading button.Hotspot,
model-viewer.loading .controls {
  display: none;
}

model-viewer#goes button h3 {
  color: #fff;
}

.mv-wrap {
  height: 100%;
  width: 100%;

}
.Hotspot {
  background: #f12fa5;
  border-radius: 32px;
  border: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  cursor: pointer;
  height: 24px;
  padding: 8px;
  position: relative;
  transition: opacity 0.3s;
  width: 24px;
}
.Hotspot.visited {
  background: transparent;
  border: 4px solid #6895ffbf;
  height: 32px;
  width: 32px;
}

.Hotspot h3 {
  font-weight: bold;
  font-size: 40px;
  margin: 0 0 15px 0;
}

.Hotspot:not([data-visible]) {
  background: transparent;
  border: 4px solid #6895ffbf;
  box-shadow: none;
  height: 32px;
  pointer-events: none;
  width: 32px;
}

.Hotspot:not([data-visible]):not(.visited):not(.start) {
  border: 4px solid #f12fa5ac;
}

.Hotspot:focus {
  border: 4px solid rgb(0, 128, 200);
  height: 32px;
  outline: none;
  width: 32px;
}

.Hotspot:not(:focus):not(:hover) .HotspotAnnotation {
  display: none;
}

.Hotspot > * {
  opacity: 1;
  transform: translateY(-50%);
}

.Hotspot.start {
  display: none;
}

.HotspotAnnotation{
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 2px 15px rgba(104, 135, 195, 0.89);
  color: #fff;
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 18px;
  left: calc(100% + 1em);
  text-align: left;
  max-width: 400px;
  overflow-wrap: break-word;
  padding: 0.8em 1em;
  position: absolute;
  top: 50%;
  width: max-content;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.Hotspot:not([data-visible]) > * {
  opacity: 0;
  transform: translateY(calc(-50% + 4px));
  transition: transform 0.3s, opacity 0.3s;
}

.controls {
  display: inline-block;
  animation: fadeIn 1s;
  width: 100%;
}

.controls-buttons {
  display: flex;
  justify-content: space-between;
}

.controls.controls-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  margin: 10px;
}

.controls.controls-bottom .controls-buttons {
  display: flex;
  align-items: center;
}

.controls button {
  display: inline-block;
  padding: 10px;
  padding-left: 10px;
  margin: 10px;
  background-color: #f12fae;
  font-size: 24px;
  outline: none;
  color: #fff;
  border-radius: 5px;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: none;
  color: #fff;
}

.controls button:active {
  background-color: #144366;
}

.alt-hotspot {
  display: none;
  animation: fadeIn 1s;
}

model-viewer .controls-buttons a,
model-viewer .controls-buttons a:visited,
model-viewer .controls-buttons a:hover {
  color: #fff;
  text-decoration: none;
}
model-viewer .controls-buttons button a:focus {
  outline: none;  
},

model-viewer .controls-buttons button a:hover {
  color: #6eadff;
  text-decoration: none;
}

@media only screen and (max-height: 350px) {
  .HotspotAnnotation h3 {
    font-size: 30px;
    margin-bottom: 0;
  }
  .HotspotAnnotation p {
    font-size: 16px; 
    margin-top: 6px;
    margin-bottom: 0;
  }
}
@media only screen and (min-width: 601px) and (max-width: 980px) {
  .HotspotAnnotation {
    max-width: 250px;
  }

}

@media only screen and (max-width: 600px) {
  .alt-hotspot {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 260px;
    font-size: 22px;
    outline: none;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0px 2px 15px rgba(104, 135, 195, 0.89);
    font-family: Futura, Helvetica Neue, sans-serif;
    color: #fff;
    overflow: auto;
  }
  .alt-hotspot h3 {
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #ffffff5e;
    padding-bottom: 6px;
    padding-left: 10px;
    padding-top: 12px;
    background-color: rgba(0, 0, 0, 0.85);
    position: sticky;
    top: 0;
  }
  .alt-hotspot .content p {
    padding: 0 10px;
  }

  .alt-hotspot .content {
    height: auto;
    margin-bottom: 10px;
  }
  .controls button {
    margin: 0;
    box-shadow: none;
  }

  #nextPoi {
    border-radius: 0 0 5px 0;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
  }

  #reset {
    border-radius: 0 0 5px 5px;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
  }
  #fullscreen {
    border-radius: 0 0 0 5px;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
  }

  .HotspotAnnotation {
    display: none;
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.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 {
  width: 41px;
  background-size: 43px;
  background-image: url(/modules/custom/media_entity_model/images/ar.png);
  background-repeat: no-repeat;
  height: 41px;
  margin: 10px;
  padding: 3px 5px;
  overflow: hidden;
  background-position: 3px 2px;
  position: relative;
  top: 10px;
}

#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#goes {
  --poster-color: transparent;
}

model-viewer#default-poster {
  background-size: cover;
}

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;
}

.fa-devtools::before {
    content: "\2699";
}
.devtools3d {
  background: lightgrey;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
  border: 1px solid grey;
  clear: both;
  color: black;
}
.dev3d-label {
    width: 200px;
    display: inline-block;
    font-weight: bold;
}
.dev3d-value {
    display: inline-block;
    width: 100px;
}
.dev3d-ctrls button {
    width: 35px;
}
select.dev3d-select {
    width: 180px;
}