/*variables*/
:root {
  --darkblue: #006989;
  --mainpurple: #380036;
  --secondarypurple: #7a3b59;
  --lightpurple: #dadff7;
  --powderblue: #a0c1d1;
  --shadow: 0.2rem 0.5rem 0.5rem rgba(0, 0, 0, 0.15);
}

a {
  position: relative;
  z-index: 7;
  color: var(--mainpurple);
}

ul {
  list-style-image: url("https://static.igem.wiki/teams/5403/logo-icon-tiny2.png");
}

.citation a {
  text-decoration: none;
}

.citation.hidden {
  display: none;
}

::selection {
  background-color: var(--secondarypurple);
  color: white;
}

.dropdown-item {
  /* display: flex; */
}

.dropdown-item i {
  width: 1rem;
  margin-right: 0.5rem;
}

.dropdown-item.active,
.dropdown-item:active {
  color: black !important;
}

.half-width {
  width: 50%;
}

section {
  display: block;
  position: relative;
  top: 2.5rem;
}
/* definition classes*/

.col-20procent {
  flex: 0 0 auto;
  width: 20%;
}
.border-sm {
  border: 2px solid var(--mainpurple);
}
.border-lg {
  border-top: 5px solid var(--mainpurple);
  border-bottom: 5px solid var(--mainpurple);
}
.backtotop {
  opacity: 0;
  transition: opacity 0.3s;
  position: fixed;
  width: 3rem;
  height: 3rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  border-radius: 100%;
  background-color: var(--mainpurple);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.w-0 {
  width: 0 !important;
  padding: 0;
}

.backtotop.visible {
  opacity: 1;
}

.navbar-collapse {
  justify-content: center;
}

.bg-footer {
  background-color: var(--mainpurple);
  color: var(--lightpurple);
}

.navbar {
  box-shadow: var(--shadow);
  background-color: var(--mainpurple);
  color: var(--lightpurple);

  a.at {
    font-weight: bold;
  }
}

.navbar.scrolled:hover {
  img {
    transition: all 0.3s;
    height: 2.5rem !important;
  }
}

.navbar-brand {
  margin: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    transition: all 0.3s;
    height: 4rem;
    width: auto;
  }
}

.sponsor {
  margin: 1rem;
  width: 30vw;
  padding: 1rem !important;

  div:has(> img) {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35vh;
  }

  img {
    aspect-ratio: original;
  }
}

.navbar.scrolled {
  img {
    height: 1.5rem;
  }

  .nav-item a {
  }
}

.nav-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

#openNav.opened {
  display: none;
}

#openNav,
#mySidenav {
  box-shadow: var(--shadow);
  border-width: 0;
  z-index: 100000;
}

.content {
  display: none;
}

.content.show {
  display: block;
  animation: fadein-bottom 0.5s;
}

@keyframes fadein-bottom {
  from {
    /* transform: translateY(100%); */
    opacity: 0;
  }
  to {
    /* transform: translateY(0); */
    opacity: 1;
  }
}

.bg-mainpurple {
  background-color: var(--mainpurple);
}

.bg-secondarypurple {
  background-color: var(--secondarypurple);
}

.bg-lightpurple {
  background-color: var(--lightpurple);
}

.text-color-lightpurple {
  color: var(--lightpurple);
}
.picture-rounded {
  border-radius: 50%;
}
.rounded-4 {
  border-radius: 1rem;
}
.py-long {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.text-deadcenter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.simon a {
  color: var(--lightpurple) !important;
}

.h-20 {
  height: 20% !important;
}
.h-95 {
  height: 95% !important;
}
.pdfheight {
  height: 40rem !important;
}

.w-5 {
  width: 5% !important;
}
.w-10 {
  width: 10% !important;
}
.w-30 {
  width: 30% !important;
}
.w-40 {
  width: 40% !important;
}
.w-45 {
  width: 45% !important;
}
.w-59 {
  width: 59% !important;
}
.w-60 {
  width: 60% !important;
}
.w-70 {
  width: 70% !important;
}

.w-80 {
  width: 80% !important;
}
.w-85 {
  width: 85% !important;
}
.w-90 {
  width: 90% !important;
}
.w-95 {
  width: 95% !important;
}

.mt-20 {
  margin-top: 20% !important;
}
.mt-40 {
  margin-top: 40% !important;
}
.mt-50 {
  margin-top: 50% !important;
}
.mt-60 {
  margin-top: 60% !important;
}

.mt-80 {
  margin-top: 80% !important;
}

.mt-95 {
  margin-top: 95% !important;
}
.zindexhigh {
  z-index: 1000;
}
.zindexlow {
  z-index: 1;
}
.text-center {
  text-align: center;
}

.textcolorblue {
  color: var(--darkblue);
}

.text-black {
  color: black;
}
.picture-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  figcaption {
    text-align: center;
  }
}

.centercontainer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.rotate90degrees {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  transform: rotate(90deg);
}

.alignitemsstretch {
  align-items: stretch;
}

.border-out-left-up {
  width: 100%;
  height: 100%;
  position: absolute;
  border: 0.15rem solid var(--darkblue);
  top: -0.4rem;
  left: -0.4rem;
  z-index: 5;
  border-radius: 0.25rem;
}

