/* Copyright (c) 2023 Tactic LLC. All rights reserved. */
:root {
  --main-black: #000000e0;
  --main-brown: #92816E;
  --main-color: #ffffff;
  --main-purp: #9C4E87;
}

html,
body {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  position: fixed;
}


@font-face {
  font-family: "UniformRnd";
  src: url("./fonts/UniformRnd-Regular.otf");
  font-weight: 400;
}

@font-face {
  font-family: "UniformRnd";
  src: url("./fonts/UniformRnd-Medium.otf");
  font-weight: 500;
}

@font-face {
  font-family: "UniformRnd";
  src: url("./fonts/UniformRnd-Bold.otf");
  font-weight: 700;
}

@font-face {
  font-family: "UniformRnd";
  src: url("./fonts/UniformRnd-Black.otf");
  font-weight: 900;
}

.mainFont {
  font-family: 'UniformRnd', Times, serif;
}

.h100 {
  height: 100% !important;
}

.hidden {
  visibility: hidden;
}

.centerX {
  left: 50%;
  transform: translateX(-50%);
}

.centerY {
  transform: translateY(-50%);
}

.centerXY {
  position: relative;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
}

.allowFade {
  transition: opacity 0.5s ease-out;
  -webkit-transition: opacity 0.5s ease-out;
  -moz-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
  -ms-transition: opacity 0.5s ease-out;
}

.allowFadeFast {
  transition: opacity 0.25s ease-out;
  -webkit-transition: opacity 0.25s ease-out;
  -moz-transition: opacity 0.25s ease-out;
  -o-transition: opacity 0.25s ease-out;
  -ms-transition: opacity 0.25s ease-out;
}

.disable-select {
  user-select: none;
  /* supported by Chrome and Opera */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
}

.noninteractable {
  pointer-events: none;
}

.fullscreenContainer {
  position: absolute;
  top: 0%;
  left: 0%;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.cameraSwitchButton {
  position: absolute;
  top: 45%;
  left: 5%;
}

.bgo{
  filter: 
  drop-shadow(0px 0px 2px rgb(233 228 226)) 
  drop-shadow(0px 0px 2px rgb(233 228 226)) 
  drop-shadow(0px 0px 2px rgb(233 228 226)) 
  drop-shadow(0px 0px 2px rgb(233 228 226));
}

/* ============================== loading bar ============================================ */

#loadingLabel {
  position: absolute;
  bottom: calc(20% + 36px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'UniformRnd', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 3.5vw, 20px);
  letter-spacing: 0.08em;
  color: #ffffff;
  white-space: nowrap;
  margin: 0;
  pointer-events: none;
  text-align: center;
}

#loadingBarContainer {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  max-width: 320px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35), inset 0 0 6px rgba(0, 0, 0, 0.4);
  z-index: inherit;
}

#loadingBarFill {
  height: 100%;
  width: 0%;
  border-radius: 14px;
  background: linear-gradient(to right,
    #ff1500 0%,
    #ff6600 22%,
    #ffe000 38%,
    #22ff00 60%,
    #00eeff 75%,
    #0033ff 100%
  );
  position: relative;
  overflow: hidden;
  transition: width 0.5s ease-out;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

#loadingBarFill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at  5% 30%, rgba(255,255,255,1.0) 1.5px, transparent 1.5px),
    radial-gradient(circle at 12% 72%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,1.0) 2.0px, transparent 2.0px),
    radial-gradient(circle at 27% 55%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 34% 84%, rgba(255,255,255,1.0) 1.5px, transparent 1.5px),
    radial-gradient(circle at 42% 38%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 50% 14%, rgba(255,255,255,1.0) 2.0px, transparent 2.0px),
    radial-gradient(circle at 57% 66%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 64% 33%, rgba(255,255,255,1.0) 1.5px, transparent 1.5px),
    radial-gradient(circle at 71% 80%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 79% 22%, rgba(255,255,255,1.0) 2.0px, transparent 2.0px),
    radial-gradient(circle at 86% 58%, rgba(255,255,255,1.0) 1.5px, transparent 1.5px),
    radial-gradient(circle at 93% 42%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at  8% 50%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 16% 88%, rgba(255,255,255,1.0) 1.5px, transparent 1.5px),
    radial-gradient(circle at 23% 10%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 31% 64%, rgba(255,255,255,1.0) 2.0px, transparent 2.0px),
    radial-gradient(circle at 39% 26%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 47% 90%, rgba(255,255,255,1.0) 1.5px, transparent 1.5px),
    radial-gradient(circle at 55% 50%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 62% 16%, rgba(255,255,255,1.0) 2.0px, transparent 2.0px),
    radial-gradient(circle at 69% 78%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 77% 44%, rgba(255,255,255,1.0) 1.5px, transparent 1.5px),
    radial-gradient(circle at 84% 10%, rgba(255,255,255,1.0) 1.0px, transparent 1.0px),
    radial-gradient(circle at 96% 70%, rgba(255,255,255,1.0) 2.0px, transparent 2.0px);
  background-size: 310px 100%;
  background-repeat: no-repeat;
  animation: speckleFlicker 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes speckleFlicker {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.95; }
}

