@charset "utf-8";

:lang(en) {
	font-family: "Emilys Candy", serif;
	font-weight: 400;
	font-style: normal;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	/* 至少滿版高 */
	position: relative;
	color: #f5f5f5;
	font-family: 'Kiwi Maru', serif;
	font-weight: 400;
	font-style: normal;
}

.bg-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('../img/bgrb.jpg') center/cover no-repeat;
	z-index: -1;
	/* 在內容後面 */
}

.wrapper {
	position: relative;
	flex: 1;
	/* 自動撐開剩餘高度 */
	margin-bottom: 50px;
	padding: 2rem;
}

.s2-nav__icon {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 20vw;
	max-width: 220px;
	z-index: 1000;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* 機器人身體圖片：疊在下層，預設隱藏 */
.bot-body {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 20vw;
	max-width: 220px;
	opacity: 0;
	z-index: 992;
	pointer-events: none;
	transition: opacity 0.3s ease-in-out;
}

#s2navIconBo.show {
	opacity: 1;
	pointer-events: auto;
}

/*跳出選單*/
.s2-nav__dropdown {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	opacity: 0;
	pointer-events: none;
	width: 70vw;
	aspect-ratio: 3 / 4;
	/* ✅ 寬高比例固定為 3:4 */
	max-height: 90vh;
	z-index: 990;
	transition: all 0.3s ease-in-out;
}

/* 顯示時加上 class */
.s2-nav__dropdown.show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
}

@keyframes popupIn {
	0% {
		opacity: 0;
		transform: translate(-50%, -60%) scale(0.9);
	}

	100% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* 內部文字樣式 */
.s2-nav__dropdown ul {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.s2-nav__dropdown li {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-bottom: 10px;
	padding: 10px 20px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.s2-nav__dropdown li:hover {
	background: linear-gradient(90deg, #00ffff, #ffffff, #00ffff);
	background-size: 200%;
	animation: pulseGlow 3s ease-in-out infinite;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.s2-nav__dropdown a {
	display: flex;
	flex-direction: column;
	width: 100%;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	color: white;
	font-weight: bold;
	font-size: clamp(1.2rem, 3.5vw, 2.2rem);
	font-family: 'Courier New', monospace;
	text-shadow: 0 0 3px #f2fc35d4;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.s2-nav__dropdown--cya {
	font-size: clamp(.8rem, 1.5vw, 1.2rem);
	letter-spacing: 5px;
}

@keyframes pulseGlow {

	0%,
	100% {
		filter: drop-shadow(0 0 5px #ff6600) drop-shadow(0 0 10px #ff9900);
	}

	50% {
		filter: drop-shadow(0 0 20px #ffcc33) drop-shadow(0 0 30px #ffaa00);
	}
}

#s2navIconHe {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 20vw;
	max-width: 220px;
	z-index: 1000;
	cursor: pointer;
	opacity: 1;
	/* 永遠顯示 */
	transition: opacity 0.3s ease-in-out;
}

/*選單選擇中*/
#s2navIconHe:hover {
	filter: brightness(1.4);
	transform: scale(1.1);
	transition: all 0.3s ease;
}

.s2-nav__dropdown:hover {
	transition: all 0.4s ease;
}

@keyframes neonTextFlow {
	0% {
		background-position: 0% 50%;
	}

	100% {
		background-position: 100% 50%;
	}
}

/* 🔲 半透明幕，初始隱藏 */
.s2navOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: linear-gradient(45deg, rgba(183, 233, 250, 0.9), rgba(1, 7, 24, 0.98));
	z-index: 980;
	/* 比 s2-nav__dropDown 低一層 */
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease-in-out;
}

.s2navOverlay.visible {
	opacity: 1;
	pointer-events: auto;
}

h1 {
	color: rgba(162, 153, 148, 0.566);
	font-family: "Rubik Lines", system-ui;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(2.5rem, 10vw, 20rem);
	letter-spacing: .2em;
	margin: 30px 0;
	text-transform: uppercase;
}

.options {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	/* ⬅️ 所有文字左對齊 */
	gap: 0.5rem;
	/* 上下間距 */
	letter-spacing: 2px;
	margin-bottom: 1rem;
}

.options label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	/* checkbox / radio 與文字的間距 */
	font-size: 1rem;
	color: #f5f5f5;
}

.flavor-options {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.flavor-options.hidden {
	display: none;
}

label {
	background-color: rgba(255, 255, 255, 0.1);
	/* 淡淡背景，預設10%白色 */
	padding: 0.5rem 1rem;
	border-radius: 6px;
	transition: background-color 0.3s ease;
	display: inline-block;
	cursor: pointer;
}

label:hover {
	background-color: rgba(255, 255, 255, 0.4);
	/* 滑鼠移過去，變更淺 */
}


.message-board {
	margin-top: 2rem;
	background: rgba(153, 142, 187, 0.4);
	border-radius: 8px;
	padding: 1rem;
}

.message {
	margin-bottom: 1rem;
	padding: 0.5rem;
	background: rgba(40, 37, 49, 0.7);
	border-left: 4px solid #ffcc00;
}

.switch-label {
	margin-left: 0.5rem;
	font-size: 0.9rem;
}

textarea {
	width: 80vw;
	position: relative;
	/* 讓它進入 z-index 層級控制 */
	z-index: 200;
	/* 保證在上層 */
	padding: 8px;
	letter-spacing: 1.1px;
	font-size: 1rem;
	color: black;
	margin-top: 1rem;
	cursor: text;
}

button {
	margin-top: 1rem;
	background-color: #c87c03;
	box-shadow: inset 0 2px 4px rgba(249, 246, 36, 0.878);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0.6rem 1.2rem;
	font-size: 1rem;
	letter-spacing: 2px;
}

button:hover {
	background-color: #c87c03;
	box-shadow: 0 6px 12px rgba(33, 250, 167, 0.837), inset 0 -2px 0 rgba(127, 241, 247, 0.792);
	transform: translateY(1px);
}

#footer {
	margin-bottom: -1rem;
	background: rgba(17, 17, 17, 0.7);
	color: #ccc;
	text-align: center;
	padding: 2rem 1rem;
	font-size: 0.9rem;
	position: relative;
	z-index: 981;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__content p {
	margin: 0.2rem 0;
	font-family: 'Courier New', monospace;
	animation: fadeIn 1s ease-in-out;
}

.footer__content .footer__content-p {
	color: orange;
	font-weight: bold;
	letter-spacing: 0.5px;
}

#footerTyping {
	color: white;
	font-family: 'Courier New', monospace;
	font-size: 0.9rem;
	word-break: break-word;
	overflow: hidden;
	border-right: 2px solid #ffa500;
	width: fit-content;
	margin: .5rem auto;
	animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

	0%,
	100% {
		border-color: transparent;
	}

	50% {
		border-color: #ffa500;
	}
}