@import url('https://fonts.googleapis.com/css?family=Abel|Archivo+Narrow|PT+Sans+Narrow|Saira+Semi+Condensed|Raleway|Crete+Round1111&display=swap');
@import url("./reporter.css");
/*@import url("./animations.css");*/

:root{
  --background-color: rgb(65, 65, 65);
  --qr-background-color: rgba(65, 65, 65, 0.8);
  --accent-color: rgb(28, 101, 159);
  --gradient-inner-color: rgba(200, 200, 200, 0.5);
  --shadow-color: #000;
  --header-image: url('/showcast/src/img/header.png');
  --button-color: #FFF;
  --button-highlight-color: rgb(74, 158, 238);
  --ar-button-color: rgba(0, 0, 0, 0.6);
  --ar-button-text-color: #FFF;
  --poster-color: rgba(0, 0, 0, 0);
  --splash-screen-logo: url('about:blank');
  --splash-screen-color: rgba(24, 40, 51, 1);

  --top-right-button-margin-right: 0.75rem;
  --default-fade-transition: opacity 1s ease 0s, height 0s linear 1s;
  --touchX: 0px;
  --touchY: 0px;
}

html{
  height: 100%;
  overflow: hidden;
/*  OBSOLETE? Can barely find info on this, allegedly replaced
              with the vw/vh unit type -DC20240330
  height: -webkit-fill-available;
  height: fill-available;
*/
}

body{
  /*overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  height: 100%;
  /*height: calc(var(--vh, 1vh) * 100);* /
  width: 100vw;*/
  overflow: hidden;
  position: relative;
  margin: 0;
  height: 100%;
  width: 100vw;
/*  OBSOLETE? Can barely find info on this, allegedly replaced
              with the vw/vh unit type -DC20240330
  height: -webkit-fill-available;
  height: fill-available;
*/
  background-color: #000;
}
body.not-ios {
  overflow: hidden;
  position: absolute;
  height: calc(var(--vh, 1vh) * 100);
}

body.smart-glasses{
  background-color: #000;
}

#leftArrow, #rightArrow{
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: 0.5;
  white-space: nowrap;
  z-index: 3;
}

#leftArrow::before, #rightArrow::before{
  content: "";
  display: inline-block;
  width: 0;
  height: 100%;
  vertical-align: middle;
}

#leftArrow > img, #rightArrow > img{
  vertical-align: middle;
  max-width: 100%;
  position: relative;
  bottom: 50%;
  display: inline-block;
}

body.slam-mode #leftArrow,
body.slam-mode #rightArrow{
  display: none!important;
}
body.slam-mode #topBtnBar,
body.slam-mode #RBtnCon{
 opacity: 0;
}
body.slam-mode #ar-button{
 opacity: 1;
 display: inline-block!important;
 background-image: url(/static/img/Escape.png);
}


#rightArrow > img{
  transform: rotate(180deg);
}

#leftArrow{
  top: 50%;
  left: 0%;
}

#rightArrow{
  right: 0px;
  top: 50%;
}

body.smart-glasses #leftArrow{
  left: 10%;
}

body.smart-glasses #rightArrow{
  right: 10%;
}

/* Stupid touch effect */
#touch-point {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 200;
  pointer-events: none;
}

body #touch-point #touch-polygon-container {
  position: fixed;
  left: var(--touchX);
  top: var(--touchY);
  transform: translate(-50%,-50%);

  transition: all 333ms ease-in 0s;
  width: 200vh;
  height: 200vh;
}

body.touched #touch-point #touch-polygon-container {
  left: var(--touchX);
  top: var(--touchY);

  transition: all 0s linear 0s;
  width: 5px;
  height: 5px;
}

body #touch-point .touch-polygon {
  fill: #00000000;
  transform-origin: center;
  transform: rotate(30deg);

  transition: all 200ms linear 0s;
  stroke-opacity: 0;
  stroke-width: 8px;
  stroke: #111;
}

body.touched #touch-point .touch-polygon {
  transition: all 0s;
  stroke-opacity: 0.5;
  stroke: #fff;
  stroke-width: 2px;
}

/* Loading spinner */
#loadingSpinner {
  position: relative;
  pointer-events: none;
  height: 100vh;
  width: 100vw;
  z-index: 8; /* Two below TOU */
  transition: var(--default-fade-transition);
  opacity: 0;
  display: none;
}

