
body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow-y: hidden;
}

.progress-container {
  position: absolute;
  bottom: 0%;
  width: 80%;
  left: 10%;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-container p{
  font-size: 1vw;
  padding: 0;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}

#spinner{
  width: 4vw;
}

.empty{
  pointer-events: none;
  opacity: 0.8;
}

#confirmDiv{
  display: none;
  position: absolute;
  width: 100%;
  height: 100svh;
  background-color: lightgray;
  z-index: 999999999;
  color: #1e1e1e;
}

#confirmBtn{
  animation: pulse 2s infinite;
  position: absolute;
  justify-self: center;
  top: 75%;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  padding: 1rem 1.5rem ;
  border-radius: 0.5rem;
  border: solid 1px lightgray;
  color: #1e1e1e;
  box-shadow: 0 0 0 0 rgba(220, 220, 220, 0.7);
}

#confirmLogo{
  width: 60%;
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translateX(-50%) translateY(-50%);
  opacity: 0.6;
}

#materialsDiv{
    /* position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%); */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#fakeButton{
  width: 0.9vw;
  height: 0.9vw;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  position: absolute;
  left: 15.5%;
  padding: 0;
  bottom: 44%;
}

#fakeButton2{
  width: 0.9vw;
  height: 0.9vw;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  position: absolute;
  left: 15.5%;
  padding: 0;
  bottom: 23.5%;
}

#description{
  position: absolute;
  font-size: 0.9vw;
  line-height: 1.2;
  left: 15%;
  bottom: 52.5%;
  font-family: 'Roboto', sans-serif;
  color: rgba(0, 0, 0, 0.6);
  padding-right: 3vw;
}

label{
  font-size: 1.2vw;
}

#osnovaFake{
  display: none;
}

.checkbox{
  width: 0.9vw;
  height: 0.9vw;
}

#ar-button {
  visibility: hidden;    
}

#qrWindow{
  position: absolute;
  background: white;
  backdrop-filter: blur(18px);
  width: 24vw;
  height: 50%;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 10000;
  border: solid 0.5pt #e6e6e6;
  border-radius:1vw;
}

#qrcode img{
  width: 100%;
  transform: translateY(-10%);
}

#qrImg{
  position: relative;
  width: 300px;
  height: 300px;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-60%);
}

#qrText{
  position: absolute;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
  font-size: 1.2vw;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  color: #1e1e1e;
}

#qrText2{
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  font-size: 0.9vw;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  color: #3f3f3f;
  width: 80%;
}

#qrLogoDiv{
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid gray;
  bottom: 0;
  position: absolute;
  width: 100%;
  height: 10%;
}

#qrLogo{
  width: 2vw;
}

#qrcode{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-65%);
}

#qrBtn{
  position: absolute;
  width: 100vw;
  height: 100vh;
  font-size: 1.5vw;
  background: none;
  border: none;
  color: #505050;
  z-index: 99999;
}
  
.toggleBtn {
  position: absolute;
  width: 1vw;
  height: 1vw;
  background: darkgray;
  top: 50%;
  left: 100%;
  transform: translateY(-55%) rotate(0deg);
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  transition: 0.4s cubic-bezier(0.2, 0.6, 0.3, 1.1);
  margin-left: 1vw;
}

.toggleBtn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 2px;
  width: 50%;
  background: white;
}

.toggleBtn:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 50%;
  width: 2px;
  background: white;
}

.toggleBtn.clicked {
  transform: translateY( -55%) rotate(360deg);
  background: darkgray;
}

.toggleBtn.clicked:before {
  width: 0;
}


#dimensionsDiv {
  font-family: 'Roboto', sans-serif;
  position: absolute;
  max-width: unset;
  transform: unset;
  pointer-events: auto;
  z-index: 100;
  padding: 0;
  left: 3%;
  top: 5%;
  font-weight: 400;
  font-size: 2em;
}

.dot{
  display: none;
}

.dim{
  background: rgba(255, 255, 255, 0);
  border-radius: 4px;
  border: none;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.4);
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 1.25em;
  font-weight: 700;
  max-width: 180px;
  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;
}

.dim2{
  background: rgba(255, 255, 255, 0);
  border-radius: 4px;
  border: none;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.6);
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 1.5em;
  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);
  pointer-events: none;
  --min-hotspot-opacity: 0;
}


.dimensionLineContainer{
  pointer-events: none;
  display: block;
}

