/* Fonts */
@font-face {
    font-family: 'Poppins';
    src: url(https://static.igem.wiki/teams/5087/fonts/poppins-regular.ttf);
}

@font-face {
    font-family: 'Poppins';
    src: url(https://static.igem.wiki/teams/5087/fonts/poppins-bold.ttf);
    font-weight: bold;
}

body {
    padding-top: 56px;
    font-family: 'Poppins', sans-serif;
}

a {
    color:#714CB9;
    text-decoration: none;
}

:target {
  scroll-margin-top: 80px; /* 根据你的导航高度调整 */
}

/* loading */
/* 在加载时禁止body滚动 */
body.loading-active {
    overflow: hidden;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* 使用视窗宽度单位 */
    height: 100vh; /* 使用视窗高度单位 */
    background: rgba(248, 242, 255, 0.85);
    z-index: 9999; /* 确保在最上层 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading img {
    max-width: 20vw;/* 或者你想要的大小 */
    height: auto;
}

.loading-center {
    display: flex;
    align-items: center;
}

.loading-text {
    font-size: 4rem;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
    color: #4c2673;
    margin-left: 15px;
    display: flex;
    transform: translate(-5rem, 2rem);
}

.loading-text .dot {
    animation: blink 1.4s infinite;
    opacity: 0;
}

.loading-text .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-text .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
  
  /* 鼠标动画圆圈（可选） */
/* .mouse {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    background-color: #fff782;
    position: absolute;
    animation: mouseAnimation 0.5s infinite ease-in-out alternate;
    left: 0;
    top: 0;
    z-index: 10000;
}
  
@keyframes mouseAnimation {
    from {
        width: 25px;
        height: 25px;
}
    to {
        width: 15px;
        height: 15px;
}
} */
/* loading结束 */


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

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

.bg-hero {
    background-color: #c6b6e4;
}

/* MENU*/

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: rgb(255, 255, 255);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: #AA95D6;
    text-decoration: none;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
}

header nav ul li a:hover {
    background-color: #D4CAEA;
}

.custom-navbar-bg {
    background-color: #661cc1;
    border-bottom: #f1b212 10px solid;
}

.navbar-nav .dropdown-menu {
    text-align: center;
    background-color: #993fe2;
    border-radius: 6px;
    padding: 10px 0;
    border: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.navbar-nav .dropdown-item {
    color: white;
    padding: 8px 20px;
}

.navbar-nav .dropdown-item:hover {
    background-color: #D4CAEA;
    color: white;
}

.navbar-nav .nav-item {
    position: relative;
    z-index: 1000;
    margin-right: 30px;
    font-family: "Poppins", sans-serif;
}

.navbar-nav .nav-link {
    color: white;
}

/* NAVBAR ANIMATION */
.navbar {
    transition: top 0.5s;
}

/* Hide logo when navbar is hidden */
.navbar-hidden .navbar-logo {
    display: none;
}

/* LOGO*/
.navbar-brand {
    position: relative;
    z-index: 10;
}

.navbar-brand .navbar-logo {
    height: 100px;
    position: absolute;
    top: -15px;
    left: 0px;
    z-index: 1;
}

.navbar-brand span {
    position: relative;
    z-index: 100;
    padding-left: 30px;
}

/* BANER */

.header-banner-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.header-banner {
    position: relative;
    width: 75%;
    margin-bottom: 30px;
}

.header-banner img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.header-banner-shadow {
    position: absolute;
    top: 10px;
    left: -10px;
    width: 100%;
    height: 100%;
    background-color: #AA95D6;
    border-radius: 15px;
    z-index: -1;
}

@media (max-width: 768px) {
    .header-banner-container {
        padding: 10px 0;
    }

    .header-banner-shadow {
        top: 10px;
        left: 10px;
    }
}

.header-banner-text {
    position: absolute;
    bottom: -35px;
    left: -120px;
    padding: 20px;
    color: #714CB9;
    width: calc(100% - 40px);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: lowercase;
    font-family: 'Poppins';
}

/* TEXT BOX STYLE */

.content-box {
    padding: 20px;
    margin: 20px auto;
    margin-left: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #F4F6FC;
    width: 75%;
}

.description {
    padding: 20px;
}

.description .image-container {
    text-align: center;
    margin-bottom: 20px;
}

.description .image-container img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
}

.description .content {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
}

.description .content h2 {
    color: #333;
}

.description .content p {
    color: #555;
}

.rounded-corners {
    border-radius: 15px;
}

/* BACK-TO-TOP BUTTON STYLE */
.sticky-graphic {
    position: fixed;
    bottom: 0px;
    right: 0px;
    width: 150px;
    height: auto;
    z-index: 1000;
    cursor: pointer;
}

/* SIDE STICKY MENU */
.sticky-menu {
    position: fixed;
    top: 170px;
    left: -220px;
    width: 210px;
    padding: 10px;
    z-index: 1000;
    transition: left 0.3s ease;
    max-height: 80vh; 
    overflow-y: hidden; 
}


.sticky-menu::-webkit-scrollbar-track {
    background: lightgray;
    border-radius: 6px; /* Rounded scrollbar track */
}

#sticky-menu.scrollable {
    overflow-y: auto; 
}
#sticky-menu::-webkit-scrollbar {
    width: 12px; /* Set width of the scrollbar */
}

#sticky-menu::-webkit-scrollbar-thumb {
    background-color: rgba(113, 76, 185, 1); 
    border-radius: 6px; 
}