#loadingSpinnerText {
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.9));
  font-family: 'Raleway', sans-serif!important;
  text-transform: uppercase;
  font-size: 3em;
  line-height: 3px;
  color: white;
  position: absolute;
  right: 0;
  left: 0;
  top: 50vh;
  text-align: center;
  z-index: 9; /* hard-coded for now */
}

#loadingSpinnerAsset {
  display: none;
  width: 100%;
  height: 100%;
}

body.loading-spinner-ready.loading #loadingSpinnerAsset {
  display: block;
}
body.loading:not(
  /*.splash-screen,*/
  .start-menu,
  .showing-tou,
  .cast-loaded,
  .cast-tracked,
  .searching,
  .qr-scan) #loadingSpinner {
  opacity: 1;
  display: flex;
}

body.start-menu #loadingSpinner,
body.showing-tou #loadingSpinner,
body.cast-loaded #loadingSpinner,
body.tracking #loadingSpinner,
body.searching #loadingSpinner,
body.qr-scan #loadingSpinner {
  opacity: 0;
}

body.loading.share-targeting.toast-root .toast-parent {
  display: none;
}

body.ready:not(.showing-tou) #MainUI {
  display: block;
}

body #TOU {
  display: flex;
  transition: opacity 1s ease 0s, height 0s linear 1s;
}

body.showing-tou #TOU {
  opacity: 1;
}

body:not(.showing-tou) #TOU {
  opacity: 0;
}

body.accepted-tou #TOU {
  display: none;
}

/* Splash screen */
#splashScreen{
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--splash-screen-color);
  opacity: 0;
  pointer-events: none;
  display: none;
  text-align: center;
  overflow: hidden;
  transition: opacity 1.5s ease 500ms;
}

#splashScreen::before{
  content: "";
  height: 100%;
  vertical-align: middle;
  display: inline-block;
  width: 0;
}

body.hasSplashScreenLogo.splash-screen.accepted-tou #splashScreen.splash-image-loaded{
  opacity: 1;
  display: block;
  transition: opacity 2s ease 1s, height 0s linear 3s;
}

body.ready.hasSplashScreenLogo.accepted-tou.renderer-loaded #splashScreen.splash-image-loaded{
  opacity: 0;
  height: 0;
}

.splash-screen-image,
.splash-screen-branding{
  pointer-events: none;
  width: 60%;
  height: 60%;
  transition: width 2s ease 1s, height 2s ease 1s, bottom 2s ease 1s, left 2s ease 1s;
  background-image: url('/static/img/SplashScreen/3300.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  margin: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}

.splash-screen-image{
  filter: drop-shadow(0 0 0.1px rgba(24, 40, 51, 1));
}

.splash-screen-branding{
  display: none;
  position: relative;
  top: -7.5%;
}

body.hasSplashScreenLogo .splash-screen-branding{
  display: inline-block;
  background-image: var(--splash-screen-logo);
}

body.hasSplashScreenLogo .splash-screen-image{
  position: absolute;
  bottom: 0;
  height: 15%;
  width: 60%;
  left: 20%;
  vertical-align: bottom;
}

body.ready.hasSplashScreenLogo.accepted-tou.renderer-loaded .splash-image-loaded .splash-screen-image,
body.ready.hasSplashScreenLogo.accepted-tou.renderer-loaded .splash-image-loaded .splash-screen-branding{
  width: 40%;
  height: 40%;
}

body.ready.hasSplashScreenLogo.accepted-tou.renderer-loaded .splash-image-loaded  .splash-screen-image{
  width: 30%;
  height: 7.5%;
  bottom: 3.75%;
  left: 35%;
}

body.renderer-loaded .splash-image-loaded .splash-screen-link{
  bottom: 100%;
}

body.splashScreenLight .splash-screen-image{
  background-image: url('/static/img/SplashScreen/3300Dark.png');
  filter: drop-shadow(0 0 0.1px rgba(255, 255, 255, 1));
}

body.splash-screen .splash-screen-link{
  pointer-events: auto;
  height: 100%;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: bottom 0s 1.25s;
}

body.hasSplashScreenLogo .splash-screen-link{
  height: 15%;
}

@media screen and (max-width: 2750px) {
  body.splash-screen .splash-screen-image{
    background-image: url('/static/img/SplashScreen/1650.png');
  }

  body.hasSplashScreenLogo.splashScreenLight .splash-screen-image{
    background-image: url('/static/img/SplashScreen/1650Dark.png');
  }
}

@media screen and (max-width: 1834px) {
  .splash-screen-image{
    background-image: url('/static/img/SplashScreen/1100.png');
  }

  body.hasSplashScreenLogo.splashScreenLight .splash-screen-image{
    background-image: url('/static/img/SplashScreen/1100Dark.png');
  }
}

@media screen and (max-width: 1375px) {
  .splash-screen-image{
    background-image: url('/static/img/SplashScreen/825.png');
  }

  body.hasSplashScreenLogo.splashScreenLight .splash-screen-image{
    background-image: url('/static/img/SplashScreen/825Dark.png');
  }
}

@media screen and (max-width: 1100px) {
  .splash-screen-image{
    background-image: url('/static/img/SplashScreen/660.png');
  }

  body.hasSplashScreenLogo.splashScreenLight .splash-screen-image{
    background-image: url('/static/img/SplashScreen/660Dark.png');
  }
}

@media screen and (max-width: 550px) {
  .splash-screen-image{
    background-image: url('/static/img/SplashScreen/330.png');
  }

  body.hasSplashScreenLogo.splashScreenLight .splash-screen-image{
    background-image: url('/static/img/SplashScreen/330Dark.png');
  }
}

@media screen and (max-width: 367px) {
  .splash-screen-image{
    background-image: url('/static/img/SplashScreen/220.png');
  }

  body.hasSplashScreenLogo.splashScreenLight .splash-screen-image{
    background-image: url('/static/img/SplashScreen/220Dark.png');
  }
}

#MainUI{
  height: 100%;
  width: 100%;
  display: none;
}

.touchable {
  transition: all 125ms ease-out 0s;
}

.touchable:active {
  filter: blur(2px) brightness(0.6);
}

.touchable:not(.modal):active {
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  transform: scale(0.9);
  filter: blur(2px) brightness(133.33%);
}



#cssRendererContainer{
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

body.share-targeting #cssRendererContainer,
body.cast-visible #cssRendererContainer{
  pointer-events: auto;
}


