body { padding-top: 56px;  background: linear-gradient(to bottom, #ffffff, #f7e6b1); color: #062f5e; /*Dark blue for all texts*/}
.left-aligned { margin-left: auto; }
.bg-dark { background-color: rgb(132, 229, 168) !important; }

.bg-hero { background-color: rgb(132, 240, 172); }
.text-darkblue {
  color: #062f5e !important; /*Farbe dunkel-blau für Schrift*/
}
.text-darkblue-50 {
  color: #3f5d84 !important; /* Hellere Variante für Untertitel etc. */
}

/*Color of text in navbar in dark blue*/
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-item {
  color: #062f5e !important;
}

/* 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: #062f5e; font-weight: bold; text-decoration: none; }
footer a:hover { color: rgb(225, 226, 170); text-decoration: underline; }

/* === BACK TO TOP BUTTON === */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-size: 24px;
  background-color: #062f5e;
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #225ea8;
}

/*==bottom-button bar with buttons for highlights==*/
.bottom-button-bar {
  /* Here could color background be set - Color of background from layout - can be done by command: background-color: */
  border-top: 2px solid #ccc;
}

.nav-icon-button {
  background-color: white;
  border: 2px solid #062f5e;
  border-radius: 12px;
  padding: 12px;
  width: 120px;
  text-align: center;
  color: #062f5e;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-icon-button:hover {
  background-color: #e0e7ef;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-icon-button img {
  width: 60px;
  height: 40px;
  margin-bottom: 8px;
}

.nav-icon-button span {
  font-weight: 600;
  font-size: 14px;
}
/*============================================*/

/* === Scroll Progress Bar mit Icon === */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background-color: transparent;
  z-index: 9999;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #47b04b;
  transition: width 0.2s ease-out;
}

/* Das laufende Icon */
#progress-icon {
  position: fixed;
  top: -8px; /* distance to nav bar  */
  left: 0;
  height: 24px;
  width: auto;
  pointer-events: none;
  transition: left 0.2s ease-out;
}

/*Rules for Navbar left */
#scrollspy-list .nav-link.active {
  background-color: #062f5e;
  color: white;
  font-weight: bold;
  border-radius: 4px;
}

#scrollspy-list .nav-link {
  color: #062f5e;
  padding: 6px 12px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

/*======================================================================================*/

/*Beginning of here you can add more CSS code*/

/*Members page - Style for member boxes */

.member button {
  background-color: #052d57;   /* dunkles Blau, wie bei alten Buttons */
  color: #ffffff;              /* Textfarbe */
  border: none;                /* keine Standard-Ränder */
  padding: 8px 16px;           /* Größe des Buttons */
  border-radius: 6px;          /* abgerundete Ecken */
  cursor: pointer;             /* Hand-Cursor */
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-top: 10px;            /* Abstand zum oberen Element */
}

.popupB {
  display: none;
  position: fixed;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;       /* nimmt 90% der Viewport-Breite, aber nie mehr als max-width */
  max-width: 600px; /* maximale Breite */
  max-height: 80vh;
  background-color: white;
  color: #052d57;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto;
  z-index: 1050;
  box-sizing: border-box;
}

.popupB.active { display: flex; flex-direction: column; }

.member {
  background-color: #f9f9f9;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.3s;
  border: 2px solid black; /* Black frame */
}

.member:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.member img {
  width: 100%;
  max-width: 160px;
  border-radius: 8px;
  margin: 10px auto;
}

.member .name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.member .highlight {
  font-size: 16px;
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}

.member .desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.member.expanded {
  position: fixed;       /* take it out of normal flow */
  top: 0;
  left: 0;
  width: 100vw;          /* full viewport width */
  height: 100vh;         /* full viewport height */
  z-index: 9999;         /* appear above everything */
  background: white;     /* or any background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease; /* smooth expansion */
}

.member.expanded .desc {
  max-height: none;      /* show all content */
  opacity: 1;
  overflow: auto;        /* allow scrolling if content is tall */
}

