html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans','Times New Roman', sans-serif, serif;
  background-color: #ffeedd;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#logo img{
  height: 6vw;
  width: auto;
  margin-left: 1vw;
  background-color: transparent; 
}
.bar{
  background-color:rgb(45, 33, 29);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}
.menu {
  font-size: 1.25vw;
  color: black;
  display: flex;
  gap: 1.875vw;
  margin-right: 5vw;
}
.menu p,.menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 13;
}
.button {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 0.625vw;
  background-color: transparent;
  border: none;
  cursor: pointer;  /*當滑鼠移到這個元素上時，游標會變成小手手 */
  display: inline-block;
  margin: 0 0 0 0;
}
.drop-content {
  display: none;
  position: absolute;
  background-color: #B94942;
  min-width: 10vw;
  box-shadow: 0vw 0.5vw 1vw rgba(0,0,0,0.2);
  z-index: 100;
  border-radius: 0.625vw;
  margin-top: 0vw;
}
.drop-content a {
  color: white;
  padding: 0.75vw 1vw;
  text-decoration: none;
  display: block;
}
.drop-content a:hover {
  background-color: #980C00; /* 背景變色 */
  border-radius: 0.625vw;
}
.dropdown:hover .drop-content {
  display: block; /*當滑鼠移到 .dropdown 元素上時（也就是整個「Project」或「Team」那一欄），顯示 .drop-content（原本是隱藏的選單），讓下拉選單展開*/
}
.button::after {
  content: " ▼";
  font-size: 0.75vw;
}
.button.noarrow::after {
  content: "";
}
#progress-bar-container {
  position: fixed;
  top: 5.8vw; /* 算到導覽列的高度*/
  left: 0vw;
  width: 100%;
  height: 0.5vw; /* 進度條的高度 */
  background-color: transparent; /* 進度條背景顏色 */
  z-index: 9;
}
#progress-bar {
  background: linear-gradient(90deg, #de5d00 0%, #a100dc 100%);
  height: 100%;
  width: 0%; /* 靜態進度條的起始值*/
}
#footprint {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
  display: block;
  pointer-events: none;
}
#footprint img {
  position: absolute;
  top: -1vw;
  left: 0;
  height: 2vw;
  width: auto;
  pointer-events: none;
}
#background{
  min-height: 95vh;
  background-image: url('https://static.igem.wiki/teams/5854/background/big-bg6.webp');
  background-size: cover;
  background-position: center 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6vw auto 0 auto;
  width: 100%;
}
#member-background{
  min-height: 95vh;
  background-image: url('https://static.igem.wiki/teams/5854/background/all-people-bg.webp');
  background-size: cover;
  background-position: center 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6vw auto 5vw auto;
  width: 100%;
}
h1{
  font-size: 5vw;
  font-family: 'Fugaz One', sans-serif;
  color: white;
  margin-top: -6vw;
  letter-spacing: 0.2em;
  text-shadow: 5px 5px 6px black;
  animation: fadeIn 2.5s ease;
  text-align: center;
}
h2[id] {
  scroll-margin-top: 8vw; /* 比 bar 稍微高一點 */
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.content{
  display: flex;
  padding: 2.5vw;  /*.content 和它元素內部四邊的空白距離*/
  gap: 2.5vw;  /*.content 裡的子元素之間的空隙*/
  margin-top: 0vw; /* 讓內容區塊下移 */
}
.sidebar {
  background-color: transparent;
  padding: 0;
  margin-left: -3vw;
  margin-right: -1.5vw;
  min-width: 20vw;
  height: fit-content;
  position: sticky;
  top: 8vw;
  border-radius: 1.875vw;
}
.sidebar ul {
  list-style: none;
  padding-left: 1.875vw;
  margin: 0;
}
.sidebar li {
  font-family:'Open Sans','Times New Roman', sans-serif, serif;
  color: rgb(56, 56, 56);
  font-size: 1.2vw;
  margin-bottom: 0.5vw;
  padding: 0.3vw 0 0.3vw 1vw;
  letter-spacing: 0.05em;
  min-width: 15vw;
  position: relative; /* 讓偽元素定位參考 li */
  line-height: 1.1;
}
.sidebar ul ul {
  margin-left: 1vw;
  padding-left: 1vw;
  border-left: 2px solid #ffd4c4;
}
.sidebar ul ul li {
  font-size: 0.95em;
  color: #8D7269;
}
.sidebar li:hover {
  color: white;
  background-color: #d06c60; /* 你想要的顏色 */
  cursor: pointer;
  transition: background 0.5s;
  font-weight: bold;
}
.sidebar li:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0%;
  height: 100%;
  width: 0.3vw;
  background: #8b0006;
  border-radius: 1vw;
}
.sidebar li.active,
.sidebar li.active::before {
  color: white;
  background-color: #b94942;
  font-weight: bold;
  box-shadow: inset 0 2px 6px #7a2e2e, inset 0 -2px 6px #fff2ee;
  border-radius: 0.5vw;
  transition: background 0.5s, box-shadow 0.5s;
}
.sidebar li.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0%;
  height: 100%;
  width: 0.3vw;
  background: #8b0006;
  border-radius: 1vw;
}
.sidebar a {
  font-weight: normal;
  color: inherit;
  text-decoration: none;
}
.sidebar a.sidebar-title {
  display: block;
  padding: 0.3vw 0;
}
.main-text{
  background-color: white;
  padding: 1.875vw 3.125vw;
  border-radius: 0.625vw;
  margin:-3.125vw -1.25vw 0vw 0vw;
}
.title{
  font-size: large;
  scroll-margin-top: 5.625vw; /* 導覽列高度 (80px) + 一點額外空間 */
}
.title-distinguishline {
  height: 0.4vw;
  width: 100%;
  background-color: #8b0006;/* 線的顏色，自訂 */
  margin-top: 0.3125vw;
}
.paragraph{
  font-size: 1.2vw;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 4vw;
  margin-top: 2vw;
}
figcaption {
  font-size: 1.2vw;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
  min-width: 20vw;
  max-width: 40vw;
  margin: 1vw auto;
}
.reference a {
  font-size: 1vw;
  color: #1a61d5;
  text-decoration: underline;
  word-break: break-all;
  overflow-wrap: break-word;
}
.reference a:visited {
  color: #0b0080;
}
.reference a:hover {
  cursor: pointer;
}
.footer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  background-color: #8b0006;
  padding: 1.25vw 1.875vw;
  position: relative;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  margin-top: auto;
  padding-bottom: 5vw;
}
.square {
  flex: 0 0 auto;
  margin-right: 2vw;
}
.footer-sponsor {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  margin-left: auto; /* 靠右 */
}
.square img {
  height: 26vw;
  width: auto;
  display: block;
  margin-left: -2.5vw;
  position: relative;
}
.footer-social {
  position: absolute;
  top: 8.125vw;
  left: 6.875vw;
  display: flex;
  z-index: 2;
}
.footer-social img {
  height: 1.75vw;
  width: auto;
  margin-top: 0.24vw;
}
.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  width: 3vw;
  height: 3vw;
  margin-right: 2.4375vw;
  cursor: pointer;
}
.circle:hover {
  box-shadow: 0vw 0.25vw 1vw rgba(0,0,0,0.35), 0 0 0 0.25vw #ffd4c4;
  transition: box-shadow 0.2s;
}
.info {
  position: absolute;
  top: 11.5vw;   
  left: 5vw;  
  display: flex;
  flex-direction: column;
  gap: 0vw;
  z-index: 2;
}
.info-img {
  display: flex;
  align-items: center; 
  gap: 0.3125vw;         
}
.info-img .mail {
  height: 1.875vw;
  width: auto;  
}
.info-img .map {
  height: 1.875vw;
  width: auto;  
}
.info-img p {
  font-size: 1vw;
  color: white;
  white-space: pre-line; /* 只在 <br> 或換行符號處換行 */
  width: max-content;
  margin: 0.625vw;
}
.trademark {
  position: absolute;
  top: 18.125vw;   
  left: 6.25vw;
  display: flex;
  align-items: center;    
  justify-content: center;
  gap: 1.875vw; 
}
.trademark img{
  height: 5.5vw;
  width: auto;
  display: block;
}
.footer-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  font-size: 0.75vw;
  background: #8b0006;
}
.footer-bottom hr {
  border: none;
  border-top: 0.15vw solid black;
  margin: 0 3vw;
}
.footer-bottom a {
  color: black;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}