.border-out-right-up {
  width: 100%;
  height: 100%;
  position: absolute;
  border: 0.15rem solid var(--darkblue);
  top: -0.4rem;
  right: -0.4rem;
  z-index: 5;
  border-radius: 0.25rem;
}
.border-out-left-down {
  width: 100%;
  height: 100%;
  position: absolute;
  border: 0.15rem solid var(--darkblue);
  bottom: -0.4rem;
  left: -0.4rem;
  z-index: 5;
  border-radius: 0.25rem;
}
.border-out-right-down {
  width: 100%;
  height: 100%;
  position: absolute;
  border: 0.15rem solid var(--darkblue);
  bottom: -0.4rem;
  right: -0.4rem;
  z-index: 5;
  border-radius: 0.25rem;
}

.border-out-right-down ~ *,
.border-out-left-down ~ *,
.border-out-right-up ~ *,
.border-out-left-up ~ * {
  /* Allows selection of text in content */
  z-index: 6;
}

.gr-sq-container {
  position: relative;
  background-color: var(--lightpurple);
  color: black;
  box-shadow: var(--shadow);
  z-index: 1;
  padding: 1.5rem !important;
}
.gr-sq-container-picture {
  height: auto;
  width: 100%;
  padding: 0.2rem;
}

.btn-main {
  background-color: var(--secondarypurple);
  color: var(--lightpurple);
  border: 0.25rem solid var(--secondarypurple);
  border-radius: 0.35rem;
  transition: all 0.3s;
}
.btn-main:hover,
.btn-main:focus,
.btn-main.active {
  background-color: var(--mainpurple);
  color: #fff;
  border: 0.25rem solid var(--mainpurple);
  box-shadow: var(--shadow);
  transform: translateY(-0.25em);
  transition:
    border 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.btn-main:active {
  background-color: var(--mainpurple);
  color: #fff;
  border: 0.25rem solid var(--mainpurple);
}

.icon::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* custom scrollbar */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  background-color: #f5f5f5;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: #f5f5f5;
  border-radius: 15px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
  background-color: var(--secondarypurple);
}

/* fonts */
/* saira semi-condensed light */
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 300;
  src:
    url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-light.woff2")
      format("woff2"),
    /* Super Modern Browsers */
      url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-light.woff")
      format("woff"),
    /* Modern Browsers */
      /*url('...') format('truetype'), /* Safari, Android, iOS */
      url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-light.svg")
      format("svg"); /* Legacy iOS */
}

/* saira semi-condensed semi-bold */
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 600;
  src:
    url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-semibold.woff2")
      format("woff2"),
    /* Super Modern Browsers */
      url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-semibold.woff")
      format("woff"),
    /* Modern Browsers */
      /* url('...') format('truetype'), /* Safari, Android, iOS */
      url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-semibold.svg")
      format("svg"); /* Legacy iOS */
}

/* saira semi-condensed bold */
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 700;
  src:
    url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-bold.woff2")
      format("woff2"),
    /* Super Modern Browsers */
      url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-bold.woff")
      format("woff"),
    /* Modern Browsers */
      /*url('...') format('truetype'), /* Safari, Android, iOS */
      url("https://static.igem.wiki/teams/5403/wiki/fonts/sairasemicondensed-bold.svg")
      format("svg"); /* Legacy iOS */
}

a {
  color: var(--darkblue);
}

strong {
  font-family: "Saira";
  font-style: normal;
  font-weight: 700;
  color: var(--darkblue);
}
b {
  font-family: "Saira";
  font-style: normal;
  font-weight: 700;
}
body {
  padding-top: 56px;
  font-family: "Saira";
  font-style: normal;
  font-weight: 300;
  background-image: url("https://static.igem.wiki/teams/5403/wiki-background2-min-min-min.svg");
  background-repeat: repeat-y;
  background-size: contain;
  height: 100%;
  color: black;
  overflow-x: hidden;
}

.left-aligned {
  margin-left: 6rem;
}

.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: 0.25rem;
  border-radius: 0.25rem;
}
.bd-callout h4 {
  margin-bottom: 0.25rem;
}
.bd-callout p:last-child {
  margin-bottom: 0;
}
.bd-callout code {
  border-radius: 0.25rem;
}
.bd-callout + .bd-callout {
  margin-top: -0.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: white;
  text-decoration: underline;
}

/* TEAM PAGE */
.carousel {
  box-shadow: var(--shadow);
}

.carousel,
.item,
.active {
  height: 100%;
}
.carousel-inner {
  height: 100%;
}
.carousel-caption-container-teams {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 5;
}

.carousel-caption-teams {
  color: #fff;
}
.carousel-caption p {
  color: white;
  background-color: RGBA(56, 0, 54, 0.65);
  padding: 0.5rem;
  border-radius: 10px;
}

.carousel-caption-teams h1 {
  font-size: 5rem;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.carousel-item img {
  width: 100%;
  height: 95vh;
  object-fit: cover;
}

.flip-cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
/* The flip card container */
.flip-card {
  background-color: transparent;
  width: 19.92rem;
  height: 30rem;
  border: 2px solid var(--powderblue);
  border-radius: 0.2rem;
  perspective: 1000px;
  padding: 0.2rem;
  box-shadow: var(--shadow);
  margin: 2rem;
  margin-top: 0;
}

.flip-card:not(.not):hover {
  border: 2px solid var(--darkblue);
  transform: scale(1.01);
  transition:
    border 0.15s ease,
    transform 0.15s ease;
  cursor: pointer;
}
/* position the front and back side */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* flip when the flip-card has the flip-card-clicked class */
.flip-card.flip-card-clicked .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-2.flip-card-2-clicked .flip-card-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
  background-color: #bbb;
  color: black;
}

/* Style the back side */
.flip-card-back {
  background-color: var(--lightpurple);
  color: black;
  padding: 3.5rem 0.8rem;
  transform: rotateY(180deg);
}