.desc-name {
  font-weight: bold;
  margin-top: 15px;
}

/*======================================================*/

/*Description page*/
section {
  padding-top: 40px;
  padding-bottom: 20px;
}

section h2 {
  font-size: 28px;
  color: #062f5e;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
/*======================================*/

/*Human Practices Page =================*/
/*section ul {
  padding-left: 20px;
  list-style-type: disc;
}

section p {
  font-size: 16px;
  line-height: 1.6;
}
*/

/*=====================Human practices============================================*/
/* Box for headers */
.human-practices-page .heading {
  background-color: #72e3ba93;
  color:#052d57;
  padding: 20px;
  margin: 30px 0 0px 0; /* top right bottom left margin */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* Box for content (e.g., intro text) */
.human-practices-page .content {
  background-color: rgba(169, 232, 237, 0.554);
  color: #052d57;
  padding: 20px;
  border-radius: 8px;
  margin: 5px 0 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.popup {
  display: none; /* hide by default */
  position: fixed;
  top: 10vh;
  left: 10vw;
  right: 10vw;
  bottom: 10vh;
  background-color: white;
  color: #052d57;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto;
  z-index: 1050;
  box-sizing: border-box;
}

/* Show popup when active */
.popup.active {
  display: flex;
  flex-direction: column;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #052d57;
  cursor: pointer;
  transition: color 0.3s ease;
}

.popup-close:hover {
  color: #1b5741;
}

/* Change Read more button color */
.human-practices-page button[onclick^="togglePopup"] {
  background-color: #052d57;
  color: whitesmoke;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin: 6px;
}

.human-practices-page button[onclick^="togglePopup"]:hover {
  background-color: #72e3ba93; /*A slightly ldifferent hover color */
}


/* Human Practices Intro Section */
.hp-intro {
  text-align: center;
  margin: 3rem auto;
  max-width: 1000px;
  padding-bottom: 2rem;   /* ensures space before footer */
  position: relative;     /* isolate this block */
  z-index: 0;             /* avoid stacking issues */
}

.hp-intro h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hp-intro-subtitle {
  font-size: 1.1rem;
  color: #052d57;
  margin-bottom: 2rem;
}

.hp-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
   width: 100%;            /* prevent shrinking */
}

.hp-intro-card {
  background: rgba(169, 232, 237, 0.554);
  border-radius: 15px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  position: relative;
  z-index: 1;  
}

.hp-intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.hp-intro-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #052d57;
}

.hp-intro-card .short {
  margin: 0;
  color: #444;
}

.hp-intro-card .more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0.5rem;
  color: #333;
}

.hp-intro-card.active .more {
  max-height: 300px; /* expands smoothly */
}


/*======================================================================================*/
/*=====================================*/

/*Beginning of here you can add more CSS code*/

/*Attributions Page */

.thankyou-box {
  border: 2px solid #000;       /* black border */
  border-radius: 12px;          /* rounded corners */
  padding: 20px;                /* space inside */
  margin: 30px auto;            /* space around */
  background-color: #72e3ba93;    /* light background */
  max-width: 900px;             /* prevent too wide */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* subtle shadow */
}


/*=====================================*/

/*Contributions Page */
/*========================================Contributions page==============================================*/

/*Contributions page collapsible boxes*/