#scrollTopBtn {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  height: 7vw;
  width: auto;
  position: fixed;
  bottom: 0.5vw;
  right: 0.5vw;
  cursor: pointer;
  z-index: 100;
  transition: box-shadow 0.2s, transform 0.1s;
}
#scrollTopBtn img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none; /* 讓點擊事件只在 button 上觸發 */
}
#scrollTopBtn:hover {
  transform: scale(1.1); /* 滑鼠移上去時，按鈕放大到1.08倍 */
}
#scrollTopBtn:active {
  transform: scale(0.7);  /* 按下時，按鈕縮小到0.95倍 */
}

/*member*/
.member-list1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4vw;
  padding: 0 8vw;
  margin-bottom: 6vw;
}
.member-list1 .member-card {
  grid-column: 2 / 3; /* 讓唯一的卡片在中間那一欄 */
}
.member-list2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4vw;
  padding: 0 22.6666vw;
  margin-bottom: 6vw;
}
.member-list3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /*把容器分成3欄。每一欄的寬度都是 1fr，也就是等分剩餘空間（fraction，比例單位）。*/
  gap: 4vw;
  padding: 0 8vw;
  margin-bottom: 6vw;
}
.member-card {
  position: relative; /* 讓子元素絕對定位參考這裡 */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reel {
  max-width: 30vw;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 垂直置中 */
  text-align: center;
  cursor: pointer;
}
.reel img {
  width: 100%;
  height: auto;
  display: block;
}
.reel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #62412A;
  z-index: 2;
  width: 100%;
  text-align: center;
  pointer-events: auto;
  transition: opacity 0.3s;
}
.reel-text.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.reel-down {
  max-width: 30vw;
  margin-top: -2.5vw;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(.4,0,.2,1), opacity 0.4s;
  position: relative;
}
.reel-down img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -0.5vw;
}
.reel-down-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;   /* 可依需求調整 */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
}
.reel-down.active {
  max-height: 23vw; /* 根據圖片高度調整 */
  opacity: 1;
  margin-top: -2.5vw;
}
.reel-down.active .reel-down-text {
  opacity: 1;
}
#people-photo {
  width: 9vw;  
  height: auto;
  object-fit: contain;
  display: block;
  z-index: 3;
  position: absolute;
  left: 2.1vw;
  top: 4vw;
}
#people-name {
  position: absolute;
  top: 3.5vw;
  left: 12vw;
  color: #62412A;
  z-index: 3;
  line-height: 1.2;
}
#saying {
  position: absolute;
  top: 9vw;
  right: 4.5vw;
  color: #62412A;
  z-index: 3;
  line-height: 1.2;
}
#people-ig {
  position: absolute;
  max-width: 2vw;
  height: auto;
  top: 6.5vw;
  right: 2.5vw;
  z-index: 4;
}
#major {
  position: absolute;
  display: block;
  margin-top: 15vw;
  text-align: center;
  color: #62412A;
  z-index: 3;
  white-space: nowrap;
  line-height: 1;
}

