body { margin:0; padding-top: 56px; background-image:url(https://static.igem.wiki/teams/5182/backgr-3-black.webp);width:100%;min-width:100%;overflow-x:hidden;}
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #929cc9 !important; }
.bg-hero { background-color: transparent; }
footer.pt-5.pb-5.footer.py-5.mt-5.bg-dark.text-white {
    background-color: transparent !important;}
a{color: #00164e;}

/* 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 }
/* LOADING */
/* container */

/* nav */
 @font-face {
          font-family: "Poppins";
          src: url("https://static.igem.wiki/teams/4181/wiki/fonts/fontsfree-net-poppins-bold.ttf");
          font-stretch: "normal";}
@font-face {
          font-family: "content-main-headline";        
          src: url("./fonts/Copperplate-Gothic-Bold.ttf");

          font-stretch: "normal";}
@font-face {
          font-family: "main-body-text";
          src: url("https://static.igem.wiki/teams/4181/wiki/fonts/main-body-text-zerothre.ttf");
          font-stretch: "normal";}
@font-face {
          font-family: "planet-headline";
          src: url("https://static.igem.wiki/teams/4181/wiki/fonts/planet-headline.ttf");
          font-stretch: "normal";}


@font-face {
          font-family: "Gap-Regular";
          src: url("./fonts/Gap-Regular.ttf");
          font-stretch: "normal";}
@font-face {
           font-family: "LibertinusSans-Regular";
           src: url("./fonts/LibertinusSans-Regular.otf");
           font-stretch: "normal";} 
.navbar {
    font-family: "Poppins";
    font-size: 21px;
    height: 50px;
    width: 100%;
    margin:104px,0;
    background-color: rgb(255,255,255,0.5);
    backdrop-filter: blur(50px);
}
#logo {
    height: 75px;
}
.left-aligned {
    margin-left: auto;
}
.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}
.navbar-brand {
    padding-top: 10px;
    padding-bottom: 0px;
    margin: auto;
}
.nav-link {
    display: inline-block;
    height: 46px;
    line-height: 30px;
    margin-left: 20px;
    text-align: center;
    color: rgb(255,255,255,1) !important;
    border: none;
    border-radius: 0.25rem;
}
.nav-link:hover {
    background-color:#2c42b0;
}
.dropdown-menu {
    background-color:#26204C;
    padding: 0px;
}
.dropdown-item {
    color: white;
    font-size: 1rem;
}
.dropdown-item:hover {
    display: block;
    background-color:#2c42b0;
    color:white;
    border-radius: 0.25rem;
}

/* 侧边导航栏 */
.sidenav-container {
    position: sticky;
    float: left;
    width: 200px;
    background-image:linear-gradient(to bottom , rgba(210, 210, 210, 0.3), rgba(210, 210, 210, 0.14));
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px 20px 20px 20px;
    margin-left: -0%;
    top: 100px;
    margin-top: 50px;
    height: auto;
    overflow-y: auto;
    z-index: 4;
    font-family:'Comic Sans MS', cursive;
    font-weight: bold;
    }

.sidenav {
        position: sticky;
        height: 100vh;
        top: 0;
        left: 0;
        width: 200px;  
    }
    
.sidenav-titles {
    padding-bottom: 1rem;
    width: 200px;
}

.sidenav-title-list {
    display: flex;
    flex-direction: column;
    row-gap: 1.2rem;
    list-style: none;
    text-align: left;
    width: 200px;
    padding: 20px 20px 20px 20px;
}

.sidenav-title-item_active {
    font-family: 'Comic Sans MS', cursive, serif;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s;
    transform-origin: center;
}

.sidenav-title-item_active:hover {
    color: #5B5A78;
    transform: scale(1.1);
}
   


/* team 的设计在member.css里*/
 
* { margin: 0px; padding: 0;}
/* 是每张网页的背景，可以换*/
body {background-image: url(https://static.igem.wiki/teams/4181/wiki/images/background0.png);}

/* 首页-小标题字体 */
.homepage-subtitle{
    font-family:"Gap-Regular";
    font-size:60px;
    color: #000000;
}

/* 首页-黑夜月亮数据列举区字体 */
.homepage-moon{
    font-size:40px;
    font-weight: bold;
    color: #e9e8ea;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 首页-月亮区 贴纸效果 */
.moon-sticker{
    height:250px ;
    width: auto;
    position: relative;
    right: -50% ;
    top:-100% ;
    margin-bottom: 50px;
    /* 变换效果 */
    transition: transform 1s;
    z-index:10;
    transform-origin: center;
}

.moon-sticker:hover{
    transform: scale(1.1);
}

/* 首页-月亮区 加粗字体 */
.moon-highlight{
    color: #b462f2;
    font-size: 55px;
    font-weight: bold;
}

/* 首页-正文字体 */
.homepage-text{
    font-family:"LibertinusSans-Regular";
    font-size:25px;
    color: #000000;
    margin-left: 15%;
    margin-right: 15%;
}

/* 渐入动画 */
.slide-in {
    opacity: 0; /* 初始透明度 */
    transform: translateY(-50px); /* 初始位置在上方 */
    animation: slideIn 1.5s forwards; /* 使用动画 */
}

@keyframes slideIn {
    to {
        opacity: 1; /* 最终透明度 */
        transform: translateY(0); /* 结束位置 */
    }
}


  
/* 添加过渡效果样式 */
.box {
    transform: translateY(-50px); 
    transition: opacity 1.5s forwards, transform 1.5s forwards;
    opacity: 0;
  }
  
/* 元素进入视口时，添加类名显示元素 */
.box.visible {
    opacity: 1;
    transform: translateY(0); 
}
  

/* 千纸鹤贴纸 */
.mascot-sticker{
    
    
    transition: transform 1s;
    z-index:10;
    transform-origin: center;
}

.mascot-sticker img {
    width: auto;
    height: 250px;
    max-width: 100%;
}
.mascot-sticker:hover{
    transform: scale(1.1);
}



.white-frame{
    position: relative;
    left: 15%;
}

.ssppan{
    font-family: "main-body-text", Arial, Helvetica, sans-serif;
    font-size: xx-large;
    color: #ffffff;
    font-weight: normal;
}

#astronaut{
    position: absolute;
    top: 70px;
    right: 30px;
}


.arrow{
    position: relative;
    top: 60px;
    left:45%;
}

.planet-vedio{
    padding: 40px;  
}

.promotion-vedio{
    position:relative;
    padding: 90px 50px 50px 80px;  
    z-index: 1;
}

#vedio2{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#book{
    position:relative;
}

.sssppan{
    font-family: "main-body-text", Arial, Helvetica, sans-serif;
    font-size: xx-large;
    color: #65cae1;
    font-weight: normal;
}

#logbook-content-nav{
    position:relative;
    top:100px;
}


.project-advantages{
    position:relative;
}

#ad-png{ 
    padding: 10px;
    left:0%;
    position:relative;
   }

