:root {
	--doc-height: 100%;
	--doc-width: 100%;
	--brand-primary: #FE3200;
}

html {
	width: 100vw;
	width: var(--doc-width);
	height: 100vh;
	height: var(--doc-height);
	font-family: 'Ubuntu', sans-serif;
	background-color: #121212;
}

body {
	width: 100%;
	width: var(--doc-width);
	height: 100%;
	height: var(--doc-height);
	margin: 0;
	overflow: hidden;
	background-color: #121212;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	user-select: none;
	-webkit-user-select: none;
}

/* Auto-hide cursor for kiosk / TV mode */
body.hide-cursor {
	cursor: none !important;
}

/* Preloader */
.preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #121212;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 1;
	transition: opacity 0.5s ease-out;
	pointer-events: none;
}

.preloader.fade-out {
	opacity: 0;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--brand-primary, #FE3200);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Main Container */
.wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	position: relative;
}

/* Empty State Notices */
.notice-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2rem;
	animation: fadeIn 0.6s ease-out;
	z-index: 10;
}

#notice-CH {
	font-family: 'Noto Sans TC', sans-serif;
	font-weight: 900;
	font-size: 3em;
	margin: 0 0 0.5rem 0;
	color: #FFFFFF;
	letter-spacing: 2px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#notice-EN {
	font-size: 1.4em;
	font-weight: 400;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Carousel Viewport */
.carousel-container {
	height: 100%;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.carousel {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Individual Slide Elements with Hardware Acceleration */
.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	will-change: transform;
	transform: translate3d(100%, 0, 0);
	transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide.active {
	transform: translate3d(0, 0, 0);
}

.carousel-slide.prev {
	transform: translate3d(-100%, 0, 0);
}

/* Ambient Blurred Glow Backdrop behind Flyer */
.slide-backdrop {
	position: absolute;
	top: -5%;
	left: -5%;
	width: 110%;
	height: 110%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(40px) brightness(0.4);
	transform: scale(1.1);
	z-index: 1;
	pointer-events: none;
}

/* Sharp Announcement Flyer Foreground (fit without cropping) */
.slide-foreground {
	position: relative;
	width: 100%;
	height: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	z-index: 2;
}

/* Optional Slide Progress Bar */
.progress-bar-container {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: rgba(255, 255, 255, 0.12);
	z-index: 50;
	pointer-events: none;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: var(--brand-primary, #FE3200);
	box-shadow: 0 0 10px rgba(254, 50, 0, 0.6);
}

/* Optional Kiosk Digital Clock */
.clock-badge {
	position: fixed;
	top: 24px;
	right: 28px;
	padding: 8px 18px;
	background: rgba(18, 18, 18, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 30px;
	color: #FFFFFF;
	font-size: 1.15em;
	font-weight: 500;
	letter-spacing: 0.5px;
	z-index: 50;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	pointer-events: none;
}