@font-face {
  font-family: 'DM Sans';
  src: url("https://static.igem.wiki/teams/5357/font/dmsans.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  padding-top: 56px;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

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

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

.bg-hero {
  background-color: #45b06cff;
}

/*Background*/
/* for home page */
.bg-section-light {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #e4f2ff;
  color: #000000;
  padding: 10%;
  display: flex;
  background-repeat: no-repeat;
  scroll-snap-align: start;
}

.bg-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 8%;
  background-repeat: no-repeat;
  scroll-snap-align: start;
  background: rgb(238, 174, 202);
  background: radial-gradient(circle, rgba(238, 174, 202, 1) 0%, rgba(188, 161, 210, 1) 48%, rgba(84, 146, 219, 1) 100%);
}


@media screen and (max-width: 768px) {

  .bg-section {
    padding: 0%;
  }
}


.bg-section-blend {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 10%;
  display: flex;
  background-repeat: no-repeat;
  background-blend-mode: screen;
  width: 100%;
  height: 100%;
  color: #ffffff;
  scroll-snap-align: start;
}

/* 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 a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: #004AAD;
  text-decoration: underline;
}

footer a.icon-link:hover {
  text-decoration: none;
}


/* COMMMON */
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #F7F9FC;
  z-index: 2;
}

.content-with-sidebar {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar {
  width: 200px;
  padding: 20px;
  position: sticky;
  top: 200px;
  box-sizing: border-box;
  height: fit-content;
  align-self: flex-start;
  border: 3px solid rgba(84, 146, 219, 1);
  background-color: #f9f9fa;
  border-radius: 15px;
}

.sidebar a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: #0C2030;
}

.sidebar a:hover {
  color: rgb(238, 174, 202);
}

.content-for-sidebar {
  margin-left: 20px;
  flex: 1;
}

.content-with-sidebar .col {
  border: 3px solid rgba(84, 146, 219, 1);
  background-color: #f9f9fa;
  border-radius: 15px;
  padding: 20px;
  box-sizing: border-box;
  color: #0C2030;
}

.content-for-sidebar h2::before {
  display: block;
  content: " ";
  visibility: hidden;
}

.content-for-sidebar h3::before {
  display: block;
  content: " ";
  visibility: hidden;
}

.sidebar ul {
  padding-left: 15px;
  margin-top: 5px;
}

.sidebar ul a {
  font-size: 0.9em;
  margin: 5px 0;
}

.sidebar a.active {
  color: rgba(84, 146, 219, 1);
  font-weight: bold;
  border-left: 3px solid rgba(84, 146, 219, 1);
  padding-left: 10px;
}

