@font-face { font-family: IkeaLatinRegular; src: url('/fonts/Noto_IKEA_Latin/NotoIKEALatin-Regular.ttf'); } 
:not(:defined) > * {
  display: none;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

model-viewer {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
}

.BackButton 
{
  left: 100%;
  position: sticky;
  cursor: pointer;
}

.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 {
  background-image: url(images/ar.svg);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #ffffff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 16px;
  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;
}

.VariantText
{
  text-align: center;
  display: block;
  position: fixed;
  width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-wrap: balance;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: black;
  margin-left: -7px;
}

@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;
}
@media only screen and (min-width: 800px) {
  #controls {
    position: absolute;
    bottom: 135px;
    right: 50%;
    max-width: 50%;
    pointer-events: auto;
    z-index: 100;
    transform: translateX(50%);
    border-radius: 10px;
    display: none;
    height: 176px;
    /* overflow: auto; */
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.25);
  }
  #controlsDimension {
    position: absolute;
    bottom: 135px;
    right: 50%;
    max-width: 50%;
    pointer-events: auto;
    z-index: 100;
    transform: translateX(50%);
    border-radius: 10px;
    display: none;
    height: 176px;
    /* overflow: auto; */
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.25);
  }
  .VariantButton
  {
    top: 7px;
    position: relative;
    width: 120px;
    height: 120px;
    margin: 3px;
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 10px;
    border: white;
    background: white;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.25);
  }
  .VariantPreview
  {
    width: 100px;
    height: 100px;
  }
}

.dot{
  display: none;
}

.dim{
  background: #fff;
  border-radius: 20px;
  border-width: 1px;
  border-style: double;
  border-color: #0058a3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: #0058a3;
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 1em;
  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;
}
.dim2{
  background: #fff;
  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-weight: 700;
  max-width: 128px;
  overflow-wrap: break-word;
  padding: 0.5em 0.5em;
  position: absolute;
  width: max-content;
  height: max-content;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  --min-hotspot-opacity: 0;
}
.svg-dimension-arrow{
  fill:#0058a3;
}
.qrCodeModal{
  z-index: 9999;
  position: absolute;
  right: 50%;
  bottom: 125px;
  width: 326px;
  height: 410px;
  transform: translateX(50%);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.25);
  text-align: center;
  display: none;
  align-content: center;
}
.qrHeader{
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 30px;
  color: rgb( 72, 72, 72);
}
.qrText{
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: .875rem;
  color: rgb( 72, 72, 72);
}
.bottomPanel{
  z-index: 9999;
  position: absolute;
  width: auto;
  height: auto;
  bottom: 60px;
  right: 50%;
  transform: translateX(50%);
}
.ARButton{
  margin: 5px;
  border-radius: 40px;
  width: 50px;
  height: 50px;
  border: white;
  background: url(images/IconsV2/ar.svg) no-repeat center;
  background-size: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  background-color: white;
}
.ARButton:hover{
  /* background: url(images/ARIcon.svg) no-repeat center; */
  background-size: 70%;
  transition: 0.3s;
}
.ConfigButton{
  margin: 5px;
  border-radius: 40px;
  width: 50px;
  height: 50px;
  border: white;
  background: url(images/IconsV2/colour-fan.svg) no-repeat center;
  background-size: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  background-color: white;
}
.ConfigButton:hover{
  /* background: url(images/Config.svg) no-repeat center; */
  background-size: 70%;
  transition: 0.3s;
}
.DimensionVariantButton{
  margin: 5px;
  border-radius: 40px;
  width: 50px;
  height: 50px;
  border: white;
  background: url(images/IconsV2/ruler.svg) no-repeat center;
  background-size: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  background-color: white;
}
.DimensionVariantButton:hover{
  /* background: url(images/Config.svg) no-repeat center; */
  background-size: 70%;
  transition: 0.3s;
}
.DimensionButton{
  margin: 5px;
  border-radius: 40px;
  width: 50px;
  height: 50px;
  border: white;
  background: url(images/IconsV2/ruler-with-arrows.svg) no-repeat center;
  background-size: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  background-color: white;
}
.DimensionButton:hover{
  /* background: url(images/Dimension.svg) no-repeat center; */
  background-size: 70%;
  transition: 0.3s;
}
.LightButton{
  margin: 5px;
  border-radius: 40px;
  width: 50px;
  height: 50px;
  border: white;
  background: url(images/kapali.svg) no-repeat center;
  background-size: 35%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  background-color: white;
}
.LightButton:hover{
  /* background: url(images/Dimension.svg) no-repeat center; */
  background-size: 50%;
  transition: 0.3s;
}
.LightButtonActive{
  margin: 5px;
  border-radius: 40px;
  width: 50px;
  height: 50px;
  border: white;
  background: url(images/acik.svg) no-repeat center;
  background-size: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.LightButtonActive:hover{
  /* background: url(images/Dimension.svg) no-repeat center; */
  background-size: 70%;
  transition: 0.3s;
}
.AnimationButton{
  margin: 5px;
  border-radius: 40px;
  width: 50px;
  height: 50px;
  border: white;
  background: url(images/PlayButton.svg) no-repeat center;
  background-size: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  background-color: white;
}
.AnimationButton:hover{
  /* background: url(images/Dimension.svg) no-repeat center; */
  background-size: 70%;
  transition: 0.3s;
}
.HotspotPanelParent
{
  width: 100%;
  height: 100%;
  z-index: 99;
  position: absolute;
  justify-content:center;
  align-items: center;
  display: flex;
}
.HotspotPanel
{
  width: 250px;
  /* height: 350px; */
  display: flex;
  text-align: left;
  overflow: auto;
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.HotspotPanel-wrapper ::slotted(*) {
  pointer-events: initial;
}
.HotspotPanelClose
{
  width: 30px;
  height: 30px;
  position: absolute;
  margin-left: 220px;
  cursor: pointer;
}
.HotspotPanelText
{
  width: 300px;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 10px;
  margin-right: 10px;
  color: #111111;
  font-family: IkeaLatinRegular;
}
@media only screen and (max-width: 800px) {
  .dim{
    font-size: 3vw;
  }
  
  #controls {
    position: absolute;
    bottom: 135px;
    right: 50%;
    max-width: 72%;
    pointer-events: auto;
    z-index: 100;
    transform: translateX(50%);
    border-radius: 10px;
    display: none;
    height: 125px;
    /* overflow: auto; */
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.25);
  }
  #controlsDimension {
    position: absolute;
    bottom: 135px;
    right: 50%;
    max-width: 72%;
    pointer-events: auto;
    z-index: 100;
    transform: translateX(50%);
    border-radius: 10px;
    display: none;
    height: 125px;
    /* overflow: auto; */
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.25);
  }
  .VariantButton
  {
    top: 1px;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 3px;
    cursor: pointer;
    border-radius: 10px;
    border: white;
    background: white;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.25);
    margin-left: 10px;
    margin-right: 10px;
  }
  .VariantPreview
  {
    width: 65px;
    height: 65px;
  }
  .VariantText
  {
    text-align: center;
    position: fixed;
    /* bottom: -5px; */
    width: 90px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    text-wrap: balance;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: black;
    margin-left: -16.5px;
  }
}

