body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: auto;
    background-color: #fcfbfb;
    cursor: url("pics/click.png"), auto;
}
/* write something */

a:hover {
    cursor: url("pics/click.png"), auto;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


h1,
h2,
h3,
h4,
h5,
h6 {    
      font-weight: bold;
    }


.progress-container {
            position: fixed;
            top: 9.6%;
            left: 0;
            width: 100%;
            height: 6px;
            z-index: 1050;
            backdrop-filter: blur(5px);
        }
        
.progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #6fff00 0%, #ff4f4f 100%);
            transition: width 0.3s ease;
        }

#progress-icon {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.3s;
  z-index: 1002;
}

/* Fonts Style */


@font-face {
    font-family: 'bowlby';
    src: url(https://static.igem.wiki/teams/5625/fonts/candal-regular.ttf);
    font-weight: lighter;
}


@font-face {
  font-family: 'Noto';
  font-style: normal;
  font-weight: 300;
  src: url('https://static.igem.wiki/teams/5625/fonts/notoserifhebrew-variablefont-wdth-wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Handlee';
  font-style: normal;
  font-weight: 300;
  src: url('https://static.igem.wiki/teams/5625/fonts/handlee-regular.ttf') format('truetype');
}

td a:hover {
    cursor: pointer;
}

.hover-zoom {
    transition: transform 0.25s ease; 
  }

.hover-zoom:hover {
  transform: scale(1.3);
  z-index: 10; 
}

.scroll-rotate {
    transition: transform 0.1s linear; 
  }

.problem {
  font-size: 1.8vw;
}
.title1 {
  font-size: 2.5vw;
  text-align: right;
  font-weight: bold;
}
.title2 {
  font-size: 3vw;
  text-align: middle;
  font-weight: bold;
}
::selection {
  background: rgb(225, 122, 122);
  color: black;
}
.dropdown:hover .dropdown-menu {
    display: block;
    z-index: 1060;
}

/* Ensure click-activated dropdown shows same as hover */
.dropdown.show .dropdown-menu {
  display: block;
  z-index: 1060;
}

/* Unified dropdown menu positioning and sizing */
.navbar .dropdown-menu {
  top: 100% !important;
  left: 0 !important;
  margin-top: 0 !important;
  min-width: 15rem; /* increase width */
  padding: 0.5rem 0; /* adjust vertical padding */
}

/* Larger padding for items */
.dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  z-index: 1060;
}

/* Optional: increase font size of menu items */
.navbar .dropdown-menu .dropdown-item {
  font-size: 1.1rem;
  z-index: 1060;
}

#loading {
    position: fixed;
    z-index: 100000000;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    flex-direction: column;
}

#loading h1 {
    text-align: center;
    color: white;
    font-size: 4rem;
}

#loading img {
    height: 50%;
    width: 50%;
    object-fit: cover;
    display: block;
}


/* Table Style  */
table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background-color: #d8ccec;
        border-radius: 15px;
        overflow: hidden;
    }

    th, td {
        padding: 10px;
        text-align: center;
    }

    th {
        background-color: #bca4e0;
    }


/* 左侧菜单样式 */
#sidebar {
    width: 14vw;
    position: sticky;
    left: 5%;
    top: 12%;
    background: #6df0e5;
    color: #ecf0f1;
    padding: 2vw 0;
    box-shadow: 0 0 40px #f9e27b, 0 0 10px #fbf7d6;
    transition: all 0.3s ease;
    z-index: 3;
    min-height: 0;
    height: 80vh;         
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;     
}

#menu-title-list {
    list-style: none;
    padding: 0 2vw;
    margin: 0;
    flex: 1 1 auto;
    overflow-y: auto;     /* 超出滚动 */
    max-height: 100%;     /* 限制最大高度 */
}
        
#menu-title-list li {
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}
        
#menu-title-list a {
    display: block;
            color: #bdc3c7;
            text-decoration: none;
            padding: 10px 0;
            border-radius: 5px;
            transition: all 0.2s;
            position: relative;
            text-align: center;
        }