/* ============================== top bar ============================================ */

  #topBar{
    width : 101%;
    height : 40px;
    background-color: #00BB31;
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 446;
    display: inline-grid;
    grid-template-columns: 2% 50% auto 10% 2%;
    grid-template-rows: 5% 90% 5%;
    border: 1px solid  rgb(95, 95, 95);
  }

  #topLogo{
    display: inline-block;
    background: url("./ui/airheads-logo.png") no-repeat;
    cursor: pointer;
    z-index: inherit;
    background-size: contain;
    /* position: absolute; */
    left: 4%;
    top: 2%;
  }

  .topBar-item1 {
    grid-column: 2;
    grid-row: 2;
    z-index: inherit;
  }

/* Menu fanciness */
#menuIcon {
  display: inline-block;
  cursor: pointer;
  z-index: 446;
  position: absolute;
  right: 2%;
  top: 5px;
  visibility: hidden;
}

.bar1, .bar2, .bar3 {
  width: 28px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.4s;
}

.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-9px, 6px);
  transform: rotate(-45deg) translate(-8px, 6px);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-8px, -8px);
  transform: rotate(45deg) translate(-5px, -4px);
}
/* ============================== Menu screen ============================================ */


#menu{
  width : 75%;
  height : calc(100% - 40px);
  /* background-image: linear-gradient(180deg, #323232 0%, #0E0E0E 99.99%, #000000 100%); */
  background-image: url("./ui/bg.png"); 
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 40px;
  right: -75%;
  z-index: 2222;
  display: block;
  align-items: center;
  -webkit-transition:right 0.25s ease-out;
  -moz-transition:right 0.25s ease-out;
  -o-transition:right 0.25s ease-out;
  -ms-transition:right 0.25s ease-out;
  transition:right 0.25s ease-out;
}

@media screen and (min-width: 400px) {
  #menu {
    width : 50%;
  }
}
@media screen and (min-width: 600px) {
  #menu{
    width : 40%;
  }
}

@media screen and (min-width: 800px) {
  #menu{
    width : 30%;
  }
}

#menuLogo{
  width: 80%;
  height: 19%;
  position: relative;
  background: url(./ui/airheads-logo.png) no-repeat;
  background-size: contain;
  background-position: center;
  margin: 10%;
}

.menu-link{
  color: var(--main-color);
  font-size: 1.9vh;
  padding: 0;
  margin: 6vh 0 0vh 4.5vh;
  font-weight: 700;
}
.menu-link a:link{
  color: var(--secondary-brown);
  font-size: 2vh;
  text-decoration: none;

}

.menu-link p{
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

a:visited {
  color: var(--main-color);
}

a.menu.hover{
  color: var(--main-color);
  text-decoration:underline;
}

.menu-icon{
  color: #9d8264;
  font-size: 2vh;
  grid-column: 2;
  grid-row: 2;
  z-index: 21;
  transform: translate(0%, 50%);
    -ms-transform: translate( 0%, 50%);
}
.menu-icon p{
  padding: 0;
  margin: 0;
}

.menuButton{
  /* Button css */
  width: 100%;
  text-align: left;
  outline: none;
  border: none;
  background-color: rgba(0,0,0,0);
}

.menu-item-share {
  position: absolute;
  bottom: 4vh;
  right: 4vh;
}

#menuSocial{
  position: absolute;
  bottom: 7vh;
  left: 7vh;
  transform: translate(-50%, 50%);
  margin: 0;
}

.menu-item-share p::after{
  content: " ";
  /* background-image: url(./ui/button_share.png); */
  background-position: center;
  background-size: contain;
  display: inline-block;
  width: 4vh;
  height: 4vh;
  filter: brightness(12%);
}