#sticky-menu::-webkit-scrollbar-track {
    background: lightgray; 
}

/* For Firefox browsers */
#sticky-menu.scrollable {
    overflow-y: auto; /* Always show scroll */}

#page-content {
    padding-left: 160px;
}

.sticky-menu.show {
    left: 0;
}

.sticky-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sticky-menu ul li {
    margin: 5px 0;
}

.sticky-menu ul li a {
    text-decoration: none;
    text-transform: uppercase;
    color: #333;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sticky-menu ul li a:hover {
    background-color: #D4CAEA;
}


/* 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;
}

/* footer */
.footer {
    width: 100%;
    background: #333333;
    box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.1);
    padding: 3rem 0;
    color: #f1ecec;
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    z-index: 2;
}


.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border:2px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 0;
    margin-top: 2px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-section1 {
    flex: 1;
    margin: 30px auto 30px 0px;
    text-align: left;
    border:2px solid rgba(255, 255, 255, 0.2);
}

.footer-section1 img {
  display: block;
  margin: 0 auto;
  width: 200px;
  height: auto;
}

.footer-section2 {
    flex: 1;
    margin: 30px 30px auto 30px;
    text-align: left;
    border:2px solid rgba(255, 255, 255, 0.2);
}

.footer-section3 {
    flex: 1;
    margin: 30px 0 auto auto;
    text-align: left;
    border:2px solid rgba(255, 255, 255, 0.2);
}

.footer .supporters {
    margin-top: 20px;
    font-size: 20px;
}

.carousel {
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.carousel img {
    background-color: white;
    height: 80px;
    margin: 0 10px;
}

.carousel-track {
    display: flex;
    animation: scroll 50s linear infinite;
}

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

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

.footer a {
    font-style: oblique;
    color: white;
}

.social-icons {
    font-size: 1.5rem;
}

.social-icons ul {
    list-style: none;
    padding: 0;
}

.social-icons i {
    color: #f1ecec;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icons i:hover {
    color: #efeded;
    transform: translateY(-2px);
}

.footer-bottom a:hover {
    color: #9049f4;
}

/* .center {
    display: block;
    margin-left: auto;
    margin-right: auto;
} */
/* footer end */


/* TEAM PAGE */
.header-section h1 {
    font-size: 2.5rem;
    color: #512da8;
    /* Purple text */
    font-weight: bold;
}

/* Team member section padding and margin adjustments */
.team-section .row {
    margin-bottom: 30px;
    /* Space between rows */
}

/* Adjust the size of the team member images */
.team-section img {
    width: 120px;
    /* Adjust as necessary */
    height: 120px;
    /* Ensure the image remains circular */
}

/* Ensure the card text is aligned */
.team-section h5 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.team-section p {
    margin-bottom: 0;
    color: #6a1b9a;
    /* Matching text color with your theme */
}

.position-relative {
    position: relative;
}

.hover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(113, 76, 185, 1);
    color: white;
    font-size: large;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.hover:hover .hover-text {
    opacity: 1;
}

/* Notebook styles  */
.accordion-button {
    background-color: #b28dd1;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem #D4CAEA;
    background-color: #D4CAEA;
    color: rgba(113, 76, 185, 1);
}

.accordion-body {
    word-wrap: break-word;
    /* Forces long words to break */
    overflow-wrap: break-word;
    /* Ensures long text breaks properly */
    white-space: normal;
    /* Allows text to wrap to the next line */
}

/* Experiments (protocols) styles  */

.protocol-square {
    position: relative; 
    display: block;
    background-color: #b28dd1; 
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 100%; /* Ensures the height equals the width */
    text-align: center;
    border-radius: 15px; 
    text-decoration: none; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.protocol-square span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.protocol-square:hover {
    background-color: #D4CAEA; 
    color: rgba(113, 76, 185, 1); 
}

table {
    border: none;
    border-collapse: collapse
}

td {
    border: solid #000000 0.75pt;
    text-align: center
}
/*IHP page */
.overview-box {
    width: 100%;
    height: auto;
    background-color: #D4CAEA;
    border-radius: 15px; 
    padding:3%;
    margin-bottom: 3%;

}

.contain-img {
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0px;
    box-sizing: border-box;
    /* Includes padding in the width */
    height: auto;
} 

.ihp-image-1 {
    width: 30%;
    height: 30%;
}

.ihp-image-2 {
    width: 30%;
    height: 30%;
}

.counter {
    font-size: 20px;
    font-weight: bold;
    color: #714CB9; 
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
  }


.row {
    display: flex;
  }
  
.column {
    flex: 50%;
    padding: 2%;
  }

.math{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    text-align: center;}

.results-summary {
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        margin-top: 25px;
        margin-bottom: 25px;
      }
    
.results-summary-2 {
        font-size: 25px;
        font-weight: bold;
        text-align: center;
        margin-top: 25px;
        margin-bottom: 25px;
      }


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


.popup-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: black;
  cursor: pointer;
}

/* Show Popup */
.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

  
/* Popup Content */
.popup-content {
    position: relative;
    padding: 0px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 40%; 
  }
  

  @media (max-width: 768px) {
    .popup-content {
      width: 90%; 
    }
  }

.gallery-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    padding: 10px;
    gap: 10px; 
}

.gallery-container > div {
    flex: 1 1 calc(50% - 10px); 
    max-width: calc(50% - 10px); 
    box-sizing: border-box;
    border-radius: 15px; 
}

.image-item {
    width: 100%; 
    height: auto; 
    border-radius: 15px; 

}