/* body {
  font:
    1rem "Lucida Grande",
    "Arial",
    sans-serif;
  padding: 0.8rem;
} */

/* .material-symbols-outlined {
  display: block;
  margin-block: 1rem;
} */

.btn-bar {
  display: flex;
  position:relative;
}

.btn-item {
  width: 50px;
  height: 50px;
  margin: auto;
  margin-top: 8px;
  font-size: 20px;
  color:black;
}

/* #open-button {
  position: relative;
  margin: auto;
  top: 8px;
} */

.cam-btn {
	font-size: 20px;
	color:black;
}

#cam-err {
	color:white;
	display;block;
}

#start-button {
  background-color: rgb(0 150 0 / 50%);
  border: 1px solid rgb(255 255 255 / 70%);
  box-shadow: 0px 0px 1px 2px rgb(0 0 0 / 20%);
  font-size: 38px;
  color: white;
}

#accept-button { 
  visibility: hidden;
}

#permissions-button,
#rotateleft-button,
#rotateright-button {
  /* margin:auto; */
  display:block;
  margin-bottom:8px;
  /* position:absolute;
  top: 9.5%;
  left: 45%; */
}

#switch-button {
  display:block;
  position: relative;
  left: 90%;
  margin-top: 10px;
  /* transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%); */
  z-index:1;
  /* opacity: 50%; */
}

#cliche,
#cam-video,
#photo {
  border: 1px solid black;
  box-shadow: 2px 2px 3px black;
  /* width: 100%; */
  width: auto;
  height: 85%;
  margin: 0 auto;
  /* min-height:430px;
  min-width: 430px; */
}

/* #cam-video {
	position:relative;
	left: -55%;
	text-align: left;
} */

#cliche {
	position:relative;
	/* left: 50%; */
}

#cliche,
#cam-canvas {
  display: none;
}

.camera,
.output {
  position:relative;
  /* display: inline-block; 
  width: 49%;*/
  width: auto;
  height: 85%;
  /* height: 80%; */
}



.output {
  vertical-align: top;
}

/* code {
  background-color: lightgrey;
} */

.modal-video-stream {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.video-stream-content {
  /* background-color: #fefefe; */
  background-color: black;
  margin: 0 auto; /* 15% from the top and centered */
  padding: 20px;
  /*border: 1px solid #888;*/
  width: auto; /* Could be more or less, depending on screen size */
  height: 90%;
  /* height: 90%; */
}

/* @media (orientation: portrait) {
  .camera {
	display: block;
    width: 90%;
	height: 70%;
  }
  #cliche,
  #cam-video,
  #photo {
	width: 100%;
	height: auto;
 }
 .video-stream-content {
	height: 93%;
 }
} */
.cam-inverter {
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
}
/* @media (orientation: portrait) {
  #cam-video {
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
  }
} */

@media only screen and (max-width: 650px) and (orientation: landscape) {
  .camera {
	display: inline;
	width: 80%;
	height: 100%;
  }
  #cliche,
  #cam-video,
  #photo {
	/* width: 57%;
	height: 57%; */
	width: 83%;
	height: 70%;
	margin: 0 auto;
 }
 .video-stream-content {
	display:inline-block;
	height: 43%;
 }
} 