.patent {
  position: relative;
  cursor: pointer;
  height: 25vh;

  .front {
    z-index: 2;
    animation: flipandshow 1s;
  }

  .back {
    z-index: 1;
    visibility: hidden;
    animation: flipandhide 1s;
  }

  .front,
  .back {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;

    img {
      width: auto;
      height: 100%;
    }
  }

  &:hover {
    .front {
      animation: flipandhide 1s;
      transform: rotateY(180deg);
      visibility: hidden;
    }

    .back {
      animation: flipandshow 1s;
      transform: rotateY(0deg);
      visibility: visible;
    }
  }
}

@keyframes flipandhide {
  0% {
    transform: rotateY(0deg);
    visibility: visible;
  }
  50% {
    visibility: hidden;
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(180deg);
    visibility: hidden;
  }
}
@keyframes flipandshow {
  0% {
    display: hidden;
    transform: rotateY(180deg);
  }
  50% {
    display: visible;
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0deg);
    display: visible;
  }
}

/* flip card container hp page */
.flip-card-2 {
  background-color: transparent;
  width: 30rem;
  height: 38rem;
  border: 2px solid var(--powderblue);
  border-radius: 0.2rem;
  perspective: 1000px;
  padding: 0.2rem;
  transition: height 0.5s ease;
  margin: 2rem;
  margin-top: 0;
  box-shadow: var(--shadow);
  position: relative;
  &:not(.not) {
    cursor: pointer;
  }

  &.not .flip-card-2-front {
    background-color: #f3e5f5;
  }
}

.flip-card-2 .circle {
  position: absolute;
  transform: translateY(-3.5rem);
  right: 1rem;
}

.flip-card-2.flip-card-2-clicked {
  /* height: auto; */
}
.flip-card-2:not(.not):hover {
  border: 2px solid var(--darkblue);
  transform: scale(1.01);
  transition:
    border 0.15s ease,
    transform 0.15s ease;
}
/* position the front and back side */
.flip-card-2-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition:
    transform 0.8s,
    height 0.5s ease;
  transform-style: preserve-3d;
}

/* flip when the flip-card has the flip-card-clicked class */
.flip-card-2.flip-card-2-clicked .flip-card-2-inner {
  transform: rotateY(180deg);
  /* height: auto; */
}

/* Position the front and back side */
.flip-card-2-front,
.flip-card-2-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-2-front p,
.flip-card-2-back p,
.flip-card-2-front h5 {
  padding: 0.5rem;
}

/* Style the front side (fallback if image is missing) */
.flip-card-2-front {
  background-color: white;
  color: black;
  height: 100%;
}

/* Style the back side */
.flip-card-2-back {
  background-color: white;
  color: black;
  padding: 1.5rem 0.5rem;
  transform: rotateY(180deg);
  transform: height 0.3s ease;
  /* height: auto; */
}
.flip-card-2.flip-card-2-clicked .flip-card-2-back {
  position: relative;
  /* height: auto; */
  min-height: 30rem;
}
.pi-container {
  padding: 1rem;
  text-align: center;
  background-color: #e9e9e9;
  border: 1px solid var(--darkblue);
  border-radius: 0.2rem;
  height: 100%;
  box-shadow: var(--shadow);
}

.pi-container h3 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

.pi-parent {
  margin-top: 5rem;
}

.picture-out-of-div {
  background: #666;
  margin-top: -50%;
  box-shadow: var(--shadow);
  border: 1px solid var(--darkblue);
}

.pi-container-border {
  background-color: transparent;
  width: 28%;
  border: 2px solid var(--lightpurple);
  border-radius: 0.2rem;
  perspective: 1000px;
  padding: 0.2rem;
  margin: 1rem;
}

.collapsible {
  background-color: var(--secondarypurple);
  color: var(--lightpurple);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: 2px solid var(--secondarypurple);
  border-radius: 5px;
  text-align: left;
  outline: none;
  transition: color s;
  display: block;
  box-sizing: border-box;
}
/* .extended,
.collapsible:hover {
  color: white;
} */

.collapsible::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f078";
  float: right;
  transition: all 0.3s;
}
.collapsible.extended::before {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  transform: rotate(180deg);
}

.contentcollapsible {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  background-color: var(--lightpurple);
  transition: max-height 0.3s ease-out;
  box-sizing: border-box;

  &.show {
    max-height: 3000px;
  }
}

@keyframes pulse {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.1;
  }
  100% {
    scale: 1;
  }
}

.pulsepapa:hover {
  .pulse {
    transform-origin: left;
    animation: pulse 2s infinite;
  }
}

.tabindicator {
  position: fixed;
  top: 50%;
  left: -100%;
  background-color: var(--secondarypurple);
  color: white;
  padding: 1rem;
  border-radius: 0 0 25px 25px;
  z-index: 10000;
  box-shadow: var(--shadow);
  transform-origin: 0 0;
  transform: rotate(-90deg);
  transition: 1s;

  &.show {
    left: 0;
  }
}

/*CONTRIBUTION PAGE */

.collab-slides-left {
  height: 35rem;
  margin-left: -2%;
}
.collab-slides-right {
  height: 35rem;
  margin-right: -2%;
  margin-left: auto;
  text-align: right;
}
.collabpicture-out-of-div-right {
  position: absolute;
  z-index: 11;
  height: 15rem;
  border: 4px solid var(--darkblue);
  height: 25rem;
  width: auto;
  padding: 0;
  right: 0;
  transform: translate(50%, calc(50% - 9rem));
}