/*Loading*/
#loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #0b0728;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s;
  opacity: 1;
  pointer-events: all;
}
#loading-overlay.hide {
  opacity: 0;
  pointer-events: none;
}


.notebook-container {
  display: flex;
  gap: 6vw;
  justify-content: center;
  margin: 2vw 0 10vw 0;
}
.notebook-card {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 1vw;
  box-shadow: 0 0.2vw 1vw rgba(0,0,0,0.08);
  width: 24vw;
  aspect-ratio: 3/4; /* 3:4 長寬比 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
  cursor: pointer;
}
.notebook-card:hover {
  box-shadow: 1vw 1vw 2vw rgba(0,0,0,0.3);
  transform: scale(1.1);
}
.notebook-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.notebook-overlay.active {
  display: flex;
}
.notebook-overlay-content {
  border-radius: 1vw;
  padding: 3vw;
  min-width: 85%;
  min-height: 90%;
  box-shadow: 0 0.5vw 2vw rgba(0,0,0,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
}
.notebook-overlay-content.wetlab-overlay-content {
  background: #fff url('https://static.igem.wiki/teams/5854/background/big-wet-front-cover2.webp') center/cover no-repeat;
}
.notebook-overlay-content.drylab-overlay-content {
  background: #fff url('https://static.igem.wiki/teams/5854/background/big-dry-front-cover2.webp') center/cover no-repeat;
}
.notebook-overlay-content.hp-overlay-content {
  background: #fff url('https://static.igem.wiki/teams/5854/background/big-hp-front-cover2.webp') center/cover no-repeat;
}
.notebook-overlay-content h2 {
  color: black;
  font-size: 2.5vw;
  font-family: 'Fugaz One', sans-serif;
}
.close-overlay {
  position: absolute;
  top: 1vw;
  right: 1vw;
  background: #8b0006;
  color: #fff;
  border: none;
  border-radius: 0.5vw;
  padding: 0.5vw 0.8vw;
  cursor: pointer;
}
.notebook-overlay-row {
  display: flex;
  gap: 3vw;
  justify-content: center;
  margin-top: auto;
}
.notebook-overlay-card {
  width: 12vw;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center 100%;
  border-radius: 0.8vw;
  box-shadow: 0 0.2vw 1vw rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s, height 0.3s, background-image 0.3s, transform 0.3s;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
/* Wet Lab overlay cards */
.wet-notebook-overlay-card.card1 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/wet-month5.webp');
}
.wet-notebook-overlay-card.card2 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/wet-month6.webp');
}
.wet-notebook-overlay-card.card3 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/wet-month7.webp');
}
.wet-notebook-overlay-card.card4 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/wet-month8.webp');
}
.wet-notebook-overlay-card.card5 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/wet-month9.webp');
}
/* Dry Lab overlay cards */
.dry-notebook-overlay-card.card1 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/dry-month5.webp');
}
.dry-notebook-overlay-card.card2 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/dry-month6.webp');
}
.dry-notebook-overlay-card.card3 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/dry-month7.webp');
}
.dry-notebook-overlay-card.card4 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/dry-month8.webp');
}
.dry-notebook-overlay-card.card5 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/dry-month9.webp');
}
/* HP overlay cards */
.hp-notebook-overlay-card.card1 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/hp-month5.webp');
}
.hp-notebook-overlay-card.card2 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/hp-month6.webp');
}
.hp-notebook-overlay-card.card3 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/hp-month7.webp');
}
.hp-notebook-overlay-card.card4 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/hp-month8.webp');
}
.hp-notebook-overlay-card.card5 {
  background-image: url('https://static.igem.wiki/teams/5854/img/month-card/hp-month9.webp');
}