#menu-title-list a:hover {
            background: #ff6f6f;
            color: #ecf0f1;
        }
        
#menu-title-list a.active {
            background: #ff6f6f;
            color: white;
            /* border-bottom: 3px solid #db7734; */
        }
        
#menu-title-list .h1-item {
            font-weight: bold;
            font-size: 1.1rem;
            text-align: center;
            color: #370667;
            /* border-left: 3px solid #3498db; */
        }
        
#menu-title-list .h2-item {
            font-size: 0.95rem;
            color: #434c4d;
        }

#menu-title-list::-webkit-scrollbar {
    width: 8px;
    background: #6df0e5; 
    border-radius: 6px;
}
#menu-title-list::-webkit-scrollbar-thumb {
    background: #e6b2b2; 
    border-radius: 6px;
    transition: background 0.2s;
}
#menu-title-list::-webkit-scrollbar-thumb:hover {
    background: #7ed8df; 
}

#menu-title-list {
    scrollbar-width: thin;
    scrollbar-color: #b2e6e2 #6df0e5;
}        

.right {
          padding-right: -10vw;
}

  @media (max-width: 992px) {
            #sidebar {
                width: 70%;
            }

            .left{width:17% !important;}
            .right{width:70% !important;margin-left:3%;}
            
        }
        
  @media (max-width: 576px) {
            body {
                flex-direction: column;
            }
            
            #sidebar {
                width: 100%;
                height: auto;
                position: relative;
                max-height: 300px;
            }

            .left{display:none;}
            .right{width:95% !important;margin-left:5%;}
            
  }



/* NAVIGATION BAR STYLING */
nav.navbar{
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1000;
}

.navbar{
    display: flex;
    width: 100%;
    background-color:rgba(14, 183, 234, 0.787);
    backdrop-filter: blur(5px);
    transition: visibility 0s, 0.6s, opacity 0.s linear, transform 1s;
    opacity:90%;
    z-index: 1000;
}

.nav-item{
   padding: 0px 20px;
   font-family: 'Quicksand';
   font-style: normal;
   font-weight: 400;
   font-size: 16px;
}
.scrolled{
  background-color: #06053fdf;
  backdrop-filter: blur(5px);
  transition: visibility 0s, 0.6s, opacity 0.6s linear, transform 1s;
  box-shadow: 10px 0 5px #2128327a;
}

.scrolled ul.dropdown-menu{
  background-color: #161617df;
  text-align: left;
  z-index: 1060;
}

ul.dropdown-menu {
  /* backdrop-filter: blur(5px); */
  background-color: rgba(38, 244, 255, 0.75); /* 80% 不透明度 */
  text-align: left;
  z-index: 1060;
}

ul.dropdown-menu li a{
  color:rgba(255, 255, 255, 0.99);
}
ul.dropdown-menu li a:hover{
  background-color: #f0a1a1;
  color:#000000;
}

.nav-link,.dropdown-item {
  color: rgba(255,255,255,0.98) !important;
  font-size: 110%;
}

.nav-link,
.dropdown-item {
  font-family: 'bowlby';
}

a.dropdown-item.hvr-fade {
  color: rgb(93, 224, 158);
}

.fruit-float {
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), filter 0.2s;
  cursor: pointer;
}

.fruit-float:hover {
  transform: scale(1.18) rotate(-10deg);
  filter: brightness(1.15) drop-shadow(0 4px 12px #aaffc9);
}



/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }

.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown:focus-within .dropdown-menu,
.navbar .dropdown .dropdown-menu:hover {
    display: block !important;
    z-index: 3000;
}

/* Enlarge and bolden menu items on hover, focus, or active dropdown */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .dropdown.show > .nav-link {
  font-weight: bold;
}