.container-contribution{
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.collapsible-header-contribution {
  background-color: #72e3ba93;
  color:  #062f5e;
  padding: 20px;
  margin-top: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.collapsible-header-contribution:hover {
  background-color: #72e3ba93;
}

.plus-sign {
  font-size: 24px;
  margin-right: 20px;
  font-weight: bold;
}

.collapsible-content-contribution {
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 20px;
  display: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/*======================================================================================*/
/*=====================================*/

/*Design Page */


/*=====================================*/

/*Engineering Page */
/*hidden text*/
.collapsible {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
}

/*title box*/
.collapsible-summary {
  cursor: pointer;
  text-align: left;
  padding: 20px;
  font-size: 1.25rem;
  font-weight: bold;
  background-color:rgb(132, 229, 168) ;
  user-select: none;
}

.collapsible-content {
  padding: 20px;
  border-top: 1px solid rgb(132, 229, 168);
}

/*=====================================*/

/*Entrepreneurship Page */


/*=====================================*/

/* =========================================================
   Experiments Page
   Scope: .page-experiments …
   Keeps Bootstrap grid/utilities intact.
   ========================================================= */

/* ===== Experiments – modern, scoped tokens ===== */
.page-experiments {
    /* Local design tokens (affect only this page) */
    --exp-accent: #225ea8;        /* link/focus/accent */
    --exp-accent-2: #47b04b;      /* step border accent */
    --exp-surface: #ffffff;       /* card surface */
    --exp-muted: rgba(0,0,0,.55); /* meta text */
    --exp-ring: color-mix(in oklab, var(--exp-accent) 45%, white);
    --exp-shadow: 0 6px 20px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.08);
    --exp-shadow-hover: 0 10px 28px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.12);
    --exp-radius: 14px;
}

/* Card refresh: softer radius, subtle hover */
.page-experiments .card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--exp-radius);
    box-shadow: var(--exp-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    background: var(--exp-surface);
}
.page-experiments .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--exp-shadow-hover);
}

/* Header underline accent */
.page-experiments .card-header {
    border-bottom: 0;
    padding-bottom: .4rem;
}
.page-experiments .card-header h3 {
    position: relative;
    margin-bottom: .25rem;
}
.page-experiments .card-header h3::after {
    content: "";
    position: absolute; left: 0; bottom: -6px;
    width: 56px; height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--exp-accent), var(--exp-accent-2));
    opacity: .9;
}

/* Meta list tone-down */
.page-experiments .exp-meta { color: var(--exp-muted); }
.page-experiments .exp-meta strong { color: inherit; }

/* Footer buttons: subtle pill style */
.page-experiments .card-footer {
    background: transparent;
    border-top: 1px dashed rgba(0,0,0,.08);
}
.page-experiments .card-footer .btn {
    border-radius: 999px;
    padding-inline: .85rem;
}

/* Small, tasteful chips for tags (if you add any <span class="chip">PCR</span>) */
.page-experiments .chip {
    display: inline-block;
    padding: .2rem .5rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--exp-accent) 12%, white);
    color: #0d2b4d;
    font-size: .75rem;
    border: 1px solid rgba(0,0,0,.06);
}

/* Headline micro-typography – Experiments */
.page-experiments header .section-title__heading,
.page-experiments header .display-4 {
    letter-spacing: 0.02em;
}

/* Compact small buttons in the "Browse" toolbar */
.page-experiments .btn.btn-sm {
    line-height: 1.2;
    padding-inline: .6rem;
}

/* Cards: subtle hover lift to improve discoverability */
.page-experiments .row.g-4 > [class*="col-"] .card {
    transition: transform .08s ease, box-shadow .08s ease;
}
.page-experiments .row.g-4 > [class*="col-"] .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.06);
}

/* Materials list: tidy spacing (applies to any Materials section) */
.page-experiments [aria-labelledby$="-materials-title"] ul {
    margin-bottom: 0;
    padding-left: 1.1rem; /* aligns with Bootstrap rhythm */
}

/* Anchor jumps: keep targets visible below a (potential) fixed navbar */
.page-experiments :target { scroll-margin-top: 6rem; }

/* Experiments-specific grid handle (reserved for future tuning) */
.protocol-grid .card { /* placeholder for experiments-specific adjustments */ }

.page-experiments :target { outline: 2px solid currentColor; outline-offset: .25rem; }
.page-experiments h2,
.page-experiments h3,
.page-experiments h4 { scroll-margin-top: 6rem; } /* adjust for fixed navbar */

.page-experiments .exp-meta li + li { margin-top: .15rem; }