@media only screen and (orientation: landscape){
  #menu{
    grid-template-rows: 20% 7% 7% 7% 7% 7% 5% 5% 5% auto 5% auto 5% 2%;
  }

  .menu-link{
    font-size: 4vh;
  }

  .menu-link a:link{
    font-size: 4vh;
  }
}

/* ============================== loading screen ============================================ */
.loading {
  position: absolute;
  z-index: 11111;
  font-size: min(10vw, 10vh);
  font-weight: 800;
  text-align: center;
  color: #9a8373;
  width: -webkit-fill-available;
}



#loadingContainer {
  z-index: 888 !important;
}

.loadingContainer {
  background-color: rgb(10, 10, 10);
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0px;
  top: 0px;
}

.loadingScreen {
  position: absolute;
  left: 0%;
  width: 100%;
  /* background-image: linear-gradient(347deg, rgb(241 210 217) 0%, rgb(171 84 152) 35%, rgb(137 69 122) 47%, rgb(0, 0, 0) 54%); */
  background-image: url("./ui/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 888;
  height: 100%;

  transition: opacity 0.75s ease-out 1s;

}

.loadingContainer .loadingStacked {
  top: 41%;
  width: 80%;
  max-width: 400px;
  position: absolute;
  z-index: inherit;
  /* filter: brightness(1.6) saturate(0.3) hue-rotate(359deg); */
}

.lLogo {
  position: absolute;
  background-image: url(./ui/airheads-logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 50%;
  top: 10%;
  left: 50%;
  height: 20%;
  z-index: inherit;
}


.loadingTitle{
  position: absolute;
  /* background-image: url(./ui/kLogo.png); */
  background-position: right;
  background-repeat: no-repeat;
  background-size: contain;
  width: 70%;
  height: 20dvh;
  z-index: inherit;
  bottom: 15dvh;
  right: 2dvh;
  
}


.tacticFooter {
  position: absolute;
  bottom: 5vh;
  left: 50vw;
  transform: translateX(-50%);
  z-index: inherit;

}

.loadingScreen {
  position: absolute;
  left: 0%;
  width: 100%;
  /* background-image: linear-gradient(347deg, rgb(241 210 217) 0%, rgb(171 84 152) 35%, rgb(137 69 122) 47%, rgb(0, 0, 0) 54%); */
  background-image: url("./ui/bg.png");
  background-size: center;
  background-position: top;
  background-repeat: no-repeat;
  z-index: 888;
  height: 100%;
}

.lImg{
    position: absolute;
    background-image: url(./ui/portal-example.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 90%;
    top: 50%;
    left: 50%;
    height: 50%;
    z-index: inherit;
}

.loadingFooter {
  position: absolute;
  left: 0%;
  width: 100%;
  height: 100%;
  background-image: url(./ui/loadingFooter.png);
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  z-index: 888;
}

.poweredby-img {
  visibility: hidden !important;
}

/* ============================== scan overlay ============================================ */

#scanOverlay {
  z-index: 9;
}

#recenterBtn {
  position: absolute;
  bottom: 5dvw;
  left: 5dvw;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease-out;
}

#recenterBtn img:first-child {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

#recenterTooltip {
  transition: opacity 1s ease-out;
  pointer-events: none;
}

#shareBtn {
  position: absolute;
  bottom: 7dvw;
  right: 5dvw;
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 1s ease-out;
}

#shareBtn img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

@keyframes tooltipFade {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

.scanTip {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.5s ease-out;
}

/* ============================== end card ============================================ */

#endCard {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: url("./ui/ecbg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px 24px 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 0 5vh;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 1, 1);;
  
}

#ecTitle {
  width: 75%;
  max-width: 320px;
  object-fit: contain;
  margin-bottom: 4vh;
}

#endCard .redBtn {
  width: 75%;
  max-width: 320px;
  text-align: center;
  margin-bottom: 2vh;
  font-size: 2vh;
}

/* =========== 8thwall override============= */

#loadingContainer #loadBackground {
  background-color: transparent;
}

#loadImage {
  visibility: hidden;
}

#loadingContainer #requestingCameraPermissions {
  background-color: #222223;

}

/* ============================== version overlay ====================== */

#versionOverlay {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'UniformRnd', monospace;
  font-size: 11px;
  color: rgb(255, 255, 255);
  pointer-events: none;
  z-index: 9999;
  letter-spacing: 0.08em;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 6px 12px;
  border-radius: 8px;
}