.collabpicture-out-of-div-left {
  position: absolute;
  z-index: 11;
  height: 15rem;
  border: 4px solid var(--darkblue);
  height: 25rem;
  width: auto;
  padding: 0;
  left: 0;
  transform: translate(-50%, calc(50% - 9rem));
}

.collab-slides-right .col-9,
.collab-slides-left .col-9 {
  padding: 2rem !important;
}

/* project description page*/

.fixed-button {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1;
  background-color: var(--mainpurple);
  color: var(--lightpurple);
  border-top: 3px solid white;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  border-radius: 0 25px 25px 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 1.5rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: all 0.6s;
}

.sidenav {
  height: auto;
  position: fixed;
  z-index: 100;
  top: 50%;
  left: -100%;
  transform: translateY(-50%);
  background-color: var(--mainpurple);
  border-radius: 0 25px 25px 0;
  overflow-x: hidden;
  transition: 1s;
  padding: 0.5rem 0;
  color: var(--lightpurple);
  opacity: 0.6;
}

.sidenav:hover {
  opacity: 1;
}
.sidenav a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--lightpurple);
  display: block;
  transition: 0.5s;
}

.fixed-button:hover {
  color: #fff;
}
.fixed-button:focus {
  opacity: 0;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #fff;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 1rem;
  font-size: 36px;
  margin-left: 50px;
  z-index: 8;
}

.sidenav.open {
  left: 0;
}

/* Entrepreneurship */

#section1,
#section20 {
  position: relative;

  .scroll {
    position: absolute;
    left: 45%;
    top: 60%;
  }
}

/* Container and full-page sections */
.scroll-container {
  height: 100vh;
  overflow: hidden;
}
#main {
  height: 2000vh; /* Enough height for scrolling */
  overflow: hidden; /* Hide the scrollbar for the container */
  position: relative;
  transform: translateY(0); /* Start at the top */
  transition: transform 0.5s ease; /* Smooth scrolling */
  overflow: hidden;
}

.section {
  height: 100vh; /* Full height of the viewport */
  width: 100%;
  font-size: 30px;
  color: white;
  scroll-snap-align: start; /* Snap alignment */
  background-color: var(--lightpurple);
}

.dots {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 99;
}

.dots li {
  margin: 5px 0;
}

.dots li a {
  display: block;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition:
    background 0.3s,
    transform 0.3s;
}

.dots li a.active {
  background: white;
  transform: scale(1.2);
}

/* Modeling */
figure:has(> #patient-x) {
  margin-left: auto;
  max-width: 25vw;
  width: 75%;
}

.pipeline {
  position: relative;
  z-index: 1;
  margin-bottom: 17vw;
  margin-top: 10vw;
}

.quote {
  font-size: 1.5rem;
  text-align: center;

  &::before {
    content: "\201C";
  }

  &::after {
    content: "\201D";
  }
}

.pipeline-step {
  width: 100%;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: start;
  --pipe-width: 25%;
  --description-width: 75%;
  --height: 30vw;
  --extended-height: calc(3 * var(--height));

  &.small {
    --height: 15vw;
  }
}

.pipeline-step .pipe {
  will-change: height;
  width: var(--pipe-width);
  height: var(--height);
  display: block;
  transition: 1s ease-in-out;
  position: relative;
  z-index: 1;
}

.pipeline-step .description {
  width: var(--description-width);
  padding: 1rem;
  padding-left: 2.5vw;
  border-top: 2px solid var(--darkblue);
  text-align: left;
  max-height: calc(var(--height) - 2rem);
}

.pipeline-step .description h3 {
  text-transform: uppercase;
}

.pipeline-step .description .text {
  height: 0;
  will-change: height;
  transition: 1s ease-in-out;
  overflow: hidden;
  overflow-y: scroll;
  padding-right: 1rem;
}
.pipeline-step .description .text::-webkit-scrollbar {
  /* display: none; */
}

.calltoopen {
  text-align: center;
  font-size: 1.5rem;
  color: var(--secondarypurple);
  transition: 1s;
}

/* Hide the call to open text when the step is extended */
.pipeline-step.extended .calltoopen {
  transform: rotate(180deg);
}

.pipeline-step.extended .pipe {
  opacity: 0.5;
  /* TODO fix laggy animation by using scale */
  height: var(--extended-height);
}

.pipeline-step.extended .description {
  max-height: var(--extended-height);
}

.pipeline-step.extended .description .text {
  /* TODO fix laggy animation by using scale */
  height: calc(var(--extended-height) - var(--height));
}

.pipeline-step.extended .pipeline-content {
  visibility: visible;
}

@media screen and (max-width: 768px) {
  .pipeline-step {
    --height: 50vw;
    --pipe-width: 15%;
    --description-width: 85%;
  }

  #openNav {
    display: none;
  }
}

.pipeline-content {
  visibility: hidden;
  --content-width: 10vw;
  position: absolute;
  left: calc(var(--pipe-width) / 2 - var(--content-width) / 2);
  z-index: -1;
}

.pipeline-content figure {
  width: var(--content-width);
}

* [data-aos="exit-patient"] {
  position: relative;
}

img:has(~ [data-aos="exit-patient"]) {
  position: relative;
  z-index: 3;
}

[data-aos="exit-patient"] {
  width: 7.5vw;
  z-index: 2;
  position: absolute;
  left: 25%;
  top: -50%;
  transition: transform 2s;

  &.aos-animate {
    transform: translate(0, 0) rotate(0) !important;
  }
}

