@media screen and (orientation:portrait) {
  html, body, * {
    font-size: 4vmin;
  }
}
@media screen and (orientation:landscape) {
  html, body, * {
    font-size: 5vmin;
  }
}



#widget-ar-button{
  position: absolute;
  bottom: 0;
  left: 0;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
}

#widget-ar-button-second-line{
  position: absolute;
  bottom: 150px;
  left: 0;
  text-align: center;
  width: 100%;
}
#widget-ar-button-second-line a{
  display: inline-block;
  background: #fff;
  color: #999;
  margin-left: 0.5em;
  padding: 0.7em;
  margin-right: 0.5em;
  padding-top: 0.7em;
  padding-bottom: 0.5em;

  -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
  box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
  border-radius: 10em;
}

#widget-ar-button-second-line a:hover{
  background: #eee;
  cursor: pointer;
}

#widget-ar-button a, #image_popup_close_button{
  background: #999;
  display: inline-block;
  color: #000;
  font-weight: bold;
  margin-left: 0.5em;
  padding: 1em;
  margin-bottom: 30px;
  width: 30%;
  margin-right: 0.5em;
  border: 1px solid #aaa;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
  box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
  border-radius: 1em;
}

#widget-ar-button a:hover{
  background: #eee;
  cursor: pointer;
}



#widget-ar-button a.selected, #widget-ar-button-second-line a.selected{
  background: #fff;
  color: #111;
  border: 6px solid green;
}



#image_popup_close_button{
  right: 0px;
  position: absolute;
  text-align: center;
  color: #333;
  font-weight: bold;
  width: auto;
  margin: 1em;
}
#image_popup_close_button:hover{
  background: #fff;
  cursor: pointer;
}

#widget-ar-button a.selected:hover, #widget-ar-button-second-line a.selected:hover{
  background: #ddd;
  cursor: pointer;
}


canvas, #webcam-video, #test-video{
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit:  cover;
  transform: scale(1) !important;
}

/*
canvas#ar-canvas.mobile {
  transform-origin: 0 0;
  transform: rotate(-90deg) translateX(-100%);
}
canvas#ar-canvas {
  transform: scale(-1, 1);
}
*/

html{
  background-image: url("../img/loading.gif");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: 100vmin 80vmin;
}

#loading_overlay{
  width: 100%;
  height: 100%;
  background-image: url("../img/loading.gif");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  position: absolute;
}

.page .content{
  max-width: 70%;
  margin: 0px auto;
  border-radius: 1em;
  background: rgba(255,255,255,0.5);
  padding: 1em;
  margin-top: 3.5em;
  text-align: center;
}

html, body, #video-container, #page-main, .page{
  padding: 0px;
  margin: 0px;
  height: 100%;
  width: 100%;
}

#video-container{
  position: absolute;
}

#widget-info{
  bottom: 0px;
  left: 0px;
  position: absolute;
  background: red;
  width: 100%;
  text-align: center;
  color: white;
}

.info-content{
  padding: 0 !important;
  line-height: 1em;
}

.info-content span{
  display:none !important;
}


#widget-info span{
  display: inline-block;
  font-weight: bold;
  font-size: 0.5em;
}
#info-state{
  width: 100%;
  height: 10px;
  background: blue;
}

#widget-info.notice {
  background: rgba(255,255,255,.5);
  color: #444;
}
#widget-info.success{
  background: rgba(255,255,255,0.7);
  color: #333;
}
#widget-info.warning{
  background: rgba(255,255,255,0.7);
  color: #333;
}

#widget-info.notice #info-state{
  background: #888;
}
#widget-info.success #info-state{
  background: green;
}
#widget-info.warning #info-state{
  background: #444;
}



#widget-main-menu{
  top: 0px;
  right: 0px;
  position: absolute;
}





#widget-bottom-info{
  position: absolute;
  background: rgba(255,255,255,0.5);
  bottom: 0;
  width: calc(100% - 100px);
  text-align: center;
  height: auto;
  margin-left: 100px;
  overflow: scroll;
}

