html, body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	overscroll-behavior: none;
}

#header {
	background: linear-gradient(135deg, rgba(24, 29, 53, 0.75) 0%, rgba(37, 23, 50, 0.75) 100%), url('../media/thumbnail.jpg');
	background-size: cover;
	background-position: center;
	color: white;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header h1 {
	margin: 0;
	font-size: 2em;
}

#header h2 {
	margin: 5px 0;
	font-size: 1.2em;
	font-weight: 300;
}

#controls {
	background: #f8f9fa;
	padding: 15px;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

#cy {
	width: 100%;
	height: calc(100vh - 250px);
	background: #fafafa;
	border-top: 3px solid #667eea;
}

.btn-group {
	display: flex;
	gap: 10px;
}

.control-btn {
	padding: 8px 16px;
	border: none;
	border-radius: 5px;
	background: #667eea;
	color: white;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.3s;
}

.control-btn:hover {
	background: #764ba2;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.control-btn:active {
	transform: translateY(0);
}

#info-panel {
	background: white;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	display: none;
	position: absolute;
	top: 80px;
	right: 20px;
	width: 300px;
	z-index: 1000;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
}

#info-panel.show {
	display: block;
}

#info-panel h3 {
	margin-top: 0;
	color: #667eea;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
}

#info-panel .close-btn {
	float: right;
	cursor: pointer;
	font-size: 20px;
	color: #999;
}

#info-panel .close-btn:hover {
	color: #333;
}

.stat-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.stat-label {
	font-weight: 600;
	color: #555;
}

.stat-value {
	color: #333;
}

#breadcrumb {
	padding: 10px 15px;
	background: white;
	border-bottom: 1px solid #dee2e6;
	font-size: 14px;
	color: #666;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#breadcrumb span:not(.hide-on-small) {
	color: #667eea;
	font-weight: 600;
}

#last-updated {
	font-style: italic;
	opacity: 0.8;
}

.legend {
	display: flex;
	gap: 10px;
	align-items: center;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
}

.legend-color {
	width: 20px;
	height: 20px;
	border-radius: 2px;
}


@media (max-width: 600px) {
	.hide-on-small {
		display: none;
	}

	#header h1 {
		font-size: 1.5em;
	}

	#header h2 {
		font-size: 1.2em;
	}

	#header .footer {
		font-size: 0.9em;
	}

	/* Hide button text, keep icons only */
	.btn-text {
		display: none;
	}

	/* Center buttons and legend when they wrap */
	#controls {
		justify-content: center;
	}

	/* Make icon buttons larger on mobile */
	.control-btn {
		font-size: 20px;
	}
}

#header a {
	color:white;
}