@charset "utf-8";

/*
.kiwi-maru-regular {
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-weight: 300;
  font-style: normal;
}
.emilys-candy-regular {
  font-family: "Emilys Candy", serif;
  font-weight: 400;
  font-style: normal;
}
.rubik-lines-regular {
  font-family: "Rubik Lines", system-ui;
  font-weight: 400;
  font-style: normal;
}

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

body {
	background-color: black;
	overflow-x: hidden;
	font-family: 'Kiwi Maru', serif;
	font-weight: 300;
	font-style: normal;
	overflow-x: hidden;
	max-width: 100vw;
}

#wrapper {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	min-height: 100vh;
	overflow: hidden;
	background-color: #1e1e1e;
	color: rgb(223, 210, 203);
	padding: 2rem;
	line-height: 1.8;
	overflow-x: hidden;
}

#background-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	/* ✅ 不讓背景遮擋互動 */
}

#background-layer canvas {
  max-width: 100vw;
  overflow-x: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

#content-layer {
	position: relative;
	z-index: 10;
	margin: 30px;
}

.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(86, 81, 78, 0.6);
	font-size: 50px;
	letter-spacing: .15em;
	margin: 30px 0;
	font-family: "Rubik Lines", system-ui;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(2.5rem, 12vw, 10rem);
	max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

h2 {
	color: orange;
	font-size: 18px;
	letter-spacing: .15em;
	margin-top: 30px;
}

h3 {
	color: #a95f2d;
	font-size: 16px;
	letter-spacing: .15em;
	margin: 25px 0 5px 0;
	text-align: justify;
}

h4 {
	color: #498589;
	font-size: 14px;
	letter-spacing: .15em;
	margin: 25px 0 5px;
}

p {
	font-size: clamp(.85rem, 2vw, 1rem);
	color: rgb(223, 210, 203);
	letter-spacing: .15em;
	line-height: 1.6;
	text-align: justify;
}

ul {
	padding-left: 0;
	font-size: clamp(.85rem, 2vw, 1rem);
	color: rgb(223, 210, 203);
	letter-spacing: .1em;
	line-height: 1.6;
	text-align: justify;
	list-style: upper-roman;
	list-style-position: inside;
}

.structure {
	list-style: none;
	margin: 1.5rem 0 2rem 0;
}

.structure__li{
	margin: 10px 0;
}

.structure__img{
	max-width: 100%;
  height: auto;
  display: block;
}

.credit {
	list-style: none;
}

.structure-c {
	margin: 1.5rem 0 0 0;
}

.section {
	margin-bottom: 3rem;
}

#footer {
	margin-bottom: -1rem;
	background: rgb(17, 17, 17);
	color: #ccc;
	text-align: center;
	padding: 2rem 1rem;
	font-size: 0.9rem;
	position: relative;
	z-index: 981;
}

.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;
	border-right: 2px solid #ffa500;
	width: 100%;
	max-width: 90vw;
	margin: .5rem auto;
	width: fit-content;
	word-break: break-word;
	overflow: hidden;
	animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

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

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

