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

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

.top-overlay, .bottom-overlay {
	position: absolute;
	background-color: rgba(0,0,0,0.3);
	/* width: 100vw; */
	width: 100%;
	height: 25%;
}
.top-overlay {
	top: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* justify-content: space-around; */
	justify-content: flex-end;
}
.bottom-overlay { bottom: 0; z-index: 30 }

.top-image {
	display: block;
	margin: 0 auto 1rem;
	/* position: absolute; */
	/* top: 20%; */
	/* left: 50%; */
	z-index: 11;
	border-radius: 50%;
	background-color: white;
	/* transform: translateX(-50%); */
	opacity: 0;
}

.top-text {
	display: block;
	width: 100%;
	padding-bottom: 1rem;
	/* position: absolute; */
	/* top: 70%; */
	/* left: 50%; */
	z-index: 12;
	color: white;
	text-align: center;
	/* transform: translateX(-50%); */
	opacity: 0;
}

.middle-overlay {
	position: absolute;
	top: 25%;
	z-index: 10;
	/* width: 100vw; */
	width: 100%;
	height: 50%;
	border: 6px dotted transparent;
	border-radius: 2vw;
	box-sizing: border-box;
}

#camera, #camera--view, #webcam, #camera--sensor, #camera--output {
	position: fixed;
	height: 100%;
	width: 100%;
	/* object-fit: cover; */
}

#camera--view, #camera--sensor, #camera--output {
	transform: scaleX(-1);
	filter: FlipH;
}
#camera--view.mobile, #camera--sensor.mobile, #camera--output.mobile {
	transform: scaleX(1);
}

#camera,
#camera--sensor,
#camera--output { display: none; }

#camera { background-color: black; }

#camera--trigger,
#camera--close,
#camera--clear {
	width: auto;
	min-width: 100px;
	max-width: 150px;
	/* padding: 15px 20px; */
	padding: 10px 15px;
	font-size: 16px;
	color: gray;
	text-align: center;
	background-color: white;
	border: 2px solid gray;
	border-radius: 5px;
	outline: none;
}
#camera--trigger:hover,
#camera--close:hover, 
#camera--clear:hover { cursor: pointer; }

#camera--trigger {
	color: #fb565c;
	border-color: #fb565c;
}

#camera--output.taken {
	display: block;
	width: 25%;
	height: auto;
	top: 20px;
	right: 20px;
	z-index: 2;
	transition: all 0.5s ease-in;
	border: 2px solid white;
	transform: scaleX(1);
}

#camera--output.taken.landscape {
	top: 10px;
	right: 10px;
}

#camera--control {
	display: flex;
	justify-content: space-around;
	align-items: center;
	width: 100%;
	/* height: 10vh; */
	height: 10%;
	min-height: 66px;
	position: absolute;
	bottom: 0;
	background-color: white;
	opacity: 0;
	z-index: 40;
}

#webcam {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#message-flash {
	margin-top: 20px;
	color: white;
}
#message-flash span {
	color: lime;
}
#btn-capture-flash {
	margin-top: 20px;
}

@media screen and (min-width: 320px) { /* iPhone 5 */
  .top-image {
		width: 60px;
		height: 60px;
		margin-bottom: 0.4rem;
	}
	.top-text {
		padding-bottom: 0.4rem;
	}
}

@media screen and (min-width: 375px) { /* iPhone 6 */
	.top-image {
		width: 60px;
		height: 60px;
	}
	.top-text {
		font-size: 0.9em;
	}
}

@media screen and (min-width: 411px) { /* Pixel */
	.top-image {
		width: 80px;
		height: 80px;
	}
	.top-text {
		font-size: 1em;
	}
}

@media screen and (min-width: 768px) { /* iPad Mini */
	.top-image {
		width: 100px;
		height: 100px;
	}
	.top-text {
		font-size: 1.6em;
	}
}

