body {
  overflow: hidden;
  font-family: "Bentley-regular";
  box-sizing: border-box;
}
@font-face {
  font-family: "Bentley-regular";
  
  src: url(Bentley-Regular_web.ttf);
}


#selfie-anywhere-app {
    background-image: url(../images/magic.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
    width: 100vw;
    height: 100vh;
}
.webcam-container{
    height: 100vh;
    width: 100vw;
}

#background-container {
    height: 100vh;
    width: 100vw;
    background-image: url(../images/magic.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: transparent;
}

@media screen and (min-width: 768px) {
    .webcam-container {
        background-attachment: fixed;
    }
 }

.form-control.webcam-start{
    height: auto;
/*
    height: 55px;
    margin-top:20%; 
*/    
    left:30%;
    position: absolute;
    background: black;
    opacity: 0.8;
    padding: 10px 20px;
    border: none;
    color: white;
    text-shadow: 1px 1px #000;
    font-size: 1.2rem;
    width: auto;
    z-index: 9999;
}

.form-control.webcam-on {
    position: fixed;
    left: 8vw;
    top: 0;
    transition: all 700ms;
  }
.form-control.webcam-off {
    left: 30%;
    transition: all 700ms;
  }
  @media screen and (max-width: 576px) {
    #selfie-anywhere-app {
      height: 100vh;
    }
    .form-control.webcam-start{
        left:10%; 
        width: auto;
        margin-top:40%;
    }
    .form-control.webcam-on {
        position: fixed;
        margin-top: 0;
        top: 20vw;
        left: 0;
        transition: all 700ms;
      }
    .form-control.webcam-off {
       left: 10%;
       margin-top:40%;
       transition: all 700ms;
      }
  }
  

  .form-switch {
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  .form-switch i {
    position: relative;
    display: inline-block;
    margin-right: .5rem;
    width: 60px;
    height: 30px;
    background-color: #e6e6e6;
    border-radius: 25px;
    vertical-align: text-bottom;
    transition: all 0.3s linear;
  }
  
  .form-switch i::before {
    content: "";
    position: absolute;
    left: 0;
    width: 56px;
    height: 25px;
    background-color: #fff;
    border-radius: 15px;
    transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
    transition: all 0.25s linear;
  }
  
  .form-switch i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 26px;
    height: 26px;
    background-color: #fff;
    border: 1px solid grey;
    border-radius: 15px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
    transform: translate3d(2px, 2px, 0);
    transition: all 0.2s ease-in-out;
  }
  
  .form-switch:active i::after {
    width: 60px;
    transform: translate3d(2px, 2px, 0);
  }
  
  .form-switch:active input:checked + i::after { transform: translate3d(16px, 2px, 0); }
  
  .form-switch input { display: none; }
  
  .form-switch input:checked + i { background-color: #4BD763; }
  
  .form-switch input:checked + i::before { transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0); }
  
  .form-switch input:checked + i::after { transform: translate3d(30px, 2px, 0); }

  .form-switch input:disabled + i { background-color: #eeeeee; cursor: not-allowed; }

  .form-switch input:disabled + i::after {
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.10);
  }

  .selfie-container {
      height: 100%;
  }
  .selfie-container img{
      width: 100%;
      position: absolute;
      bottom: 0;
  }

  .app-panel{
    height: 100vh;
    width: 100vw;
    text-align: center;
  }

  #selfie-container {
    height: 100vh;
    width: 100vw;
    z-index: 100;
    top: 0;
    left: 0;
    position: absolute;
  }

  #canvasPerson{
    background-color: transparent;
    position: absolute;
    width: 100vw;
    height: auto;
    z-index: 9999;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    transform: scale(-1, 1);
    filter: FlipH;
  }

  #webcam{
    display: block;
    position: relative;
    width: auto;
    height: 100vh;
    z-index: -100;
    pointer-events: none;
    margin-left: -9999px;
  }

  .md-modal {
    margin: auto;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100vw;
      height: 100vh;
      z-index: 2000;
      visibility: hidden;
      -webkit-backface-visibility: hidden;
      -moz-backface-visibility: hidden;
      backface-visibility: hidden;
  }
  
  .md-show {
      visibility: visible;
  }
  
  .md-overlay {
      position: fixed;
      width: 100%;
      height: 100%;
      visibility: hidden;
      top: 0;
      left: 0;
      z-index: 1000;
      opacity: 0;
      background: rgba(#e4f0e3, 0.8);
      -webkit-transition: all 0.3s;
      -moz-transition: all 0.3s;
      transition: all 0.3s;
  }
  
  .md-show ~ .md-overlay {
      opacity: 1;
      visibility: visible;
  }
  
  .md-effect-12 .md-content {
      -webkit-transform: scale(0.8);
      -moz-transform: scale(0.8);
      -ms-transform: scale(0.8);
      transform: scale(0.8);
      opacity: 0;
      -webkit-transition: all 0.3s;
      -moz-transition: all 0.3s;
      transition: all 0.3s;
  }
  
  .md-show.md-effect-12 ~ .md-overlay {

/*todo    background-color: #e4f0e3; */

  } 
  
  .md-effect-12 .md-content h3,
  .md-effect-12 .md-content {
      background: transparent;
  }
  
  .md-show.md-effect-12 .md-content {
      -webkit-transform: scale(1);
      -moz-transform: scale(1);
      -ms-transform: scale(1);
      transform: scale(1);
      opacity: 1;
  }

  .spinner-border {
    position: relative;
    top: 35%;
    width: 200px;
    height: 200px;
    color: white;
    z-index:300000;
    filter: alpha(opacity=80);
    -moz-opacity: 0.8;
    opacity: 0.8;   
  }

  #arrowLeft{
      position: absolute;
      left: 20px;
      top: 50%;
      z-index:999999;
      opacity: 0.7;
      cursor: pointer;
  }

  @media screen and (min-width: 768px) {
    #arrowLeft{
        left: 100px;
    }
 }

  #arrowRight{
    position: absolute;
    right: 20px;
    top: 50%;
    z-index:999999;
    opacity: 0.7;
    cursor: pointer;
}