/*
body:not(.cast-visible) #cssRendererContainer > div > div{
  visibility: hidden;
}
body.share-targeting #cssRendererContainer{
  pointer-events: none;
}
*/

#glcanvas {
  z-index: 3;
}

#cssRendererContainer {
  z-index: 4;
}

#overlay-canvas {
  z-index: 5;
}

#glcanvas,
#overlay-canvas{
  width:100%!Important;
  height:100%!Important;
  object-fit: cover;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
}

#map-div {
  width: 100vw;
  height: 100vh;
}

#dummy-canvas{
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: none;
  pointer-events: none;
}

body.tracking #dummy-canvas{
  display: block;
}

body.smart-glasses #dummy-canvas{
  visibility: hidden;
}

body.qr-scan #dummy-canvas{
  visibility: hidden;
}

body.renderer-loaded #glcanvas,
body.renderer-loaded #overlay-canvas{
  visibility: visible;
}

body.share-targeting #glcanvas,
body.share-targeting #overlay-canvas,
body.qr-scan #glcanvas,
body.qr-scan #overlay-canvas{
  visibility: hidden;
}

#video{
  width:100%;
  height:100%;
  object-fit: cover;
  z-index: 1;
}

body.smart-glasses #video{
  visibility: hidden;
}

canvas{
  /* prevent canvases from being selected and blocking clicks */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: rgba(255,255,255,0);
}

.show {
  display: block;
}

.show-flex {
  display: flex;
}

/* The Modal (background) */
.modal {
  top: 0;
  left: 0;
  z-index: 20 !important;
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  position: absolute;
  background-color: rgba(0,0,0,0.9);
}

/* Modal Body */
.modal-body {
  font-family: 'Raleway', sans-serif;
  left: 10%;
  width: 80%;
  position: absolute;
  font-size: 2em;
  color: #FFF;
  text-align: center;
  align-self: center;
}


/*Image Recog Refresh button*/
.recButton{
  display: none;
  z-index: 5;
  position: absolute;
  width: 60%;
  height: 50%;
  left: 20%;
  top: 25%;
  background-color: rgba(0, 0, 0, 0);
  border-color: rgba(0, 0, 0, 0);
}
.recButton:focus{
  outline: none;
}
.recImg{
  max-width:100%;
  max-height:100%;
  width: auto;
  height: auto;
  background-color: rgba(0, 0, 0, 0);
}

.scanImg{
  height:100%;
  margin:auto;
  background-color: rgba(0, 0, 0, 0);
}

