body, html{
  height: 100%;
  width: 100%;
  overflowd: hidden;
}

body {
  color: #213870;
  font-weight: bold;
  font-size: 12px;
  margin: 0;
  padding: 0;
}
.backgroundcontainer {
  background-image: url(./img/fondo.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: 30% top;
  width: 100%;
  height: 100%;
}

/*model-viewer*/

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

model-viewer {
  width: 100%;
  height: 90%;
}


.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(ar_icon.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: 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;
}
#instrucciones {
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  padding: 5px;
  font-weight: bold;
}
@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;
}
/*RAFA*/
#gauge-container {
  width: 300px;
  height: 160px;
  margin: 20px auto;
  margin-bottom: 0px;
}

#model-viewer {
  width: 100%;
  height: 400px;
  transform: translateY(0px);
}

tspan {
  display: none;
}

/*CM_STYLES*/
#video-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  opacity: 0.8;
  filter: blur(3px);
}

.titulo {
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 3px;
}
*{
  color: #213870;
  font-weight: bold;
  font-size: 12px;
}
#referencias1{
  /*position: absolute;
  bottom: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 200000;*/
}
#referencias2{
  cursor: pointer;
}
#referencias3{
  cursor: pointer;
  margin: 10px auto 0;
}
.verde {
  background: #00C800;
}
.amarillo {
  background: #DFCA00;
}
.rojo {
  background: #ff3c00;
}
.iconos{
  margin-right: 10px;
  width: 30px;
}
td{
  vertical-align: top;
}
#gauge-positioner {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-image: url(./img/ar_hand_prompt.png);
  width: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  height: 160px;
  z-index: 100000;
  overflow: hidden;

}
#gauge-container {
  width: 300px;
  height: 160px;
  left: 50%;
  bottom: 0;
  position: absolute;
  transform: translate(-50%, 67px);
}
input#gauge-range {
  width: 270px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-appearance: none;
  opacity: 0;
}
.hide{
  display: none!important;
}
.show{
  display: block!important;
}
                        /***** Track Styles *****/
/***** Chrome, Safari, Opera, and Edge Chromium *****/
input[type="range"]::-webkit-slider-runnable-track {
  height: 220px;
}

/******** Firefox ********/
input[type="range"]::-moz-range-track {
  height: 220px;
}
.scroller {
  overflow-y: scroll;
  height: 70vh;
  display: block;
}
#log {
  display: none;

}
#btn{
  text-align: center;
  background: white;
  padding: 5px;
}
@media only screen and (min-width: 768px) {
  *{
    font-size: 14px;
  }
  .scroller {
    overflow-y: unset!important;
    height: unset!important;
  }
  .iconos {
    width: 50px!important;
  }
}
@media only screen and (max-width: 937px) and (orientation: landscape)  {
  .fondotexto {
    background: rgba(255, 255, 255, .5)!important;
}
  #model-viewer {
    height: 360px!important;
  }
  #gauge-positioner {
    left: 18%;
  }
  
  #referencias1 {
    /*bottom: 0;
    right: 0;
    left: unset;*/
  }
  * {
    font-size: 11px;
  }
}