[data-aos="enter-pipeline"] {
  width: 5vw;
  top: calc(-1 * var(--height) / 2);
  visibility: visible;
  transition: top 2s;

  #dna {
    transition: scale 1s;
    scale: 0;
  }

  #dna:has(~ [data-aos="exit-patient"].aos-animate) {
    scale: 1;
  }

  & figcaption {
    transition: visibility 0s;
    visibility: hidden !important;
    display: none !important;
  }

  &.aos-animate {
    top: 5vw;

    & [data-aos="exit-patient"] {
      transition: opacity 0.5s;
      opacity: 0;
    }

    & figcaption {
      transition: visibility 0.5s;
      visibility: visible !important;
      display: block !important;
    }
  }
}

[data-aos="exit-pipeline"] {
  transition-property: top;
  top: 5vw;

  .extended & figcaption {
    transition: visibility 0.5;
    visibility: visible !important;
  }

  &.aos-animate {
    top: var(--height);
    visibility: visible;

    & figcaption {
      transition: visibility 0s;
      visibility: hidden !important;
    }
  }
}

.pipeline-step.extended [data-aos="exit-pipeline"] {
  &.pipeline-content.aos-animate {
    top: var(--extended-height);
  }
}

[data-aos="entertools"] {
  top: 0;
  left: 0;
  position: absolute;
  transition:
    top 2s,
    left,
    2s,
    scale 1s;

  & + figcaption {
    margin-top: var(--content-width);
  }

  &.aos-animate {
    top: 75vh;
    left: 25vw;
    z-index: -1;
    scale: 5;
  }
}

/* Any parent of a tooltip */
*:has(> .tool-tip) {
  position: relative;
}

.tool-tip {
  position: absolute; /* Relative to parent with relative position */
  --tt-width: 10rem;
  --tt-height: calc(1.25rem * 2 + 10px * 3);
  width: var(--tt-width);
  height: var(--tt-height);
  background-color: #212121;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tool-tip.hidden {
  display: none;
}

.tool-tip.left,
.tool-tip.right {
  top: calc(50% - var(--tt-height) / 2);
}

.tool-tip.left {
  right: calc(100% + 1rem);
}

.tool-tip.right {
  left: calc(100% + 1rem);
}

.tool-tip.bottom,
.tool-tip.top {
  left: calc(50% - var(--tt-width) / 2);
}

.tool-tip.bottom {
  top: calc(100% + 1rem);
}

.tool-tip.top {
  bottom: calc(100% + 1rem);
}

.tool-tip::after {
  /* Arrow https://www.w3schools.com/css/css_tooltip.asp */
  content: " ";
  position: absolute;
  border-style: solid !important;
  border-width: 5px !important;
}
.tool-tip.left::after {
  top: 50%;
  left: 100%; /* To the right of the tooltip */
  margin-top: -5px;
  border-color: transparent transparent transparent black;
}
.tool-tip.right::after {
  top: 50%;
  right: 100%; /* To the left of the tooltip */
  margin-top: -5px;
  border-color: transparent #212121 transparent transparent;
}
.tool-tip.bottom::after {
  bottom: 100%; /* At the top of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-color: transparent transparent #212121 transparent;
}
.tool-tip.top::after {
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-color: #212121 transparent transparent transparent;
}

.calltoaction {
  background-color: var(--mainpurple);
  padding: 1rem;
  border-radius: 0.25rem;
  text-align: center;
  display: inline-block;
  border-radius: 5px;
  text-transform: uppercase;
}

.calltoaction a,
.calltoaction a:visited {
  color: var(--lightpurple);
  text-decoration: none;
  transition: all 0.3s;
}
.calltoaction i {
  margin-right: 0.5rem;
  color: var(--lightpurple);
}

.calltoaction a:hover,
.calltoaction a:focus {
  color: var(--lightpurple);
}

.key-term {
  color: var(--darkblue);
  font-weight: bold;
}

.collapsible,
.contentcollapsible {
  box-shadow: var(--shadow);
}

.faq .collapsible {
  background: none;
  color: black;
  box-shadow: none;
}

.faq .contentcollapsible {
  background: none;
  box-shadow: none;
}

.intro {
  position: relative;
}

.custom-carousel {
  /* max-width: 60%; */
  height: 400px;
  margin: 0 auto;
}

.custom-carousel-img {
  max-height: 100%;
  width: auto;
  object-fit: cover;
}

.custom-carousel-caption {
  position: absolute;
  right: 15%;
  top: 0rem;
  left: 15%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: black;
  text-align: center;
}

@media (max-width: 768px) {
  .custom-carousel {
    height: 300px;
  }
}

.ref {
  a {
    text-decoration: none !important;
  }
}

figure {
  figcaption {
    text-align: center;
  }

  img {
    width: 100%;
    height: auto;
  }
}

.pipeline-step figcaption {
  display: none;
}

.pipeline-step.extended figcaption {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: var(--shadow);
  caption-side: top;
}

table caption {
  color: black;
}

table th {
  background-color: var(--mainpurple) !important;
  color: white;
  font-weight: normal;
}

table th,
table td {
  padding: 0.5rem;
  border: 1px solid var(--mainpurple);
}

/* Make each second row colored */
table tr:nth-child(even) {
  background-color: #f3e5f5;
}

table tr:nth-child(odd) {
  background-color: #e1bee7;
}

pre {
  display: inline;
  margin: 0;
  font-size: 1rem;
}

/* .easteregg {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  color: white;
  display: none;
  opacity: 0;
  transition: all 0.5s;

  &.show {
    display: block;
    opacity: 1;
  }
} */