.project-ad{
    position:relative;
    padding-top: 0px;
}

#project-bg1{ 
    padding: 0;
    right:-8%;
    top: -10px;
    position:absolute;
   }

#project-bg2{
    padding: 0;
    left:-8%;
    top: 270px;
    position:absolute;
   }

#text1{
    position:relative;
    font-family: "main-body-text", Arial, Helvetica, sans-serif;
    font-size: x-large;
    color: #000000;
    font-weight: normal;
    width: 500px;
    height: auto;
    left:25%;
    top: 130px;
    text-align: left;
}

.text2{
    position:relative;
    font-family: "main-body-text", Arial, Helvetica, sans-serif;
    font-size: x-large;
    color: #ffffff;
    font-weight: normal;
    width: 500px;
    height: auto;
    left:30%;
    top: 370px;
    text-align: left;
}

.spores{
    position: relative;
    padding-top: 0px;
    left: 10%;
}

    
/* parts */


.parts-title{font-family:"content-main-headline";color:white;font-weight:400}

.parts-title1{height: 80px;line-height: 85px;padding-left: 37px;margin: 15px;font-family:'Comic Sans MS', cursive;color:white;font-weight:400;}
.parts-title2{height: 80px;line-height: 85px;padding-left: 37px;margin: 15px;font-family:'Comic Sans MS', cursive;color:white;font-weight:400;float:right;margin-right:40px}


 .parts-large {
     font-family: "main-body-text", Arial, Helvetica, sans-serif;
     font-size: medium;
     color: #ffffff;
     /* font-weight: bold; */
     padding: 20px 20px;
     /* margin: 20px 20px; */
     margin: 0 auto;
     text-align: left;
     float: left;
     
     background-color: rgb(157, 161, 200);
     width: 1000px;
     height: auto;
     border-radius: 30px;
 }

.ball2{
  width:100px;
  height: 100px;
  padding: 0;
  left:40px;
  position:absolute;
  background-image: url("https://static.igem.wiki/teams/4181/wiki/images/twoballa.png");
  background-repeat:no-repeat;
  z-index: -1;
 }


 .ball3{
  width:100px;
  height: 100px;
  padding: 0;
  left:40px;
  position:absolute;
  background-image: url("https://static.igem.wiki/teams/4181/wiki/images/twoballb.png");
  background-repeat:no-repeat;
  z-index: -1;
 }


/* experiments */



 /*design  */ 




 /* results & improve */


 
 /* engineering */


/* safety,model,etc需要改得美观一点 */
.title-s {height: 70px; letter-spacing: 4.5px; position: relative;margin-bottom: 40px; margin-left: 40vh; top:30px;color: #fff; font-size: xxx-large; font-family: 'Comic Sans MS', cursive; font-weight: bold; text-align: left; }
.title{ font-family: 'Comic Sans MS', cursive; color:white; font-size: xx-large; margin-left: 40vh; margin-top: 50px; font-weight: bold}
.title2{ font-family: 'Comic Sans MS', cursive; color:white; font-size: x-large; margin-left: 40vh; margin-top: 20px;font-weight: bold }
.title3{ font-family: 'Comic Sans MS', cursive; color:white; font-size: large; margin-top: 20px; font-weight: bold}
.block{ height:fit-content; border-radius:40px;padding: 25px; margin-left: 40vh; margin-top: 20px;text-align: justify;background-color:#9296c1; color: #ffffff; font-family: 'Comic Sans MS', cursive;font-size: large}
p { text-indent: 2em;/* 设置缩进为2个字符宽度 */}
.block img {
    display: block;
    margin: auto;
    max-width: 60%;
}
.block figcaption {
    display: block;
    margin: auto;
    max-width: 70%;
    margin-bottom: 1%;
}

/* 图片的名字 */
figcaption {
    color: #fff;
    font:  smaller sans-serif;
    text-align: center;
  }


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