/* Expired cast overlay */

body.expired #expiredCast{
  display: flex;
}

/* Attribution section */

#attribution_container{
  display: flex;
  flex: 0;
  margin-left: 0.75rem;
  pointer-events: auto;
  z-index: 5;
}

#attribution_container.empty{
  display: none;
}
body.active360 #attribution_container,
body.qr-scan #attribution_container {
  display: none;
}

#attribution_container > .toggle_button{

}

#attribution_container > .toggle_button > img{
  max-height: 48px;
}

.attribution_content_container{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  color: #FFF;
  width: calc(100vw - 3em);
  pointer-events: none;
}

.open > .attribution_content_container,
.force > .attribution_content_container{
  display: block;
}

#attribution_content{
  display: inline-block;
  border-radius: 0 0.25em 0.25em 0;
  background-color: rgba(55, 55, 55, 0.7);
  padding: 0.5em;
}

#attribution_content > .attribution_section{
  padding: 0.25em 0;
}

.attribution_section > .attribution_title,
.attribution_section > .attribution_author{
  font-weight: bold;
  display: inline-block;
}

.frBtn{
  display: none;
  z-index: 4;
  position: absolute;
  width: 60%;
  height: 50%;
  left: 20%;
  top: 25%;
  background-color: rgba(0, 0, 0, 0);
  border-color: rgba(0, 0, 0, 0);

  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.frBtn:focus{
  outline: none;
}

body.share-targeting .frBtn{
  display: none!important;
}

.frImg{
  max-width:100%;
  max-height:100%;
  width: auto;
  height: auto;
  background-color: rgba(0, 0, 0, 0);
}

.at-expanding-share-button div.at-expanding-share-button-toggle-bg>span{
  background-image: url(/static/img/Share.png);
  background-color: transparent !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.at-expanding-share-button.at-expanding-share-button-animate-in div.at-expanding-share-button-toggle-bg>span{
  background-color: rgb(255, 101, 80) !important;
}

body{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.not-supported-modal{
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.game_action_button{
  position: absolute;
  height: 1em;
  width: 1em;
  bottom: 6rem;
  display: none;
  font-size: 4em;
  z-index: 4;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.game_action_button.visible.bound{
  display: block;
}

.game_action_button.left{
  left: 16px;
}

.game_action_button.right{
  right: 16px;
}

.game_action_button > img{
  max-height: 100%;
}

iframe.hidden{
  visibility: hidden;
  pointer-events: none;
  z-index: -1; /* Fix for ios taking clicks */
  position: relative;
}

.disable-touch{
  pointer-events: none!important;
  height: 0!important;
  overflow: hidden;
}

/* Report button */
#RepBtn{
  display: block;
  margin-left: 0.2rem;
}

body.tracking.cast-loaded:not(.active360) #RepBtn{
  display: block;
}

/* Fullscreen button */

#fullBtn{
  display: none;
  background-image: url('/static/img/fullscreen.expand.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body.fullscreen-available #fullBtn{
  display: inline-block;
}

/* share container */
#shareCon {
  display: none;
}

body.tracking.cast-loaded #shareCon {
  display: flex;
}

body.fullscreen #fullBtn{
  background-image: url('/static/img/fullscreen.shrink.png');
}

/* report button */
#RepBtn {
  display: block;
  margin-left: 0.2rem;
}

body.cast-visible #RepBtn {
  display: block;
}

/* Geo-search button */
#geocastSearchButton {
  display: none;
  background-image: url('/static/img/geo.search.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body.geocast:not(.cast-visible, .querying, .routing, .fetching-query) #geocastSearchButton {
  display: inline-block;
}

/* Geo-search cancel button */
#geocastListenCancelButton,
#geocastSearchCancelButton,
#geocastClearRoutesButton {
  display: none;
  background-image: url('/static/img/Escape.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body.geocast.querying:not(.routing, .fetching-query) #geocastListenCancelButton {
  display: inline-block;
}

body.geocast.fetching-query:not(.routing, .querying) #geocastSearchCancelButton {
  display: inline-block;
}

body.geocast.routing:not(.querying, .fetching-query) #geocastClearRoutesButton {
  display: inline-block;
}

/* Pause/Play button */
#mediaButton{
  display: none;
  background-image: url('/static/img/media.play.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body.media-available.cast-visible:not(.cast-tracked) #mediaButton{
  display: inline-block;
}

body.share-targeting #mediaButton{
  display: none!important;
}

