/* ===== Root ===== */
:root {
	--sky-bg: linear-gradient(to bottom, #6ec6ff, #b3e5fc);
	--overlay-opacity: 0.2;
	--glass-bg: rgba(255,255,255,0.25);
}

html, body {
	
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	
	overflow-x: auto;        /* ✅ กันล้นแนวนอน */
	overflow-y: auto;          /* ✅ ให้ scroll แนวตั้งทำงาน */
	background: var(--sky-bg);
	transition: background 1.5s ease;
	//font-family: 'Prompt', sans-serif;
	//font-family: 'Noto Sans Thai', sans-serif;
}

/* ===== Overlay ===== */
.weather-overlay {
	position: fixed;
	inset: 0;
	background: var(--overlay-color);
	opacity: var(--overlay-opacity);
	pointer-events: none;
}

/* ===== Canvas ===== */
#fx-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

/* ===== Weather Widget ===== */
.weather-widget {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 10;

	display: flex;
	gap: 14px;
	align-items: center;

	padding: 14px 18px;
	border-radius: 16px;
	background: var(--glass-bg);
	backdrop-filter: blur(14px);
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
	color: #fff;
}

.weather-icon {
	font-size: 38px;
	line-height: 1;
}

.weather-temp {
	font-size: 28px;
	font-weight: 600;
}

.weather-desc {
	font-size: 14px;
	opacity: 0.9;
}

.weather-datetime {
	font-size: 12px;
	opacity: 0.8;
	margin-top: 2px;
}

/* ===== Control Panel ===== */
.control-panel {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;

	display: flex;
	gap: 10px;

	padding: 10px 14px;
	border-radius: 14px;
	background: rgba(255,255,255,0.9);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.control-panel select,
.control-panel button {
	padding: 6px 10px;
	border-radius: 8px;
	border: none;
	font-size: 13px;
	cursor: pointer;
}

.control-panel button {
	background: #1976d2;
	color: #fff;
}

.control-panel button:hover {
	background: #125ca1;
}
