/* CALLOUT */
p {
  text-align: justify;
}

.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: yellow
}

/* Menu */
.menu {
  text-decoration-color: red;
  margin-top: -1px;
  /* To match top bar of (ios?) mobile devices, otherwise there is a 1px transparent line) */
  height: 56px;
}

.menu_logo_holder {
  width: 80px;
}

.menu_logo_image {
  width: 80px;
}

body {
  background-image: url("https://static.igem.wiki/teams/5796/custom/background4.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: scroll;
}

@media (max-width: 991.98px) {
  .navbar .container,
  .navbar .container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .navbar-nav .nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-collapse {
    background-color: #1c1740;
  }
}
/*Hyperlink colours for protocols*/
a.protocol-link {
  color: #ba51e2;
}

.col-lg-10 a,
.col-lg-10 a:link,
.col-lg-10 a:visited {
  color: #ba51e2;          /* your chosen blue */
}

/*Italics */
i,
em {
  font-style: italic;
}

/* Sidebar container */
.sidebar {
  position: sticky;
  top: 120px;
  /* matches your navbar height */
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Sections for scroll offset */
section {
  scroll-margin-top: 80px;
  /* adjust to match your header height */
}

/* References for scroll offset */
#references ol li {
  scroll-margin-top: 60px;
  /* adjust to match your header height */
}

/* Sidebar list */

/* Remove default list styling */
.sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 8px;
}

/* Box-style links */
.sidebar a {
  display: block;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
}

/* Hover effect */
.sidebar a:hover {
  border-color: #bbb;
  background-color: #6bb0e9;
}

/* Active links */
.sidebar a.active,
.sidebar li>a.active,
.sidebar ul ul a.active {
  border-color: #6bb0e9 !important;
  background-color: #6bb0e9 !important;
  color: white !important;
  font-weight: 600;
}

/* Subsection indentation */
.sidebar ul ul {
  padding-left: 15px;
  margin-top: 5px;
}

.sidebar ul ul a {
  font-size: 0.9em;
  background-color: #f1f3f5;
}

.sidebar ul ul a.active {
  background-color: #6bb0e9 !important;
  border-color: #6bb0e9 !important;
  color: white !important;
}




/* Body */
@media (max-width: 768px) {
  .hyphae-holder {
    display: none;
  }
}

body {
  padding-top: 96px;
}

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

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

.bg-hero {
  background-color: transparent !important;
}

.bg-dark-purple {
  background-color: #1c1740 !important;
}

img {
  width: 100%;
}

/* Alert used for WIP warning (remove later) */
.alert {
  z-index: 9999;
  top: 7rem;
}

/* Header */
h1 {
  font-size: 2.5rem;
  text-align: center;
  color: #1c1740;
}


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

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

.sponsor-container {
  width: 100%;
  /* take up full width of parent */
  overflow: hidden;
  /* crop logos when they leave the box */
  /* background-color: white; */
}

.sponsor-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  width: max-content;
  padding-left: 2rem;
  /* optional, to start logos further from edge */
  padding-right: 4rem;
  /* ensures smooth end transition */
  background-color: white;
  animation: marquee 15s linear infinite;
  will-change: transform;
}

.sponsor-row img {
  height: 150px;
  object-fit: contain;
  width: auto;
  max-width: 220px;
  display: inline-block;
}

.sponsor-container:hover .sponsor-row {
  animation-play-state: paused;
}

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

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

.footnote{
  text-decoration: none;
  color: inherit !important;
}

/* HOME */
.maindiv_home {
  height: 4000px;
  max-width: 1920px;
  z-index: 0;
}

.home_logo {
  text-align: center;
}

.home_logo_image {
  width: 50%;
}

.LATCH-moveable {
  margin-top: 40%;
}

/* Medium screens (tablets/laptops) */
@media (max-width: 1700px) {
  .LATCH-moveable {
    margin-top: 20%;
    /* move it a bit up on medium screens */
  }
}

/* Small screens (phones) */
@media (max-width: 600px) {
  .LATCH-moveable {
    margin-top: 20%;
    /* even less margin on small screens */
  }
}

/* Default state: hide medium set */
.hyphae-medium {
  display: none;
}

.hyphae-other {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  /* behind everything */
}