/* ============================== welcome screen ============================================ */

.welcomeScreen {
  background-image: url("./ui/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0px;
  top: 0px;
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-rows: 20% 15% 40% auto;
  z-index: 11;
  padding-top: 40px;
}

.wLogo {
  background-image: url(./ui/airheads-logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 40%;
  height: calc(100% - 2vh);;
  z-index: inherit;
  margin: 1vh;
}

.wTitle {
  background-image: url(./ui/wTitle.png);
}

.menuTitle{
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 80%;
  height: 100%;
  z-index: inherit;
}

.wDesc{
  width: 60%;
  font-size: 2.5vh;
  height: 100%;
  text-align: center;
  font-weight: 700;
  color: white;
  padding-top: 5%;
}

.welcomeScreen p{

}

#cnBtn{
  align-self: baseline;
}

.redBtn {
  font-family: 'UniformRnd', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 5vw, 22px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: #ed002f;
  border: none;
  border-radius: 100px;
  padding: 2vw 12vw;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.08s, box-shadow 0.08s;
  margin-bottom: 6vh;
}

.redBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8f0000;
}

/* ============================== walkthrough screen ============================================ */

.walkthroughScreen{
  background-image: url("./ui/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0px;
  top: 0px;
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-rows: 17% 15% 15% 15% 15% auto;
  z-index: 10;
  padding-top: 40px;
}

.wtTitle{
  background-image: url(./ui/wtTitle.png);
}

.walkthroughScreen img{
  height: 80%;
  width: 100%;
  object-fit: contain;
}

#bgBtn{
  align-self: baseline;
  margin-top: 15px;
}

/* ====================================== Troubleshooting ====================================== */

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  height: auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#tsPage{
  display: grid;
/*     justify-items: center;
  align-items: center; */
  background-image: url("./ui/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 12;
  grid-template-rows: 18dvh 16dvh 66dvh;
  background-color: white;
  color:white;
  justify-items: center;
}

.tsGrid{
  font-size: 16px;
  height: auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0px 30px !important;
  display: grid;
  justify-items: center;
}

.mainBack{
    background-image: url(./ui/backarrow.svg);
    top: 50px;
    left: 10px;
    background-position-y: center;
    height: 5dvh;
    width: 4.3dvh;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
}

.swiperShadow{
  height: 10vh;
  width: 100%;
  background: rgba(0, 0, 0, 0);
  background: -moz-linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(255,255,255,0) 40%);
  background: -webkit-linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(255,255,255,0) 40%);
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(255,255,255,0) 40%);
  user-select: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  opacity: 0;
  position: absolute;
}

#tsLogo{
  height: 70%;
  margin: 4dvh;
}

#tsTitle{
  align-self: center;
  font-size: 4vh;
  height: 100%;
}

#tsPage .desc{
  align-self: start;
  /* width: 75%; */
  /* top: 6%; */
  position: relative;
  padding-left: 1em;
  text-align: left;
  font-weight: 700;
  white-space: pre-line;
}

#tsShadow{
  top: 34dvh;
}

#tsBack{
  text-align: center;
}



#tsScroll {
  position: absolute;
  top: 34dvh;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 0px 12vw;
  text-align: center;
}


.tsb{
  width: 73%;
  margin: 5vh auto;
  max-width: none;
  text-align: center;
  margin-bottom: 6dvh;
}







/* ----------------------------- */
  /*    New desktop redirect     */
  /* ----------------------------- */
  #desktopRedirect {
    background-image: url("./ui/rdbg.png");
    z-index: 111111;
    position: absolute;
    background-position: center;
    background-size: cover;
    visibility: hidden;
    pointer-events: none;
  }

  .rdl{
    left: 25%;
  }

  .rdTitle{
    position: absolute;
    object-fit: contain;
    height: 35%;
    top: 5%;
  }

  .rdQR{
    position: absolute;
    object-fit: contain;
    height: 25%;
    top: 60%;
    border-radius: 20px;
  }


  .rdText{
    position: absolute;
    color: white;
    width: min(30%, 500px);
    text-align: center;
    font-size: min(24px, 2.4vh);
    top: 44%;
    font-weight: 700;
    font-family: 'UniformRnd', sans-serif;
    z-index: 111112;
  }

  .rdArt{
    height: 100%;
    object-fit: contain;
    position: absolute;
    left: 65%;
  }