body {
    padding-top: 56px;
    background-color: #FFEFDB;
}
 ::selection {
        background-color: #253926; /* 选中文本时的背景颜色 */
     color: #DCDCDC;/* 选中文本时的文字颜色 */
    }
/* 滚动条整体样式 */
::-webkit-scrollbar {
  width: 12px; /* 滚动条宽度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background: #FFEFDB; /* 滚动条轨道背景颜色 */
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background-color: #84a740; /* 滚动条滑块颜色 */
  border-radius: 6px; /* 圆角效果 */
  border: 0px solid #f4f4f4; /* 滑块与轨道之间的空隙 */
}

/* 滑块在悬停时的颜色 */
::-webkit-scrollbar-thumb:hover {
  background-color: #287042; /* 悬停时的颜色 */
}

.left-aligned {
    margin-left: auto;
}

.bg-dark {
    background-color: #343a40 !important;
}

.bg-hero {
    background-color: #45b06cff;
}

/* loading page*/
#loading-body{
    position: fixed;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    box-sizing: border-box;
    background: linear-gradient(125deg, #c4d76e, #287042);
    animation: bgAnimation 5s linear infinite;
    background-size: 200%;
}
.loading-page{
     position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

}
.loading-logo{
    text-shadow: 0 0 50px #0f0,
0 0 100px #0f0,
0 0 150px #0f0,
0 0 200px #0f0,
0 0 250px #0f0;
    animation:loading 5s linear infinite ;
    width: 300px;
    height: 300px;

}

@keyframes loading {
    0%{
        filter: hue-rotate(0deg);
    }
    100%{
        filter: hue-rotate(360deg);
}
}
/* CALLOUT */
.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e9ecef;
    border-left-width: .25rem;
    border-radius: .25rem
}

.bd-callout h4 {
    margin-bottom: .25rem
}

.bd-callout p:last-child {
    margin-bottom: 0
}

.bd-callout code {
    border-radius: .25rem
}

.bd-callout + .bd-callout {
    margin-top: -.25rem
}

.bd-callout-info {
    border-left-color: #5bc0de
}

.bd-callout-warning {
    border-left-color: #f0ad4e
}

.bd-callout-danger {
    border-left-color: #d9534f
}


/* header */
.header-home {
    height: 50vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-image: url("https://static.igem.wiki/teams/5327/hp/home-gif.gif");
    background-size: cover;
     background-repeat: no-repeat;
}
.header-hp {
    height: 50vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-image: url("https://static.igem.wiki/teams/5327/hp/hpbkfinal.png");
    background-size: contain;
     background-repeat: no-repeat;
}

.header-edu {
    height: 50vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-image: url("https://static.igem.wiki/teams/5327/education/broccoli.jpg");
    background-size: cover;

}
.header-education {
    height: 50vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-image: url("https://static.igem.wiki/teams/5327/basic-img/edu-bk-img.png");
   background-size: contain;
    background-repeat: no-repeat;
}
.header-description{
    height: 65vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
    background-image: url("https://static.igem.wiki/teams/5327/pdf/des-gif.gif");
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
}

.header-engineering {
    height: 50vh;
    display: flex;
    align-items: center;
    background-image: url("https://static.igem.wiki/teams/5327/header/engineering.jpg");
    background-size: cover;

}



/* EDU */
.boujee-text3{
    margin-top: 5vh;
    font-family:'Gill Sans MT';
    --bg-size: 400%;
    --color-one: #287042;
    --color-two: #84a740;
    background: linear-gradient(
            90deg,
            var(--color-one),
            var(--color-two),
            var(--color-one)
    ) 0 0 / var(--bg-size) 100%;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: move-bg 8s infinite linear;
    text-align: center;
    font-size: 2.5em;
}
/*Team */
.boujee-text2{
    padding-top: 5vh;
    padding-bottom: 5vh;
    font-family: "Gill Sans MT";
    --bg-size: 400%;
    --color-one: #287042;
    --color-two: #84a740;
    background: linear-gradient(
            90deg,
            var(--color-one),
            var(--color-two),
            var(--color-one)
    ) 0 0 / var(--bg-size) 100%;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: move-bg 8s infinite linear;
    text-align: center;
}