.hyphae-holder {
  position: absolute;
  /* sits behind content */
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  /* behind everything */
  height: 100vh;
  /* total height for all 3 images */
}

.hyphae-container {
  width: 100%;
  overflow: hidden;
  /* crop horizontally */
}

.hyphae-container img {
  height: auto;
  /* full vertical height visible */
  width: 100%;
  /* maintain aspect ratio */
  display: block;
  object-position: right;
  /* crop left side */
}

/* Show medium set between 601px and 1024px */
@media (min-width: 601px) and (max-width: 1700px) {
  .hyphae-large {
    display: none;
  }

  .hyphae-medium {
    display: block;
  }

  .LATCH-moveable {
    margin-top: 10%;
  }
}

/* Hide all on small screens (600px and below) */
@media (max-width: 700px) {

  .hyphae-large,
  .hyphae-medium {
    display: none;
  }

  .LATCH-moveable {
    margin-top: 10%;
  }
}

@media (min-width: 2000px) {
  .hyphae-large {
    display: none;
  }

  .hyphae-medium {
    display: block;
  }

  .LATCH-moveable {
    margin-top: 10%;
  }
}

.hyphae {
  width: 1920px;
}

#notebook-hyphae {
  position: fixed;
  inset: 0;
  /* shorthand for top:0; left:0; right:0; bottom:0; */
  z-index: -1;
  pointer-events: none;
}

#notebook-hyphae::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://static.igem.wiki/teams/5796/custom/hyphae/hyphae-tiling5.webp");
  background-repeat: repeat-y;
  /* repeat vertically */
  background-size: 100% auto;
  /* fill width, keep aspect ratio */
  background-position: top left;
}



.petri-dish-infographic {
  width: 420px;
}

.human-image {
  width: 600px;
}

.empty-space-1 {
  height: 100px;
}

.introducing-latch {
  color: orange;
  font-size: 120px;
  text-align: center;
}

.bleb-wrapper {
  display: flex;
  justify-content: center;
  /* horizontal center */
  margin-top: -10%;
  margin-bottom: 5%;
}

.bleb-animation {
  display: block;
  /* allows horizontal centering */
  margin-left: auto;
  margin-right: auto;
  /* center horizontally */

  width: 70%;
  /* responsive width relative to container */
  max-width: 400px;
  /* cap width on large screens */
  height: auto;
  /* maintain aspect ratio */

  margin-top: -10%;
  /* similar spacing as your original layout */
  margin-bottom: 5%;

  /* similar spacing as your original layout */
  /* fine-tune spacing for larger screens */
  @media (min-width: 768px) {
    margin-top: -5%;
    /* optional negative margin only on desktop */
  }
}


/*Results*/
.image-row {
  display: flex;
  flex-wrap: wrap;         /* wrap on smaller screens */
  gap: 5px;               /* space between images */
  justify-content: center; /* center images horizontally */
  margin-bottom: 20px;
}

.image-row figure {
  flex: 1 1 300px;         /* grow/shrink, min width 300px */
  max-width: 45%;           /* max width for two per row */
  text-align: center;
}

.image-row img {
  width: 100%;
  height: auto;
  border-radius: 8px;       /* optional rounded corners */
}



/* section for style, contain for allignment */

/* Section 2 contains box-1 and box-2 */
/*
.section-2 {
  background-color: white;
  display: flex;
  flex-direction: column; 
  align-items: top;     
  gap: 20px;               
  padding: 20px;
  object-fit: cover;
}


.box-1 img {
  max-width: 100%;
  height: auto;
  display: block;
  transform: scale(0.8);

}

.box-2 {
  text-align: center;
}
*/

.section-2 {
  background-color: gray;
}

