html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

@font-face {
  font-family: Gotham;
  src: url(https://cdn.glitch.global/db13e4f1-44e7-4ad4-aaef-bd6a2c7ec51f/GothamCondensed-Medium.otf?v=1650661258815);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Gotham', sans-serif;
  line-height: 1.5;
}

video {
  width: auto;
  height: 100%;
  z-index: -10;
  overflow: hidden;
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.front {
  -webkit-transform: translateX(-50%) scaleX(-1);
  transform: translateX(-50%) scaleX(-1);
}

#ui {
  width: 100vw;
  position: absolute;
  z-index: 20;
  pointer-events: none;
  user-select: none;
  display: none;
}

#timer {
  position: absolute;
  font-size: 1.5em;
  color: #f5f5f5;
  margin-top: 10px;
  left: 5vw;
  text-align: start;
  pointer-events: none;
  user-select: none;
}

#score {
  position: absolute;
  font-size: 1.5em;
  color: #f5f5f5;
  margin-top: 10px;
  right: 5vw;
  text-align: end;
  pointer-events: none;
  user-select: none;
}

#capturebtn {
  position: absolute;
  left: 50%;
  margin-left: -20vw;
  width: 40vw;
  bottom: 15%;
  height: 10vw;
  z-index: 50;
  user-select: none;
 /* display: none; */
}

#takephoto {
  position: absolute;
  left: 50%;
  margin-left: -10vw;
  width: 20vw;
  bottom: 15%;
 /* height: 10vw; */
  z-index: 21;
  user-select: none;
 /* display: none; */
}

#flipcam {
  position: absolute;
  left: 85%;
  margin-left: -10vw;
  width: 20vw;
  bottom: 15.5%;
 /* height: 10vw; */
  z-index: 21;
  user-select: none;
 /* display: none; */
  object-fit: fill;
  border: none;
  background-color: #fdd0;
  border-radius: 50px;
}

#flipcam img {
  width: 100%;
  border-radius: 50px;
  background-color: white;
}

#canvasskinimage {
  display: none;
}

#canvastestimage {
  display:none;
  /*position: fixed;
  z-index: 50;*/
}

#screens {
  position: absolute;
  width: 100vw;
  height: 100vh;
  color: #ffffff;
  z-index: 30;
}

#splash {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 50;
  transition: opacity 2s;
}

#splashlogo {
  position: absolute;
  width: 100vw;
  height: auto;
  top: 0;
  pointer-events: none;
  user-select: none;
}

#splashfire {
  position: absolute;
  width: 100vw;
  height: auto;
  bottom: 0;
  pointer-events: none;
  user-select: none;
}

.splashfire2 {
  position: absolute;
  width: 100vw;
  height: 100vh;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.screen {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
}

#screen2, #screen1 {
  display: none;
}

/*
#faceIndicator {
  width: 100vw;
  position: absolute;
  top: 6vh;
  z-index: 21;
}
*/

#faceIndicator {
  width: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  z-index: 21;
  pointer-events: none;
  user-select: none;
}

/*
#faceIndicator {
    height: 100vw;
    position: absolute;
    top: 0vh;
    z-index: 21;
} 
*/

#backBtn {
  position: fixed;
  bottom: 3%;
  left: 7%;
  width: 100%;
  z-index: 45;
}

#backBtn img {
  width: 8%;
}

#backBtn2 {
  width: 8%;
  position: absolute;
  left: 8%;
  bottom: 15%;
 /* height: 10vw; */
  z-index: 21;
  user-select: none;
 /* display: none; */
  border: none;
}

#head-texture {
  position: absolute;
}

#personicon {
  position: absolute;
  width: 24vh;
  left: 50%;
  margin-left: -12vh;
  top: 6vh;
  pointer-events: auto;
  user-select: none;
}

#textinst {
  position: absolute;
  font-size: 1.3em;
  width: 80vw;
  top: 30vh;
  left: 50%;
  margin-left: -40vw;
  pointer-events: none;
  user-select: none;
  text-align: justify;
}

#choose {
  position: absolute;
  width: 60vw;
  top: 35vh;
  font-size: 1.3em;
  left: 50%;
  text-align: center;
  margin-left: -30vw;
  pointer-events: none;
  user-select: none;
}

#choosehat {
  position: absolute;
  width: 60vw;
  bottom: 20%;
  font-size: 1.3em;
  left: 50%;
  text-align: center;
  margin-left: -30vw;
  pointer-events: none;
  user-select: none;
}

#ribtoss {
  position: relative;
  display: block;
  max-height: 30vh;
  max-width: 100vw;
  top: 0;
  margin: auto;
  pointer-events: none;
  user-select: none;
}

#option {
  display: none;
  pointer-events: none;
  user-select: none;
}

#selections {
  display: flex;
  width: 100vw;
  position: absolute;
  top: 55vh;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
}

#hatselections {
  display: flex;
  width: 100vw;
  position: absolute;
  bottom: 30%;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
}

.icons {
  width: 20vw;
  pointer-events: auto;
  user-select: none;
}

#slider1, #slider2 {
  position: absolute;
  width: 80vw;
  height: 10vw;
  left: 50%;
  margin-left: -40vw;
  bottom: 22vh;
  pointer-events: none;
  user-select: none;
}

#loading {
  position: absolute;
  width: 60vw;
  top: 70vw;
  font-size: 2em;
  left: 50%;
  text-align: center;
  margin-left: -30vw;
  user-select: none;
}

#finalscreen {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1em;
  padding-top: 0;
  padding-bottom: 0.5em;
  position: fixed;
  bottom: 0%;
  width: 100vw;
  color: #ffffff;
  z-index: 31;
  display: none;
  justify-content: space-around;
  align-items: center;
}

#textagain {
  text-align: center;
  white-space: nowrap;
}

.footertxt {
  margin: 0;
  font-size: 14px;
}

#test {
  display: none;
  position: absolute;
  z-index: 60;
  pointer-events: none;
}

#photoinst {
  position: absolute;
  width: 60vw;
  bottom: 25%;
  font-size: 1em;
  left: 50%;
  text-align: center;
  margin-left: -30vw;
  pointer-events: none;
  pointer-events: none;
  user-select: none;
}

.a-dialog {
  color: #ffffff;
  text-align: center;
  background-color: #700000;
  border-radius: 15px;
}

.a-dialog-allow-button {
  background-color: #ff551d;
  color: #ffffff;
  border-radius: 15px;
}

.a-dialog-deny-button {
  background-color: #704700;
  color: #ffffff;
  border-radius: 15px;
}

.a-dialog-ok-button {
  background-color: #ff551d;
  color: #ffffff;
  border-radius: 15px;
}

#pcdiv {
  position: absolute;
  background-color: #000000;
  text-align: center;
  z-index: 50;
  user-select: none;
  height: 100vh;
  width: 100vw;
  display: none;
}

#pcinst {
  color: #ffffff;
  font-size: 2em;
  margin-top: 15vh;
  padding: 5%;
}

#qr {
  margin-top: 5vh;
  width: 300px;
  border-radius: 5px;
}

.footerel {
  position: relative;
  width: 24%;
  max-height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footerimg {
  width: 50%;
}

@media only screen and (min-device-width: 601px){
  #pcdiv {
    display: block;
  }
}