body {
	font-family: system-ui, sans-serif;
	padding:10px;
	margin: 0;
	box-sizing: border-box;
	font-size: 1rem;
	line-height: 1.5;
	color: #222;
	background-color: #fff;
}

h2, h3 {
	margin: 1.2rem 0 0.8rem;
	font-size: 1.4rem;
}

#preview {
	max-width: 100%;
	width: 200px;
	border: 1px solid #ccc;
	margin-bottom: 1rem;
	display: block;
}

.result {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.samples{
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 1rem;
}
.samples img{
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 0 5px rgba(0,0,0,.15);
}

.result img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 0 5px rgba(0,0,0,.15);
}

.result div {
	font-size: 0.95rem;
	margin-top: 0.3rem;
	text-align: center;
}

input[type="file"] {
	font-size: 1rem;
	margin-bottom: 1rem;
}

/* 탭 스타일 */
.tab-headers {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	background-color: #f1f1f1;
	border-bottom: 1px solid #ccc;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.tab-header {
	padding: 10px 20px;
	cursor: pointer;
	border: 1px solid transparent;
	border-bottom: none;
	margin-bottom: -1px;
	transition: background-color 0.3s ease, color 0.3s ease;
	font-size: 1rem;
	white-space: nowrap;
}

.tab-header.active {
	background-color: #fff;
	border-color: #ccc;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	color: #333;
}

.tab-header:not(.active):hover {
	background-color: #ddd;
	color: #000;
}

/* 모바일 대응 */
@media (max-width: 600px) {
	body {
		font-size: 1.1rem;
	}

	h2 {
		font-size: 1.6rem;
	}

	h3 {
		font-size: 1.3rem;
	}

	.tab-header {
		flex: 1 0 100%;
		text-align: center;
		font-size: 1.1rem;
		border-right: none;
		border-bottom: 1px solid #ccc;
		border-radius: 0 !important;
		margin-bottom: 0;
	}

	.tab-header.active {
		border-bottom: 1px solid #fff;
	}

	.result img {
		width: 100px;
		height: 100px;
	}

	.result div {
		font-size: 0.9rem;
	}
	.result {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

#videoElement {
	width: 50%;
	height: auto;
	display: block; /* 비디오 요소가 블록 레벨이 되도록 설정 */
}
#captureCanvas {
	display: none; /* 캔버스는 눈에 보이지 않게 설정 */
}
#capturedImage {
	max-width: 50%;
	height: auto;
	display: block;
}