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

body {
	margin: 0;
	padding: 0;
	background-color: #1a1a1a;
	display: flex;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
}

.content-container {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	max-width: 430px;
	position: relative;
	overflow: hidden;
	background-color: #fff;
}

/* All layers are absolutely positioned */
.layer {
	position: absolute;
	left: 0;
	/* Width set by JS to leave room for temp bar */
}

/* Sky: full height, at bottom (z-index 1) */
.sky-layer {
	bottom: 0;
	z-index: 1;
}

/* Photo: at bottom, sized to SKYLINE_HEIGHT (z-index 2) */
.photo-layer {
	bottom: 0;
	z-index: 2;
	object-fit: cover;
	object-position: bottom;
}

/* Smog: full height, at bottom (z-index 3) */
.smog-layer {
	bottom: 0;
	z-index: 3;
}

/* Overlay: full height, at bottom (z-index 4) */
.overlay-layer {
	bottom: 0;
	z-index: 4;
	pointer-events: none;
}

/* Indicator canvases */
.indicator {
	position: absolute;
	bottom: 0;
	z-index: 5;
	pointer-events: none;
}

/* Height scale: overlaid on left of main canvas */
.height-indicator {
	left: 0;
	width: 45px;
}

/* Temperature indicator: far right, abutting main canvas */
.temp-indicator {
	right: 0;
}

/* Wind indicator: centered on main canvas */
.wind-indicator {
	/* Position set by JS */
}



/* AQI Card - centered below slider with date */
.aqi-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: center;
	margin: 8px auto 0 auto;
	padding: 8px 16px;
	border-radius: 14px;
	background-color: #4CAF50;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
	border: 2px solid rgba(255, 255, 255, 0.3);
	transition: background-color 0.3s ease;
}

.aqi-datetime {
	font-family: sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #fff;
	opacity: 0.9;
	margin-bottom: 4px;
}

.aqi-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.aqi-value {
	font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.aqi-label {
	font-family: sans-serif;
	font-size: 9px;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	max-width: 60px;
	line-height: 1.2;
}

/* Time Slider */
.time-slider-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	padding: 12px 16px 8px 16px;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
}


.slider-track-container {
	position: relative;
	width: 100%;
	height: 44px;
	display: flex;
	align-items: center;
}

/* Day/night gradient track behind slider */
.day-night-track {
	position: absolute;
	left: 0;
	right: 0;
	height: 8px;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 4px;
	pointer-events: none;
}

/* Range input - touch optimized */
#timeSlider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	background: transparent;
	border-radius: 4px;
	outline: none;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

/* Webkit (Chrome, Safari, Edge) */
#timeSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	border: 3px solid rgba(100, 150, 255, 0.8);
	transition: transform 0.1s ease;
}

#timeSlider::-webkit-slider-thumb:active {
	transform: scale(1.15);
}

/* Firefox */
#timeSlider::-moz-range-thumb {
	width: 28px;
	height: 28px;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	border: 3px solid rgba(100, 150, 255, 0.8);
}

/* Now marker */
.now-marker {
	position: absolute;
	width: 4px;
	height: 16px;
	background: rgba(255, 200, 100, 0.9);
	border-radius: 2px;
	top: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	box-shadow: 0 0 6px rgba(255, 200, 100, 0.6);
}

.time-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	margin-bottom: 2px;
	padding: 0 2px;
}

.time-labels span {
	font-family: sans-serif;
	font-size: 10px;
	font-weight: 500;
	color: rgba(40, 40, 50, 0.7);
	transition: color 0.3s ease;
}

/* Night mode label colors - applied via JS */
.time-labels.night-mode span {
	color: rgba(255, 200, 120, 0.8);
}

/* ========== Landing Page ========== */

.landing-page {
	background-color: #1a1a1a;
}

.landing-container {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	max-width: 430px;
	position: relative;
	overflow: hidden;
}

/* Sky gradient background */
.landing-sky {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		to bottom,
		rgb(135, 206, 235) 0%,
		rgb(224, 246, 255) 100%
	);
	z-index: 1;
}

/* Animated smog canvas */
.landing-smog-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

/* Content layer */
.landing-content {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	flex-direction: column;
	pointer-events: none;
}

/* Logo section - top half */
.logo-section {
	height: 45%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	text-align: center;
	animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-12px);
	}
}

.logo-line1,
.logo-line2 {
	font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
	font-weight: 700;
	color: #fff;
	text-shadow:
		0 4px 0 rgba(80, 60, 40, 0.5),
		0 6px 20px rgba(0, 0, 0, 0.3);
	letter-spacing: 3px;
}

.logo-line1 {
	font-size: 100px;
}

.logo-line2 {
	font-size: 72px;
	margin-top: -4px;
}

/* Cities section - bottom half */
.cities-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 20px 20px;
	gap: 16px;
	pointer-events: auto;
}

/* City buttons - cartoony style (orange) */
.city-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 80%;
	max-width: 280px;
	padding: 16px 24px;
	background: linear-gradient(
		to bottom,
		#ff9f43 0%,
		#f39c12 50%,
		#e67e22 100%
	);
	border: 4px solid #d35400;
	border-radius: 16px;
	text-decoration: none;
	box-shadow:
		0 6px 0 #a04000,
		0 8px 12px rgba(0, 0, 0, 0.3),
		inset 0 2px 0 rgba(255, 255, 255, 0.3);
	transition: all 0.1s ease;
	cursor: pointer;
}

.city-button:hover {
	transform: translateY(-2px);
	box-shadow:
		0 8px 0 #a04000,
		0 10px 16px rgba(0, 0, 0, 0.35),
		inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.city-button:active {
	transform: translateY(4px);
	box-shadow:
		0 2px 0 #a04000,
		0 4px 8px rgba(0, 0, 0, 0.25),
		inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.city-name {
	font-family: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: #fff;
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
	letter-spacing: 1px;
}

.city-flag {
	font-size: 28px;
}

.attribution {
	margin-top: 24px;
	margin-bottom: 20px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
}

.attribution a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.attribution a:hover {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
}