body.media-playing #mediaButton{
  background-image: url('/static/img/media.pause.png');
}

/* Tap to scan button */

#recRefresh{
  display: none;
  height: 3rem;
  width: 3rem;
  margin-right: var(--top-right-button-margin-right);
  margin-top: 0;
  background-image: url('/static/img/taptoscan.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body.tracking #recRefresh{
  display: block;
}

body.loading #recRefresh,
body.printcast #recRefresh,
body.active360 #recRefresh,
body.qr-scan #recRefresh{
  display: none;
}

body.share-targeting #recRefresh{
  margin-right: 1.5em;
  margin-top: 0.5em;
}

body.expired #recRefresh{
  display: block;
  z-index: 21;
}

/* Geo exit cast buttons */
#topRightCorner {
  float: right;
  display: flex;
  justify-content: end;
  right: var(--top-right-button-margin-right);
  position: absolute;
  top: 0.75rem;
  height: 3rem;
}

body.free-cast #topRightCorner {
  top: 3rem;
}

#exit-buttons-container {
  display: flex;
  flex: 1;
  position: absolute;
}

#exit-buttons-label-container {
  position: relative;
  height: 100%;
}

#exit-buttons-label {
  display: none;
  color: #FFF;
  background: rgba(0, 0, 0, 0.6);
  position: relative;
  top: 50%;
  right: 1rem;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 4;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  border: 1px solid var(--accent-color);
  border-radius: 0.5em;
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  margin-right: var(--top-right-button-margin-right);
  pointer-events: auto;
}

.exitButton {
  display: none;
  height: 3rem !important;
  width: 3rem !important;
  /*margin-right: 1% !important;*/
  margin-top: 0;
  background-image: url('/static/img/Escape.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@keyframes shimmer{
  0% {background-position: top 0px left -125px;}
  50% {background-position: top 0px right -125px;}
  100% {background-position: top 0px right -125px;}
}

@keyframes shimmer2{
  0% {background-position: top 50% left -125px;}
  50% {background-position: top 50% left -125px;}
  100% {background-position: top 50% right -125px;}
}

.shimmer{
  color: transparent!important;
  background: 0 50% / 125px 200% no-repeat linear-gradient(to bottom right, rgba(255,255,255,0) 40%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 60%), rgba(0, 0, 0, 0.6);
  animation-name: shimmer2;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}

.shimmer > span{
  background: 0 0 / 125px 100% no-repeat linear-gradient(to right, #FFF, rgb(28, 101, 159) 50%, #FFF),
    #FFF;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  animation-name: shimmer;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}

body.exit-cast:not(.active360) #exit-cast-button {
  display: block;
}
body.exit-auto-cast:not(.active360) #exit-auto-cast-button {
  display: block;
}
body.active360 #escape360{
  display: block;
}

body.exit-cast:not(.active360) #exit-buttons-label {
  display: block;
}
body.exit-auto-cast:not(.active360) #exit-buttons-label {
  display: block;
}
body.active360 #exit-buttons-label{
  display: block;
}

/* Mobile logging view */

#mobileLog{
  position: absolute;
  overflow: hidden;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: 1000;
  top: 0;
  left: 0;
  display: none!important;
}

#mobileLog > div{
  float: left;
  clear: both;
  max-width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  color: #FFF;
}

#framerateContainer{
  top: 2vh;
  position: absolute;
  pointer-events: none;
  z-index: 8;
  max-width: calc(100vw - 3rem - 48px);
  left: calc(1.5rem + 48px);
  filter: drop-shadow(0px 0px 1px #FFF);
  background: rgba(255,255,255,0.2);
  font-size: 5vh;
}

#swap-view-button {
  position: absolute;
  right:0;
  bottom: 5rem;
  height: 60px;
  opacity: 0.7;
  content:url('/static/img/SwapGeo.png');
  background-color: rgba(0,0,0,0.7);
  border-radius: 10px 0 0 10px / 30px 0 0 30px;
  width: 60px;
  object-fit: contain;
  padding: 0px 0px 0px 10px;
  /*content:url('/static/img/swap-geo.png');*/
  visibility: hidden;
  z-index: 6;
}

