/* Loading Screen Styles */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  text-align: center;
}

.loading-image {
  width: min(800px, 90vw);
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.loading-text {
  margin-top: 20px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #333;
  font-weight: 500;
}


body { padding-top: 56px; }
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 自定义鼠标指针 */
* {
  cursor: url('https://static.igem.wiki/teams/5736/img/home/p1-img6-unclick.webp') 39 28, auto;
}

/* 点击时的鼠标指针 */
*:active {
  cursor: url('https://static.igem.wiki/teams/5736/img/home/p1-img6-after-click.webp') 39 28, auto;
}

/* 链接和按钮的鼠标指针 */
a, button, .btn, input[type="button"], input[type="submit"], .clickable {
  cursor: url('https://static.igem.wiki/teams/5736/img/home/p1-img6-unclick.webp') 39 28, pointer;
}

a:active, button:active, .btn:active, input[type="button"]:active, input[type="submit"]:active, .clickable:active {
  cursor: url('https://static.igem.wiki/teams/5736/img/home/p1-img6-after-click.webp') 39 28, pointer;
}

/* 禁用状态的鼠标指针 */
a:disabled, button:disabled, .btn:disabled, input:disabled {
  cursor: url('https://static.igem.wiki/teams/5736/img/home/p1-img6-unclick.webp') 39 28, not-allowed;
}
.left-aligned { margin-left: auto; }
.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 }

/* Navigation icons */
.nav-logo {
  width: 57px;
  height: 57px;
  margin-left: -10%;
}