.page-experiments .exp-step { margin-bottom: .5rem; border: 1px solid rgba(0,0,0,.1); border-radius: .375rem; background: #fff; }
.page-experiments .exp-step__summary {
    cursor: pointer;
    padding: .75rem 1rem;
    list-style: none;
}
.page-experiments .exp-step__summary:focus { outline: 2px solid currentColor; outline-offset: 2px; }
.page-experiments .exp-step__summary::-webkit-details-marker { display: none; }
.page-experiments .exp-step[open] .exp-step__summary { border-bottom: 1px solid rgba(0,0,0,.1); }
.page-experiments .exp-step__content { padding: .75rem 1rem; }

.page-experiments .card-footer .btn { white-space: nowrap; }
/*=====================================*/

/*Home Page */


/*=====================================*/

/* =========================================================
   Notebook Page
   Scope: .page-notebook …
   ========================================================= */

/* ===== Notebook – modern, scoped tokens ===== */
/* Notebook page layout */
.notebook-page {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

/* Navigation (left) */
.notebook-nav {
  flex-shrink: 0;
  width: 220px;
  top: 100px; /* for sticky offset from top */
}
.notebook-nav .nav-link {
  color: #062f5e;
  padding: 0.5rem 0;
}
.notebook-nav .nav-link:hover {
  text-decoration: underline;
}

/* Content area */
.notebook-content {
  flex-grow: 1;
}

/* individual experiment blocks */
.exp-block h2 {
  margin-top: 2rem;
  color: #062f5e;
  border-bottom: 2px solid #ccc;
  padding-bottom: 8px;
}

/* PDF embed */
.pdf-embed {
  margin-top: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

/* Responsive: on small screens, nav becomes top menu */
@media (max-width: 768px) {
  .notebook-page {
    flex-direction: column;
  }
  .notebook-nav {
    width: 100%;
    margin-bottom: 1.5rem;
    position: static;
  }
}

/*=====================================*/

/*Parts Page */
/*table*/
.my-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.my-table th,
.my-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.my-table th {
  background-color: #f2f2f2;
}

/*=====================================*/

/*Results Page */

.results-section-title {
    background-color: #72e3ba93;    
    padding: 12px 20px;
    border-radius: 8px;
    color: #062f5e;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    box-shadow: 3px 3px 8px 0 rgba(0, 0, 0, 0.57);
  }

  .results-subsection-title {
    color: #062f5e;     /* color of text */
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 8px;
    /*font-weight: bold;*/  /* bold if we want to */
    border-bottom: 1px solid #062f5e; /* thin line under the text */
    padding-bottom: 4px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 1rem;
}

.results-table caption,
.results-figure figcaption {
  caption-side: top;
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: bold;
  color: #6d8198;
}

.results-figure img {
  max-width: 100%;
  border-radius: 4px;
}

.results-table th, 
.results-table td {
  border: 1px solid #ccc;
  padding: 10px 15px;
  text-align: left;
}

.results-table th {
  background-color: #72e3ba93;
  color: #062f5e;
}

.Pyricloning-Infobox {
  display: block;
  position: relative;
  overflow: visible;
  border-radius: 14px;
  background: #ffffff; /* dark blue rectangle */
  color: #062f5e;
  text-decoration: none;
  padding: 26px 24px 26px 80px; /* left padding to account for circle overlap */
  min-height: 160px;
  box-shadow: 0 6px 18px rgba(20,30,40,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Results overview cards */
.results-overview .overview-card {
  display: block;
  position: relative;
  overflow: visible;
  border-radius: 14px;
  background: rgba(169, 232, 237, 0.554); /* dark blue rectangle */
  color: #ffffff;
  text-decoration: none;
  padding: 26px 24px 26px 80px; /* left padding to account for circle overlap */
  min-height: 160px;
  box-shadow: 0 6px 18px rgba(20,30,40,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.results-overview .overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(20,30,40,0.18);
}

/* Circle icon overlapping edge */
.results-overview .card-icon {
  position: absolute;
  left: -42px;     /* half of circle width outside */
  top: 50%;
  transform: translateY(-50%);
  width: 84px;
  height: 84px;
  background: #508ac0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(20,30,40,0.12);
  z-index: 2;
}

/* Icon inside circle */
.results-overview .card-icon img {
  width: 56%;
  height: 56%;
  object-fit: contain;
  display: block;
}

/* Text styling */
.results-overview .card-content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: #334657;
}

.results-overview .card-content ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 14.5px;
  line-height: 1.45;
  color: #334657;
}

.results-overview .card-content li {
  margin-bottom: 8px;
}

/* Responsive (mobile: circle on top) */
@media (max-width: 767.98px) {
  .results-overview .overview-card {
    padding: 76px 18px 20px 18px; /* move text down */
    min-height: 140px;
  }
  .results-overview .card-icon {
    left: 50%;
    top: -32px;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
  }
  .results-overview .card-content h3 { 
    font-size: 18px; 
    text-align: center; 
  }
}




/*=====================================*/

/*Safety Page */


/*=====================================*/

/*Supporters Page */
/* General sponsor section layout */
.sponsor-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* Left column = image */
.sponsor-section .left-column {
  flex: 1;           /* takes 1 part */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Right column = text */
.sponsor-section .right-column {
  flex: 2;           /* takes 2 parts */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Paragraphs */
.sponsor-section p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0;
}

/* Images */
.vehicle-img, .vehicle-image {
  width: 100%;
  max-width: 250px;  /* keeps them from being huge */
  height: 200px;     /* uniform height */
  object-fit: contain; /* keeps proportions */
  border-radius: 8px;
}

/* Reverse layout (image on right, text on left) */
.sponsor-section.reverse {
  flex-direction: row-reverse;
}

/* Spacing between sections */
.sponsor-section + .sponsor-section {
  margin-top: 2rem;
}

* {
  box-sizing: border-box;
}

/* ======Do not activate this part again! We have already a css part for the body!=========
body {
  margin: 0;
  padding: 20px;
  font-family: sans-serif;
  background: #f5f5f5;
}
===========================================================================================*/

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

.card-container {
  perspective: 1000px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

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

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

.card-side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  font-size: 1.25rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.card-front {
  background-color: white;
}

.card-back {
  background-color: #88e4ac;
  transform: rotateY(180deg);
  font-size: 1.25rem;
  line-height: 1.4;
  padding: 15px;
  color: #052d57;
}

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


/*=====================================*/
/*Education Page */
/* Box for headers */
.education-page .heading_education {
  background-color: #72e3ba93;
  color:#052d57;
  padding: 20px;
  margin: 30px 0 0px 0; /* top right bottom left margin */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* Box for content (e.g., intro text) */
.education-page .content_education {
  background-color: white;
  color: #052d57;
  padding: 20px;
  border-radius: 8px;
  margin: 5px 0 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* -------------------------------------------------- */
/* Honeycomb Navigation for Education Page */
/* -------------------------------------------------- */

.edu-honeycomb {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 3rem auto;
}

.hex {
  width: 160px;
  height: 138.56px; /* width * sqrt(3)/2 */
  background-color: #ffd54f;
  clip-path: polygon(
    25% 0%, 75% 0%, 
    100% 50%, 75% 100%, 
    25% 100%, 0% 50%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  position: absolute;
  transition: transform 0.3s, background 0.3s;
}

/* Colors */
.hex1 { background: #ff8a65; }
.hex2 { background: #ffd54f; }
.hex3 { background: #4dd0e1; }
.hex4 { background: #81c784; }
.hex5 { background: #ba68c8; }
.hex6 { background: #ffb74d; }
.hex7 { background: #f06292; }

/* Hover */
.hex:hover {
  transform: scale(1.05);
  background: #5481b5;
}

/* Positioning the flower layout */
.hex1 { left: 170px; top: 170px; } /* center */
.hex2 { left: 170px; top: 32px; }  /* top */
.hex3 { left: 290px; top: 100px; }  /* top-right */
.hex4 { left: 290px; top: 239px; } /* bottom-right */
.hex5 { left: 170px; top: 308px; } /* bottom */
.hex6 { left: 50px;  top: 239px; } /* bottom-left */
.hex7 { left: 50px;  top: 100px; }  /* top-left */

/* Smooth scrolling for anchors */
html {
  scroll-behavior: smooth;
}

/* Optional offset so headings aren’t hidden behind navbars */
[id] {
  scroll-margin-top: 100px;
}

/*=========Styling to center images===========*/

.center-img { display: block; margin-left: auto; margin-right: auto; } /* Used to center images to the center of a container */

/*===================Spider==================*/

#spider {
  position: fixed;
  top: 0;
  left: 20px; /* adjust: distance from screen edge */
  font-size: 50px; /* size of spider emoji */
  z-index: 10000;
  transition: top 0.2s ease-out;
  transform: rotate(180deg); /* flip the spider upside down */
}
/* Draw the thread */
#spider::before {
  content: "";
  position: absolute;   /* anchor it relative to the spider */
  top: 67%;         /* change this based on size of the spiderr */
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100vh;
  background-color: #333;
}


/*=====================================*/


/*===================Wave==================*/
/*
.custom-wave-svg {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: 0px; 
  min-height: 100px;
  max-height: 150px;
  transform: rotate(180deg);
}
*/
.custom-wave-container {
  margin-bottom: 0;      /* remove bottom gap */
  margin-top: 0;         /* remove any top gap if present */
  position: relative;    /* keep relative positioning */
}

.custom-wave-svg {
  display: block;        /* removes inline spacing below SVG */
  margin: 0;             /* ensure no extra margin */
  transform: rotate(180deg) translateY(50px); /* pull up waves to hide gap */
}


/* Animation for wave layers */
.custom-wave-parallax > use {
  animation: custom-move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.custom-wave-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.custom-wave-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.custom-wave-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

@keyframes custom-move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Optional mirrored wave */
.custom-wave-mirrored {
  transform: scaleX(-1);
  overflow: visible;
}

/*=====================================*/

/* --- Header Text Box Styling --- */
.header-text-box {
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent dark overlay */
  display: inline-block;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  max-width: 80%;
  margin-top: 2rem;
  backdrop-filter: blur(3px); /* adds a nice frosted glass effect */
}

/* Optional light version for pages with bright header images */
.header-text-box.light {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Add transition for subtle fade when switching pages */
.header-text-box h1,
.header-text-box p {
  transition: color 0.3s ease;
}

/*Style for video container*/
.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
  width: 100%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*CSS for pop up window on homepage*/

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); /* start totally transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1000;
}

/* Show popup overlay with fade-in */
.popup-overlay.active {
  visibility: visible;
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

/* Popup box – slides up + fades in */
.popup-content {
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  padding: 2em 3em;
  max-width: 600px;
  width: 90%;              /* <– instead of fixed width: fills 90% of screen on small devices */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.5s ease forwards;
  transform: translateY(20px);
  opacity: 0;

  max-height: 80vh;        /* <– never taller than 80% of screen height */
  overflow-y: auto;        /* <– scroll inside popup if content is too long */
  box-sizing: border-box;  /* <– padding included in width */
}
/* Fade-in + slight slide-up */
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Button style */
#closePopup {
  background-color: #004d40;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.4em;
  font-size: 1em;
  cursor: pointer;
  margin-top: 1em;
  transition: background 0.2s ease;
}
#closePopup:hover {
  background-color: #00695c;
}

@media (max-width: 400px) {
  .popup-content {
    padding: 1.2em 1.5em;  /* less padding = more space */
    font-size: 0.9em;      /* slightly smaller text */
  }

  #closePopup {
    width: 100%;           /* big, easy-to-tap button on mobile */
  }
}