/* Expand blue highlight to full block and change background on hover/click */
.navbar-nav .nav-item .nav-link {
  padding: 0.5rem 1rem;
  /* transition: background-color 0.3s ease, color 0.3s ease; */
  border-radius: 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .dropdown.show > .nav-link,
.navbar-nav .nav-link.active {
  background-color: rgba(0, 159, 222, 0.9) !important; /* blue tint */
  color: white !important;
}

/* Starry click effect for team images */
@keyframes glow {
  0% { box-shadow: 0 0 0px 0px rgba(255,255,200,0.9);}  
  50% { box-shadow: 0 0 15px 10px rgba(255,255,200,0.9);}  
  100% { box-shadow: 0 0 0px 0px rgba(255,255,200,0);}  
}
@keyframes starburst {
  0% { opacity:1; transform: translate(0,0) scale(1); }
  100% { opacity:0; transform: translate(var(--dx), var(--dy)) scale(0); }
}
.hover-star {
  transition: transform 0.3s ease;
  cursor: pointer;
}
.hover-star:hover {
  transform: scale(1.2);
}
.hover-star.clicked::after {
  content: '✦';
  position: absolute;
  color: yellow;
  font-size: 2rem;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: starburst 0.6s ease-out forwards;
  --dx: -20px;
  --dy: -20px;
}


footer.footer {
  background-color: #19bfc4;
}

footer.footer a {
  font-family: bowlby;
  color: #045e6c;
  text-decoration: none;
}
footer.footer p {
  font-family: bowlby;
}
footer.footer a:hover {
  color: #c2fff6;
}

.problem-highlight {
  color: #804cfa;
  font-size: 1.2em;
  font-weight: 600; 
}

.problem-highlight2 {
  color: #f08c95;
  font-size: 1.2em;
  font-weight: 600; 
}

.problem-highlight3 {
  color: #d95a8b;
  font-size: 1.2em;
  font-weight: 600; 
}

.problem-highlight4 {
  color: #971414;
  font-size: 1.2em;
  font-weight: 600; 
}
.problem-highlight44 {
  color: #e8d35c;
  font-size: 1.2em;
  font-weight: 600; 
}
.problem-highlight5 {
  color: #e67885;
  font-size: 1.2em;
  font-weight: 600; 
}
.problem-highlight6 {
  color: #583279;
  font-size: 1.2em;
  font-weight: 600; 
}
.problem-highlight7 {
  color: #97148c;
  font-size: 1.2em;
  font-weight: 600; 
}

.member-name {
  font-family: bowlby, sans-serif;
  font-size: 1.4em;
  margin: 0.5em 0 0.2em;
}
.member-tags {
  display: flex;
  justify-content: center;
  gap: 0.5em;
}
.member-tags .tag {
  font-family: bowlby, sans-serif;
  font-size: 0.8em;
  padding: 0.2em 0.6em;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.2em;
}

.navbar-logo {
  width: 100px;
  height: auto;
  margin-top: 5%;
  object-fit: contain;
}
nav.navbar {
    height: 10% !important;
}
nav.navbar .container-fluid {
  position: relative;
  top: 3%;
}


.scroll-wrapper {
  position: relative;
  /* top: 9vh; */
  margin-left: 0vw;
  /* margin-top: 10vh; */
  height: 800vh;
  width: 100vw;
}

.sticky {
  position: sticky;
  top: 9vh;
  height: 100vh;
  width: 100vw;
}

.fruit-row {
  position: absolute;
  left: 0;
  width: 100%;
  top: 125%;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: -5vw;           /* 负 gap 让图片重叠更多 */
}

.fruit-row .fruit-hover {
  width: 7vw;
  margin-left: -2vw;   /* 让每个图片左侧重叠上一张 */
  transition: transform 0.3s;
  z-index: 1;
}
.fruit-row .fruit-hover:hover {
  z-index: 2;          /* 悬停时图片浮到最上面 */
  transform: scale(1.1);
}

.logo-text {
  font-family: bowlby;
  font-size: 2vw;
  color: #000000;
  transition: opacity 0.3s;
  opacity: 0;
}
.logo-text.show {
  opacity: 1;
}
.logo-text.hide {
  opacity: 0;
}


.cards-section {
  position: absolute;
  top: 18vw;
  left: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  gap: 2vw;              /* 横向间距 */
  align-items: flex-end; /* 让交错更明显 */
  justify-content: center;
}

.my-card {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 0;
  margin: 0;
  min-width: unset;
  max-width: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 上下交错效果 */
.my-card:nth-child(odd) {
  margin-top: 4vw;
}
.my-card:nth-child(even) {
  margin-bottom: 5vw;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-image.organic-circle {
  width: 11vw;
  height: 11vw;
  object-fit: cover;
  border-radius: 45% 55% 60% 40% / 55% 45% 60% 40%;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  background: #fff;
  transition: box-shadow 0.3s;
  cursor: pointer;
  margin-bottom: 0.7vw;
  border: none;
}

.card-image.organic-circle:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  filter: brightness(1.08);
}

.cards-section h3 {
  font-family: bowlby, sans-serif;
  font-size: 2vw;
  color: #000000;
  text-align: center;
  margin: 0.7vw 0 0 0;
}

 /* 主内容区背景图 */
        #content {
            padding-right: 5vw;
            padding-top: 10%;
            padding-bottom: 5%;
            max-width: none !important;
            background: url("https://static.igem.wiki/teams/5625/pics/bg/1.webp") no-repeat center center;
            background-size: cover;
        }

        /* 小条圆边标题 */
        .section-header {
            background-color: #7ed8df;  /* 青色背景 */
            color: #333;
            display: inline-block;
            padding: 0.1rem 3.5rem;
            border-radius: 1.5rem;
            margin-bottom: 2.5rem;
            margin-left: -1rem;
        }
        .section-header h1{
            margin-top: 0.4rem;
            font-size: 2rem;
        }

        
        #content .row.d-flex.shadow.rounded-3.p-4 {
          background-color: #96dddb;  /* 浅青色 */
          position: relative;
          overflow: visible;
          z-index: 0;
        }

        
        #content .row.d-flex.shadow::before {
          content: "";
          position: absolute;
          top: -15px;      /* 向下偏移，露出上侧原卡片边 */
          left: -5px;
          width: 99%;     /* 比原卡片略窄，右侧露出原卡片边 */
          height: 100%;
          background: #ffffff;
          border-radius: 0.5rem;
          z-index: -1;
          box-shadow: 0 4px 18px rgba(58,142,230,0.12);
        }


        /* 隐藏sidebar的辅助样式 */
        .hide-sidebar #sidebar { display: none !important; }
        .hide-sidebar #content { padding-left: 0 !important; }
        /* 顶部全屏图片样式 */
        #top-full-img {
            width: 100vw;
            height: 48vw;
            min-height: 320px;
            object-fit: cover;
            display: block;
            margin: 0;
            position: relative;
            z-index: 1;
        }
        /* 底部全屏footer辅助 */
        .hide-sidebar footer.footer {
            margin-left: 0 !important;
            margin-bottom: 0;
            width: 100vw !important;
        }



#back-to-top-btn:hover {
  transform: scale(1.13);
  box-shadow: 0 8px 32px rgba(58,142,230,0.18);
}
#back-to-top-btn:hover img {
  transform: scale(1.09);
}

.experiment-protocol {
  font-size: 1.25em !important;
  line-height: 2.4 !important;
}

  .scroll-containerfooter {
      width: 800px;
      overflow: hidden;
  }
  
  .scroll-containerfooter>.scroll-contentfooter {
      width: calc(200% + 120px);
      /* 图片宽度 + 克隆的宽度 */
      list-style: none;
      display: flex;
      /* 使用 flex 布局 */
      animation-name: move;
      animation-duration: 7s;
      animation-iteration-count: infinite;
      animation-timing-function: linear;
  }
  
  .scroll-containerfooter>.scroll-contentfooter>li {
      width: 200px;
      /* 每张图片宽度 */
  }
  
  .scroll-containerfooter>.scroll-contentfooter>li>img {
      width: 100%;
  }
  
  .scroll-containerfooter:hover>.scroll-contentfooter {
      cursor: pointer;
      animation-play-state: paused;
  }

    .footerimgtwo {
      margin-top: 5vh;
  }