#memeee {
  cursor: pointer;
}

.eastereggmeme {
  display: none;
  position: fixed;
  transform: translate(-50%, -50%);
  z-index: 19999;
  box-shadow: var(--shadow);
  width: 34vw;
  height: auto;

  &.show {
    display: block;
    animation: show-briefly 5s;
  }
}

@keyframes show-briefly {
  0% {
    rotate: -30deg;
    left: -100%;
    top: 100%;
    opacity: 0;
  }

  50% {
    rotate: 0deg;
    left: 50%;
    top: 50%;
    opacity: 1;
  }

  75% {
    rotate: 0deg;
    left: 50%;
    top: 50%;
    opacity: 1;
  }

  100% {
    rotate: 20deg;
    left: 100%;
    top: 100%;
    opacity: 0;
  }
}

/* TIMELINE */

/* below copyright claim applies ONLY to all code associated with the timeline (HTML and CSS). These are clearly noted, starting with commented TIMELINE and ending with commented ENDING TIMELINE. */

/* Copyright (c) 2017 by Brady Wright (http://codepen.io/phasethree/pen/NNOvrW)


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

/*-- GENERAL STYLES
------------------------------*/
.timeline {
  line-height: 1.4em;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.timeline h1,
.timeline h2,
.timeline h3,
.timeline h4,
.timeline h5,
.timeline h6 {
  line-height: inherit;
}

/*----- TIMELINE ITEM -----*/

.timeline-item {
  padding-left: 40px;
  position: relative;
}

.timeline-item.hide {
  display: none !important;
}

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

/*----- TIMELINE INFO -----*/

.timeline-info {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 0 0 0.5em 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/*----- TIMELINE MARKER -----*/

.timeline-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 15px;
}

.timeline-marker:before {
  background: var(--secondarypurple); /* Replace with your primary color */
  border: 3px solid transparent;
  border-radius: 100%;
  content: "";
  display: block;
  height: 15px;
  position: absolute;
  top: 4px;
  left: 0;
  width: 15px;
  transition:
    background 0.3s ease-in-out,
    border 0.3s ease-in-out;
}

.timeline-marker:after {
  content: "";
  width: 3px;
  background: #ccd5db;
  display: block;
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 6px;
}

.timeline-item:last-child .timeline-marker:after {
  content: none;
}

.timeline-item:not(.period):hover .timeline-marker:before {
  background: transparent;
  border: 3px solid var(--secondarypurple);
}

/*----- TIMELINE REFLECTION MARKER ----*/

.timeline-reflection-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2.5px;
  width: 20px;
}

.timeline-reflection-marker:before {
  background: black;
  border: 3px solid transparent;
  border-radius: 100%;
  content: "";
  display: block;
  height: 20px;
  position: absolute;
  top: 4px;
  left: -2.5px;
  width: 20px;
  transition:
    background 0.3s ease-in-out,
    border 0.3s ease-in-out;
}

.timeline-reflection-marker:after {
  content: "";
  width: 3px;
  background: #ccd5db;
  display: block;
  position: absolute;
  top: 28px;
  bottom: 0;
}

.timeline-item:last-child .timeline-reflection-marker:after {
  content: none;
}

.timeline-item:not(.period):hover .timeline-reflection-marker:before {
  background: transparent;
  border: 3px solid black; /* Replace with your primary color */
}
/*----- TIMELINE CONTENT -----*/

.timeline-content {
  padding-bottom: 40px;
}

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

/*----- TIMELINE PERIOD -----*/

.period {
  padding: 0;
}

.period .timeline-info {
  display: none;
}

.period .timeline-marker:before {
  background: transparent;
  content: "";
  width: 15px;
  height: auto;
  border: none;
  border-radius: 0;
  top: 0;
  bottom: 30px;
  position: absolute;
  border-top: 3px solid #ccd5db;
  border-bottom: 3px solid #ccd5db;
}

.period .timeline-marker:after {
  content: "";
  height: 32px;
  top: auto;
}

.period .timeline-reflection-marker:after {
  height: 40px;
}

.period .timeline-content {
  padding: 40px 0 70px;
}

.period .timeline-title {
  margin: 0;
}

/*----- TIMELINE CENTERED -----*/

.timeline-centered {
  display: block;
}

@media (min-width: 992px) {
  .timeline-centered,
  .timeline-centered .timeline-item,
  .timeline-centered .timeline-info,
  .timeline-centered .timeline-marker,
  .timeline-reflection-marker,
  .timeline-centered .timeline-content {
    display: block;
    margin: 0;
    padding: 0;
  }

  .timeline-centered .timeline-item {
    padding-bottom: 40px;
    overflow: hidden;
  }

  .timeline-centered .timeline-marker,
  .timeline-reflection-marker {
    position: absolute;
    left: 50%;
    margin-left: -7.5px;
  }

  .timeline-centered .timeline-info,
  .timeline-centered .timeline-content {
    width: 50%;
  }

  .timeline-centered > .timeline-item:nth-child(odd) .timeline-info {
    float: left;
    text-align: right;
    padding-right: 30px;
  }

  .timeline-centered > .timeline-item:nth-child(odd) .timeline-content {
    float: right;
    text-align: left;
    padding-left: 30px;
  }

  .timeline-centered > .timeline-item:nth-child(even) .timeline-info {
    float: right;
    text-align: left;
    padding-left: 30px;
  }

  .timeline-centered > .timeline-item:nth-child(even) .timeline-content {
    float: left;
    text-align: right;
    padding-right: 30px;
  }

  .timeline-centered > .timeline-item.period .timeline-content {
    float: none;
    padding: 0;
    width: 100%;
    text-align: center;
  }

  .timeline-centered .timeline-item.period {
    padding: 50px 0 90px;
  }

  .timeline-centered .period .timeline-marker:after {
    height: 30px;
    bottom: 0;
    top: auto;
  }

  .timeline-centered .period .timeline-title {
    left: auto;
  }
}
/* ENDING TIMELINE */

