/*@font-face {
  font-family: 'Coustdard';
  src: url('/static/fonts/Coustdard-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}*/

@font-face {
  font-family: 'Chunkfive';
  src: url('https://static.igem.wiki/teams/5714/font/chunkfive.otf') format('truetype');
}

/* @font-face {
  font-family: 'Pridi';
  src: url('/static/fonts/Pridi-Regular.ttf') format('truetype');
}  TODO: Delete */

@font-face {
  font-family: 'Spinnaker';
  src: url('https://static.igem.wiki/teams/5714/font/spinnaker-regular.ttf') format('truetype');
}

/* @font-face {
  font-family: 'Sansation';
  src: url('/static/fonts/sansation-regular.ttf') format('truetype');
}  TODO: File Unfound */


body {
  padding-top: 56px;
  background-color: #f9f2d6;
  color: black;
  -ms-overflow-style: none;
  overflow: auto;
  overflow-x: hidden;
}

body * {
  scroll-margin-top: 100px;
}

body::-webkit-scrollbar {
  display: none;
}

/* TODO: Unused */
.left-aligned {
  margin-left: auto;
}

/*
feel free to un-annotate TODO: WHat?
.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: 1.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
}

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

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

.top {
  height: 50px;
  background-color: rgba(248, 249, 250, 0.6);
  border-radius: 20px 20px 0 0;
  margin: 0 auto 1.5rem;
  max-width: 960px;
}

.footer-content .mains img {
  display: block;
  margin: 0 auto;
}

.footer-location {
  max-width: 520px;
  margin: 1rem auto 0;
  text-align: center;
  line-height: 1.6;
}

.autoscroll {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
}

.scroll-container {
  display: inline-flex;
  align-items: center;
  animation: scroll 20s linear infinite;
  gap: 50px;
  justify-content: space-around;
  padding-right: 50px;
}

.autoscroll:hover .scroll-container {
  animation-play-state: paused;
}

.scroll-container img {
  display: inline-block;
  margin-right: 10px;
  height: 100px;
  background-color: white;
  border-radius: 20px;
  padding: 10px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Font */
h1 {
  color: #678c4c;
  font-family: 'Chunkfive', serif !important;
}

h2 {
  color: #678c4c;
  font-family: Arial, sans-serif !important;
  font-weight: bold;
}

h3 {
  color: #2f4858;
  font-size: 1.3em;
  font-family: 'Sansation', sans-serif !important;
}

h4 {
  color: #a66925;
  font-size: 1.1em;
  font-weight: bold;
  font-family: 'Sansation', sans-serif !important;
}

p {
  font-family: Arial, sans-serif !important;
}

.navbar {
  font-family: 'Sansation', sans-serif !important;
}



.container-everything {
  margin-top: 10vh;
  flex-grow: 1;
  position: relative;
  z-index: 34;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

#sidebar {
  min-width: 250px;
  background-color: #F9F2D6;
  /* background-color: #d9534f; */
  padding: 20px;
  position: sticky;
  top: 100px;
  left: 0px;
  height: fit-content;
  max-height: 70vh;
  overflow-y: auto;
  pointer-events: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#sidebar::-webkit-scrollbar {
  display: none;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar li {
  margin: 8px 0;
}

#sidebar a {
  text-decoration: none;
  font-size: 16px;
  display: block;
  padding: 8px;
  border-radius: 6px;
  text-align: left;
  pointer-events: auto !important;
  color: #d68d3e;
  font-weight: bolder;
  transition: all 0.2s ease;
}

#sidebar a:hover {
  /* background-color: #ddd; */
  transform: translateX(5px);
}

#sidebar li {
  position: relative;
  z-index: 2;
  border-left: 6px solid transparent;
}

#sidebar li:hover {
  border-left: 6px solid #678c4c;
  color: #d68d3e;
}

#sidebar .active-box {
  border-left: 6px solid #678c4c;
  background-color: rgba(103, 140, 76, 0.1);
}

#sidebar .active-box a {
  color: #678c4c;
  font-weight: bold;
  transform: translateX(3px);
}

#sidebar .active-box:hover {
  background-color: rgba(103, 140, 76, 0.15);
}

@media (max-width: 768px) {
  #sidebar {
    display: none;
  }

  .main {
    max-width: none !important;
    width: 90vw;
  }
}


.main {
  max-width: 70vw;
  margin: 0 20px 0 20px;
}




#progress-container {
  z-index: 99999;
}

#progress-bar {
  z-index: 99999;
}

#progress-bar::after {
  z-index: 100000;
}

#progress-container {
  position: fixed;
  top: 87px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #ebd014;
  z-index: 999999;
}

#progress-container.index {
  z-index: 9999;
}

/* 屏幕尺寸小于990px */
@media (max-width: 990px) {
  #progress-container {
    top: 65px;
  }
}

#progress-bar {
  position: relative;
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #6F8500, #9E9D11);
}

#progress-bar::after {
  content: '';
  position: absolute;
  top: -230%;
  right: 0;
  transform: translateY(-50%);
  width: 60px;
  height: 100px;
  background-image: url('https://static.igem.wiki/teams/5714/progressbar/truck-removebg-preview.webp');
  background-size: cover;
  background-position: center;
  z-index: 11000;
}