.notebook-overlay-card img.overlay-card-img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  position: relative;
  pointer-events: none;
}
.notebook-overlay-card:hover {
  background-image: none;
  margin-bottom: 3.8vw;
  box-shadow: 0 1vw 2vw rgba(0,0,0,0.18);
  transform: scaleY(1.5);
}
.notebook-overlay-card:hover img.hover-img {
  opacity: 1;
}
/* Wetlab cards */
.notebook-overlay-content.card-bg1.wetlab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/w-5.webp') center/cover no-repeat,  url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg2.wetlab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/w-6.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg3.wetlab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/w-7.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg4.wetlab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/w-8.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg5.wetlab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/w-9.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }

/* Drylab cards */
.notebook-overlay-content.card-bg1.drylab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/d-5.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg2.drylab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/d-6.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg3.drylab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/d-7.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg4.drylab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/d-8.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg5.drylab-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/d-9.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }

/* HP cards */
.notebook-overlay-content.card-bg1.hp-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/h-5.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg2.hp-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/h-6.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg3.hp-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/h-7.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg4.hp-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/h-8.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }
.notebook-overlay-content.card-bg5.hp-detail-bg { background: url('https://static.igem.wiki/teams/5854/background/overlay-cover/h-9.webp') center/cover no-repeat, url('https://static.igem.wiki/teams/5854/background/overlay-cover/overlay-bg.webp') center/cover no-repeat; background-size: 100%, 120%; }