.circle-size {
  width: 7rem;
  height: 7rem;
  transition: all 0.3s ease-in-out;
}

.circle {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.circle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    255,
    255,
    255,
    0.3
  ); /* White overlay with low opacity */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: 100%;
}

.circle.hide {
  filter: grayscale(100%) brightness(0.75);
}

.circle:hover::before {
  opacity: 1;
}

.circle:hover {
  /* width: 9rem;
  height: 9rem; */
}

.circle i {
  opacity: 1;
  transition: opacity 0.3s ease-in-out; /* Smooth fade-in and fade-out */
}

.circle:hover i {
  opacity: 0; /* Fade out the icon on hover */
}

.circle::after {
  content: attr(data-text); /* Display the text from the data-text attribute */
  color: black;
  font-size: 1rem;
  position: absolute;
  text-align: center;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease-in-out; /* Smooth transition for text */
}

.circle:hover::after {
  opacity: 1; /* Fade in the text on hover */
}

.readmorediv {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vh;
  background-color: var(--lightpurple);
  color: black;
  padding: 3rem;
  border-radius: 1rem;
  display: none;
  overflow: hidden;
  z-index: 1000; /* Ensure it's above other content */

  div {
    z-index: 1001; /* Ensure it's above other content */
    overflow-y: scroll;
    height: 100%;
    position: relative;
    padding-right: 1rem;
  }
}

.readmorediv.show {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay.show {
  animation: fadeIn 0.5s;
  display: block;
}

/* Printer friendlyness */
@media print {
  .contentcollapsible {
    max-height: none;
  }

  .tool-tip {
    display: none;
  }

  .pipeline-step {
    --extended-height: 4 * var(--height);
  }

  .pipeline-step .pipe {
    opacity: 0;
    height: var(--extended-height);
  }

  .pipeline-step .description {
    max-height: none;
  }

  .pipeline-step .description .text {
    height: calc(2 * var(--extended-height));
  }

  .navbar,
  .navbar-brand {
    display: none;
  }

  .container {
    margin: 0;
    max-width: none;
  }

  #openNav {
    display: none;
  }
}

/* Human practices page */

.bg-science {
  color: #98cc9b;
}

.bg-health {
  color: #0dcaf0;
}
.bg-industry {
  color: #ffc107;
}
.bg-safety {
  color: #dc3545;
}
.bg-community {
  color: #198754;
}
.bg-gray {
  color: #e3dac9 !important;
}
.bg-mainpurple-icon {
  color: var(--mainpurple);
}
/* HOME PAGE */

.fullwidthpage {
  padding: 0;
}

.video-container {
  width: 100vw;
  height: 95vh;
  display: flex;
  justify-content: start;
  align-items: center;
}

.fade-in-logo {
  transform: scale(0);
  transition: all 1s ease;
}
.fade-in {
  transform: scale(1);
}
.decreased-opacity {
  transition: opacity 1s ease;
  opacity: 0.3;
}

@property --from {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

@keyframes counter {
  to {
    --from: var(--to, 100);
  }
}
.counter {
  font-size: calc(1.375rem + 4vw);
  color: var(--darkblue);
}

[data-aos="counter"] {
  &.aos-animate {
    &.counter {
      transition: --from 1s;
      counter-reset: int var(--from);
      animation: counter var(--time, 1000) forwards ease-in-out;
    }

    &.counter::after {
      content: counter(int);
    }
  }
}

.col-2-3 {
  flex: 0 0 auto;
  width: 20.83333333335%;
}
.homesteps {
  position: relative;
  height: 60vh;
  margin: 0;
}

[data-aos="homestep1"] {
  width: 20%;
  position: absolute;
  transition:
    left 1s,
    right 1s,
    top 1s,
    bottom 1s;
  &#smegmatis-total {
    left: 0;
  }
  &#plasmide {
    right: 0;
  }
  &#transformed {
    opacity: 0;
    left: 10%;
  }

  &.aos-animate {
    top: 100%;
    &#smegmatis-total {
      animation: move-right-disappear 2s;
      opacity: 0;
    }
    &#plasmide {
      animation: move-left-disappear 1s;
      opacity: 0;
    }
    &#transformed {
      animation: appear-and-move 4s;
      opacity: 1;
    }
  }
}

@keyframes move-right-disappear {
  0% {
    left: 0;
    opacity: 1;
    top: 0;
  }
  70% {
    left: 40%;
    opacity: 1;
    top: 10rem;
  }
  100% {
    left: 40%;
    opacity: 0;
    top: 10rem;
  }
}

@keyframes move-left-disappear {
  0% {
    right: 0;
    opacity: 1;
    top: 0;
  }
  90% {
    right: 40%;
    opacity: 1;
    top: 10rem;
  }
  100% {
    right: 40%;
    opacity: 0;
    top: 10rem;
  }
}

@keyframes appear-and-move {
  0% {
    opacity: 0;
    top: 10rem;
    left: 40%;
  }
  40% {
    opacity: 0;
    top: 10rem;
    left: 40%;
  }
  60% {
    opacity: 1;
    top: 10rem;
    left: 40%;
  }
  100% {
    opacity: 1;
    top: 100%;
    z-index: 1;
    left: 10%;
  }
}

