body { padding-top: 56px;
 /* space for fixed back-to-top button */

 }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #f4a7a4 !important; }
.bg-hero { background-color: #e46e6c; }


/* fonts */

@font-face{
  font-family: "opensans";
  font-style: normal;
  font-weight: normal;
  src: url(https://static.igem.wiki/teams/5875/menu/opensans-variablefont-wdth-wght.ttf) format('opentype');
  }
@font-face{
  font-family: "inter";
  font-style: normal;
  font-weight: normal;
  src: url(https://static.igem.wiki/teams/5875/menu/inter-24pt-bold.ttf) format('opentype');
  }
@font-face{
  font-family: "inter-bold";
  font-style: normal;
  font-weight: 600;
  src: url(https://static.igem.wiki/teams/5875/menu/inter-24pt-extrabold.ttf) format('opentype');
  }

body {
  font-family: "opensans", sans-serif;
  
  }
h1, h2, h3 {
  font-family: 'inter', sans-serif;        /* example */
  letter-spacing: 1px;     /* subtle spacing */
}
/* highlight feature*/
.highlight {
  background-color: pink;
  padding: 4px;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.highlight:hover {
  background-color: pink;
  color: white;
}
.underline {
  text-decoration: underline;
}

/* navbar */
.navbar-brand {
  font-size: 32px; 
  font-weight: bold;
}
.dropdown-item {
  font-size: 16px; /* change as needed */
}
.navbar-nav .nav-link {
  font-size: 18px; 
  font-weight: bold;
  color: white;
}
/* footer */
.footer-logos {
  display: flex;
  justify-content: center;  /* center them horizontally */
  align-items: center;      /* vertically align them */
  gap: 4px;               /* very small space between images */
  margin-bottom: 10px;   
     /* spacing before the paragraph */
}

.footer-text {
  display: flex;
  flex-direction: column;      /* stack the two lines */
  line-height: 1.2;            /* tighten vertical spacing */
}

.footer-text h4 {
  margin: 0;                   /* remove extra space around headings */
}
/*connect with us*/
.connect-panel {
  text-align: right;
  margin-top: -155px;
  
}

.social-buttons {
  display: flex;
  justify-content: right;
  gap: 15px;
  margin-top: 0px;
}

.social-btn {
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.social-btn svg {
  width: 24px;
  height: 24px;
  transition: 0.3s;
}

/* Default hover: slight lift */
.social-btn:hover {
  transform: translateY(-3px);
}

/* Instagram Hover */
.instagram-btn:hover {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: white;
}

/* Email Hover (blue) */
.email-btn:hover {
  background: #1da1f2; /* Twitter blue vibe for email */
  color: white;
}

/* linkedin Hover */
.linkedin-btn:hover { background: #0077b5; }    /* LinkedIn blue */

/* youtube Hover */

.youtube-btn:hover { background: #ff0000; }     /* YouTube red */


/* Make the SVG paths inherit the white color */
.social-btn svg path,
.social-btn svg rect,
.social-btn svg line,
.social-btn svg polyline,
.social-btn svg circle,
.social-btn svg polygon {
  stroke: currentColor;
}



/* Back to Top Button */
.back-to-top {
  display: block;
  width: 90px;
  height: 70px;
  z-index: 9999;
}
/* back to top icon */
.back-to-top img {
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: inline-block; /* or just remove display */

  transition: transform 0.3s;
}

.back-to-top img:hover {
  transform: scale(1.1);
}

/* Footer Spacer: prevents overlap */
.footer-spacer {
  height: 300px; /* should match or exceed button height + margin */
}

/* Fullscreen image */

.image-container {
      display: flex;
      flex-direction: column;
    }

.image-container img {
      width: 100%;
      height: auto;
      display: block;
    }


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

/* header */
.uterus {height: 50px;

}

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

.instagram-icon {
  color: white;
  transition: color 0.3s ease;
}

.instagram-icon:hover {
  color: #E1306C;
}

.member:hover {
  color: #E1306C;
}
.sponsor-slider {
  overflow: hidden;
  position: relative;
  height: 100px;
  margin-top: 40px;
}

.sponsor-slide-track {
  display: flex;
  width: calc(250px * 10); /* 슬라이더 개수만큼 길이 조절 */
  animation: scroll 30s linear infinite;
}

.sponsor-slide {
  width: 200px;
  height: 100px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 5)); }
}

.footer-container.custom-footer {
  background-color: #bfa5a4
}

/* Team Member Grid */
.members-grid {
  display: flex;
  gap: 20px 60px; /* spacing between members */
  justify-content: center; 
  flex-wrap: wrap; 
}

.member {
  text-align: center; /* center image + label */
  cursor: pointer;
 /* background-color: rgba(255, 255, 255, 0.1); /* temporary */
  padding: 10px;
  border-radius: 8px;
  
}

.member p {
  font-size: 24px;      
  margin-top: 8px;       /* Optional spacing */
}

.section-header {
  text-align: center;
  font-weight: bold;
  font-size: 4em;
  margin-top: 40px;
  margin-bottom: 20px;

}

#modal-img {
  margin-bottom: 15px; /* space below image */
}
#modal-name {
  font-size: 1.8em;
  margin-bottom: 10px;
}

#modal-desc {
  font-size: 1.2em;
}

#modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;

  /* Add these: */
  display: flex;
  justify-content: center;  /* horizontal center */
  align-items: center;      /* vertical center */
  padding: 20px;            /* optional for spacing on small screens */
  box-sizing: border-box;   /* to make padding work well */
  text-align: left;         /* reset text-align from center */
}

.team-banner {
  background-color: #fff5f5;
  background-image: radial-gradient(#f9caca 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 40px 0;
  text-align: center;
}
.member:hover img {
  filter: brightness(1.1) saturate(1.2) blur(0.3px);
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 30px rgba(233, 176, 217, 0.4);
}

/* this is for the human practice page to make a buffer after the header */ 

.timeline-header h1 {
  padding-top: 40px;
  padding-left:15px;
  color: #E1306C; /* Dark text for readability */

}
.timeline-header h2 {
  padding-top:10px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 20px;
  color: #000000; /* Dark text for readability */
  text-align:left;
  font-size: 1.5em;

}
.timeline-heading h1{
  color: #E1306C; 
  text-align: left;
  padding-left: 15px;
}
.timeline-heading h2 {
  color: #E1306C; 
  text-align: left;
  font-size: 1.5em;
  padding-left: 20px;
}

.timeline-heading p {
  color: #000000;
  text-align: center;
  padding-left: 30px;
  padding-right: 10px;

}

/* the following code should connect the icons on the timeline to the middle timeline  */

.event-icon {
  position: relative;           /* anchor for the arm            */
  font-size: 4em;
}
.event-wrap {
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: center;
}

.event-wrap:hover .event-label {
  color: #E1306C;
}

.event-wrap:hover .event-icon img {
  border-color: #E1306C;
}
.connector-line {
  position: absolute;
  top: 50%;                     /* vertically centre on icon     */
  transform: translateY(-50%);  /* …exactly in the middle        */
  height: 3px;                  /* thin horizontal bar           */
  width: 70px;                  /* arm length – adjust as needed */
  background: #b0b5e8;
}

/* arm leaves the RIGHT side of a left‑hand event … */
.timeline-event.left  .connector-line { left: calc(100% + 4px); }

/* …and the LEFT side of a right‑hand event          */
.timeline-event.right .connector-line { right: calc(100% + 4px); }
/* this will make the line grow when u refresh the page */
@keyframes growLine {
  to {
    transform: translateX(-50%) scaleY(1);
  }
}

.quote-popup {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff5f5;
  color: #ffb0d1;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.34em;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.event-icon:hover .quote-popup {
  opacity: 1;
}
/* reflection box */
 .reflection {
      position: relative;
      margin: 20px 0;
      padding-left: 60px;
    }

    .reflection::before {
      content: '🧠';
      position: absolute;
      left: 0;
      top: 0;
      font-size: 24px;
      cursor: pointer;
    }

    .reflection .toggle {
      background-color: #f9caca;
      padding: 10px 15px;
      border-left: 4px solid #e26e6f;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .reflection .toggle:hover {
      background-color: #e26e6f;
    }

    .reflection .details {
      max-height: 0;
      overflow: scroll;
      transition: max-height 0.4s ease;
      background: #f9caca;
      border-left: 4px solid #e26e6f;
      padding: 0 15px;
      margin-top: 5px;
      border-radius: 0 0 5px 5px;
    }

    .reflection.open .details {
      max-height: 200px; /* Adjust based on your content length */
      padding-top: 10px;
      padding-bottom: 10px;
    }

/* this gives us a scrollbar on the modal */
#modalprofbg {
  max-height: 60vh;  /* Set max height for modal content */
  overflow-y: auto;  /* Enables vertical scrolling when content overflows */
  margin-top: 10px;   /* Space between the title and content */
  padding-right: 15px; /* Space on the right to avoid overlap with scrollbar */
}
/* this is for the fixed side menu */
#plasmid {
  scroll-margin-top: 100px; /* or whatever offset you want */
}
#backbone {
  scroll-margin-top: 90px; /* or whatever offset you want */
}
#hifi{
  scroll-margin-top: 90px; /* or whatever offset you want */
}
#growth{
  scroll-margin-top: 90px; /* or whatever offset you want */
}
#dose{
  scroll-margin-top: 90px; /* or whatever offset you want */
}
h1[id] {
  scroll-margin-top: 90px; 
}
h2[id]{
  scroll-margin-top: 80px; 
}
h3[id]{
  scroll-margin-top: 75px; 
}

