#lazy-load-poster {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: url("../../assets/poster-damagedhelmet.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
#button-load {
  background-image: url("../../assets/ic_get_app_white_24dp.svg");
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-position: 6% 50%;
  background-color: #000;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  display: inline-block;
  padding: 10px 18px 9px 40px;
  font-weight: 500;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2), 0 0 4px rgba(0, 0, 0, 0.25);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 100;
}

/* Fullscreen css start */
#openBtn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 999999;
  fill: #333;
  cursor: pointer;
}
#closeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 999999;
  fill: #333;
  cursor: pointer;
  display: none;
}
#model.fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  position: fixed;
  z-index: 99999;
  background: #fff;
  animation-name: fullscreen;
  animation-duration: 0.5s;
  top: 0;
  left: 0;
}
#model.fullscreen model-viewer {
  height: 100%;
  width: 100%;
}
.fullscreen #openBtn {
  display: none;
}
#model.fullscreen #closeBtn {
  display: block;
}
/* Fullscreen CSS end */

#model .variantWrapper {
  background: #fff;
  width: fit-content;
  padding: 6px 13px;
  position: absolute;
  top: 10px;
  left: 10px;
}

#model #variant {
  width: auto;
}
#error {
  background-color: #ffffffdd;
  border-radius: 16px;
  padding: 16px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.3s;
}
#error.hide {
  opacity: 0;
  visibility: hidden;
  transition: visibility 2s, opacity 1s 1s;
}

.hotspots button {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: none;
  background-color: blue;
  box-sizing: border-box;
}

.hotspots button[slot="hotspot-hand"] {
  --min-hotspot-opacity: 0;
  background-color: red;
}

.hotspots button[slot="hotspot-foot"]:not([data-visible]) {
  background-color: transparent;
  border: 3px solid blue;
}

#annotation {
  background-color: #888888;
  position: absolute;
  transform: translate(10px, 10px);
  border-radius: 10px;
  padding: 10px;
}
/* This keeps child nodes hidden while the element loads */
:not(:defined) > * {
  display: none;
}

.camera_view .view-button {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: rgba(0, 0, 0, 0.8);
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 12px;
  font-weight: 700;
  max-width: 128px;
  overflow-wrap: break-word;
  padding: 0.5em 1em;
  position: absolute;
  width: max-content;
  height: max-content;
  transform: translate3d(-50%, -50%, 0);
}

/* slides */
:not(:defined) > * {
  display: none;
}

#model model-viewer {
  background-color: #eee;
  overflow-x: hidden;
  --poster-color: #eee;
}

#model #ar-button {
  background-image: url(../../assets/ic_view_in_ar_new_googblue_48dp.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 132px;
  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;
}

#model #ar-button:active {
  background-color: #e8eaed;
}

#model #ar-button:focus {
  outline: none;
}

#model #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 model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 175px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

#model model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

#model model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}

#model model-viewer > #ar-failure {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 175px;
  display: none;
}

#model model-viewer[ar-tracking="not-tracking"] > #ar-failure {
  display: block;
}

#model .slider {
  width: fit-content;
  text-align: center;
  overflow: hidden;
  position: absolute;
  bottom: 16px;
}

#model .slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin-left: 10px;
}

#model .slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  margin-right: 10px;
  border: none;
  display: flex;
  padding: 5px;
  border-radius: 5px;
}
#model .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#model .slide.selected {
  border: 2px solid #4285f4;
}

#model .slide:focus {
  outline: none;
}

#model .slide:focus-visible {
  outline: 1px solid #4285f4;
}

.text-center {
  text-align: center;
}
.w-100 {
  width: 100%;
}

/* animation key frame  */
@keyframes fullscreen {
  0% {
    top: 100%;
  }
  100% {
    top: 0;
  }
}

/* Media Query */
@media screen and (max-width: 576px) {
  #model .slides {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  #model .slide {
    width: 50px;
    height: 50px;
  }
}
