@font-face {
  font-family: 'hacen-tunisia';
  src: url('https://static.igem.wiki/teams/5641/master/fonts/hacen-tunisia.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/*
body {
	background: linear-gradient(-45deg, #A5bee6, #8ebee6, #b1a3d4, #B3a2e0);
	background-size: 400% 400%;
	background-attachment: fixed;
	animation: gradient 15s ease infinite;
	height: 100vh;
	padding-top: 80px; 
	margin:0px;
	padding-left: 0px;
	padding-right: 0px;
	font-size: max(12px, 0.75vw);
}
@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
*/

body {
  background-image: url("https://static.igem.wiki/teams/5641/master/background-highres.webp");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  padding-top: 80px; 
  background-color: #d0d4fc;
  margin:0px;
  padding-left: 0px;
  padding-right: 0px;
  font-size: max(16px, 0.75vw);
}
p{
  text-align:justify;
}

html {
  scroll-behavior: smooth;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/1.webp'), auto;
}
.navbar-brand {
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}
.mt-5 {
    margin-top: 0px !important;
}
.col-lg-4 a{
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}
.col-lg-4 a:hover{
  transform: scale(1.1);
}
/* default tables */
table {
  border: 1px solid black;
  text-align: center;
  padding: 8px;
  border-collapse: collapse;
  margin-bottom: 10px;
}
th, td {
  border: 1px solid black;
  padding: 8px;
  text-align: center;
}

/*typing animation*/
.typewriter-char {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.typewriter-char.visible {
  opacity: 1;
}

/*hero*/
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: transparent; }

.custom-title {
    color: #2c3e50; 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.custom-lead-wrapper {
    border-bottom: 2px solid #3498db; 
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    max-width: 80%; 
}

.custom-lead {
    color: #ffffff; 
    font-size: 1.25rem; 
    font-weight: 400; 
    margin-bottom: 0; 
}
/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: #0b5394; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }
footer{
  background-color: #befff7;
  color: white;
  min-height: 400px;
}
/* navbar */

#mainNavbar {
    background-color: #befff7; 
    color: #165085;
    transition: transform 0.3s ease-in-out;
    min-height: 90px;
    max-height: 90px;
    padding: 10px 10px 5px 0px; 
    box-shadow: 0px 8px 5px lightblue;
}
#mainNavbar .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 900;
    color: #165085;
}
#mainNavbar .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transform: scale(1.05);
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

#mainNavbar.navbar-hide {
    transform: translateY(-100%);
}

#mainNavbar .dropdown-menu {
  background-color: #ebfdfd;
  border: none;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /*menu 3d*/
}


#mainNavbar .dropdown-menu .dropdown-item {
  color: #165085 !important; 
  padding: 10px 20px; 
  font-weight: 600; 
  transition: all 0.3s ease;
  border-left: 3px solid transparent; 
}

#mainNavbar .dropdown-menu .dropdown-item:hover {
  background-color: #d0f0f0; 
  color: #0b5394; 
  border-left-color: #0b5394; 
  transform: translateX(5px); 
  padding-left: 17px; 
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

#backToTopBtn {
  position: fixed;
  bottom: 80px;
  right: 5%;
  z-index: 999;
  background: none;
  border: none;
  padding: 0;
  max-width:100px;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

#backToTopBtn img {
  width: 120px; /* adjust as needed */
  height: auto;
  transition: transform 0.3s ease;
}

#backToTopBtn:hover img {
  transform: scale(1.101);
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}


.progress-container {
  width: 100%;
  height: 6px;
  position: fixed;
  top: 0px; 
  left: 0;
  z-index: 9999; 
  background-color: white; 
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #a3b8ff, #1b8df7);
  width: 0%;
  transition: width 0.1s ease;
  display: block; 
}
#progressFollower {
  position: fixed;
  top: 6px; /* Top aligns to progress bar */
  width: 60px;
  height: 60px;
  background: transparent;
  z-index: 10000;
  pointer-events: none; 
  transition: left 0.1s ease, opacity 0.3s ease; 
  opacity: 0;
}
.hk-hcy-pcms-text {
  padding-left: 10px;
  padding-top: 3px;
  color: #0b5394 !important;
}


/*model*/
.model-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/drylab/untitled-design-21.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;

}
/*desc*/
.desc-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/drylab/untitled-design-31.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;

}
/*result*/
.result-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/drylab/untitled-design-31.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;

}
/*contribution */
.contribution-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/drylab/untitled-design-31.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;

}