p[id]{
  scroll-margin-top: 150px; 
}

.event-icon[id]{
  scroll-margin-top: 90px; 
}
.timeline-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
}
.sidebar {
  position: sticky;         /* stays on the screen as you scroll */
  top: 70px;
  left: 0;
  width: 200px;            /* adjust as needed */
  height: 60vh;           /* full height */
  border-radius: 8px;
  background-color: #e26e6f;
  padding: 20px;
  overflow-y: auto;        /* scroll only this area if needed */
  z-index: 1000;
  flex-shrink: 0;
  border-right: 1px solid #ccc;
}

/* Make links pretty */
.sidebar ul {
  list-style-type: none;
  padding: 0;
}

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

.sidebar a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
}

.sidebar a:hover {
  color: black;
}
/* Submenu styles */
.sidebar li ul {
  max-height: 0;
  overflow: hidden;
  padding-left: 15px;
  opacity: 0;
  transition: max-height 0.7s ease 0.3s, /* 0.3s delay */
    opacity 0.4s ease 0.3s;
  pointer-events: none;
}

.sidebar li:hover > ul {
  max-height: 500px; /* large enough to fit all submenu items */
  opacity: 1;
  pointer-events: auto;
}


.sidebar li ul li {
  margin-bottom: 5px;
  margin-top: 10px;
}

