:root {
	--primary-color: #000000;
	--secondary-color: #461ae9;
	--background-color: #f5f8fa;
	--text-color: #202a36;
	--highlight-color: #ffffff;
	--danger-color: #fb0000;
	--uv-color: #9d4edd;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    	'Open Sans', 'Helvetica Neue', sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	padding: 0;
	margin: 0;
	max-width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

header {
	background-color: var(--primary-color);
	color: white;
	padding: 1rem;
	text-align: center;
	position: sticky;
	top: 0;
	z-index: 100;
}

h1 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.state-selector {
	margin-bottom: 1rem;
}

select {
	padding: 0.5rem;
	border-radius: 4px;
	border: none;
	font-size: 1rem;
	background-color: white;
	color: var(--text-color);
	width: 80%;
	max-width: 300px;
}

nav {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

button {
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 4px;
	background-color: var(--secondary-color);
	color: white;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

button:hover {
	background-color: #461ae9;
}

button.active {
	background-color: var(--primary-color);
}

#uvBtn {
	background-color: var(--uv-color);
}

#uvBtn.active {
	background-color: var(--secondary-color);
}

main {
	flex: 1;
	padding: 1rem;
	overflow-y: auto;
	position: relative;
}

#viewContainer {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	position: relative;
}

.state-container {
	width: 100%;
	height: 100%;
}

.view {
	display: none;
	width: 100%;
	max-width: 500px;
	height: auto;
	position: relative;
	margin: 0 auto;
}

.view.active {
	display: block;
}

.id-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hotspot {
	position: absolute;
	width: 30px;
	height: 30px;
	background-image: url('images/Look_Here-finger-60.ico');
	background-size: contain;
	background-repeat: no-repeat;
	cursor: pointer;
	z-index: 10;
	transform: translate(-50%, -50%);
}

.hotspot::before {
	content: "";
	font-size: 18px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}

#popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	max-width: 90%;
	width: 350px;
	max-height: 80vh;
	overflow-y: auto;
}

#popup.hidden {
	display: none;
}

#popupTitle {
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

#popupText {
	margin-bottom: 1rem;
}

#popupImageContainer {
	margin: 1rem 0;
}

#popupImageContainer.hidden {
	display: none;
}

#viewFeatureImage {
	background-color: var(--danger-color);
	width: 100%;
	margin-bottom: 0.5rem;
}

#featureImageView {
	margin-top: 1rem;
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#featureImageView.hidden {
	display: none;
}

#featureImage {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

#closePopup {
	background-color: var(--primary-color);
	display: block;
	margin: 0 auto;
}

/* UV View Styling */
.uv-tab-container {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

.uv-tab {
	background-color: var(--uv-color);
	opacity: 0.7;
	padding: 0.5rem 1rem;
	margin: 0 0.25rem;
}

.uv-tab.active {
	opacity: 1;
	background-color: var(--uv-color);
}

.uv-content {
	position: relative;
}

.uv-panel {
	display: none;
}

.uv-panel.active {
	display: block;
}

footer {
	background-color: var(--primary-color);
	color: white;
	text-align: center;
	padding: 0.5rem;
	font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 768px) {
	h1 {
    	font-size: 1.2rem;
	}

	button {
    	padding: 0.4rem 0.8rem;
    	font-size: 0.9rem;
	}

	.hotspot {
    	width: 25px;
    	height: 25px;
	}

	nav {
    	gap: 0.3rem;
	}
}