.new-page-content {
  position: absolute;
  left: 6vw;
  top: 13vw;
  max-width: 79vw;
  max-height: 25vw;
  padding: 1vw 16.5vw 1vw 1vw;
  background: transparent;
  color: #333;
  font-size: 1.2vw;
  z-index: 2;
  overflow-y: auto;      /* 讓內容超出時可滾動 */
  scrollbar-width: thin; /* Firefox: 細滾動條 */
  padding-left: 2em;
}
.notebook-distinguishline {
  border: none;
  border-top: 2px solid #8b0006;
  margin: 16px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 0;
  transform: translateX(-50%);
  background: transparent;
  box-sizing: border-box;
  max-width: 70vw;
}

/*attribution表格*/
#igem-attribution-form {
  margin: 0 5vw 0 5vw;
}

/*sponsor頁面*/
.sponsor-scroll {
  width: 55vw;
  overflow: hidden;
  background: #8b0006;
  padding: 2vw 0;
  margin-top: 4vw;
  margin-bottom: 5vw;
}
.sponsor-track {
  display: flex;
  width: max-content;
  animation: sponsor-marquee 35s linear infinite;
  align-items: center;
}
.sponsor-track img {
  height: 15vw;
  width: auto;
  margin-right: 0.5vw;
  vertical-align: middle;
}
.sponsor-scroll:hover .sponsor-track, .sponsor-track:hover {
  animation-play-state: paused;
}
.sponsor-track img:hover {
  cursor: pointer;
}
@keyframes sponsor-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.sponsorhide {
  position: relative;
  width: 55vw;
  height: 0; /* 不佔空間，只用來定位子元素 */
  z-index: 7;
  pointer-events: none;
}
#sponsorhide-up {
  position: absolute;
  top: 4vw;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 7;
  width: 100%;
  pointer-events: none;
}
#sponsorhide-down {
  position: absolute;
  top: 18vw;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 9;
  width: 100%;
  pointer-events: none;
}

/*Award page*/
#coming-soon {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh; 
  padding-left: 30vw;
  font-size: 5vw;
  margin-top: -8vw;
}