.sidebar li ul a {
  font-weight: normal;
  font-size: 0.9em;
  color: #ffffff;
}

.sidebar li ul a:hover {
  color: black;
}
.sidebar li ul li ul {
  padding-left: 15px; /* Indent again for sub-submenu */
  margin-top: 5px;
}



/* For pages with timeline-container (flex layout) */
.main-content {
  flex-grow: 1;
  position: relative; /* Needed for sticky */
  padding: 20px;
  max-width: calc(100% - 220px);

}
/* Accordion for the bio notebook */
.accordion {
      border: 1px solid #ccc;
      border-radius: 6px;
      overflow: hidden;
      margin-bottom: 10px;
      margin-top: 25px;
    }

    .accordion input {
      display: none;
    }

    .accordion label {
      display: block;
      background: #b0b5e8;
      color: white;
      padding: 1rem;
      font-weight: bold;
      cursor: pointer;
      position: relative;
      transition: background 0.3s ease;
    }

    .accordion label:hover {
      background: #9ba1e7;
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      background: #e9eaf6;
      transition: max-height 0.4s ease;
      padding: 0 1rem;
    }

    .accordion-content p {
      margin: 1rem 0;
      padding: 0;

    }

    /* When checkbox is checked, expand the content */
  .accordion input:checked ~ .accordion-content {
  max-height: 750px; /* Set this to how tall you want the panel */
  padding: 1rem;
  overflow-y: auto;   /* 👈 Add this to make it scrollable */
}


    /* Optional arrow indicator */
    .accordion label::after {
      content: '▼';
      position: absolute;
      right: 1rem;
      transition: transform 0.3s ease;
    }

    .accordion input:checked + label::after {
      transform: rotate(180deg);
    }
    
    .highlight {
  background-color: #f4a7a4;
  padding: 2px 4px;
  border-radius: 3px;
}

/* table for protocols page */
.table-box {
  background-color: #ffffff;
  border: 3px solid #e26e6f;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  scroll-margin-top: 160px;
}

/* Optional table styling inside the box */
.table-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.table-box th, .table-box td {
  border: 2px solid #e26e6f;
  padding: 12px;
  text-align: left;
}

.table-box th {
  background-color: #e26e6f;
  color: white;
}

.table-box tr:nth-child(even) {
  background-color: #f1f8ff;
}

