html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: url(background.png) #e3df28;
  background-position: center center;
  background-size: cover;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

video,
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#inputVideo {
  z-index: 0;
  transform: scaleX(-1);
  display: none;
}

#outputCanvas {
  z-index: 1;
  pointer-events: none;
  display: none;
}

#babylonCanvas {
  z-index: 3;
  pointer-events: none;
  background: transparent;
}

#background{
  position: absolute;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

#inputVideo,
#babylonCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#inputVideo {
  object-fit: contain; /* more accurate than cover */
  transform: scaleX(-1);
  background: black;
}


  #handLabel {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(0%, -50%);
    pointer-events: none;
    z-index: 9999;
    display: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 6px black;

    img{
      width:300px;
    }
  }

#background{
  opacity: 0;  
  transition: all 0.6s ease-in-out;
}

#background.active{
  opacity: 1;  
  transition: all 0.6s 2s ease-in-out;
}

#handLabel{
  opacity: 0;  
  transition: opacity 0.6s ease-in-out;
}

#handLabel.active{
  opacity: 1;  
}


