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

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: sans-serif;
}

/* video ************* */
#video {
	width: 100vw;
	height: 100%;
	position: relative;
}
#video video {
	width: 100%;
	height: 100%;
	background-color: #000;
}

#video.hide {
	display: none;
}
#video .capture-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	width: 60px;
	height: 60px;
	bottom: 30px;
	left: calc(50% - 30px);
	background-color: #FFF;
	border-radius: 50%;
	border: 1px solid #CCC;
	z-index: 100;
}
#video .capture-btn::before {
	content: "";
	display: block;
	width: 50px;
	height: 50px;
	background-color: #FFF;
	border-radius: 50%;
	border: 1px solid #CCC;
}
#video .capture-btn:hover {
	opacity: 0.8;
}
#video .capture-btn:active {
	opacity: 0.5;
}

/* canvas ************* */
#canvas {
	display: none;
	text-align: center;
}
#canvas.show {
	display: block;
	width: 100vw;
	height: 100vh;
	position: relative;
}
#canvas canvas {
	width: 100vw;
	height: 100%;
}
#canvas .cancel-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	width: 50px;
	height: 50px;
	left: calc(50% - 25px);
	bottom: 30px;
	cursor: pointer;
}
#canvas .cancel-btn::before,
#canvas .cancel-btn::after {
	display: block;
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 84%;
	height: 16%;
	margin: -8% 0 0 -42%;
	background: #F00;
}
#canvas .cancel-btn::before {
	transform: rotate(-45deg);
}
#canvas .cancel-btn::after {
	transform: rotate(45deg);
}

/* .unsupported ************* */
.unsupported {
	display: none;
	flex-direction: column;
	position: fixed;
	justify-content: center;
	align-items: center;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100%;
	color: #fff;
}

.unsupported.is-show {
	display: flex;
}

.unsupported-title {
	font-weight: bold;
	font-size: 2em;
}