[data-aos="homestep2"] {
  position: absolute;
  &#bmveiwit {
    top: -13rem;
    left: 10%;
    width: 15%;
  }
  &#spytag {
    top: -13rem;
    right: 5%;
    width: 10%;
  }
  &#bmvcompleet {
    opacity: 1;
    left: 47.5%;
    width: 0%;
    top: -15rem;
  }
  &#reageerbuis {
    top: 20rem;
    left: 47%;
    width: 8%;
    position: relative;
    z-index: 100;
  }
  &#happyvaccine {
    opacity: 0;
    top: 0rem;
  }
  &.aos-animate {
    top: 10rem;
    &#bmveiwit {
      animation: move-right-down-disappear 3s;
      opacity: 0;
    }
    &#spytag {
      animation: move-left-down-disappear 3s;
      opacity: 0;
    }
    &#reageerbuis {
      transition: transform 2s;
      transform: rotate(180deg);
    }
    &#bmvcompleet {
      animation: move-down-disappear 4s;
    }
    &#happyvaccine {
      animation: appear 6s;
      opacity: 1;
      top: 0rem;
    }
  }
}

@keyframes move-right-down-disappear {
  0% {
    opacity: 1;
    top: -10rem;
    left: 10%;
  }
  50% {
    opacity: 1;
    top: 6rem;
    left: 35%;
    width: 15%;
  }
  95% {
    opacity: 0;
    top: 27rem;
    left: 52%;
    width: 0%;
  }
}
@keyframes move-left-down-disappear {
  0% {
    opacity: 1;
    top: -10rem;
    right: 10%;
  }
  50% {
    opacity: 1;
    top: 7rem;
    right: 40%;
    width: 10%;
  }
  95% {
    opacity: 0;
    top: 27rem;
    right: 50%;
    width: 0%;
  }
}

@keyframes move-down-disappear {
  20% {
    opacity: 0;
    top: -15rem;
    width: 0%;
    left: 50%;
  }
  40% {
    opacity: 1;
    top: 0rem;
    width: 30%;
    left: 41.5%;
  }
  80% {
    opacity: 1;
    top: 0rem;
    width: 30%;
    left: 41.5%;
  }
  99% {
    opacity: 0;
    top: 5rem;
    width: 10%;
    left: 47.5%;
  }
  100% {
    width: 0%;
  }
}
@keyframes appear {
  0% {
    opacity: 0;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.squarediv {
  height: 250px;
  width: 250px;
  border: 3px solid var(--mainpurple);
  position: relative;
  filter: grayscale(100%);
  box-shadow: var(--shadow);
}

.squaredivcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 5;
  color: #fff;
}
.squarediv:hover {
  transform: scale(1.02);
  background-color: #fff;
  filter: none;
  transition:
    transform 0.5s ease,
    filter 0.7s ease;
}

.referenceshomepage {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.knowmorepictures {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
}

/* engineering */
.cycle {
  width: 100%;
  display: flex;
  flex-direction: row;
  cursor: pointer;
  margin: 2rem 0;

  .categories {
    width: 25%;
    aspect-ratio: 1;
    background-image: url("https://static.igem.wiki/teams/5403/wiki/engineering-cycle/cycle-2.svg");
    background-repeat: no-repeat;
    position: relative;
    transition: rotate 2s;
    rotate: 0deg;

    .category {
      border-radius: 100%;
      border: 1px solid var(--mainpurple);
      --size: 3.5rem;
      transition:
        filter 2s,
        width 2s,
        height 2s;
      width: var(--size);
      height: var(--size);
      overflow: hidden;
      position: absolute;
      box-shadow: var(--shadow);
      filter: grayscale(100%);

      &.selected {
        --size: 4rem;
        filter: none;
      }

      &:nth-child(2) {
        left: 50%;
        transform: translateY(0) translateX(-50%);
      }

      &:nth-child(3) {
        left: 100%;
        top: 50%;
        transform: translateY(-50%) translateX(-100%);
      }

      &:nth-child(4) {
        left: 50%;
        top: 100%;
        transform: translateY(-100%) translateX(-50%);
      }

      &:nth-child(5) {
        top: 50%;
        transform: translateY(-50%) translateX(0);
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: rotate 2s;
      }
    }

    h5 {
      position: absolute;
      top: 50%;
      left: 50%;
      transition: all 2s;
      transform: translate(-50%, -50%);
      transform-origin: 0 0;
    }
  }
  .texts {
    width: 75%;
    display: flex;
    align-items: center;

    .text {
      width: 75%;
      display: none;
      padding: 1.5rem;

      &.selected {
        display: block;
      }
    }
  }

  &.left {
    .texts .selected {
      animation: floatinright 1s;
    }
  }

  &.right {
    text-align: right;

    .text {
      margin-left: auto;
    }

    .texts .selected {
      animation: floatinleft 1s;
    }
  }
}

@keyframes floatinright {
  0% {
    position: absolute;
    bottom: -100%;
    right: -50%;
    opacity: 0;
  }
  100% {
    position: relative;
    bottom: 0;
    right: 0;
    opacity: 1;
  }
}

@keyframes floatinleft {
  0% {
    position: absolute;
    bottom: -100%;
    left: -50%;
    opacity: 0;
  }
  100% {
    position: relative;
    bottom: 0;
    left: 0;
    opacity: 1;
  }
}