body.loading #swap-view-button,
body.no-geo.printcast #swap-view-button,
body.no-geo.tracking #swap-view-button,
body.no-print.geocast #swap-view-button {
  display: none;
}
body.printcast #swap-view-button {
  visibility: visible;
}
body.geocast #swap-view-button {
  visibility: visible;
  content:url('/static/img/SwapPrint.png');
}
body.cast-visible #swap-view-button {
  visibility: visible;
}
body.exit-cast #swap-view-button,
body.qr-scan #swap-view-button,
body.printcast.tracking #swap-view-button,
body.cast-visible.geocast #swap-view-button{
  visibility: hidden;
}

#scan-qr-button{
  position: absolute;
  left:0;
  bottom: 5rem;
  height: 60px;
  opacity: 0.7;
  visibility: hidden;
  z-index: 6;

  background-color: rgba(0,0,0,0.7);
  border-radius: 0 10px 10px 0 / 0 30px 30px 0;
  content:url('/static/img/SwapQR.png');
  width: 60px;
  object-fit: contain;
  padding: 0px 10px 0px 0px;
}

#swap-view-button.animating,
#scan-qr-button.animating{
  transition: bottom 2s ease-in-out;
}

body.printcast #scan-qr-button,
body.geocast #scan-qr-button,
body.start-menu #scan-qr-button,
body.tracking #scan-qr-button{
  visibility: visible;
}

body.loading #scan-qr-button,
body.qr-scan #scan-qr-button,
body.no-qr #scan-qr-button,
body.exit-cast #scan-qr-button,
body.active-360 #scan-qr-button,
body.printcast.tracking #scan-qr-button,
body.share-targeting #scan-qr-button,
body.geocast.cast-visible #scan-qr-button {
  visibility: hidden;
}

body.qr-scan .qr-container{
  width: 500px;
  height: 500px;
  z-index:4;
  position: relative;
}

body.geocast #scan-qr-button,
body.geocast #swap-view-button{
  bottom: calc(100%/3 - 120px);
}

body.qr-scan .scanlines{
  visibility: visible;
}

.scanlines {
  content : '';
  position : absolute;
  width : 100%;
  height : 12px;
  background : #fff;
  background: linear-gradient(to bottom, rgba(255,0,0,0) 0%,rgb(74, 158, 238) 45%,rgba(255,255,255,0.98) 50%,rgb(74, 158, 238) 55%,rgba(255,0,0,0) 100%); /* W3C */
  animation: vline 4s cubic-bezier(.75,0,.25,1) infinite;
  visibility: hidden;
  z-index: 2;
}

body.scan-paused .scanlines{
  animation-play-state: paused;
}

body:not(.qr-scan) .scanlines{
  animation: none;
}

@keyframes vline {
  0%   { top: -12px;}
  50% { top: 100%;}
  100% { top: -12px;}
}

.qr-code-image{
  background-image: url('/static/img/sample_qr.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  display: none;
  opacity: 0.2;
}

body.qr-scan .qr-code-image{
  display: block;
}

.qr-top-text, .qr-bottom-text, .qr-or-text{
  z-index: 3;
  visibility: hidden;
  text-align: center;
  letter-spacing: 1.2px;
  word-spacing: -0.4px;
  font-weight: 600;
  color: #FFF;
}

.qr-top-text{
  font-size: calc(1em + 1vw);
  text-shadow: 0px 0px 14px var(--button-highlight-color), 0px 0px 4px var(--button-highlight-color),0px 0px 6px var(--shadow-color),0px 0px 3px var(--shadow-color);
  padding:0px;
}

.qr-or-text{
  position: absolute;
  top: 100%;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  font-size: calc(1em + 1vw);
  text-shadow: 0px 0px 14px var(--button-highlight-color), 0px 0px 4px var(--button-highlight-color),0px 0px 6px var(--shadow-color),0px 0px 3px var(--shadow-color);
  font-family:'Raleway',sans-serif;
}

body.no-print.no-geo .qr-or-text{
  display: none;
}

.qr-bottom-text::before{
  content: '⚠ ';
  font-size: calc(1.5em + 1vw);
  font-weight: 100;
  display:inline;
  vertical-align: sub;
}

.qr-bottom-text{
  font-size: calc(0.3em + 1vw);
  width:fit-content;
  height: fit-content;
  border-radius: 15px;
  border:3px solid #FFF;
  word-wrap: break-word;
  padding:10px 10px 10px 10px;
  background-color: var(--qr-background-color);
  margin: 0 auto;
}

.qr-bottom-text-container{
  height: 2.5rem;
  position: absolute;
  top: calc(50% - 1.25rem);
  display: flex;
  flex-direction: row;
  width:200%;
  left: -50%;
  z-index: 3;
  justify-content: center;
  font-family:'Raleway',sans-serif;
}

.qr-bottom-text-container[hidden]{
  display: none;
}

.qr-top-text-container{
  margin-top: 1.25rem;
  height: 2.5rem;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: row;
  width: 100vw;
  z-index: 3;
  justify-content: center;
  font-family:'Raleway',sans-serif;
  text-transform: uppercase;
}

body.qr-scan .qr-bottom-text,
body.qr-scan .qr-or-text,
body.qr-scan .qr-top-text{
  visibility: visible;
}

#scan-edges{
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
}