/* Section 3 contains box-3 and box-4 */
.section-3 {
  background-color: lightgray;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.box-1 {
  transform: scale(0.6);
}

.box-3 {
  transform: scale(0.6);
}

.box-4 {
  transform: scale(0.6);
}





.bleb img {
  display: block;
  transform: scale(0.7);
}

.contain-5 {
  display: flex;
  align-items: center;
  /* Aligns vertically */
  justify-content: center;
  /* Optional: centers horizontally */
  gap: 20px;
  /* Space between text and image */

}



/* TEAM PAGE */
.hover-box {
  transition: background-color 0.3s ease;
  background-color: white;
  /* default background */
  padding: 1rem;
  border-radius: 10px;
}

.hover-box:hover {
  background-color: #00a1d5;
  /* light blue, or pick your theme color */
  cursor: pointer;
}

.hover-text {
  color: white;
}

.hover-box:hover .hover-text {
  color: black;
  cursor: pointer;
}

.team-section .row {
  display: flex;
  align-items: stretch;
  min-height: 500px;
  background-color: white;
}

.team-section .col-md-4 {
  display: flex;
}

.team-section .col-md-4 img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Adjust the size of the team member images */
.team-section img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

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

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

.position-relative {
  position: relative;
}

/* Notebook styles  */
.accordion-button {
  background-color: #1f66bd;
  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 #3524b7;
  background-color: #264ebb;
  color: rgb(40, 127, 208);
}


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

.container .team-fade {
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.container_supervisors .team-fade {
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
  mask-image: linear-gradient(to right, black 70%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

/* ATTRIBUTION PAGE */
.attributions {
  background-color: white;
  /* light pink */
  border: 20px solid  #f6a561;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  color: #333;
}

.gold-box {
  border: 5px solid  #f6a561;
  padding: 20px;
  border-radius: 10px;
  background-color: white;
  /* Optional */
  height: 100%;
}


.name {
  font-weight: bold;
}

/* Experiments */
#protocol-paper {
  display: block;
  position: relative;
  top: -10rem;
  visibility: hidden;
}

.protocol-button {
  background-color: white;
  transition: background-color 0.2s;
}

.protocol-button:hover {
  background-color: lightgray;
  transition: background-color 0.2s;
}

.tempholder {
  height: auto;
  background-color: lightblue;
}

#protocol-card {
  min-height: 20rem;
}

th,
td {
  padding-right: 2rem;
}

/* Model page */
.filter-item {
  display: none;
}

/* Container for docking hover images */
.dock-hover-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 500px; /* adjust freely */
}

/* Base image styling */
.dock-hover-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: opacity 0.4s ease;
}

/* Hidden analysis image by default */
.dock-hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Fade effect on hover */
.dock-hover-container:hover .dock-hover-image {
  opacity: 1;
}

.dock-hover-container:hover .dock-main-image {
  opacity: 0;
}

/*Project description page */
.microscope-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  /* spacing between images */
}

.display-image {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* vertical centering */
  justify-content: center;

}

.Bead-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* vertical centering */
  justify-content: center;
}



figure {
  text-align: left;
  /* center captions under images */
  margin: 0;
  /* remove default margins */
}

figure img {
  max-width: 300px;
  /* limit image size */
  border: 3px solid #1c1740;
  border-radius: 10px;
  padding: 5px;
  background: #fff;
  display: block;
  /* remove inline gaps */
  margin: 0 auto;
  /* keep centered */
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #1c1740;
}

/* Change default dark button color to our purple */
.btn-dark {
  background-color: #1c1740;
  /* your custom purple, example */
  border-color: #1c1740;
}

.btn-dark:hover,
.btn-dark.active,
.btn-dark:focus {
  background-color: #3e348b;
  /* a slightly brighter shade for hover */
  border-color: #3e348b;
}

/* Hide the images by default */
.chiSlides,
.spspSlides {
  display: none;
}

.instaSlides {
  display: none;
  /* default hidden */
  text-align: center;
  /* centers inline-block children */
}

.instaSlides img {
  max-height: 300px;
  /* limits height */
  width: auto;
  /* preserves aspect ratio */
  display: inline-block;
  /* allows centering inside text-align: center */
  margin: 0 auto;
  /* horizontal centering */
  border-radius: 8px;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: black;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Position the "next button" to the right */
.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: black;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  width: 16.66%;
}

/* Add a transparency effect for thumnbail images */
.demo-chi,
.demo-insta,
.demo-sp {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

/* PDF embed*/
.pdf-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

/* Container for PDF */
.pdf-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.pdf-container {
  width: 70%;              /* 70% of container width */
  height: 500px;           /* fixed height to show roughly one page */
  overflow: hidden;
  border: 2px solid #6bb0e9;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Adjust for smaller screens */
@media (max-width: 992px) {
  .pdf-container {
    width: 90%;
    height: 400px;
  }
}

@media (max-width: 576px) {
  .pdf-container {
    width: 100%;
    height: 300px;
  }
}