.nav-icon {
  width: 36px;
  height: 46px;
  margin-right: 0;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

.nav-icon-9 {
  width: 55px;
  height: 43px;
  margin-right: 0;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

.nav-link {
  display: flex !important;
  align-items: center !important;
  flex-direction: column !important;
  gap: 4px !important;
  text-align: center !important;
}

/* Menu spacing */
.navbar-nav .nav-item {
  margin-right: 10px !important;
}

/* Move entire menu to the right */
.navbar-nav {
  margin-right: -1% !important;
}

.navbar {
  background-image: url('https://static.igem.wiki/teams/5736/img/home/nav-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100px;
  }

.nav-link img {
  flex-shrink: 0;
}

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

.footer-with-bg {
  background-image: url("https://static.igem.wiki/teams/5736/img/footer/footer-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Footer Icons Section */
.footer-icons-section {
  margin-bottom: 30px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 85px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-icons-row.first-row {
  justify-content: center;
}

.footer-icons-row.second-row {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  position: relative;
  animation: scrollIcons 60s linear infinite;
}

@keyframes scrollIcons {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.footer-icon {
  object-fit: contain;
  flex-shrink: 0;
  height: 73px;
}

/* First row icons - individual sizes */
.row1-icon1 {
  width: 104px;
  height: 67px;
}

.row1-icon2 {
  width: 87px;
  height: 70px;
}

.row1-icon3 {
  width: 221px;
  height: 74px;
}

.row1-icon4 {
  width: 288px;
  height: 73px;
}

/* Second row icons - individual sizes */
.row2-icon1 {
  width: 277px;
  height: 73px;
}

.row2-icon2 {
  width: 193px;
  height: 73px;
}

.row2-icon3 {
  width: 360px;
  height: 73px;
}

.row2-icon4 {
  width: 277px;
  height: 73px;
}

.row2-icon5 {
  width: 89px;
  height: 73px;
}

.row2-icon6 {
  width: 165px;
  height: 73px;
}

.row2-icon7 {
  width: 100px;
  height: 73px;
}

.row2-icon8 {
  width: 237px;
  height: 73px;
}

.row2-icon9 {
  width: 135px;
  height: 73px;
}

.row2-icon10 {
  width: 239px;
  height: 73px;
}

.row2-icon11 {
  width: 236px;
  height: 73px;
}

.row2-icon12 {
  width: 234px;
  height: 73px;
}

.row2-icon13 {
  width: 238px;
  height: 73px;
}

.row2-icon14 {
  width: 72px;
  height: 73px;
}

.row2-icon15 {
  width: 70px;
  height: 73px;
}

.row2-icon16 {
  width: 235px;
  height: 73px;
}

.row2-icon17 {
  width: 77px;
  height: 73px;
}

.row2-icon18 {
  width: 233px;
  height: 73px;
}

.row2-icon19 {
  width: 119px;
  height: 73px;
}

.row2-icon20 {
  width: 236px;
  height: 73px;
}

.row2-icon21 {
  width: 74px;
  height: 73px;
}

.row2-icon22 {
  width: 238px;
  height: 73px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-icons-row {
    gap: 10px;
  }

  /* First row icons - tablet sizes */
  .row1-icon1 { width: 40px; height: 40px; }
  .row1-icon2 { width: 34px; height: 34px; }
  .row1-icon3 { width: 37px; height: 37px; }
  .row1-icon4 { width: 35px; height: 35px; }

  /* Second row icons - tablet sizes */
  .row2-icon1 { width: 30px; height: 30px; }
  .row2-icon2 { width: 28px; height: 28px; }
  .row2-icon3 { width: 33px; height: 33px; }
  .row2-icon4 { width: 31px; height: 31px; }
  .row2-icon5 { width: 29px; height: 29px; }
  .row2-icon6 { width: 35px; height: 35px; }
  .row2-icon7 { width: 28px; height: 28px; }
  .row2-icon8 { width: 32px; height: 32px; }
  .row2-icon9 { width: 30px; height: 30px; }
  .row2-icon10 { width: 34px; height: 34px; }
  .row2-icon11 { width: 31px; height: 31px; }
  .row2-icon12 { width: 29px; height: 29px; }
  .row2-icon13 { width: 33px; height: 33px; }
  .row2-icon14 { width: 27px; height: 27px; }
  .row2-icon15 { width: 35px; height: 35px; }
  .row2-icon16 { width: 30px; height: 30px; }
  .row2-icon17 { width: 32px; height: 32px; }
  .row2-icon18 { width: 28px; height: 28px; }
  .row2-icon19 { width: 34px; height: 34px; }
  .row2-icon20 { width: 31px; height: 31px; }
  .row2-icon21 { width: 29px; height: 29px; }
  .row2-icon22 { width: 33px; height: 33px; }

  .footer-icons-row.second-row {
    justify-content: flex-start;
    animation-duration: 40s;
    width: 200%;
  }
}

@media (max-width: 480px) {
  .footer-icons-row {
    gap: 8px;
  }

  /* First row icons - mobile sizes */
  .row1-icon1 { width: 35px; height: 35px; }
  .row1-icon2 { width: 30px; height: 30px; }
  .row1-icon3 { width: 32px; height: 32px; }
  .row1-icon4 { width: 31px; height: 31px; }

  /* Second row icons - mobile sizes */
  .row2-icon1 { width: 25px; height: 25px; }
  .row2-icon2 { width: 23px; height: 23px; }
  .row2-icon3 { width: 28px; height: 28px; }
  .row2-icon4 { width: 26px; height: 26px; }
  .row2-icon5 { width: 24px; height: 24px; }
  .row2-icon6 { width: 30px; height: 30px; }
  .row2-icon7 { width: 23px; height: 23px; }
  .row2-icon8 { width: 27px; height: 27px; }
  .row2-icon9 { width: 25px; height: 25px; }
  .row2-icon10 { width: 29px; height: 29px; }
  .row2-icon11 { width: 26px; height: 26px; }
  .row2-icon12 { width: 24px; height: 24px; }
  .row2-icon13 { width: 28px; height: 28px; }
  .row2-icon14 { width: 22px; height: 22px; }
  .row2-icon15 { width: 30px; height: 30px; }
  .row2-icon16 { width: 25px; height: 25px; }
  .row2-icon17 { width: 27px; height: 27px; }
  .row2-icon18 { width: 23px; height: 23px; }
  .row2-icon19 { width: 29px; height: 29px; }
  .row2-icon20 { width: 26px; height: 26px; }
  .row2-icon21 { width: 24px; height: 24px; }
  .row2-icon22 { width: 28px; height: 28px; }

  .footer-icons-row.second-row {
    animation-duration: 30s;
    width: 200%;
  }
}