.qr-ui-container{
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  visibility: hidden;
  z-index: 6;
}

.bracket-container.from-qr + .qr-ui-container{
  visibility: visible; /* visible when animating out */
}

body.qr-scan .qr-ui-container{
  visibility: visible;
}

.qr-background-container{
  position: absolute;
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  overflow: hidden;

  /* For transition animation*/
  height: 0;
  top: 50%;
}

body.qr-scan .qr-background-container{
  height: 100%;
  top: 0;
}

.qr-background-center{
  display: flex;
  width: 100%;
  flex-direction: row;
}

.qr-background-corner{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.qr-background-corner::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  -webkit-box-shadow: 0 0 0 30px var(--qr-background-color);
  box-shadow: 0 0 0 30px var(--qr-background-color);
  border-radius: 30px;
}

body.qr-scan .qr-background-rounded{
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: 30px;
  border-radius: 30px;
  -webkit-box-shadow: 0 0 2em var(--shadow-color);
  box-shadow: 0 0 2em var(--shadow-color);
  border: 2px solid var(--accent-color);
}

.qr-background-container::before{
  content: "";
  height: 6rem;
  position: relative;
  z-index: 2;
  background: var(--qr-background-color);
}

.qr-background-center::before,
.qr-background-center::after{
  content: "";
  flex: 1;
  position: relative;
  z-index: 2;
  background: var(--qr-background-color);
}

.qr-bottom-navigation{
  flex: 1;
  position: relative;
  background: var(--qr-background-color);
  z-index: 3;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding: 3rem 0;
}

.qr-navigation-print{
  background-image: url('/static/img/PrintButton.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 1 12em;
  pointer-events: auto;
  max-width: 40%;
}

body.no-print .qr-navigation-print{
  display: none;
}

body.no-geo .qr-navigation-geo{
  display: none;
}

.qr-navigation-geo{
  background-image: url('/static/img/GeoButton.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 1 12em;
  pointer-events: auto;
  max-width: 40%;
}

/*couple media queries to position the QR container*/


@media screen and (max-width: 650px){
  body.qr-scan .qr-container{
    width:400px;
    height:400px;
  }
}

@media screen and (max-width: 450px){
  body.qr-scan .qr-container{
    width:300px;
    height:300px;
  }
}

@media screen and (max-width: 365px){
  body.qr-scan .qr-container{
    width:200px;
    height:200px;
  }
}

@media screen and (max-height: 800px) and (min-width: 450px){
  body.qr-scan .qr-container{
    width:400px;
    height:400px;
  }
}

@media screen and (max-height: 710px) and (min-width: 450px){
  body.qr-scan .qr-container{
    width:300px;
    height:300px;
  }
  .qr-bottom-text-container{
    margin-bottom: 5rem;
  }
}

@media (orientation: landscape) and (max-device-height: 540px){

  .qr-background-container{
    flex-direction: row;
  }

  body.qr-scan .qr-background-center::after{
    flex: 1 1 20px;
  }

  .qr-background-center{
    width: auto;
    flex-direction: column;
  }

  body.qr-scan .qr-container{
    width:300px;
    height:300px;
  }

  .qr-top-text-container{
    margin-top: 1.5rem;
    width: 50vw;
  }

  .qr-bottom-text{
    width:250px;
  }
  .qr-top-text{
    width:250px;
  }

  .qr-or-text{
    top: 0;
    left: 100%;
    height: 100%;
    width: auto;
    margin-top: 0;
    margin-left: 3em;
    vertical-align: middle;
  }

  .qr-or-text::before{
    content: "";
    vertical-align: middle;
    height: 100%;
    display: inline-block;
    width: 0;
  }

  .qr-bottom-navigation{
    flex-direction: column;
  }

  .qr-navigation-print,
  .qr-navigation-geo{
    max-width: none;
    max-height: 12rem;
    margin: 1rem 0;
  }

  .qr-background-container::before{
    height: auto;
    width: calc(25% - 0.5em - 10px);
  }

}

@media (orientation: landscape) and (max-device-height: 460px){
  body.qr-scan .qr-container{
    width:200px;
    height:200px;
  }
}

@media (orientation: landscape) and (max-device-height: 340px){
  .qr-top-text, .qr-bottom-text{

  }

  .qr-bottom-text-container{
    margin-bottom:6em;
  }

  .qr-top-text-container{
    margin-top:1rem;
  }
}

#LButton{
  margin-left: 0.2rem;
  display: none;
}

body.flashlight-available #LButton{
  display: inline-block;
}

