html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: gray;
}

:not(:defined)>* {
    display: none;
}

.test-div {
  width: 80%;
  height: 80%;
}

model-viewer {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    border-radius: 10px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    /* padding-bottom: 75px; */
    box-sizing: border-box;
    position: relative;
    background-color: #f8f8f8;
}

#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: 20px;
    padding: 0px 16px 0px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 500;
    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;
}

#logo-overlay {
    position: absolute;
    /* KEY CHANGE: Reduced bottom padding from 20px to 10px */
    bottom: -42px;
    right: 10px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
}

.sels {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 0;
  padding: 0.5rem;
}

.sel {
  position: absolute;
  display: inline-block;
  top: 20px;
  left: 20px;
  position: absolute;
  white-space: nowrap;
}

.btns {
    /* position: relative; */
    position: absolute;
    width: 200px;
    height: 50px;
    bottom: 0;
    margin-bottom: 0;
}

/* measure button */
.b1 {   
  position: absolute;
  display: inline-block;
  left: 110px;
  white-space: nowrap;
  /* border: 1px solid gray; 
  border-radius: 2px; */
}

/* explode and implode button */
.b2 {
  position: absolute;
  display: inline-block;
  left: 170px;
  white-space: nowrap;
  /* border: 1px solid gray;
  border-radius: 2px; */
}

/* change model button */
.b3 {
  display: inline-block;
  margin-left: 30px;
  position: absolute;
  white-space: nowrap;
  /* border: 1px solid gray;
  border-radius: 2px; */
}

  .dot {
    display: none;
  }
  
  .glass {
    background: rgba(255, 255, 255, 0.37);
    backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
    -webkit-backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem;
    border-radius: 0.5rem;
  }
  
  .dim {
    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);
    display: block;
    font-family: Futura, Helvetica Neue, sans-serif;
    /* font-size: 1em; */
    font-size: 1.6vh;
    font-weight: 700;
    max-width: 128px;
    overflow-wrap: break-word;
    padding: 8px;
    position: absolute;
    width: max-content;
    height: max-content;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: none;
    --min-hotspot-opacity: 0;
  }
  
  /* @media only screen and (max-width: 800px) {
    .dim {
      font-size: 3vw;
    }
  } */
  
  .dimensionLineContainer {
    pointer-events: none;
    display: block;
  }
  
  .dimensionLine {
    stroke: #16a5e6;
    stroke-width: 2;
    stroke-dasharray: 2;
  }
  
  .hide {
    display: none;
  }
  
  :not(:defined)>* {
    display: none;
  }

  #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;
  }

  #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: 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;
  }