.dimensionLine{
  stroke: rgba(0, 0, 0, 0.3);
  stroke-width: 2;
  stroke-dasharray: 3;
  marker-end: url(#arrowMarker);
  marker-start: url(#arrowMarker2);
}

.arrowMarker{
  fill: rgba(0, 0, 0, 0.3);
}

.hide{
  display: none;
}
/* This keeps child nodes hidden while the element loads */
:not(:defined) > * {
  display: none;
}
  /* This keeps child nodes hidden while the element loads */
  :not(:defined)>* {
    display: none;
  }

  #loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background-color: #b7b2a5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999999;
    flex-direction: column;
  }

  #loading-animation img {
    width: 100px;
    height: 100px;
  }

  .spinner {
    /* Spinner size and color */
    width: 2rem;
    height: 2rem;
    border-top-color: #ffffff;
    border-left-color: #ffffff;

    /* Additional spinner styles */
    animation: spinner 400ms linear infinite;
    border-bottom-color: transparent;
    border-right-color: transparent;
    border-style: solid;
    border-width: 2px;
    border-radius: 50%;  
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
  }

  .spinner-large {
    width: 5rem;
    height: 5rem;
    border-width: 6px;
    animation: spinner 1s linear infinite;
  }

  #loadingText{
    color: white;
    font-size: 18px;
    font-family:'Roboto', sans-serif;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    position: absolute;
  }

  model-viewer::part(default-progress-bar){
    display: none;
  }

  /* Animation styles */
  @keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  model-viewer {
    overflow-x: hidden;
    display: block;
    position: relative;
    width: 100%;
    height: 100svh;
  }

  .tekst {
    left: 15%;
    position: absolute;
    top: 17%;
    font-family: 'Roboto', sans-serif;
    line-height: 100svh;
  }

  .tekst h1 {
    font-size: 2.5vw;
  }

  .tekst p {
    font-weight: 400;
    font-size: 1.5vw;
  }

  #ar-button {
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family:'Roboto', sans-serif;
    font-size: 1rem;
    padding: 0.7em 0.5em 0.7em 0em;
    color: white;
    background: lightgray;
    border: darkgray 3px solid;
    border-radius: 1vw;
    letter-spacing: 0.05em;
    border-radius: 1rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: absolute;
    right: 3%;
    top: 5%;
    width: 20vw;
    height: 5vw;
    box-shadow: 0 0 0 0 rgba(220, 220, 220, 0.7);
    z-index: 9999;
  }

  #ar-button2 {
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-family:'Roboto', sans-serif;
    font-size: 1vw;
    padding: 0.7em 0.5em 0.7em 0em;
    color: #1e1e1e;
    background: rgba(242,242,242,0.9);
    border: #e6e6e6 0.5pt solid;
    letter-spacing: 0.05em;
    border-radius: 1vw;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: absolute;
    right: 3%;
    top: 5%;
    width: 18.2vw;
    height: 4vw;
    box-shadow: 0 0 0 0 rgba(220, 220, 220, 0.7);
    z-index: 9999;
  }

  #ar-button:active {
    background-color: lightgray;
  }

  #ar-button:focus {
    outline: none;
  }

  #ar-button:focus-visible {
    outline: 1px solid lightgray;
  }
  #ar-button:hover {
    background: lightgray;
  }

  .option{
    width: 4vw;
    height: 3vw;
    background-size: cover;
    margin: 0.2vw;
    border-radius: 5px;
  }

  #logo{
    position: absolute;
    z-index: 999999;
    width: 15%;
    left: 13%;
    top: 5%;
    box-shadow: none;
    /* transform: translateX(-50%); */
  }

  #logoM{
    position: absolute;
    z-index: 999999;
    width: 5%;
    left: 2%;
    top: 3%;
    box-shadow: none;
    display: none;
  }

  #buttonImg{
    scale: 0.55;
  }

  #buttonImg2{
    width: 2vw;
  }

  #gif img{
    height: 250px;
    width: 250px;
  }

  #osnova2{
    font-size: xx-large;
    justify-content: center;
    display: flex;
    z-index: 9999;
    position: absolute;
    width: 70%;
    justify-content: space-between;
    left: 19%;
    flex-direction: column;
  }

  #osnova{
    font-size: xx-large;
    justify-content: center;
    display: flex;
    z-index: 9999;
    position: absolute;
    width: 70%;
    justify-content: space-between;
    left: 19%;
    flex-direction: column;
  }

  .controls{
    position: absolute;
    width: 100%;
    bottom: 22.5%;
  }

  .controls2{
    position: absolute;
    width: 100%;
    bottom: 43%;
  }

  @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);
    }
  }

  @media only screen and (min-width: 1200px) {
    .option{
      width: 4vw;
      height: 3vw;
    }

  }

  model-viewer>#ar-prompt {
    position: absolute;
    left: 50%;
    bottom: 175px;
    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;
  }

  model-viewer>#ar-failure {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 175px;
    display: none;
  }

  model-viewer[ar-tracking="not-tracking"]>#ar-failure {
    display: block;
  }

  .slider {
    width: 100%;
    text-align: center;
    overflow: hidden;
    position: absolute;
    bottom: 16px;
  }

  .slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .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-radius: 10px;
    border: none;
    display: flex;
  }

  .slide.selected {
    border: 2px solid #4285f4;
  }

  .slide:focus {
    outline: none;
  }

  .slide:focus-visible {
    outline: 1px solid #4285f4;
  }

  html,
  body {
    background: rgb(255,255,255);
  }

  .container {
    position: absolute;
    right: 3%;
    top: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  

  @media  (max-device-width: 780px) {

    .progress-container{
      bottom: 5%;
    }

    .progress-container p{
      font-size: 3vw;
      padding: 0;
      margin: 0;
      font-family: 'Roboto', sans-serif;
      font-weight: 400;
    }
    
    #spinner{
      width: 12vw;
    }

    .dim{
      font-size: 1.2em;
    }

    #confirmBtn{
      scale: 1;
      left: 50%;
      transform: translateX(-50%);
    }

    html, body{
      max-height: 100svh;
      background: rgba(220,220,220,1);
    }

    /* #mw{
      height: 75%;
    } */

    #ar-button{
      width: 55vw;
      height: 15vw;
    }

    #buttonImg{
      /* scale: 0.25; */
      height: 50px;
      width: 50px;
      padding: 0;
      margin: 0;
      /* margin-left: -15%; */
    }

    #dimensionsDiv{
      left: 5%; 
    }

    #description{
      position: absolute;
      font-size: 2.8vw;
      line-height: 1.2;
      left: 10%;
      font-family: 'Roboto', sans-serif;
      color: rgba(0, 0, 0, 0.6);
      padding-right: 10vw;
      top: 3%;
    }

    #ar-button {
      visibility: visible;
      /* top: 85%;
      right: 50%;
      transform: translateX(50%); */
    }

    #ar-button p{
      margin: 0;
      padding: 0;
      /* margin-left: -10%; */
      font-size: 4vw;
      font-weight: 400;
      color: #1e1e1e;
    }

    #logo{
      display: none;
    }

    #logoM{
      display: block;
      width: 10vw;
      left: 95%;
      transform: translate(-100%);
    }

    #loading-animation{
      scale: 1;
    }

    #controls{
      width: 100%;
      height: 1000px;
      top: 75%;
      background: rgba(220,220,220,1);
    }

    #viewer{
      height: 75svh;
      width: 100%;
      left: 0%;
      background: rgb(255,255,255);
      z-index: 99999;
      position: fixed;
    }

    #controls1{
      font-size: 5vw;
      bottom: 8%;
      left: 10%;
    }

    #controls2{
      font-size: 5vw;
      top: 42%;
      left: 26%;
    }

    .option{
      height: 11vw;
      width: 14vw;
      margin: 2vw;
      border-radius: 10px;
    }

    #osnova{
      width: 50%;
      left: 25%;
    }

    .controls{
      bottom: 15%;
    }

    .toggleBtn{
      width: 5vw;
      height: 5vw;
      margin-left: 1.5vw;
    }

    #ar-button2{
      display: none;
    }

    #gif{
      scale: 1;
    }

    #loadingText{
      scale: 1;
    }

    .tekst {
      display: none;
    }

    #osnova2{
      left: 50%;
      transform: translateX(-50%);
      bottom: 10%;
      width: 75%;
    }

    #osnova{
      left: 50%;
      transform: translateX(-50%);
      bottom: 10%;
      width: 75%;
    }

    #controlsText2{
      bottom: 72%;
      left: 15%;
      font-size: 4vw;
    }

    /* #materialsDiv{
      width: 60%;
      bottom: 3%;
      position: absolute;
    } */

    .btnDiv{
      /* display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;   */
      text-align: center;
    }

    #controlsText{
      bottom: 32%;
      left: 15%;
      font-size: 4vw;
    }

    #fakeButton{
      left: 10.5%;
      width: 3vw;
      height: 3vw;
      bottom: 72.5%;
    }

    #fakeButton2{
      left: 10.5%;
      width: 3vw;
      height: 3vw;
      bottom: 32.5%;
    }

    label{
      font-size: 4vw;
    }

    .checkbox {
      width: 3vw;
      height: 3vw;
    }

    #disclaimer{
      font-size: 2vw;
      bottom: 0%;
    }

    .tekstM {
      left: 6%;
      position: fixed;
      top: 12%;
      font-family: 'Roboto', sans-serif;
      line-height: 100svh;
      display: block !important;
      z-index: 999999;
    }

    .tekstM h1{
      font-size: 5vw;
    }

    .tekstM p{
      font-size: 3vw;
    }

    .controls2{
      bottom: 39%;
    }

  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(180, 180, 180, 0.7);
    }

    70% {
      box-shadow: 0 0 0 20px rgba(180, 180, 180, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(180, 180, 180, 0);
    }
  }

  @keyframes progress-animation {
    0% {
      transform: translateX(-100%);
    }
    90% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(200%);
    }
  }