.fill {
  position: absolute;
  width:100%;
  height:100%;
}

.center-v {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.center-h {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.start-icons {
  display: flex;
  width:100%;
  height: 100%;
  justify-content: space-evenly;
  flex-direction: column;
}

.start-icons > img {
  max-width:12em;
  max-height:12em;
  cursor: pointer;
  padding:1.5em;
  margin: 0 auto;
}

.wide {
  width:100%;
}

#start-menu-modal {
  visibility: hidden;
  z-index: 6;
}

body.start-menu:not(.loading) #start-menu-modal {
  visibility: visible;
}

body.start-menu #WCButton {
  visibility: hidden;
}

body.geocast-cast-near.geocast-cast #ar-button {
  display: inline-block;
  opacity: 1;
}

#ar-button {
  font-family:'Raleway',sans-serif;
  border:none;
  border-radius: 0.25em;
  color:white;
  font-size:1.5em;
  background: rgba(37, 37, 37, 0);
  pointer-events: all;
  display: none;
  /* Temporarily invisible until camera feed issue is resolved */
  opacity: 0;
  background-image: url(/static/img/WorldLock.gif);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 5rem;
  height: 5rem;
  align-self: center;
  margin: auto;
}

#arbutton.ios{
  display: none!important;
  opacity: 0!important;
}

#overlayGLcrash {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.75);
  z-index: 20 !important;
}
#textGLcrash{
  font-family: 'Raleway', sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 2em;
  color: white;
  -webkit-transform: translate(-50%,-50%);
  -moz-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  text-align: center;
}

.game_action_button{
  color: rgba(0, 0, 0, 0);
  height: 65px;
  width: 75px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/*.game_action_button.left{
  background-image: url('https://cdn.portal.worldcast.io/static/img/game_assets/sapporo/sapporo_left.png');
}

.game_action_button.left:active{
  background-image: url('https://cdn.portal.worldcast.io/static/img/game_assets/sapporo/sapporo_left_pressed.png');
}

.game_action_button.right{
  background-image: url('https://cdn.portal.worldcast.io/static/img/game_assets/sapporo/sapporo_right.png');
}

.game_action_button.right:active{
  background-image: url('https://cdn.portal.worldcast.io/static/img/game_assets/sapporo/sapporo_right_pressed.png');
}*/

#color-canvas{
  position: absolute;
  top:0;
  z-index:5;
}

#safari15Overlay{
  display: none;
  z-index: 500;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  background: #000;
  color: #FFF;
  text-align: center;
}

#safari15Overlay::before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

#safari15Overlay > div{
  max-width: 90%;
  max-height: 90%;
  margin: 0 auto;
  overflow-y: auto;
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

#safari15Overlay a{
  color: #90ee90;
}

body.safari15 #safari15Overlay{
  display: block;
}


/* No ui mode */

body.no-ui .game_action_button,
body.no-ui #swap-view-button,
body.no-ui #scan-qr-button,
body.no-ui .LBtn,
body.no-ui #LBtnCon,
body.no-ui #RBtnCon{
  display: none!important;
}

body.smart-glasses::before{
  content: "";
  position: fixed;
  display: block;
  z-index: 4;
  height: 100vh;
  width: 100vw;
  left: 0;
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0) 10%, rgba(0,0,0,0) 90%, rgba(0,0,0,1) 100%);
}

body.smart-glasses::after{
  content: "";
  position: fixed;
  display: block;
  z-index: 4;
  height: 100vh;
  width: 100vw;
  left: 0;
  top: 0;
  background: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0) 10%, rgba(0,0,0,0) 90%, rgba(0,0,0,1) 100%);
}

body.smart-glasses .augment-video{
  display: block!important;
  z-index: 1;
  top: 0;
  left: 0;
  position: absolute;
}
