@font-face {
    font-family: 'brlnsdb';
    src: url('https://static.igem.wiki/teams/5261/font/brlnsdb.woff')format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'bkant';
    src: url('https://static.igem.wiki/teams/5261/font/bkant.woff')format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'micross';
    src: url('https://static.igem.wiki/teams/5261/font/micross.woff')format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'arialbd';
    src: url('https://static.igem.wiki/teams/5261/font/arialbd.woff')format('woff');
    font-weight: normal;
    font-style: normal;
}


.mynavbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex; /* 使用flex布局 */
    align-items: center; /* 垂直居中 */
    background: #1E2838; /* 背景色 */
    height: 69px; /* 设置导航栏的高度 */
    justify-content: space-between;
}

.mynavbar ul {
    list-style: none;
    background: #1E2838;
    text-align: end;
    justify-content: flex-end;
    padding-right: 60px;
}

.mynavbar ul li {
    display: inline-block;
    position: relative;
}

.mynavbar ul li a {
    font-family: 'arialbd';
    background: #1E2838;
    display: block;
    padding: 20px 25px;
    color: rgb(251, 251, 251);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.mynavbar .dropdown {
    text-align: center;
    display: block;
    width: 150px;
    padding: 0px;
    background:#1E2838;
    position: absolute;
    z-index: 1;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    top: 64px;
    left: 0px;
    display: none;
}

.mynavbar .project-dropdown {
    width: 192px; /* 设置PROJECT下拉菜单的宽度 */
}
.mynavbar .wetlab-dropdown{
    width: 180px; 
}

.mynavbar .drylab-dropdown{
    width: 150px; 
}

.mynavbar .hp-dropdown{
    width: 250px; 
}

.mynavbar .team-dropdown{
    width: 170px; 
}


.mynavbar ul li .dropdown a {
    font-size: 19px; /* 将字体大小设置为16像素 */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.mynavbar ul li a:hover {
    color: rgb(69, 236, 77);
}

.mynavbar ul li:hover ul.dropdown {
    display: block;
}

.mynavbar .logo {
    flex: 0 0 auto; /* 不让logo伸缩 */
    padding: 10px; /* 内边距 */
    background-color: transparent;
}

.mynavbar .logo img {
    height: 50px; /* logo高度，根据实际logo尺寸调整 */
    width: auto; /* 保持图片宽高比 */
}


#active {
    color: rgb(47, 215, 55);
}


body{
    background: linear-gradient(135deg,#070911,#1a314c);
    height:98vh;
    background-attachment: fixed;
  }

#scroll_progress {
    padding: 0;
    margin: 0;
    position: fixed;
    top: 68px;
    left: 0px;
    width: 0%; /* 初始宽度为0，根据页面滚动增加 */
    height: 6px;
    background: linear-gradient(135deg, #375477, #2deb59);
    z-index: 999;
  }