#widget-bottom-info table{
  width: 100%;
}

#widget-bottom-info table tr:nth-child(even) td{
  background: #ddd;
}

#widget-bottom-info table tr td:nth-child(2){
  background: #ccc;
}


#widget-ar-menu{
  top: 0px;
  left: 0px;
  position: absolute;
}

#widget-video-menu{
  bottom: 0px;
  left: 0px;
  position: absolute;
}

#widget-main-menu a{
  padding: 0.5em !important;
  background: rgba(255,255,255,0.3);
  margin: 0.5em;
  vertical-align: middle;
  display: block;
  border: 2px solid #fff;
  border-radius: 5em;
  line-height: 1em !important;
}
#widget-main-menu a:hover{
  padding: 0.5em !important;
  background: #ddd;
  cursor: pointer;
}


#widget-debug-menu a,
#widget-ar-menu a,
#widget-video-menu a{
  padding: 0.5em !important;
  background: white;
  vertical-align: middle;
  display: block;
}
#widget-debug-menu a:hover,
#widget-ar-menu a:hover,
#widget-video-menu a:hover{
  background:#f1f1f1;
}

#widget-top-info{
  top: 0px;
  left: 0px;
  position: absolute;
  width: 100%;
}

#progress-bar {
  width: calc(100% - 6px);
  height: 10px;
  background: #e0e0e0;
  padding: 3px;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
}

#progress-bar-fill {
  display: block;
  height: 10px;
  background: green;
  border-radius: 3px;
}

#text-container{
  padding: 1em;
  background: rgba(0,0,0,1);
  color: white;
  /*! margin-top: 0.5em; */
}

.page{
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  position: absolute;
  top: 0;
  left: 0;
}


#video-container .scan-region-highlight-svg,
#video-container .code-outline-highlight {
  stroke: black !important;
}

#video-container .scan-region-highlight {
  border-radius: 30px;
  outline: rgba(255, 255, 255, .8) solid 50vmax;
}

#video-container .code-outline-highlight {
  stroke: rgba(255, 0, 0, .5) !important;
  stroke-width: 15 !important;
  stroke-dasharray: none !important;
}

#flash-toggle {
  display: none;
}

hr {
  margin-top: 32px;
}
input[type="file"] {
  display: block;
  margin-bottom: 16px;
}


/*



.glide__slides, .glide__track {
  height: 100%;
  margin-bottom: 0;
}

.glide__pagination {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(33, 33, 33, 0.5);
  padding: 5px 8px;
  color: #ffffff;
}





.glide__controls {
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.glide__control {
  display: inline-flex;
  width: 7rem;
  background: transparent url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI3LjQ5MnB4IiBoZWlnaHQ9IjEyLjkzNXB4IiB2aWV3Qm94PSIwIDAgNy40OTIgMTIuOTM1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA3LjQ5MiAxMi45MzUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIGZpbGw9IiNGRkZGRkYiIHBvaW50cz0iNS42NTQsMTIuOTM0IDAsNi42NDEgNi4wMDksMCA3LjQ5MiwxLjM0MiAyLjY5MSw2LjY0NSA3LjE0MiwxMS41OTggIi8+PC9zdmc+") no-repeat center center;
  background-size: 1.8rem;
  filter: drop-shadow(1px 1px 2px #666);
  pointer-events: all;

}




 */
.glide {

  height: 100%;

  width: 100%;

}
.glide__slides, .glide__track {
  height: 100%;
  margin-bottom: 0;
}
#image_galery{
  width:100% !important;
  height:100% !important;
  background:#ddd;
  position:absolute;
  left:0;
  top:0;
}

#image_popup{
  width:100% !important;
  height:100% !important;
  background-color:rgba(255,255,255,1);
  position:absolute;
  left:0;
  top:0;
  background-image: url("../img/loading.gif");
  background-position: center;
  background-repeat: no-repeat;
}

.image-container,#image_popup_image_container{
  background-position: center;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
}
