/* 正文 */
@font-face {
  font-family: "JosefinSans-Italic-VariableFont_wght";
  src: url(https://static.igem.wiki/teams/4232/wiki/fonts/josefinsans-italic-variablefont-wght.ttf);
}

/* 标题 */
@font-face {
  font-family: "Cookie-Regular";
  src: url(https://static.igem.wiki/teams/4232/wiki/fonts/cookie-regular.ttf);
}

/* 标题 */
@font-face {
  font-family: "LondrinaSketch-Regular";
  src: url(https://static.igem.wiki/teams/4232/wiki/fonts/londrinasketch-regular.ttf);
}

@font-face {
  font-family: "ArchitectsDaughter-Regular";
  src: url(https://static.igem.wiki/teams/4232/wiki/fonts/architectsdaughter-regular.ttf);
}

/* 主页 */
@font-face {
  font-family: "SignikaNegative-VariableFont_wght";
  src: url(https://static.igem.wiki/teams/4232/wiki/fonts/signikanegative-variablefont-wght.ttf);
}

body {
  padding-top: 56px;
  cursor: url(https://static.igem.wiki/teams/4232/wiki/home-page/cursor.png),
    auto;
}

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

/* init */
.init-padding {
  padding: 0px;
}

/* round */
.round-16 {
  border-radius: 16px;
}

/* colors */
a {
  color: #396afc;
}

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

.bg-hero {
  background-color: #7952b3;
}

.bg-light-gray {
  /* customize color: light gray */
  background-color: #859398;
}

.bg-dark-blue {
  /* customize color: dark blue */
  background-color: #2948ff;
}

/* color change */
/* 可以改侧边栏active */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: orange !important;
  border-right: 3px solid orange;
  background-color: white;
  /*change here*/
}

/* CALLOUT */
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
}

.bd-callout h4 {
  margin-bottom: 0.25rem;
}

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

.bd-callout code {
  border-radius: 0.25rem;
}

.bd-callout+.bd-callout {
  margin-top: -0.25rem;
}

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

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

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

/* navbar */
#nav-trans {
  position: fixed;
  top: 0;
  transition: top 0.15s ease;
}

.float-navbar {
  position: sticky;
  margin-top: 16px;
  margin-bottom: 16px;
  top: 104px;
}

.float-navbar .level-1 {
  margin-left: 0;
}

.float-navbar .level-2 {
  margin-left: 16px;
}

.float-navbar .level-3 {
  margin-left: 32px;
}

.float-navbar .expand-title {
  margin-left: -16px;
}

.anchor {
  /* 通过向需要跳转的位置插入此锚点实现向上偏移56px的效果 */
  display: block;
  /* 下去 */
  height: 56px;
  /* 回来 */
  margin-top: -56px;
  /* 隐藏 */
  visibility: hidden;
}

#nav-trans .nav-link {
  /* 导航栏字颜色 */
  color: #fffaab;
}

@media (max-width: 992px) {
  #nav-trans .nav-link {
    /* 导航栏字颜色 */
    color: #4257a3;
  }
}

#nav-trans .dropdown-item:active {
  background-color: rgb(207, 229, 237);
}

#nav-trans .dropdown-item:hover {
  color: orange;
  border-radius: 2px;
  font-size: large;
  transition: all 0.2s;
}

.dropdown-menu {
  background-color: #f4f5f0fe;
}

@media (max-width: 992px) {

  /* 导航栏下拉菜单颜色 */
  .dropdown-menu {
    background-color: #ffffff33;
    border: 0px;
  }

  .dropdown-item {
    color: #5368b4;
  }
}

/* 侧边导航栏样式 */
#side-nav.active {
  color: #f4f5f0 !important;
}

#side-nav {
  background-color: #f4f5f0;
}

/* 侧边导航栏样式 */
#side-nav.active {
  color: #f4f5f0 !important;
}

#side-nav {
  background-color: #f4f5f0;
}

.nav-pills .nav-link {
  border-radius: 0;
  border-right: 3px solid rgb(233, 230, 230);
}