.group-photo{
 border-radius: 2em;
    /* 阴影 */
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
    width:600px;
    height: 40vh;
}
.boujee-text1{
    padding-top: 10vh;
    padding-bottom: 10vh;
    font-family: "Gill Sans MT";
    --bg-size: 400%;
    --color-one: #287042;
    --color-two: #84a740;
    font-size: clamp(3rem, 25vmin, 8rem);
    background: linear-gradient(
            90deg,
            var(--color-one),
            var(--color-two),
            var(--color-one)
    ) 0 0 / var(--bg-size) 100%;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: move-bg 8s infinite linear;
    text-align: center;
}

.boujee-text {
      padding-top: 10vh;
    padding-bottom: 10vh;
    padding-left: 10vw;
    font-family: "Gill Sans MT";
    --bg-size: 400%;
    --color-one:#FFFACD; /* 浅黄色 */
    --color-two: #ffe87c; /* 明亮的黄色 */
    font-size: clamp(3rem, 25vmin, 8rem);
    background: linear-gradient(
            90deg,
            var(--color-one),
            var(--color-two),
            var(--color-one)
    ) 0 0 / var(--bg-size) 100%;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: move-bg 8s infinite linear;
    text-align: center;
}

@keyframes move-bg {
    to {
        background-position: var(--bg-size) 0;
    }
}

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

.footer-link a:hover {
    color: white;
    text-decoration: underline;
}

.icon-footer {
    display: flex; /* 启用 Flexbox 布局 */
    justify-content: center; /* 水平居中对齐 */
    align-items: center; /* 垂直居中对齐 */
    padding: 10px;
}

.icon-footer a img {
    width: 30px;
    height: 30px;
}