/*experiment*/
.experiment-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/material/wet-lab-header.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;
}

/*notebook*/
.notebook-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/material/wet-lab-header.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;

}
/* attribution */
.attribution-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/edu/untitled-design.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;

}
/* engineering */
.engineer-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/drylab/untitled-design-31.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;

}
/*parts header */
.parts-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/material/wet-lab-header.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;
}


.main-layout-container {
  display: flex;
  min-height: 100vh;
  background-color: transparent;
  gap: 20px;
  justify-content: center;
  padding-top: 50px;
  padding-left: 10%;
  padding-right: 10%;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 15px;
}

.side-menu {
  min-width: 250px;
  max-width: 250px;
  height: fit-content;
  max-height: fit-content;
  position: sticky;
  top: 90px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 5px 20px 20px 20px; 
  box-shadow: 8px 8px 5px #9fbaf2;
  overflow-y: auto;
  text-align: left;
}

.menu-header {
  padding: 0 0 5px 0; 
  margin: 0 0 10px 0; 
  border-bottom: 5px solid #165085;
  font-size: 30px;
  color: #165085;
  line-height: 1; 
}

.menu-header h3 {
  margin: 5px; 
  padding: 5px; 
}


.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-list li {
  margin-bottom: 10px;
}

.topic-list a {
  display: block;
  padding: 8px 12px;
  color: #165085;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.topic-list a:hover {
  background: #e9ecef;
  box-shadow: 0px 0px 5px 5px lightblue;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

.topic-list .active a {
  background: #165085;
  color: #befff7;
}

/* Content Area */
.content-container {
  flex: 1;
  padding: 30px;
  border-radius: 20px;
  max-width:100%;
  /* background-color: rgba(255, 255, 255, 0.5); */
}

.content-section {
  scroll-margin-top: 100px;
  margin-bottom: 80px;
  padding:20px;
  color: #165085;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 8px 8px 5px #9fbaf2;
}

.content-section h2{
  margin-bottom: 15px;
  font-weight: bold;
  font-size:2.5em;
  border-bottom: 3px solid #165085;
  padding-bottom: 30px;
}
.content-section h3{
  margin-bottom: 15px;
  margin-top: 15px;
  font-weight: bold;
  font-size:1.6em;
  text-decoration: underline;
}
.content-section h4{
  margin-bottom: 15px;
  margin-top: 15px;
  font-weight: bold;
  font-size:1.3em;
  text-decoration: underline;
}
.content-section h5{
  margin-bottom: 15px;
  margin-top: 15px;
  font-weight: bold;
  font-size:1.15em;
  text-decoration: underline;
}
.content-section h6{
  margin-bottom: 15px;
  margin-top: 15px;
  font-weight: bold;
  font-size:1.05em;
  font-style: italic;
  text-decoration: underline;
}
/* horizontal pics arrangement */
.content-hori-arrange-center {
  display: flex;
  background-color: transparent;
  gap: 20px;
  justify-content: center; 
}
.content-hori-arrange-center p{
  font-size: 0.8em;
}

.content-hori-arrange-pic-container {
  display: flex;
  flex-direction: column;
  width:50%;
  align-items:center;
  text-align:center;
}
.content-hori-arrange-pic-container img{
  width: 100%;
}
/*Copy for HP */
.content-hp-hori-arrange-center {
  display: flex;
  background-color: transparent;
  gap: 20px;
  justify-content: center;
}

.content-hp-hori-arrange-pic-container {
  display: flex;
  flex-direction: column;
  align-items:center;
  text-align:center;
  align-content: center;
}
.content-hp-hori-arrange-pic-container img{
  max-height: 500px;
  max-width: 500px;
}
.content-hp-hori-arrange-pic-container p{
  text-align:center;
}
/*horizontal pics+text arrangement */
.content-hori-pic-text {
  display: flex;
  background-color: transparent;
  gap: 20px;
  justify-content: left;
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-box {
  position:relative;
  gap: 0px 5px 5px 5px;
  padding: 0px;
  border: 3px soild;
  border-radius: 10px;
  background-color:#FFF;
  max-width:1300px;
  margin: 0px;
}
.content-header-box {
  text-align: center;
  background-color: #0FF;
  width:100%;
  font-weight: 900;
  border-radius: 10px;
  padding:10px;
  box-sizing: border-box;
}
.content-box.expanded .content-header-box{
  background-color: #165085;
  color:white;
}
.content-preview {
  color: #000;
}
.content-hidden {
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.2s ease,
    padding 0.3s ease;
  max-height: 0;
  overflow: hidden;
}
.content-box.expanded .content-hidden {
  height:auto;
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.2s ease,
    padding 0.3s ease;
  max-height: fit-content; 
  padding-bottom: 15px; 
  border-top: 2px dotted rgba(0,0,0,0.1); 
}
.content-header-box h3::after {
  content: " ▼";
}
.content-box.expanded .content-header-box h3::after {
  content: " ▲";
}
.content-header-box:hover{
  background-color: #165085;
  color: white;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}
/*arrow*/
.content-header-box:before {
  content:'';
  position: absolute;
  left: -24px;
  width: 0;
  top: 18px; /*hardcode*/
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-right: 25px solid #0FF;
  z-index: 999;
}
.content-box p{
  padding:5px 20px 5px 20px;
}

/* dot */
.content-box:before{
  content:'';
  position:absolute;
  width: 35px;
  height: 35px;
  background-color: #FFF;
  border: 8px solid #165085;
  border-radius: 50%;
  left: -60px; /*hardcode need fix*/
  transform:translateY(16px); /*hardcode need fix*/
  z-index:1000;
  box-sizing: border-box;
}
/*member page*/
.member-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/edu/untitled-design.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;
}
.member-container{
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin-top: 50px;
  padding: 30px 0;
  background-color: #e1e7ff;
  border-radius: 15px;
  max-width: 1500px;
}
.member-overview{
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin-top: 50px;
  padding: 30px 0;
  background-color: transparent;
  border-radius: 150px;
  max-width: 1500px;
}
.member-container h2, .member-overview h2 {
  font-size: 40px;
  margin: 0 10px 25px 10px;  
  padding: 0 0 15px 0;
  border-bottom: 4px solid #e0e0e0; 
  font-weight: bold;
}
/* Grid Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background: transparent;
}

/* Individual Card */
.card {
  background: transparent;
  perspective: 1000px;
  height:350px;
  border: none !important;
  outline: none !important; 
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  background-color: transparent;
  border-radius:8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card:hover .card-inner{
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; 
  backface-visibility: hidden; 
  border-radius:8px;
  border: none !important;   
  outline: none !important; 
}


.card-front {
  background-color: #95a2d1;
  color: white;
}

.card-front h3{
  font-size: 25px; 
  margin: 0 0 5px 0; 
  padding: 0; 
}
.card-front p{
  font-size: 15px; 
  margin: 0 0 5px 0; 
  padding: 1px; 
  text-align:center;
}
.card-back {
  background-color: #8590c8;
  color: white;
  transform: rotateY(180deg);
}
.card-back h3{
  font-size: 40px; 
  margin: 20px 0 5px 0; 
  padding: 0; 
}
.card-back p{
  font-size: 20px; 
  margin: 0 0 5px 0; 
  padding: 10px; 
  text-align:center;
}
.card-imgcontainer{
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  margin: 15px auto;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.card-img {
  width: 100%;
  object-fit: cover;
}

/*hp*/

.hp-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/hpbg.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;
}


.hp-overview {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding-bottom: 50px;
  padding-top: 10px;
  margin-bottom: 20px;
  color: #2C3E50;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  text-align: left;
}
.hp-overview h1{
  margin: 50px 0;
  font-size: 50px;
  font-weight: bold;
  border-bottom: 3.5px solid #b3b3b3;
}

.hp-overview p {
  margin-left: 30px;
  margin-right: 30px;
  font-size: 20px;
  margin-top: 10px;
  text-align: justify;
  word-break: normal;
  white-space: normal;
}


.hp-menu-wrapper {
  display: flex;
  align-items: center;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px;
  margin: 20px;
}

.hp-menu {
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  padding: 10px 0;
}
.hp-menu::-webkit-scrollbar { display: none; } 

.hp-card {
  flex-shrink: 0;
  display:flex;
  flex-direction: column;
  align-items: center;
  height: max(100px, 15vw);
  width: max(100px, 15vw);
  justify-content: center;
  background-color: #eee;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 6px;
  box-shadow: 10px 10px lightblue;
}

.hp-card p{
  margin-top:0px;
  font-size: max(10px, 1.1vw);
 }
 .hp-card h3{
  margin-top:10px;
  font-size: max(10px, 3.5vw);
 }
.hp-menu-wrapper button{
  height: max(100px, 15vw);
  width:35px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  padding: 10px;
  font-size: 20px;
  border-radius: 6px;
  transition: transform 0.3s ease;
  margin: 5px;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

.hp-menu-wrapper button:hover{
  transform: scale(1.1);
  background-color: rgba(0, 0, 0, 0.3);
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

.hp-nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.hp-circle-row {
  display: flex;
  gap: 50px;
  justify-content: center;
}

.hp-circle-row a{
  font-size: max(10px, 2.2vw);
  text-decoration: none;
}
.circle {
  height: max(100px, 20vw);
  width: max(100px, 20vw);
  background: #eff2fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  box-shadow: 6px 8px 3px 0px #7a89a6;
  padding:10px;
}


.circle:hover {
  box-shadow: 12px 16px 12px 0px #7a89a6;
  background: #FAFBFE;
  transform: scale(1.1);
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

.hp-big-content-box{
  width:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0px;
  font-size:150%;
  color: #2C3E50;
  margin-bottom:10px;
}

.hp-big-content-box h3{
    color: #336688;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}
.hp-big-big-content-box{
  width:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0px;
  font-size:150%;
  color: #2C3E50;
  margin-bottom:10px;
  opacity:1;
}

.hp-big-big-content-box h3{
    color: #336688;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.hp-content-section{
  flex: 1;
  width: 100%;
  padding: 30px;
  background-color: #befff7;
  border-right: 1px solid #dee2e6;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  margin-top:30px;
  margin-bottom:30px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.hp-content-section h1{
  font-weight: bold;
  font-size: 3rem;
  border-bottom: 3px solid #b3b3b3
}
.hp-content-section h2{
  font-weight: bold;
  font-size: 2rem;
  color: #186980;
  text-align: center;
  border-bottom: 3px solid #b3b3b3
}

.hp-reflect-cycle-box{
  flex: 1;
  display:flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 30px;
  background-color: #befff7;
  border-right: 1px solid #dee2e6;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  margin-top:30px;
  margin-bottom:30px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.hp-reflect-cycle-box h1{
  font-weight: bold;
  font-size: max(60px, 3vw);
  border-bottom: 3px solid #b3b3b3;
  text-align:center;
}

.hp-row-arrange{
  display:flex;
  width:100%;
  padding:5px;
  align-items: center;
  box-sizing: border-box;
}
.hp-row-arrange p{
  font-size: max(16px, 1.6vw);
}
.hp-reflect-small-box{
  padding:10px;
  margin:5px;
  background-color: #FAFBFE;
  border-radius: 20px;
  border-right: 1px solid #dee2e6;
}
.hp-reflect-small-box h1{
  font-size: max(20px, 2vw);
}
.hp-reflect-small-box p{
  font-size: max(16px, 1vw);
}
.hp-event-header-pic{
  width: 15%;
}
.hp-event-box{
  display: flex;
  border-radius: 20px;
  border-right: 1px solid #dee2e6;
  background-color: #befff7;
  flex-direction: column;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin-top: 20px;
  margin-bottom: 20px;
}

.hp-event-box button:hover{
   background-color: #99CEC7;
   cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

.hp-box-header{
  font-weight: bold;
  display: flex;
  align-items: center;
  width: 100%;

}
.hp-box-header h2{
  font-size: max(15px, 2.5vw);
  color: #000;
  margin-top: 1em;
  margin-left:1em;
}

.hp-label1{
  font-weight: bold;
  width: 15%;
  text-align: center;
}

.hp-label2{
  font-weight: bold;
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;

}

.collapsible-content {
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 430px; 
  position: relative;
  padding: 20px;
}
.tiny-event{
  max-height:0px;
}
.collapsible-content.expanded {
  max-height: 10000px !important; 
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-extra {
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  height: auto;
}

 .collapsible-content.expanded .collapsible-extra {
  opacity: 1;
  transition: opacity 0s 0s;
  pointer-events: auto;
} 

.collapsible-btn {
  font-size: 1.5rem;
  border:0;
  margin-top: 10px;
  background-color:#ABE5DE;
  border-bottom-left-radius:20px;
  border-bottom-right-radius: 20px;
  border-right: 1px solid #dee2e6;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}
.engagement-container h6{
  font-size: max(60px, 5vw);
  color: #1a3197;
}

.floating {
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(100px);
  }
  100% {
    transform: translateY(0);
  }
}


.menu-bar {
  box-sizing: border-box;
  min-height:100px;
  max-height:300px;
  width:100%;
  display: flex;
  justify-content: center;
  gap: 32px;
  background: #dbf4fa;
  padding: 16px 80px;
  border-radius: 20px;
  white-space: nowrap;
  scroll-margin-top: 100px;
  align-items: center;
}

.menu-btn {
  height:100%;
  width: fit-content;
  flex-shrink: 0;
  font-size: max(12px, 1vw);
  text-align: center;
  border: none;
  background: transparent;
  color: #1a3197;
  padding: 10px;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
  border-radius: 6px;
  transition: all 0.2s;
  box-shadow: 0px 0px 2px 2px lightblue;
}
.menu-btn:hover {
  border: 2px solid #2991ab;
  background-color: rgba(255, 255, 255, 0.15); 
  transform: scale(1.1);
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
  box-shadow: 0px 0px 2px 2px lightblue;
}
.menu-btn.active-hori {
  background: #5adeff;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(85,190,255,0.1);
  box-shadow: 0px 0px 2px 2px lightblue;
  
}
.menu-btn.redirect-btn{
  box-shadow: 0px 0px 5px 5px lightblue;
  width: fit-content;
  border-radius:30px;
  font-size: max(12px, 1.5vw);
  color: white;
  font-weight:bold;
  background-color: #224499;
}
.hp-conclusion {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding-bottom: 10px;
  padding-top: 50px;
  margin-bottom: 20px;
  color: #2C3E50;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  text-align: left;
  font-size: 150%;
}
.hp-conclusion h1{
  margin: 50px 0;
  font-size: 50px;
  font-weight: bold;
  border-bottom: 3.5px solid #b3b3b3;
}
.circlecount {
  width: 50%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: conic-gradient(#186980 0deg, transparent 0deg);
  display: flex;
  justify-content: center;
  align-items: center;
  color: dodgerblue;
  position: relative;
  margin: 20px;
}
.circle-inner {
  position: absolute;
  background: #d0d4fc;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;

}
.circle-inner h1{
  font-size: 11.5vw;
  font-weight: bold;
  margin:1vw;
}
.circle-inner p{
  font-size: 2vw;
  font-weight: bold;
  margin:1vw;
}
.container-topcircle{
  display: flex;
  width:100%;
}

.expt-box{
  scroll-margin-top: 100px;
  margin-bottom: 80px;
  padding:20px;
  color: #165085;
  border-bottom: 1px solid #165085;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 8px 8px 5px #9fbaf2;
}

/*education*/

.edu-header {
  width: 100vw;
  height: 100vh;
  align-content: center;
  margin-left: calc(-50vw + 50%);
  padding: 120px 50px;
  background-image: url("https://static.igem.wiki/teams/5641/master/edu/misc/banner.webp");
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  transform: translateY(-80px);
  display:flex;
  flex-direction: column;
  align-items: center;
}

.edu-header h1, .engineer-header h1, .model-header h1, .member-header h1 , .desc-header h1, .hp-header h1, .notebook-header h1, .experiment-header h1, .contribution-header h1, .result-header h1, .attribution-header h1, .parts-header h1{
  font-size: calc(16px + 7vw);
  font-weight: bold;
  color: #2C3E50;
  text-align: center;
  visibility: hidden;
}

.edu-overview {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding-bottom: 10px;
  padding-top: 50px;
  margin-bottom: 20px;
  color: #2C3E50;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  text-align: left;
}

.edu-overview h1 {
  margin: 50px 0;
  font-size: 50px;
  font-weight: bold;
  border-bottom: 3.5px solid #b3b3b3;
}

.edu-overview p {
  margin-left: 30px;
  font-size: 20px;
  margin-top: 10px;
  text-align: justify;
  word-break: normal;
  white-space: normal;
}

.edu-div {
  scroll-margin-top: 100px;
  width: 100%;
  margin: 0 auto 15px;
  padding: 15px 0 0;
  background-color: #ededed;
  border-radius: 25px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  box-sizing: border-box;
  font-size: 200%;
  text-align: center;
  font-weight: bold;
  position: relative;
  align-items: center;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}


.edu-box-header {
  font-weight: bold;
  display: flex;
  align-items: center;
  width: 100%;
}

.edu-label-dm-1 {
  font-weight: bold;
  width: 15%;
  text-align: center;
}

.edu-label-dm-2 {
  font-weight: bold;
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.edu-hidden-div {
  background-color: #ededed;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  font-size: max(16px, 1.2vw);
  flex-direction: column;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 0px;
}

.edu-hidden-div.show {
  max-height: 10000px;
}

.edu-hidden-div p {
  text-align: justify;
  word-break: normal;
  white-space: normal;
  margin: 0;
}

.edu-button-div {
  width: 100%;
  display: flex;
  justify-content: center;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

.edu-button-div button{
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}
.edu-box-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 200px;
}

.edu-flip-card {
  width: 40%;
  height: auto;
  aspect-ratio: 1 / 1 ;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: bold;
  font-size: max(12px, 1.5vw);
  perspective: 1000px;
}

.edu-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.edu-flip-card:hover .edu-flip-card-inner {
  transform: rotateY(180deg);
}

.edu-flip-card-front,
.edu-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 1.2em;
}

.edu-flip-card-front {
  background-color: #ededed;
  color: #2C3E50;
}


.edu-content-row{
  padding-left: 30px;
  padding-right: 30px;
  text-align: justify;
  font-weight: normal;
  font-size: max(16px, 1vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; 
  margin-bottom: 10px;
}
.edu-hori-row{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.edu-vert-row{
  margin-bottom: 30px;
  margin-top: 20px; 
  margin-right: 30px
}

.edu-hidden-div {
  padding-left: 30px;
  padding-right: 30px;
  text-align: justify;
  font-weight: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; 
  margin-bottom: 10px;
}

.edu-image-small {
  width: 25%; 
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.edu-image-full {
  max-width: 65%; 
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}






.edu-flip-card-back {
  background-color: #b0b0b0;
  color: #fff;
  transform: rotateY(180deg);
}

.edu-big-box {
  color: #2C3E50;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center;    /* Optional: center them horizontally */
  gap: 15px;              /* Optional: spacing between boxes */
  padding: 20px;

}


.edu-big-box h1 {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 50px;
  font-weight:bold; 
  font-size:3em;
  color:#222266
}
.edu-big-box h3 {
  color: #336688;
  font-size: 2em;
  font-weight:bold; 
}
.edu-big-box h4 {
  color: #056202;
  font-size: 2em;
  font-weight:bold; 
}
.add-div {
  width: 100%;
  margin: 0 auto 15px;
  padding: 15px 0 0;
  background-color: #eeeeee;
  border-radius: 25px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  box-sizing: border-box;
  font-size: 200%;
  text-align: center;
  font-weight: bold;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}
.edu-circle {
  flex-shrink: 0;
  height: max(100px, 15vw);
  width: max(100px, 15vw);
  background: #eff2fe;
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  box-shadow: 6px 8px 3px 0px #7a89a6;
  margin-left:10px;
  margin-right:10px;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

.edu-circle:hover {
  box-shadow: 12px 16px 12px 0px #7a89a6;
  background: #FAFBFE;
  transform: translateY(-15px); 
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}


.engagement-container{
  flex: 1;
  padding: 10px;
  background-color: transparent;
  width:100%;
  justify-content:center;
}
.engagement-section{
  scroll-margin-top: 100px;
}

/*home*/
.home-img-container{
  width: 100%;
  margin: 0;
  padding: 0;
}


.home-img-container img{
  width: 100%;
  height: 100%;   
  object-fit: cover; 
  display: block; 
}

.home-main-container{
  width: 100%;
  margin: 0px;
  padding: 0px;
  background-size: cover;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  overflow-x: hidden;
}

/*effects and animation*/
.fade-right, .fade-left {
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
  will-change: opacity, transform;
}

.fade-right {
  transform: translateX(100px);
}

.fade-left {
  transform: translateX(-100px);
}

.fade-right.visible, .fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-scale {
  opacity: 0;
  transform: scale(0.5);   
  transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.33,1,0.68,1);
  will-change: opacity, transform;
}

.fade-scale.visible {
  opacity: 1;
  transform: scale(1);     
}
@keyframes spinScaleFade {
  0% {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 1;
  }
}
@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 5px #50bcff, 0 0 8px #50bcff, 0 0 15px #50bcff, 0 0 30px #50bcff;
    color: #000;
  }
  50% {
    text-shadow:
      0 0 10px #50bcff, 0 0 20px #50bcff, 0 0 30px #50bcff, 0 0 50px #50bcff;
  }
}


.fade-scale-spin{
  opacity:0;
}
.fade-scale-spin.head-spin{
  animation: 
    spinScaleFade 1s ease forwards, 
    glowPulse 2s ease-in-out infinite;
  transform-origin: center center;
}


/* elements*/
.home-content-container{
  box-sizing: border-box;
  display:flex;
  width: 100%;
  padding:20px;
  padding-top:200px;
  padding-bottom: 200px;
  justify-content:space-between;
  align-items:center;
}

.home-content-section-split{
  width: 100%;
  margin:0px;
  padding:0px;
}
.home-content-split-box {
  display:flex;
  align-items: center;
  box-sizing: border-box;
  width: 45%;
  padding-left: 50px;
  padding-right: 50px;
}
.home-content-split-box img{
  width:90%;
}


.home-content-container p{
  font-size:1.8em;
  line-height: 1.5;
}
.home-content-container h1{
  font-size: max(50px, 5vw);
  line-height: 2em;
  font-weight: bold;
  text-align:center;
  width:100%;
}
.home-content-container h2{
  font-size: max(50px, 4vw);
  line-height: 1em;
  font-weight: bold;
  text-align:center;
  width:100%;
}
.home-content-container img{
  width:100%;
}
.light-to-heavy{
  width:100%;
  min-height:100px;
  background-image: linear-gradient(to bottom, #dce5ea, #c7dee9);
}

.heavy-to-light{
  width:100%;
  min-height:50px;
  background-image: linear-gradient(to bottom, #c7dee9, #dce5ea);
}
.grad-to-white{
  width:100%;
  min-height:50px;
  background-image: linear-gradient(to bottom, #c7dee9, #dee4e9);
}

.grad-heavy-to-light{
  width:100%;
  min-height:50px;
  background-image: linear-gradient(to bottom, #77c5ca, #dee4e9);
}

.grad-light-to-heavy{
  width:100%;
  min-height:50px;
  background-image: linear-gradient(to bottom, #dee4e9, #77c5ca);
}

.home-circle {
  flex-shrink: 0;
  width: 10rem;
  height: 10rem;
  background: transparent;
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  margin-left:25px;
  margin-right:25px;
}

.home-circle:hover {
  transform: scale(1.1); 
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}


button {
  background-color: #ccc;
  border: none;
  border-radius: 0 0 25px 25px;
  font-size: 0.4em;
  transition: background-color 0.5s;
  width: 100%;
  height: 30px;
  cursor: url('https://static.igem.wiki/teams/5641/master/material/2.webp'), pointer;
}

button:hover {
  background-color: #bbb;
}


/*mobile*/
@media (max-width: 990px) {
  .side-menu {
    display: none;
  }
  .main-layout-container{
    margin-left:0px;
    margin-right:0px;
    padding-left:5px;
    padding-right:5px;
  }
  .edu-hori-row{
    flex-direction:column;
  }
  .edu-image-small{
    width:60%;
  }
  .hp-row-arrange{
    flex-direction: column;
  }
  .menu-bar{
    flex-direction: column;
    padding:8px;
    gap:10px;
  }
  .menu-btn{
    width:100%;
    font-size: 16px;
  }
  .menu-btn.redirect-btn{
    font-size:25px;
  }
  .home-content-container{
    flex-direction:column;
    padding-top:50px;
    padding-bottom:50px;
  }
  .home-content-split-box{
    width:100% !important;
  }
  .navbar-collapse li{
    background-color: rgba(255, 255, 255, 0.5);
    margin: 2px;
    padding: 5px;
    border-radius: 5px;
  }
  .navbar-collapse {
    background-color: rgba(208,212,252, 0.5);
    padding:10px;
    border-radius: 5px;
  }
  .navbar-toggler {
    background-color: rgba(208,212,252, 0.6);
  }
  .navbar button:hover{
    background-color: rgba(208,212,252, 8);
    border: 3px solid;
  }
  .navbar-toggler-icon{
    background-image: url('https://static.igem.wiki/teams/5641/master/material/menu.webp');
    background-size: contain;
  }
  .content-hori-arrange-center{
    flex-direction: column;
    align-items: center !important;
  }
  .content-hori-arrange-pic-container{
    width: 95%;
  }
}