.navbar-light .navbar-brand {
  /* 来自bootstrap */
  font-weight: bold;
  color: rgba(71, 85, 105, 1);
}

#side-nav .nav-pills a {
  color: rgba(100, 116, 139, 0.9);
}

#side-nav .nav-pills a:hover {
  background-color: white;
}

/* index page */

.index-scroll-text {
  box-shadow: inset 0 5px 5px rgba(175, 216, 237, 0.5295868005405287),
    0 0.5rem 1rem rgb(0 0 0 / 15%);
  background-color: rgba(0, 90, 167, 0.7);
  color: rgba(255, 253, 228, 1);
  font-family: ArchitectsDaughter-Regular, sans-serif;
  font-size: 2rem;
}

.index-scroll-text p {
  margin: 0;
  padding: 0.5rem;
  line-height: 3rem;
  text-align: center;
  width: 75%;
}

@media (max-width: 992px) {
  .index-scroll-text p {
    width: 100%;
    justify-content: left;
    padding-right: 8px !important;
  }
}

/* content */
.content-container {
  border-radius: 16px;
  background-color: #ffffff;
  font-family: JosefinSans-Italic-VariableFont_wght, sans-serif;
  font-size: 20px;
  text-align: justify;
}

.simple-container {
  padding: 5rem;
  text-align: justify;
}

/* 标题 */
.page-title-container {
  position: relative;
  z-index: 10;
  height: 55%;
}
@media (max-width: 992px) {
  .page-title-container {
  height: 45%;
}
}
.page-title-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background-color: #ffffff55;
  font-family: LondrinaSketch-Regular, sans-serif;
  
  letter-spacing: 0.6rem;
  font-weight: bold;
  text-shadow: -2px 2px 0 #262c6a, 2px 2px 0 #262c6a, 2px -2px 0 #262c6a,
    -2px -2px 0 #262c6a;
}
@media (min-width: 992px) {
  .page-title-text {
  font-size: 6rem;
}
}

.page-title-font {
  font-family: LondrinaSketch-Regular, sans-serif;
  font-size: 6rem;
  letter-spacing: 0.6rem;
  font-weight: bold;
  text-shadow: -2px 2px 0 #262c6a, 2px 2px 0 #262c6a, 2px -2px 0 #262c6a,
    -2px -2px 0 #262c6a;
}

.title-1 {
  margin-top: 40px;
  margin-left: 32px;
  margin-right: 32px;
  margin-bottom: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-radius: 16px;
  text-align: center;
  font-family: Cookie-Regular, sans-serif;
  font-size: 56px;
  letter-spacing: 5px;
  background-color: #7dbbd0;
  color: #fff;
}

.title-2 {
  margin-top: 32px;
  margin-bottom: 16px;
  margin-left: 104px;
  margin-right: 104px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-radius: 16px;
  text-align: center;
  font-family: Cookie-Regular, sans-serif;
  font-size: 48px;
  letter-spacing: 5px;
  background-color: #74b8c999;
  color: #fff;
}

.title-3 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: 32px;
  text-align: center;
  color: #1599ba;
}

.with-title {
  margin-bottom: 16px;
  font-size: 24px;
  text-align: center;
  color: #859398;
}

@media (max-width: 992px) {

  /* 改一下边框大小 */
  .title-1 {
    margin-left: 0px;
    margin-right: 0px;
  }

  .title-2 {
    margin-left: 0px;
    margin-right: 0px;
  }
}

/* 加粗小标题 */
.strong-title {
  font-size: 24px;
  font-weight: bold;
}

/* 加粗小型副标题 */
.with-strong-title {
  padding-left: 8px;
  padding-bottom: 16px;
  font-size: 16px;
  color: #859398;
}

/* 图名 */
.img-title {
  padding-bottom: 16px;
  text-align: center;
  font-size: 16px;
  color: #859398;
}

/* 公式专用居中 */
.expression-center {
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
}

/* 正文字体 */
.high-light-text {
  color: #1599ba;
}

.content-text {
  padding-top: 16px;
  padding-left: 32px;
  padding-right: 32px;
}

