@font-face {
    font-family: absans;
    src: url('https://static.igem.wiki/teams/5133/font/absans-regular.woff2');
}

@font-face {
    font-family: tanklager;
    src: url('https://static.igem.wiki/teams/5133/font/tanklager-original.woff2');
}

body {
    padding-top: 56px;
    font-family: absans, sans-serif; /* 设置正文字体 */
    font-size: 1em; /* 默认字体大小 */
    background-color: #000000;
    color: white;
}
.container-everything {
    display: flex; /* 使用 Flexbox */
    margin: 1%;
}

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

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

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

/* 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;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: tanklager, sans-serif; /* 设置标题字体 */
}

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

.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 图标靠左 */
.navbar-brand {
    padding: 0;
    margin: 10px;
    margin-right: auto;
}

/* 菜单按钮靠右 */
.navbar-nav {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

/* 隐藏下拉菜单 */
.nav-item .dropdown-menu {
    display: block; /* 默认显示状态用于过渡 */
    position: absolute;
    top: 100%; /* Position it below the header */
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    opacity: 0;
    transform: translateY(-20px); /* 初始位置上移 */
    transition: opacity 0.3s ease, transform 0.5s ease; /* 平滑过渡 */
    border-radius: 0; /* 移除圆角 */
    visibility: hidden; /* 隐藏菜单 */
}

/* 鼠标悬停在 nav-link 时显示下拉菜单 */
.nav-item:hover > .nav-link + .dropdown-menu {
    opacity: 1; /* 显示下拉菜单 */
    transform: translateY(0); /* 让菜单回到正常位置 */
    visibility: visible; /* 显示菜单 */
}


/* Optional: Style the dropdown items */
.dropdown-item {
    color: white; /* 调整颜色以提高可读性 */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 0; /* 移除圆角 */
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2); /* 悬停时背景色稍微变浅 */
    color: white;
}

/* 头部按钮样式 */
.header-button {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    color: #9ca6a9;
    text-align: center;
    transition: all 0.5s;
    cursor: pointer;
    height: 60.5px;
    width: 130px;
    margin-right: 20px;
    position: relative;
}

.header-button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.header-button span:after {
    content: '\25BC';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.header-button:hover span {
    padding-right: 25px;
}

.header-button:hover span:after {
    opacity: 1;
    right: 0;
}

.home-button {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    color: #9ca6a9;
    height: 61px;
    width: 130px;
    text-align: center;
    transition: all 0.5s;
    cursor: pointer;
}

.home-button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.home-button span:after {
    content: '\1F3E0';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.home-button:hover span {
    padding-right: 25px;
}

.home-button:hover span:after {
    opacity: 1;
    right: 0;
}

.sidebar {
    margin: 0px;
    padding: 5px;
    width: 310px;
    position: sticky;
    height: auto;
    overflow: visible;
    top: 95px;
    align-self: flex-start; /* <-- this is the fix */
    background-color: #343a40;
    transform: none; /* 移除变换 */
}

.sidebar p {
    display: block;
    color: #ffffff;
    padding: 0px;
    text-align: center;
    text-decoration: none;
    font-size: 23px !important;
    font-family: "absans";
}

.sidebarTab {
    border: 2px solid var(--accent-color);
    height: auto;
    width: 100%;
    line-height: 150%;
    margin: 10px;
    color: #ffffff;
    font-size: 16px;
    text-align: left;
    font-family: "absans";
    font-size: min(1.5vw, 20px);
    transition: width 0.5s, color 0.5s;
    overflow: visible;
    cursor: pointer;
}

.sidebarTab:hover {
    background-color: var(--accent-color);
    width: 100%;
    color: #F5F0BB;
    background-color: #4CACBC;
}

.sidebarTabActive {
    background-color: var(--accent-color);
    width: 100%;
    color: #F5F0BB;
    background-color: #4CACBC;
}

.sidebar a.active {
    background-color: #73A9AD;
    color: #F5F0BB;
    background-color: #4CACBC;
}

.sidebar a:hover:not(.active) {
    background-color: #4CACBC;
    color: #ffffff;
}

body > div.container {
    margin-left: 20%;
    width: 75%;
    padding: 0; /* 确保没有内边距 */
    padding-left: 1%;
}

.center-text {
    text-align: center;
}

.info {
    background-color: rgb(40, 206, 123);
    width: 100%;
    text-align: center;
}

.row {
    width: 100%;
    overflow: hidden;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}


.team-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-photo img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
}

.team-photo .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 25px;
    border: 2px solid #73AD21;
    padding: 20px;
    width: 80%;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out;
}

.team-photo .info:hover {
    background-color: #e8f5e9;
}

.member-photo {
position: relative;
margin: 5px;
}

.member-photo img {
    display:block;
    margin-right:auto;
    width:100%;
    height:300px;
    text-align:center;
}

.member-photo .info {
    position: absolute;
    background-color: rgb(16, 221, 119);
    width: 100%;
    height: 93%;
    top: 0;
    left: 0;
    color: #fff;
    padding: 10px;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
  
.member-photo:hover .info {
    top: 0;
    opacity: 0.85;
}

.resizable-img1 {
    max-width: 60%;
    height: auto;
}

.resizable-img2 {
    max-width: 90%;
    height: auto;
}

.resizable-img3 {
    max-width: 70%;
    height: auto;
}

.resizable-img4 {
    max-width: 50%;
    height: auto;
}

.resizable-img5 {
    max-width: 50%;
    height: auto;
}

.resizable-img6 {
    max-width: 70%;
    height: auto;
}

.resizable-img7 {
    max-width: 90%;
    height: auto;
}

.resizable-img8 {
    max-width: 70%;
    height: auto;
}

.resizable-img9 {
    max-width: 70%;
    height: auto;
}

.resizable-img10 {
    max-width: 60%;
    height: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background-color: #73A9AD; /* Jade color background */
}
thead {
    background-color: rgb(53, 103, 112); /* Dark jade color */
    color: white;
}
th, td {
    padding: 12px;
    border: 1px solid #004d40; /* Dark jade border */
    text-align: left;
}
th {
    font-size: 1.1em;
    font-weight: bold;
}
tr:nth-child(even) {
    background-color: #8ecdd1; /* Light jade color for even rows */
}
a {
    color: white; /* Dark jade color for links */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.bubble {
    width: 100%;
    display: none;
    background-color: #394A6D;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(89, 89, 89, 0.1);
}

.qa-container {
    display: flex;
    justify-content: space-between;
}

.question, .answer {
    width: 48%; /* Adjust width to take half the space */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.question {
    background-color: #22577A;
    margin-right: 2%;
}

.answer {
    background-color: #38A3A5;
    margin-left: 2%;
}

.home{
	background-color: #343a40;
	border: 10px solid #343a40;
    font-family: "tanklager";
    font-weight: bold;
}

.mt-4{
    --bs-gutter-x: 3rem;
}
@media screen and (max-width: 1000px) {
    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
      display: none;
    }
    .sidebar a {
      float: none;
    }
    body > div.container {
      margin-left: 0px;
    }
    body > div.container {
      padding: 1px 20px;
      width: 100%;
      max-width: 100%;
    }
    .header {
      font-size: 36px;
    }
  }
  