.icon-footer a {
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    z-index: 1000;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer {
    background: linear-gradient(125deg, #c4d76e, #287042);
    animation: bgAnimation 10s linear infinite;
    background-size: 200%;
    font-family: sans-serif;
    color: white;
}

.footer-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.footer-container ul {
    overflow: hidden;
    display: flex;
    position: relative;
}

.footer-container ul li {
    list-style: none;
    height: 100%;
    padding-right: 20px;
}

.footer-container ul li img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    /* 图片定位正中间 */
    object-position: center;
}

.footer a {
    position: relative;
}


/*description*/

.collapse-container {
    width: 100%;
}

.collapse-title {
    cursor: pointer;
}

.collapse-title:hover {
    text-shadow: 2px 2px 3px rgba(124, 252, 0, 0.5);
}

.collapse-content {
    margin-top: 0.6rem;
    padding-left: 2em;
    padding-right: 2em;
    display: block;
    text-align: justify;
    font-size: 1.0rem;
    height: 0;
    overflow: hidden;
    transition: all .3s;
}

.collapse-content.click-show {
    height: auto;
}

/*team*/

.card {
    width: 370px;
    height: 515px;
    margin: 80px auto 0;
    perspective: 1000px;
    border: none;
    font-family: 'Poppins', sans-serif;
    background-color: #FFEFDB;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.front, .back {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    position: absolute;
    backface-visibility: hidden;
}

.front {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.frosted-text {
    background: rgba(51, 63, 41, 0.3); /* 半透明白色背景 */
    backdrop-filter: blur(11px); /* 毛玻璃效果 */
    border-radius: 10px;
    color: #CBD7B4;
    text-align: center;
    padding: 5px;
    font-family: 'Poppins', sans-serif;
}

.front h1 {
    font-weight: 500;
    font-size: 2rem;

}

.front p {
    font-size: 1.25rem;
}

.back {
    background: white;
    border: solid 0.8px rgba(0, 0, 0, 0.25);
    box-shadow: 5px 5px 8px 0 rgba(0, 0, 0, 0.4);
    color: #333;
    padding: 15px 20px;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.back h1 {
    margin-top: 10px;
    text-align: center;
    font-size: 1.6rem;
}

.back p {
    text-align: justify;
    font-size: 1em;
}

.back img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    /*margin-top: 60px;
    position: relative; */
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

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

/* content */

.content {
    padding: 4vh;
    /*box-shadow: 0 0 10px rgba(0, 100, 0, 0.5);*/
    margin-bottom: 3em;
    /*background-color: rgba(0, 100, 0, 0.4);*/
}

.content h1 {
    margin-top: 5vh;
    font-size: 3em;
    font-family: "Gill Sans MT";
    font-weight: bolder;
    color: #333f29;
    text-shadow: 0.2rem 0.2rem rgba(104, 148, 92, 0.5);
}

.content h2 {
    margin-top: 5vh;
    font-size: 2em;
    font-family: "Gill Sans MT";
    font-weight: bold;
    color: #498055;/*#eadbae;*/
    text-shadow: 0.25rem 0.25rem 0.25rem #a5bd8a;
}
.content h3{
    margin-top: 5vh;
    font-size: 1.5em;
    font-family: "Gill Sans MT";
    color: #3a814e;/*#FFDAB9;*/
    text-shadow: 1px 1px 2px rgba(0, 100, 0, 0.5);
}
.content p {
    color: #15231b;
    font-size: 1.25em;
    line-height: 2em;
    margin-bottom: 5vh;
}

.content li {
    font-size: 1.25em;
    color: #15231b;;
}

.content .two-img {
    list-style: none;
    float: left;
    width: 50%;/*两列图片排列*/
}

.content .three-img {
    list-style: none;
    float: left;
    width: 33%;/*两列图片排列*/
}

/* page-sidebar */
.page-sidebar {
    font-family:"Gill Sans MT";
    align-self: flex-start;
    text-align: left;
    position: sticky;
    top: 45vh;
    line-height: 3vh;
    padding: 1vh;
    width: 100%;
    border-radius: 16px;
    background-color: #f2e7c3;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

.page-sidebar li {
    margin-top: 1.5vh;
    list-style: none;

}

.sidebar-item {
    text-decoration: unset;
    display: block;
    font-size: 2vh;
    color: #2c3725;
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.sidebar-item:hover {
    color: black;
    text-shadow: 1px 1px 2px rgba(0, 100, 0, 0.5);
}

.sidebar-item.activate {
    color: rgba(0, 100, 0);
}

.sidebar-item.activate::after {
    content: '';
    display: inline-block;
    width: 1.25vw; /* 调整为适当大小 */
    height: 1.25vw;
    margin-left: 0.2vw;
    background-image: url('https://static.igem.wiki/teams/5327/basic-img/broccoli-svgrepo-com-3.svg'); /* 替换为你的SVG路径 */
    background-size: contain;
    background-repeat: no-repeat;
}

/* button */
.content-hidden {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-body {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 60vw;
    max-height: 70vh;
    overflow-y: auto;
}

.content-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.content img{
    border-radius: 1.5em;
    margin-bottom: 5vh;
}
.content a{
    text-decoration: none;
}
.content-close:hover,
.content-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.modal-content h1{
    font-family: 'Gill Sans MT';
    color: #15231b;
}

.green-highlight {
  display: inline-block;
  background: linear-gradient(
      100deg,
      #b8ffaf00 1%,
      #b8ffaf 2.6%,
      #b8ffaf80 5.7%,
      #b8ffaf1a 93%,
      #b8ffafb4 95%,
      #b8ffaf00 98%
    ),
    linear-gradient(182deg, #b8ffaf00, #b8ffaf4d 8%, #b8ffaf00 15%);
}

.image-group {
  display: flex;
  flex-direction: column;    /* 垂直排列图片和标题 */
  align-items: center;       /* 图片和标题水平居中 */
  text-align: center;
    justify-content: space-evenly
}
.image-group img{
    max-width: 45%;
}
figcaption {
    margin-top: -5vh;
}
.open-modal {
    border: none;
    background-color: transparent;
    border-radius: 10px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 5px #154f2e;
}

.ed-collapse{
    padding-left: 1.6vw;
}
.ed-collapse::before{
    content: ' ';
    background-image: url("https://static.igem.wiki/teams/5327/education/triangle-svgrepo-com.svg");
    color: darkred;
    display: inline-block;
    width: 1.5vw; /* 调整为适当大小 */
    height: 1.5vw;
    background-size: contain;
    background-repeat: no-repeat;
}
.rotate-arrow::before {
  transform: rotate(90deg); /* 旋转箭头 */
}
.pdf{
    display: flex;
    align-items: center;
    justify-content: center;
}
.safety-link a{
    color: #84a740;
}
.safety-link a:hover{
    color: #154f2e;
}
.section a{
     color: #154f2e;
     position: relative;
    text-decoration: none;
}
.section a:hover{
    color: #068b01;
}
.section a::after {
    color: #068b01;
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* 可以根据需要调整位置 */
    width: 100%;
    height: 3px; /* 下划线的厚度 */
    background: linear-gradient(to right, #068b01, #e0ebaf); /* 渐变颜色 */
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.section a:hover::after {
    transform: scaleX(1);
}

/*tabel*/
table{
    width: 100%;
    border-collapse: collapse;
}

table caption{
    font-size: 2em;
    font-weight: bold;
    margin: 1em 0;
}

th,td{
    border: 1px solid #ffdeb4;
    text-align: center;
    padding: 20px 0;
}

table thead tr{
    background-color: #74b295;
    color: #fff;
}

table tbody tr:nth-child(odd){
    background-color: #f4e1ca;
}

table tbody tr:hover{
    background-color: #ccc;
}

table tbody tr td:first-child{
    color: #f40;
}

table tfoot tr td{
    text-align: right;
    padding-right: 20px;
}

.formula-note {
    border: 1px dotted rgba(0, 0, 0, 0.7);
    padding: 1rem 0.5rem;
    margin-top: 15px
}
.model-card {
    width:90%;
    margin:15px auto;
    background-color: #fdedd8;
    box-shadow:0px 5px 20px #d1d1d1;
    text-decoration:none;
}
.card-body {
    text-align:center;
    padding: 5px 15px;
    box-sizing: border-box;
}


.card-title {
    text-align:center;
    text-transform:uppercase;
    font-weight: bold;
}

.model-card hl{
    display:inline;
    background-color: yellow;
}
.card-excerpt {
    font-family: 'Playfair Display', serif;
}



.sequence {
    font-family: Consolas, "Liberation Mono", Courier, monospace;
    overflow-wrap: anywhere;
    counter-reset: sequence;
}

.sequence__chunk {
    display: inline-block;
    margin: 1rem 0 1rem 1rem;
    width: 10ch;
    position: relative;
    white-space: nowrap;
}

.sequence__chunk:not(:last-child):before
{
    content: counter(sequence);
    counter-increment: sequence 10;
    position: absolute;
    top: -0.8em;
    right: 0;
    opacity: .5;
    font-weight: bold;
}

.model-card blue{
    display:inline;
    color: deepskyblue;
}

.model-card red{
    display:inline;
    color: red;
}

.model-card pp{
    display:inline;
    color: purple;
}

.model-card grey{
    display:inline;
    background-color: grey;
}

.model-card .interpret-text{
    font-size: 18px;
    text-align: left;
    font-weight: 600;
    padding-top: 10px;
    margin-bottom: 5px;
}

/* Back to Top 按钮的基本样式 */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* 默认隐藏 */
    z-index: 100; /* 确保按钮在最上层 */
}

#back-to-top img {
    width: 200px; /* 按钮的大小 */
    height: auto;
    cursor: pointer;
}

/* 设置按钮悬停时的效果 */
#back-to-top img:hover {
    transform: scale(1.1); /* 鼠标悬停时略微放大 */
    transition: transform 0.3s ease;
}