html {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
}

body {
  width : 100%;
  height : 100%;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background-color: #ffff99;
}

#cameraContainer {
  /*position: absolute;*/
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  /*bottom: 0;*/
}

#photoImg {
  width : 100%;
  height : 100%;
  margin: 0;
  padding: 0;
}

#photoModeContainer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

#flash {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: white;
  z-index: 10;
  opacity: 0;
  transition: 0.5s;
}

.flash #flash {
  opacity: 1;
  transition: 0s;
  pointer-events: auto;
}

/* ローディング表示部 */
#loading {
  width: 100vw;
  height: 100vh;
  transition: all 1s;
  /*background-color: #0bd;*/
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* シャッター時スピナー */
.spinner {
  width: 100px;
  height: 100px;
  margin: 200px auto;
  background-color: #ffff00;
  border-radius: 100%;
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

/* ローディングアニメーション */
@keyframes sk-scaleout {
  0% {
    transform: scale(0);
  } 100% {
    transform: scale(1.0);
    opacity: 0;
  }
}

/* ロード後 */
.loaded {
  opacity: 0;
  visibility: hidden;
}

#photoModeImage {
  position: absolute;
  max-width: 65%;
  max-height: 65%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 0px 5px white;
  border-radius: 2vmax;
  opacity: 0;
  transition: 0.5s;
}

.photo #photoModeImage {
  opacity: 1;
  transition: 0s;
  pointer-events: auto;
}

#shutterButton, #closeButton {
  position: absolute;
  width: 15vmin;
  height: 15vmin;
  background-color: white;
  bottom: 2vmax;
  border-radius: 7.5vmin;
  left: 50%;
  transform: translateX(-50%);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: auto;
}

#shutterButton {
  background-image: url('../img/camera.png');
}

.photo #shutterButton {
  display: none;
}

#closeButton {
  background-image: url('../img/close.png');
  display: none;
}

.photo #closeButton {
  display: block;
}

#toggleButton {
  position: absolute;
  width: 15vmin;
  height: 15vmin;
  background-color: white;
  bottom: 2vmax;
  border-radius: 7.5vmin;
  left: 20%;
  transform: translateX(-50%);
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: auto;
}

#toggleButton {
  background-image: url('../img/toggle.png');
}

.canvas-wrapper {  
  position: relative;
}

.canvas-wrapper canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#videoPreview {
  width: 100%;
  height: 100%;
}

/* facing modeで左右反転 */
video.active {
  transform: rotateY(180deg);
  -webkit-transform:rotateY(180deg);
  -moz-transform:rotateY(180deg);
}

.rotate90 {
  -webkit-transform: rotate(90deg);
}