.progress-truck {
  position: absolute;
  top: -350%;
  right: -10px;
  transform: translateY(-50%);
  width: 70px;
  height: 50px;
  background-image: url('https://static.igem.wiki/teams/5714/progressbar/truck2.webp');
  background-position: center;
  background-size: cover;
  z-index: 110000;
  pointer-events: none;
}


.strawtopia-title {
  font-family: 'Ribeye', serif;
  font-size: 96px;
  font-weight: normal;
  text-align: left;
  letter-spacing: 2px;
  line-height: 1;
  color: #222;
}

.img-and-caption {
  margin-bottom: 1.5em;
  position: relative;
}

.img-and-caption img {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.img-and-caption p:first-of-type {
  text-align: center;
  font-size: 0.8em;
  color: #555;
  margin-top: 8px !important;
}

header.bg-hero {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 0;
  /* 保持较低的z-index */
  pointer-events: none;
  /* 重要：禁止header捕获点击事件 */
}

header.bg-hero * {
  pointer-events: none;
  /* 确保header的所有子元素也不捕获点击事件 */
}

header.bg-hero .overlay {
  top: 0;
  left: 0;
  z-index: 1;
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.2);
  flex-direction: column;
  pointer-events: none;
  /* 确保overlay不捕获点击事件 */
}

header.bg-hero img.bg-img {
  z-index: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  /* 确保图片不捕获点击事件 */
}

/* FIXME: */

header.bg-hero .overlay .lead {
  color: #ffffff;
  font-size: 4.5vmin !important;
  -webkit-text-stroke: 1px #ecce6c;
  text-align: center;
  margin-left: 100px !important;
  margin-right: 100px !important;
  margin-top: 20px !important;
  font-weight: 1000 !important;
}

header.bg-hero .overlay .display-4 {
  color: #ffffff;
  font-size: 15vmin !important;
  -webkit-text-stroke: 2px #ecce6c;
  text-align: center;
  text-shadow: 0 0 8px rgba(236, 206, 108, 0.5);
  font-weight: 5;
  pointer-events: none;
}

header.bg-hero .overlay .lead {
  color: #ffffff;
  font-size: 3.5vmin !important;
  -webkit-text-stroke: 1px #ecce6c;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
  pointer-events: none;
}

.section {
  margin-bottom: 30px;
}


.headtext {
  position: relative;
  color: #678c4c;
  text-shadow: 3px 3px 0 rgba(103, 140, 76, .25);
  text-align: left;
  padding: 20px;
  display: inline-flex;
  flex-direction: row;
}

.headtext::after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 5px;
  aspect-ratio: 1;
  height: 120%;
  background: url('https://static.igem.wiki/teams/5714/wiki/section-heading-end.webp') no-repeat center bottom;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
  transform: translate(91%);
}

.headtext h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 0;
}

.headimg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 151%;
  height: 125%;
  display: block;
  z-index: 1;
  opacity: 1;
  object-fit: fill;
  transform: translate(-42%, -62%);
}

.text {
  width: auto;
  background-color: #ebf0bd;
  height: 80%;
  border-radius: 16px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
  padding: 30px 30px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.text p {
  margin-bottom: 1em;
}

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

/* 为链接添加换行样式 */
.text a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  display: inline-block;
  max-width: 100%;
}

.forword {
  font-style: italic;
  border-left: 4px solid #a4b791;
  padding-left: 10px;
}

.collapsible {
  background-color: #a5ae9d;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  border-bottom: white solid 1px;
  text-align: left;
  outline: none;
  font-size: 1.3em;
}

.collapsible:after {
  content: '\2b';
  font-size: 1em;
  color: white;
  float: right;
  margin: auto;
  margin-right: 5px;
}

.collapsible.active,
.collapsible:hover {
  background-color: #7B8474;
}

.collapsible.active:after {
  content: "\2212";
}

.collapsible-content {
  padding: 0 18px;
  background-color: #7B8474;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  color: white;
  font-size: 1em;
  border-bottom: white solid 1px;
}

.collapsible-content> :first-child {
  margin-top: 1em;
}

.collapsible-content p:last-of-type {
  margin-bottom: 1em;
}

.collapsible-content p {
  margin-bottom: 0.3em;
}

.collapsible-content h4 {
  font-size: 1.2em;
  font-weight: bold;
  color: #ecce6c;
  margin-top: 0.8em;
}

.collapsible-content img {
  display: block;
  margin-bottom: 1em;
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: none;
  z-index: 99999;
}

#back-to-top img {
  display: block;
  width: 100%;
  height: auto;
}

#back-to-top .label {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 60%;
  bottom: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #000;
  pointer-events: none;

  font-family: 'Sansation', sans-serif !important;
  font-size: 10px;
}

#back-to-top:hover {
  opacity: 0.95;
}

#back-to-top:active {
  scale: 0.95;
}


#preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #fff;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

#preloader img {
  max-width: min(60vmin, 420px);
  max-height: min(60vmin, 420px);
  width: 100%;
  height: auto;
  display: block;
}

body.preloading {
  overflow: hidden;
}

#pull-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: none;
  pointer-events: none;
}

#pull-overlay img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100vh;
  width: auto;
  display: none;
}

#pullGif {
  position: fixed;
  right: 0;
  bottom: 0;
  height: 100vh;
  width: auto;
  display: none;
}

#appearGif {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 140px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: none;
  z-index: 9999999;
  scale: 0.2;
}
table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}
th{
  background-color: rgb(255, 229, 158)
}
td,th{
  height:50px;
  text-align:center;
}