@font-face {
    font-family: 'Louis';
    src: url("https://static.igem.wiki/teams/4205/wiki/font/louis-george-cafe.ttf"); 
}
@font-face {
    font-family: 'cartagena';
    src: url("https://static.igem.wiki/teams/4205/wiki/font/cartagena-regular-2.ttf");
}
@font-face {
    font-family: 'Poppins';
    src: url("https://static.igem.wiki/teams/4205/wiki/font/poppins.ttf");
}
@font-face {
    font-family: 'Quicksand-bold';
    src: url("https://static.igem.wiki/teams/4205/wiki/font/quicksand-bold-1.otf");
}
@font-face {
    font-family: 'Quicksand';
    src: url("https://static.igem.wiki/teams/4205/wiki/font/quicksand-book-3.otf");
}
@font-face {
    font-family: 'aa';
    src: url("https://static.igem.wiki/teams/4205/wiki/font/moovdo-2.ttf");
}
:root{
    --blue:#3f73af;
    --dark-blue:#253b6e;
    --white:#e1e6eb;
    --orange:#e0af6f;
    --flower-blue:rgb(21, 69, 153);
    --flower-orange:#df8c54;
    --flower-white:#e5cab9;
    --light-purple:#c9d4ff;
}
.white{
    color: var(--white);
}
.blue{
    color: var(--blue);
}
.dark-blue{
    color: var(--dark-blue);
}
.thin{
    font-weight: 300 !important;    
}
* {
    /* 页面初始化,清除元素的内外边距 */
    padding: 0;
    margin: 0;
    /* 查找解决右侧页面空白 */
    /* outline:solid #f00 1px !important;
	background: #000 !important;
	color: #fff !important; */
}
body {
    background-color: var(--blue);
    min-width: 1260px;
    background-image: url(https://static.igem.wiki/teams/4205/wiki/star-background-4.svg);
    background-size: 100%;
    /* overflow-x: hidden; */

}
.flex-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

::selection {
    color: #4f577a;
    background-color: #e2d5c8;
}
span{
    display: block;
}
a {
    text-decoration: none;
    /* 去掉link下划线 */
    color: #dfe6e9;
    text-align: center;
}
strong {
    clear: both;
}

#icon {
    display: none;
}
.navbar {
    height: 50px;
    position: sticky;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 999;
    font-family: 'Louis';
    line-height: 50px;
    background-color: rgba(63, 115, 175, 0.773);
}

.navbar.fixed {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
}

.navbar-brand {
    position: relative;
    left: 50%;
    /* 左上角定在父元素中心 */
    top: 60%;
    /* 左上角定在父元素中心 */
    transform: translate(-50%, -50%);
    /* 定位点从左上角变为子元素的中心 */
}

.navbar ul {
    list-style: none;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.dropdown:hover {
    background-color: var(--orange);
    line-height: 40px;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    transition: 0.1s;
    height: 50px;
}

.dropdown>a {
    color: #dfe6e9;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.1s;
    cursor: pointer;
}

.dropdown ol {
    position: absolute;
    top: 50px;
    min-width: 180px;
    background-color: rgba(70, 100, 163, 0.8);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 1px 1px 8px rgb(145, 161, 196);
    /* 让盒子先沿着y轴缩放到0 也就是隐藏了 */
    transform: scaleY(0);
    /* 将盒子从上面滑动下来 设置一下缩放的中心点 设置到最上面的中间位置 */
    transform-origin: 50% 0;
    /* 设置过渡 */
    transition: all 0.2s;
    z-index: 999;
}

.dropdown ol li {
    list-style: none;
    height: 50px;
}

.dropdown>a::before {
    content: "";
    font-size: 0;
    padding: 10px 3px 1px;
    margin-left: 6px;
    border-left: 1px solid #FFE668;
}

li .line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.688);
}


.dropdown ol li a {
    height: 0;
    transform: translateY(0px);
    color: #dfe6e9;
    text-align: center;
    line-height: 50px;
    font-size: 2.3vh;
}

.navbar ul>li ol li:hover {
    background-color: rgba(111, 152, 199, 0.281);

}

.navbar ul>li:hover ol {
    transform: scaleY(1);
}

.navbar button {
    position: relative;
    color: white;
    background: linear-gradient(90deg, #03a9f4, #b27497, #3d72b4, #03a9f4);
    border: none;
    border-radius: 30px;
    width: 75px;
    height: 26px;
    background-size: 400%;
}

.navbar button:hover {
    animation: animate 8s linear infinite;
}


@keyframes animate {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

.navbar button::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: inherit;
    border-radius: 50px;
    background-size: 400%;
    opacity: 0;
}

.navbar button:hover::before {
    filter: blur(20px);
    opacity: 1;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 99;
}
.progress-bar#myBar{
    height: 100%;
    background: var(--orange);
    /* opacity: .773; */
    width: 0%;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media only screen and (max-width: 1200px) {
    #icon {
        display: block;
        background-color: var(--dark-blue);
        height: 50px;
        width: 50px;
        border-radius: 360px;
        position: sticky;
        top: 0;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #icon span{
        color: var(--white);
        position: sticky;
        text-align: center;
        top: 0;
    }

    #Menu {
        width: fit-content;
        transform: scaleX(0);
        transition: 0.5s;
        transform-origin: 0;
        top: 50px;
        background-color: rgb(37, 59, 110,.5);
        width: 40vw;
        height: 80vh;
        border-radius: 15px;
    }

    .logo {
        position: relative;
        transform: translate(-50%, -50%);
    }

    .navbar  ul {
        list-style: none;
        text-align: center;
        line-height: 30px;
        padding: 10px 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        background:none;
        height: 100%;
    }

    .navbar ol {
        position: absolute;
        left: 40vw;
        top: 0;
        width: 20vw;
        height: auto;
        transform: scaleX(0);
        transform-origin: 0;
        background-color: #5685c2c2;
        overflow: hidden;
        /* transition: 0.5s; */
    }
    .navbar ol li{
        height: auto;
    }

    .navbar ul li:hover ol {
        transform: scaleX(1);
    }

    .progress-bar#myBar{
        border: none;
        background-color: transparent;
        transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
      }

}