.dimensionLineContainer{
  pointer-events: none;
  display: block;
}

.dimensionLine{
  stroke: #0058a3;
  stroke-width: 1;
}

.hide{
  display: none;
}

:not(:defined) > * {
  display: none;
}

.ButtonFilter
{
  filter : invert(100%);
  background-color: #ffffff 
}

.ButtonSelected
{
  border: solid;
  border-color: #0058a3;
  border-width: 1px;
}

.hotspot{
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: none;
  background-color: #00000096;
  color: white;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  font-family: monospace;
}
.hotspotIcon{
  width: 20px;
  height: 20px;
  filter : invert(100%);
}

.annotation{
  background-color: #f5f5f5;
  color: #111111;
  position: absolute;
  transform: translate(20px, 20px);
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 200px;
  font-family: IkeaLatinRegular;
  text-align:left;
}
/* This keeps child nodes hidden while the element loads */
:not(:defined) > * {
  display: none;
}
.annotation-wrapper ::slotted(*) {
  pointer-events: initial;
}
@media only screen and (max-width: 700px) and (min-width: 700) {
  
  .VariantButton
  {
    top: 1px;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 3px;
    cursor: pointer;
    border-radius: 10px;
    background: white;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.25);
  }
  .VariantText
  {
    text-align: center;
    position: fixed;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    text-wrap: balance;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: black;
    width: 25%;
    margin-left: -13px;
  }
}
@media only screen and (max-width: 570px) {
  .bottomPanel button{
    margin: 5px;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    border: white;
    background-size: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    background-color: white;
}
}
@media only screen and (max-width: 320px) {
  .bottomPanel button{
    margin: 5px;
    border-radius: 40px;
    width: 30px;
    height: 30px;
    border: white;
    background-size: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    background-color: white;
}
}