.gif {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gif img {
  max-width: 50%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.caption {
  font-size: 16px;
  color: #333;
  text-align: center;
  margin-top: 10px;
}

.hidden {
  display: none;
}

.expand-collapse-btn {
  color: blue;
  cursor: pointer;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .bg-section-dark {
    padding-left: 0%;
  }

  .sidebar {
    padding-left: 5px;
  }

  .content-for-sidebar {
    margin-left: 5px;
  }
}


/* Gallery */
.bg-section-blend-gallery {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/gallery-background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-gallery>* {
  position: relative;
  z-index: 2;
}

.col:not(:first-child) {
  margin-top: 10px;
}

.col {
  border: 3px solid rgba(84, 146, 219, 1);
  background-color: #f9f9fa;
  border-radius: 15px;
  padding: 20px;
  box-sizing: border-box;
  color: #0C2030;
  text-align: justify;
}

.gallery .image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gallery .image-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery .image-item {
  min-width: 50%;
  box-sizing: border-box;
  padding: 20px;
}

.gallery .image-item img {
  width: 100%;
  height: auto;
}


/* HOME */
body.home-page {
  padding-top: 0px;
  margin: 0;
  overflow-x: hidden;
}


.bg-dark-blue {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #0C2030;
  padding: 10%;
  display: flex;
  background-repeat: no-repeat;
  scroll-snap-align: start;
}

.social-icon {
  width: 30px;
  height: 30px;
  margin: 0 10px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.sponsor-logo img {
  max-width: 100%;
  height: auto;
}

.sponsor-header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10vh;
}

.footer-link-list a {
  color: #0C2030;
}

@media (max-width: 768px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}

/* Scrolling Effect */
.container-home {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  overflow-x: hidden;
}

.section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-dots {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.dot:hover,
.dot.active {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(2);
}

.home-page .hidden-home {
  opacity: 0;
  transform: var(--initial-transform, translateX(-100%));
  transition: opacity 0s, transform 0s;
}

.slide-in-left {
  opacity: 1;
  --initial-transform: translateX(-50%);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-right {
  opacity: 1;
  --initial-transform: translateX(50%);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: var(--initial-transform);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Project Description */
.bg-section-blend-project-description {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/lab1-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-project-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-project-description>* {
  position: relative;
  z-index: 2;
}



/* EDUCATION */
.bg-section-blend-education {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/education-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
  /* Ensure pseudo-elements do not overflow */
}

.bg-section-blend-education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-education>* {
  position: relative;
  z-index: 2;
}

.content-for-sidebar {
  margin-left: 20px;
  flex: 1;
}


/* HUMAN PRACTICE */
.bg-section-blend-HP {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/hp-bg1.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
  /* Ensure pseudo-elements do not overflow */
}

.bg-section-blend-HP::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-HP>* {
  position: relative;
  z-index: 2;
}

/* text colour */
.bg-body {
  background-color: #02152e;
}

* {
  box-sizing: border-box;
}

.timeline-images img {
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
}

.slideshow-container {
  max-width: 1000px;
  position: relative;
}

.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  text-decoration: none;
}

/* Position the "next button" to the right */
.next {
  right: 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);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 18px;
  padding: 8px 12px;
  position: absolute;
  bottom: 0%;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0px 0px 20px 20px;
}

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

.timeline {
  position: relative;
  padding: 0;
  margin-bottom: 22px;
  list-style: none;
  background: transparent;
}

.timeline:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  content: "";
  background-color: #060738;
}

.timeline::after {
  display: block;
  clear: both;
  content: "";
}

.timeline:not(.timeline-single) .timeline-item:first-child+.timeline-item,
.timeline:not(.timeline-single) .timeline-period+.timeline-item+.timeline-item {
  margin-top: 90px;
}

.timeline-item {
  position: relative;
  display: block;
  float: left;
  width: 50%;
  padding-right: 40px;
  margin-bottom: 60px;
}

.timeline-item:not(.timeline-period)::after {
  display: block;
  clear: both;
  content: "";
}

.timeline-item.timeline-reverse {
  float: right;
  padding-right: 0;
  padding-left: 40px;
  clear: right;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-period {
  position: relative;
  z-index: 6;
  display: block;
  padding: 25px 10px;
  margin: 0px auto 30px;
  clear: both;
  font-size: 26px;
  text-align: center;
  text-transform: uppercase;
  border: 3px solid rgba(84, 146, 219, 1);
  background-color: #f9f9fa;
  color: #0C2030;
}

.timeline-images {
  width: 100%;
  overflow: hidden;
}

.timeline-dot {
  position: absolute;
  right: 0;
  z-index: 11;
  text-align: center;
  cursor: pointer;
  background-color: hsl(166, 94%, 66%);
  border-radius: 50%;
  top: 7.5px;
}

.timeline-reverse .timeline-dot {
  right: auto;
  left: 0;
  margin-right: 0;
}

.timeline .timeline-dot {
  width: 14px;
  height: 14px;
  margin-right: -7px;
  line-height: 14px;
}

.timeline .timeline-reverse .timeline-dot {
  margin-left: -7px;
}

.timeline.timeline-single {
  margin-left: 7px;
}

.timeline.timeline-single .timeline-dot {
  margin-left: -7px;
}

@media (max-width: 767.98px) {
  .timeline {
    margin-left: 7px;
  }

  .timeline .timeline-dot {
    margin-left: -7px;
  }
}

.timeline-text {
  float: right;
  padding: 0 20px;
  margin-bottom: 22px;
  line-height: 28px;
  text-align: justify;
  border: 3px solid rgba(84, 146, 219, 1);
  background-color: #f9f9fa;
  border-radius: 15px;
  color: #0C2030;
}

.timeline-reverse .timeline-text {
  float: left;
}

.timeline-footer {
  position: absolute;
  right: 0;
  bottom: -30px;
  margin-right: 55px;
}

.timeline-footer .icon {
  margin-right: 0.3em;
}

.timeline-reverse .timeline-footer {
  right: auto;
  left: 0;
  margin-right: 0;
  margin-left: 55px;
}

.timeline-reverse+.timeline-reverse {
  margin-top: 0;
}

@media (max-width: 767.98px) {
  .timeline:before {
    left: 0;
  }

  .timeline-item,
  .timeline-item.timeline-reverse {
    float: none;
    width: 100%;
    padding-right: 0;
    padding-left: 40px;
    margin-top: 0;
    margin-bottom: 60px;
  }

  .timeline-dot {
    right: auto;
    left: 0;
    margin-right: 0;
    margin-left: -7px;
  }

  .timeline-text {
    display: inline-block;
    float: none;
  }

  .timeline-footer {
    right: auto;
    bottom: -26px;
    left: 0;
    margin-right: 0;
    margin-left: 40px;
  }
}

.timeline-single:before {
  left: 0;
}

.timeline-single .timeline-item {
  float: none;
  width: 100%;
  padding-right: 0;
  padding-left: 40px;
  margin-bottom: 60px;
}

.timeline-single .timeline-dot {
  right: auto;
  left: 0;
  margin-right: 0;
  margin-left: -7px;
}

.timeline-single .timeline-text {
  float: left;
}

.timeline-single .timeline-footer {
  right: auto;
  bottom: -26px;
  left: 0;
  margin-right: 0;
  margin-left: 40px;
}

.timeline-icon .timeline-dot {
  width: 40px;
  height: 40px;
  margin-right: -20px;
  line-height: 40px;
}

.timeline-icon .timeline-reverse .timeline-dot {
  margin-left: -20px;
}

.timeline-icon.timeline-single {
  margin-left: 20px;
}

.timeline-icon.timeline-single .timeline-dot {
  margin-left: -20px;
}

@media (max-width: 767.98px) {
  .timeline-icon {
    margin-left: 20px;
  }

  .timeline-icon .timeline-dot {
    margin-left: -20px;
  }
}

.timeline-icon .timeline-dot {
  top: -5.5px;
}

.timeline-avatar .timeline-dot {
  width: 40px;
  height: 40px;
  margin-right: -20px;
  line-height: 40px;
}

.timeline-avatar .timeline-reverse .timeline-dot {
  margin-left: -20px;
}

.timeline-avatar.timeline-single {
  margin-left: 20px;
}

.timeline-avatar.timeline-single .timeline-dot {
  margin-left: -20px;
}

@media (max-width: 767.98px) {
  .timeline-avatar {
    margin-left: 20px;
  }

  .timeline-avatar .timeline-dot {
    margin-left: -20px;
  }
}

.timeline-avatar-sm .timeline-dot {
  width: 30px;
  height: 30px;
  margin-right: -15px;
  line-height: 30px;
}

.timeline-avatar-sm .timeline-reverse .timeline-dot {
  margin-left: -15px;
}

.timeline-avatar-sm.timeline-single {
  margin-left: 15px;
}

.timeline-avatar-sm.timeline-single .timeline-dot {
  margin-left: -15px;
}

@media (max-width: 767.98px) {
  .timeline-avatar-sm {
    margin-left: 15px;
  }

  .timeline-avatar-sm .timeline-dot {
    margin-left: -15px;
  }
}

.timeline-avatar-lg .timeline-dot {
  width: 50px;
  height: 50px;
  margin-right: -25px;
  line-height: 50px;
}

.timeline-avatar-lg .timeline-reverse .timeline-dot {
  margin-left: -25px;
}

.timeline-avatar-lg.timeline-single {
  margin-left: 25px;
}

.timeline-avatar-lg.timeline-single .timeline-dot {
  margin-left: -25px;
}

@media (max-width: 767.98px) {
  .timeline-avatar-lg {
    margin-left: 25px;
  }

  .timeline-avatar-lg .timeline-dot {
    margin-left: -25px;
  }
}

.timeline-simple .timeline-dot {
  top: 0;
  margin-top: 10px;
}

.timeline-feed .timeline-dot {
  width: 30px;
  height: 30px;
  margin-right: -15px;
  line-height: 30px;
}

.timeline-feed .timeline-reverse .timeline-dot {
  margin-left: -15px;
}

.timeline-feed.timeline-single {
  margin-left: 15px;
}

.timeline-feed.timeline-single .timeline-dot {
  margin-left: -15px;
}

.pic {
  width: 100%;
}

.polaroid {
  background: black;
  padding: 1rem;
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.2);

}

.polaroid>img {
  max-width: 100%;
  height: auto;
}

.caption {
  font-size: 1.8rem;
  text-align: center;
  line-height: 2em;
}

.pic {
  display: inline-block;
  margin-top: 2rem;
  filter: grayscale(100%);
}

.pic .polaroid:before {
  content: '';
  position: absolute;
  z-index: -1;
  transition: all 0.35s;
}

.pic:nth-of-type(4n+1) {
  transform: scale(0.8, 0.8) rotate(5deg);
  transition: all 0.35s;
}

.pic:nth-of-type(4n+1) .polaroid:before {
  transform: rotate(6deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  right: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.4);
}

.pic:nth-of-type(4n+2) {
  transform: scale(0.8, 0.8) rotate(-5deg);
  transition: all 0.35s;
}

.pic:nth-of-type(4n+2) .polaroid:before {
  transform: rotate(-6deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.4);
}

.pic:nth-of-type(4n+4) {
  transform: scale(0.8, 0.8) rotate(3deg);
  transition: all 0.35s;
}

.pic:nth-of-type(4n+4) .polaroid:before {
  transform: rotate(4deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  right: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.3);
}

.pic:nth-of-type(4n+3) {
  transform: scale(0.8, 0.8) rotate(-3deg);
  transition: all 0.35s;
}

.pic:nth-of-type(4n+3) .polaroid:before {
  transform: rotate(-4deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.3);
}

.pic:hover {
  filter: none;
  transform: scale(1, 1) rotate(0deg) !important;
  transition: all 0.35s;
}

.pic:hover .polaroid:before {
  content: '';
  position: absolute;
  z-index: -1;
  transform: rotate(0deg);
  height: 90%;
  width: 90%;
  bottom: 0%;
  right: 5%;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  transition: all 0.35s;
}


/* NOTEBOOK */
.bg-section-blend-notebook {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/lab6-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-notebook::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-notebook>* {
  position: relative;
  z-index: 2;
}

.iframe-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

iframe {
  border: none;
}


/* TEAM */
.text-box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  background-color: transparent;
}

.round-dark-text-box {
  background-color: #0C2030;
  color: #E8EFF1;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 4px rgba(0, 161, 173, 0.5);
  max-width: 90%;
  width: 400px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.round-dark-text-box:hover {
  transform: scale(1.05);
  background-color: #1A3A55;
  box-shadow: 0 8px 16px rgba(0, 161, 173, 0.8);
  color: #FFFFFF;
  cursor: pointer;
}

/* team page BG setting */
.bg-section-blend-team {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/teammember-background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  color: #E8EFF1;
  overflow: hidden;
}

.bg-section-blend-team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-team>* {
  position: relative;
  z-index: 2;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  background-color: transparent;
  gap: 30px;
  justify-content: center;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}


.team-member {
  background-color: #0C2030;
  text-align: center;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 0 10px 4px rgba(0, 161, 173, 0.5);
  overflow: hidden;
}

.team-member-image-info {
  position: relative;
  width: 370px;
  height: 370px;
  text-align: center;
  overflow: hidden;
}

.team-member-image-info img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-image-info .member-info {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #ddd;
  transition: bottom 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  color: #300c28;
  text-align: justify;
}

.team-member-image-info .member-info-always-show {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #ddd;
  transition: bottom 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  color: #300c28;
  text-align: justify;
}

.team-member-image-info:hover img {
  transform: scale(1.05);
}

.team-member-image-info:hover .member-info {
  bottom: 0;
}

.team-member h4 {
  margin-top: 15px;
  color: #E8EFF1;
}

.team-member h4 a i {
  color: #ebe8f1;
  /* LinkedIn icon color */
}


/* FOOTER */
.bg-footer {
  background: rgb(238, 174, 202);
  background: linear-gradient(0deg, rgba(238, 174, 202, 1) 19%, rgba(84, 146, 219, 1) 99%);
  color: #0C2030;
}

.footer .image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.footer .image-track {
  display: flex;
  transition: transform 0.5s ease;
  align-items: center;
}

.footer .image-item {
  min-width: 25%;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.footer .image-item img {
  width: 250px;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Entrepreneurship */
.bg-section-blend-entrepreneurship {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/entrepreneurship-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-entrepreneurship::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-entrepreneurship>* {
  position: relative;
  z-index: 2;
}

/* Contribution */
.bg-section-blend-contribution {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/contribution-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-contribution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-contribution>* {
  position: relative;
  z-index: 2;
}

/* Expand & Hide Tab */
details>summary {
  list-style-type: none;
  cursor: pointer;
  align-items: center;
}

details>summary::-webkit-details-marker {
  display: none;
}

details>summary::after {
  content: '+ EXPAND';
  font-size: 1.2rem;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  margin-left: 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
  color: rgba(84, 146, 219, 1);
}

details[open]>summary::after {
  content: 'ƎꓷIH -';
  transform: rotate(180deg);
}

details>summary:hover::after {
  color: rgb(238, 174, 202);
}

details>summary {
  margin-bottom: 0.5rem;
}

/* Protocols */
.bg-section-blend-protocol {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/lab7-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-protocol::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-protocol>* {
  position: relative;
  z-index: 2;
}

.custom-btn {
  width: 100%;
  padding: 50px 0;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e4f2ff;
  transition: transform 0.3s ease;
}

.custom-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background 0.3s ease;
}

.custom-btn:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

.custom-btn:hover {
  transform: scale(1.05);
  color: rgb(238, 174, 202);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.custom-btn span {
  position: relative;
  z-index: 2;
}

.row {
  margin-bottom: 20px;
}

/* Attribution */
.bg-section-blend-attribution {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/attribution-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-attribution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-attribution>* {
  position: relative;
  z-index: 2;
}

/* Safety */
.bg-section-blend-safety {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/lab4-bg1.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-safety::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-safety>* {
  position: relative;
  z-index: 2;
}

/* Results */
.bg-section-blend-results {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/results-bg-2.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-results>* {
  position: relative;
  z-index: 2;
}

/* Engineering */
.bg-section-blend-engineering {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/eng-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-engineering::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-engineering>* {
  position: relative;
  z-index: 2;
}

/* poc */
.bg-section-blend-poc {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/poc-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-poc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-poc>* {
  position: relative;
  z-index: 2;
}

/* model */
.bg-section-blend-model {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/model-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-model::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-model>* {
  position: relative;
  z-index: 2;
}

/* parts */
.bg-section-blend-parts {
  position: relative;
  background-image: url('https://static.igem.wiki/teams/5357/bg/parts-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.bg-section-blend-parts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/5357/dark-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  background-blend-mode: overlay;
  z-index: 1;
}

.bg-section-blend-parts>* {
  position: relative;
  z-index: 2;
}