/*sponsor-card*/
.sponsor-list3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  padding: 0 8vw;
  margin-bottom: 6vw;
  justify-items: center;
}
.sponsor-list2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4vw;
  padding: 0 20vw;
  margin-bottom: 6vw;
  justify-items: center;
}
.sponsor-card {
  position: relative;
  width: 20vw;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sponsor-card .card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sponsor-card .sponsor-logo {
  position: absolute;
  top: 8vw;
  left: 50%;
  transform: translateX(-50%);
  width: 15vw;
  height: auto;
  z-index: 2;
}
.sponsor-card .sponsor-text {
  position: absolute;
  top: 2.5vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Open Sans', 'Times New Roman', Times, serif;  font-size: 2vw;
  color: black;
  text-align: center;
  z-index: 2;
  width: 18vw;
  white-space: normal;
  line-height: 1.1;
}
.sponsor-card .about {
  position: absolute;
  top: 21vw;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 10vw;
}
.switch-btn {
  padding: 0.6em 2em;
  margin: 0 1vw;
  font-size: 1.2em;
  border: none;
  border-radius: 0.5em;
  background: #ffd4c4;
  color: #980C00;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.switch-btn.active,
.switch-btn:hover {
  background: #980C00;
  color: #fff;
}
.illustrate {
  text-align: center;
  margin: 2vw auto 1vw auto;
  padding: 1vw 2vw;
  background: #fff5f0;
  color: black;
  border: 2px solid #ffd4c4;
  font-size: 1.5vw;
  max-width: 70vw;
  box-shadow: 0 0.2vw 1vw rgba(152,12,0,0.06);
}
.img-grid2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  justify-items: center;
  margin: 2vw 10vw 1vw 10vw;
}
.img-grid2x2 img {
  width: 100%;
  width: 25vw;
  height: 30vw;
}
.img-caption {
  text-align: center;
  font-size: 1vw;
  margin-bottom: 2vw;
}
.img-grid1x2 {
  display: flex;
  gap: 2svw;
  justify-content: center;
  margin: 2vw 0 1vw 0;
}
.img-grid1x2 img {
  width: 100%;
  width: 30vw;
  height: auto;
  object-fit: cover;
}
.img-grid1x2-each {
  display: flex;
  gap: 2vw;
  justify-content: center;
  margin: 2vw 0;
}
.img-grid1x2-each .img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.img-grid1x2-each img {
  width: 100%;
  max-width: 30vw;
}
.img-grid1x2-each .img-caption {
  margin-top: 0.7vw;
  font-size: 1.2vw;
  color: black;
  text-align: center;
}
.table {
  margin: 2vw auto;
  border-collapse: collapse;
  width: 60vw;
  text-align: center;
  background: #fff5f0;
  border-radius: 0.5vw;
  overflow: hidden;
  box-shadow: 0 0.4vw 1vw rgba(152,12,0,0.2);
}
.table td {
  border: 2px solid #ffd4c4;
  padding: 1vw 2vw;
  font-size: 1.2vw;
  color: #980C00;
}
.section-block1 {
  background: #ffdcc9;
  border-radius: 1vw;
  margin: 2vw 0;
  padding: 2vw 2vw 2vw 2vw;
}
.section-block2 {
  background: #dbe2ff;
  border-radius: 1vw;
  margin: 2vw 0;
  padding: 2vw 2vw 2vw 2vw;
}
.section-block3 {
  background: #e5ffdb;
  border-radius: 1vw;
  margin: 2vw 0;
  padding: 2vw 2vw 2vw 2vw;
}
.section-block4 {
  background: #ffdddb;
  border-radius: 1vw;
  margin: 2vw 0;
  padding: 2vw 2vw 2vw 2vw;
}
.about:hover {
  cursor: pointer;
}

.jamboree-intro {
  position: relative;
  max-width: 70vw;
  margin: 0 0 5vw 0;
  font-size: 1.5vw;
  color: black;
  background-color: #ffcbeb;
  text-align: center;
  border-radius: 1vw;
  padding: 2vw 3vw;
}
.jamboree-badge {
  position: absolute;
  bottom: -2.5vw;
  right: -2.5vw;
  width: 6vw;
  height: auto;
  pointer-events: none;
  transform: translate(0, 0);
}
.jamboree {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0vw auto;
  text-align: center;
}
.gold-medal {
  display: block;
  margin: 0 auto;
  margin-bottom: 5vw;
  max-width: 40%;
  height: auto;
  border-radius: 0.8vw;
  box-shadow: 0 0.3vw 1vw rgba(0,0,0,0.08);
}
.jamboree .img-grid1x2 img {
  width: 40vw;
  height: auto;
  object-fit: cover;
  display: inline-block;
  border-radius: 1vw;
}





















/* 響應式設計：手機螢幕 */
@media (max-width: 900px) {
  .bar {
    flex-direction: column;
    font-size: 3vw;
    padding: 2vw 0;
  }
  .menu {
    flex-direction: column;
    gap: 2vw;
    margin-right: 0;
    font-size: 3vw;
  }
  .sidebar {
    min-width: 60vw;
    font-size: 3vw;
    margin-left: 0;
    margin-right: 0;
    padding: 2vw 0;
  }
  .sidebar li {
    font-size: 3vw;
    min-width: 0;
    padding: 1vw 0 1vw 3vw;
  }
  .main-text {
    padding: 3vw 2vw;
    margin: 0;
    font-size: 3vw;
  }
  .content {
    flex-direction: column;
    padding: 2vw;
    gap: 2vw;
  }
  .footer {
    flex-direction: column;
    align-items: stretch;
    padding: 3vw 2vw 10vw 2vw;
  }
  .square img {
    height: 18vw;
    margin-left: 0;
  }
  .footer-sponsor {
    margin-left: 0;
    margin-top: 2vw;
  }
  .footer-bottom {
    font-size: 2vw;
    padding: 2vw 0;
    position: static;
  }
  .sponsor-scroll, .sponsorhide {
    width: 90vw;
    padding: 2vw 0;
  }
  .sponsor-track img {
    height: 10vw;
  }
}
/* 超小螢幕（手機直式） */
@media (max-width: 600px) {
  h1 {
    font-size: 8vw;
  }
  h2 {
    font-size: 5vw;
  }
  .sidebar {
    min-width: 90vw;
    font-size: 4vw;
  }
  .main-text {
    font-size: 4vw;
  }
  .footer-bottom {
    font-size: 3vw;
  }
}

