@import url("https://fonts.googleapis.com/earlyaccess/notosanstc.css");
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Noto Sans TC';
  font-size: 15px;
	color: var(--darkgrey-color);
  margin: 0;
  padding: 0;
  background-color: var(--lightgreybg-color);
}
:root {
	--lightgrey-color: #e0e0e0;
  --lightbrown-color: #f3f3f3;
	--darkgrey-color: #666666;
  /* --lightgrey-color: #EEEEEE; */
  --lightgreybg-color: #F5F7F8;
  --mintgreen-color: #2ecc71;
  --darkgreen-color: #27ae60;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(0, 0, 0, 0.1);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --hover-shadow: rgba(0, 0, 0, 0.15);
  --menu-shadow: rgba(0, 0, 0, 0.6);
}
.mintgreen-stroke {
  stroke: var(--mintgreen-color);
}
html, body {
  height: 100%; /*外層高度100%*/
  margin: 0;
  padding: 0;
  overflow-y: scroll;
}
body {
	display: flex;
	flex-direction: column;
}
/* 白空格控制可用在特定元素上，避免全域 nowrap 擠壓 */
/* .nowrap {
  white-space: nowrap;
} */
main {
  flex: 1;
  width: 100%;
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.menu {
  width: 100%;
  height: 65px;
  position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
  z-index: 1000;
  border: 2px solid var(--lightgrey-color);
}
.menu__item {
  width: 1200px;
  display: flex;
  /* flex-direction: row; */
  justify-content: space-between;
  /* align-items: center; */
}
.menu__item--container--left {
  display: flex;
  align-items: center;
}
.menu__item--icon img{
  width: 50px;
  height: 50px;
}
.menu__item--text{
	display: flex;
	align-items: center;
}
a {
  text-decoration: none;
}
.menu__item--text--EN{
	font-size: 28px;
	font-weight: 600;
	color: var(--mintgreen-color);
  text-shadow: 0px 0px 0.5px var(--menu-shadow);
	margin: 0 20px 5px 20px;
}
.menu__item--text--EN:hover{
  color: var(--darkgreen-color);
}
.menu__item--header a {
	font-weight: 400;
  margin-right: 20px;
}

.menu__item--container--right {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  color: var(--darkgrey-color);
  gap: 20px;
}
.menu__item--member {
  display: flex;
  /* flex-direction: row; */
  align-items: center; /* 垂直置中 */
}
.menu__item--member--user img{
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--mintgreen-color);
  margin-top: 5px;
}
.rounded-circle{
	object-fit: cover;   /* 確保圖片不會變形 */
  border-radius: 50%;  /* 做出圓形 */
	border: 1.5px solid var(--mintgreen-color);
}
input{
	width: 150px;
	border: 1px solid var(--lightgrey-color);
	border-radius: 3px;
	text-indent: 10px;
}
.footer__container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 85px;
  width: 100%; /* 可選，讓 footer 橫跨整個頁面 */
  background-color: var(--mintgreen-color);
  color: white;
  font-size: 14px;
}
.menu__item--header--a {
  position: relative;
  color: inherit; /* 預設文字顏色繼承 */
  text-decoration: none; /* 移除預設底線 */
  transition: color 0.3s ease; /* 平滑顏色變化 */
}
.menu__item--header--a:hover {
  color: var(--mintgreen-color); /* 滑過去變綠色 */
}
.menu__item--header--a::after {
  content: "";
  position: absolute;
  bottom: -23px; 
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: var(--mintgreen-color);
  transition: width 0.3s ease;
}
.menu__item--header--a:hover::after {
  width: 150%;
}

.menu__item--language--toggle:hover {
  color: var(--mintgreen-color);
}
.menu__item--language--dropdown {
  display: none;
}
.menu__item--member--login {
  min-width: 80px;    
  height: 38px;
  padding: 0rem 1rem;
  font-size: 1rem;
  background-color: var(--mintgreen-color);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-items: center;     /* 文字垂直置中 */
  justify-content: center; /* 文字水平置中 */
}

.menu__item--member--login:hover {
  background-color: #27ae60; /* 深一點的綠 */
}

.language-select {
  min-width: 110px;       /* 固定寬度 */
  height: 38px;       /* 與 navbar 高度一致 */
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: var(--mintgreen-color);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  appearance: none; /* 移除原生樣式 */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 0.8rem;
  padding-right: 2rem; /* 給箭頭留空間 */
  transition: background-color 0.3s ease;
}

.language-select:hover {
  background-color: var(--darkgreen-color);
}