.cameraControls {
    position: absolute;
    bottom: 150px;
    width: 100%;
    z-index: 9999;
    background: transparent;
    opacity: 0.7;
    padding: 10px;
}


.material-icons{
    width: 100px;
    font-size: 50px !important;
    color: white;
    width: 80px;
    height: 80px;
    background-color: black;
    border-radius: 50%;
    padding-top: 15px;
    margin: 0 10px;
}

.flash{ 
    position:fixed; 
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:#fff;
    z-index: 99999999;
 }

 #errorMsg {
     position: fixed;
     top: 20vh;
     left: 0;
     padding: 20px;
     z-index: 999999;
 }

 @media screen and (min-width: 768px) {
    #errorMsg {
        position: fixed;
        top: 30vh;
        left: 20vw;
        padding: 20px;
        z-index: 999999;
    }
 }

 .camlisthidden {
   display:none;
 }
 #guiswitch {
   display:none;
  z-index: 12000;
  position: absolute;
 }

 .guiswitchHidden {
  transition: 2s;
  opacity: 0;
}

#startpage {
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-image: url(../images/magic.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

@media screen and (max-width: 550px) {
  h2 {
      font-size: 1.5em;
  }
  h3 {
    font-size: 1.0em;
  }
}

@media screen and (max-height: 450px) {
  h2 {
      font-size: 1.2em;
  }
  h3 {
    font-size: 0.9em;
  }
}

.isvisible {
  visibility: visible;
}
.isinvisible {
  visibility: hidden;
}

#calibrating {
  position: absolute;

  z-index: 99999;
  color: wheat;
  top: 70%;
  display: flex;
  color: wheat;
  justify-content: center;
 /* height: 100vh; */
  width: 100%; 
}

.instructions {
  pointer-events: none;
  text-align: center;
  position: absolute;
  font-size: 5vmin;
    z-index: 99999;
  top: 0;
  display: block;
  color: white;
  justify-content: center;
  height: 100vh;
  width: 100%; 
  text-shadow: 0px 0px 10px #000000;
}




.instruct {
  width:100%;
  position: absolute;
  transform: translateY(-200%);
  transition: transform 1000ms ease-in, opacity 500ms ease-in;
  text-align: center;
  opacity: 0;;
  padding-top: 20px;
  background-color: #00000060;
}

@media screen and (min-width: 500px) {
  .instruct{
      padding-top: 50px;
      font-size: 4vmin;


  }
}

.instruct.active {
 opacity: 1;
  transform: translateY(0%);
}

.magictable {
  opacity:0;

  pointer-events: none;

  justify-content: center;
  display:flex;
  z-index: 9999;
  /*background-color: red;*/
  width: 100%;
  height: 30vh;

  position: absolute;
  bottom:0;
  transform: translateY(30vh);
  transition: transform 600ms ease-in, opacity 600ms ease-in;
}
.magictable.active {
  opacity:1;
  transform: translateY(0%);
}

#baize {
  height: 95%;
  width: 95%;
  background-image: url(../images/cards/baize.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: transparent;

  flex-direction: row;
    place-content: space-around;
    display: flex;
}
.facedowncard {
  transform: translateY(30vh);
  transition: transform 600ms ease-in, opacity 600ms ease-in;

  background-image: url(../images/cards/cardback.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  margin-top: 3vh;
  height: 20vh;
  width: 15vh;
}

@media screen and (max-width: 500px) {
  .facedowncard{
    margin-top: 6vh;
    height: 15vh;
    width: 10vh;
  }
}


.facedowncard.active {
  opacity:1;
  transform: translateY(0%);
}

.facedowncard.cardinvisible {
  display:none;
}
.facedowncard.faceup1 {
  background-image: url(../images/cards/cards_KH.png);
}
.facedowncard.faceup2 {
  background-image: url(../images/cards/cards_JC.png);
}
.facedowncard.faceup3 {
  background-image: url(../images/cards/cards_KS.png);
}
.facedowncard.faceup4 {
  background-image: url(../images/cards/cards_QD.png);
}
.facedowncard.faceup5 {
  background-image: url(../images/cards/cards_QC.png);
}

.facedowncard.faceup1b {
  background-image: url(../images/cards/cards_QH.png);
}
.facedowncard.faceup2b {
  background-image: url(../images/cards/cards_KC.png);
}
.facedowncard.faceup3b {
  background-image: url(../images/cards/cards_JH.png);
}
.facedowncard.faceup4b {
  background-image: url(../images/cards/cards_QS.png);
}


#instruct_4 {
  font-size: 2em;
}
#instruct_7 {
  cursor: pointer;
  pointer-events: all;

}