/* 图片放大处理 */
.img-scale {
  display: block;
  width: 85%;
  margin: 0 auto;
  height: auto;
  padding-top: 16px;
  padding-bottom: 16px;
}

.img-long {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto;
  padding-top: 16px;
  padding-bottom: 16px;
}

.iframe-container {
  overflow: hidden;
  position: relative;
  width: 75%;
  margin: 0 auto;
  padding-top: 42.1875%;
}

.iframe-container iframe {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  border: 0;
}

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

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

/* preloader */
#load-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  background-color: #f4f5f0;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#load-img img {
  height: 400px;
  width: 600px;
}

.load-disappear {
  animation: fadeout 1s forwards;
}

@keyframes fadeout {
  100% {
    opacity: 0;
    visibility: hidden;
    border-radius: 50%;
    transform: scale(0) translateY(-100%);
  }
}

/* team 页面style */
.team .col h5 {
  font-size: 1.5rem;
  font-weight: bold;
}

.team .col .card:hover {
  transform: scale(1.04);
  transition: 0.2s ease;
}

/* slides */
.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px !important;
  height: 277px;
}

.swiper-slide a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: orange;
}

/* homepage page links */
#page-link img {
  width: 300px;
  height: 300px;
}

#page-link .col {
  display: flex;
  justify-content: center;
}

#page-link img:hover {
  transform: scale(1.1) rotate(1turn);
  transition: 0.8s ease;
}

/* oxygen haunter style */
@media (max-width: 992px) {
  #title-gif {
    padding-bottom: 0 !important;
    width: 90% !important;
    margin-top: 15rem !important;
  }
}

/* 主页手机背景 奇怪要加important */
@media (max-width: 992px) {
  /* #page-sm-1 {
    background-image: url(https://static.igem.wiki/teams/4232/wiki/home-page/home-page-sm-1.png) !important;
  } */

  #page-sm-2 {
    background-image: url(https://static.igem.wiki/teams/4232/wiki/home-page/home-page-sm-2.png) !important;
  }

  #page-sm-3 {
    background-image: url(https://static.igem.wiki/teams/4232/wiki/home-page/home-page-sm-3.png) !important;
  }

  #page-sm-4 {
    background-image: url(https://static.igem.wiki/teams/4232/wiki/home-page/home-page-sm-4.png) !important;
  }
}

/* home page txt */
.home-page-text {
  font-family: SignikaNegative-VariableFont_wght, sans-serif;
  font-size: 24px;
}

@media (max-width: 992px) {
  .home-page-text {
    font-size: 24px;
  }

  #page-sm-5 {
    background-image: url(https://static.igem.wiki/teams/4232/wiki/home-page/home-page-text-sm-back.png);
  }
}

/* simple container background */
.simple-container-background {
  background-image: url(https://static.igem.wiki/teams/4232/wiki/simple-page-background.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding-right: 12em;
  padding-left: 12em;
  padding-top: 5em;
  padding-bottom: 5em;
}

@media (max-width: 992px) {
  .simple-container {
    padding: 0rem;
    text-align: justify;
  }

  .simple-container-background {
    padding: 1rem;
  }

  .mobile-reverse {
    flex-direction: column-reverse;
  }
}

/* animation delay */
/* :root {
  
  --animate-delay: 2s;
} */
.animate__animated.animate__zoomInDown {
  --animate-duration: 1s;
  --animate-delay: 3s;
}

.animate__animated.animate__rotateInDownLeft {
  --animate-duration: 2s;
  --animate-delay: 5s;
}

.animate__animated.animate__fadeIn {
  --animate-duration: 1.8s;
  --animate-delay: 3s;
}

@media (max-width: 992px) {
  .peekingBug {


    margin-top: -20px !important;

  }

  .fork {


    margin-top: 270px !important;

  }
}

/* 图片注解 */
.img-caption {
  text-align: center;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 2rem;
  color: lightblue !important;
}

/* huiben */
.huiben {
  width: 100%;
  height: 700px;
}

@media (max-width: 992px) {
  .huiben {
    width: 100%;
    height: 250px;
  }
}