/* ============================= GLOBAL STYLES =============================*/
h1, h2, h3, h4, h5 {
  color: #ffffff;
  scroll-margin-top: 100px; 
}

h2 {
  border-bottom: var(--color-accent) 3px solid;
  text-align: center;
  margin-top:2rem;
  margin-bottom: 2rem;
  font-size: 2.0rem !important;
  font-weight: bold !important;
}

p {
  color: white;
  text-align: justify; 
  font-size: 1rem; 
}
b{
  color: white;
  margin-left: 1rem;
}
li {
  color: white;
   text-align: left; 
  font-size: 1rem; 
}
a {
  color: #ff009d;
  text-decoration-style: wavy;
}
code {
	color: #ff7800;
	background: #ff780030;
	border-radius: 2em;
	border-width: 1em;
	padding: .2em .6em .1em .6em;
}
mjx-math{
  display: inline-block !important;
}

body {
  padding: 0;
  min-height:100vh;
  font-family: "Ubuntu", "bahnschrift light", "Helvetica Neue", sans-serif, Arial ;
  background: url("https://static.igem.wiki/teams/5690/graphics/deep-sea-slide-bg.webp") no-repeat center center;
  background-size: cover;
  background-color: #001014; 
  position: relative; 
  scroll-behavior: smooth;
  overflow-x: hidden;
}
.left-aligned {margin-left: auto; display: flex; justify-content: flex-start;}

.bg-dark { background-color: hsla(0, 100%, 50%, 0)!important;}

.main-content {
  padding: 0.5rem;
  max-width: 900px;
  width: 100%; 
  flex: 1;
  min-width: 0; 
}
.page-wrapper {
  display: flex;        
  align-items: flex-start; 
    min-height: 100vh;
      justify-content: center; 
  padding: 1rem; 
  gap: 2rem;
  background: transparent;
  overflow: visible !important; 
  position: relative;
}
.page-wrapper h4 {
  color: var( --color-accent)
}
.page-container {
  position: relative;  
  display: flex;            
  align-items: stretch;     
  justify-content: center;  
  margin: 0 auto;         
}
.col-md-4 {
  display: flex;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-bottom: 1.5rem; 
  align-items: center;   
  justify-content: center;  
}

.text-col{
  max-width: 1024px;
}
.img-fluid {
  width: auto;         
  height: auto;        
  object-fit: contain; 
}
.picture {
  width: 100%;
  max-width: inherit;
  height: auto;
  object-fit: cover;    
  display: block;
  margin-bottom: 1rem;
  border-radius: 1.5rem;   
  overflow: hidden;    
}

.picture_rounded {
  width: 100%;
 height: 30rem;
  object-fit: cover;
  overflow: hidden;
    margin-bottom: 1rem;
  border-radius:1.5rem;   
}

.highlight {
  color: #ffffff;    
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem; 
}
.mobile-title {
  display: none;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  color: var(--color-accent); 
  margin: 1rem 0;
}
@media (max-width: 992px) {
  .mobile-title {
   display: block;
  }
}
/* ============================= Scrollbar============================= */

body::-webkit-scrollbar {
  width: 10px;            
}
body::-webkit-scrollbar-track {
  background: #001014;        
}
body::-webkit-scrollbar-thumb {
  background-color: #ff007f; 
  border-radius: 6px;      
  border: px solid #ff007f;  
}
body::-webkit-scrollbar-thumb:hover {
  background-color: #ff7bd1ff; 
}
/* ============================= NAVBAR============================= */
.logo {
  position: relative;
  display: inline-block;
  padding-left: 1%;
  width: 7rem; 
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}
.nav-link {
  background-color: transparent;
  color: #ffffff;
  border-radius: 1.5rem;;
  margin: 0.5rem;
  transition: all 0.5s ease;
  display: inline-block;
  opacity: 1;
  visibility: visible;
  padding: 0.4rem 1rem 0.3rem 1rem !important;
}
.nav-link:hover,
.nav-link:active,
.nav-link:focus {
  background-color: rgb(17, 49, 63);
  color: #ffffffff;
}
.navbar {
  position: relative;
  padding: 1rem 0rem;
}
.navbar-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-transparent {
  background-color: rgba(35, 38, 51, 0) !important;
  transition: background-color 0.5s ease;
}
.navbar-opaque {
  background-color: rgb(15, 15, 15) !important;
  transition: background-color 0.5s ease;
}
@supports not (gap: 10px) {
  .navbar-nav > * { margin-right: 10px; }
  .navbar-nav > *:last-child { margin-right: 0; }
}

/* ============================= DROPDOWN MENU (Base) ============================= */
.dropdown-menu {
  background-color: #001014;
  color: #ffffff;
    border-radius: 1.5rem;
  padding: 0.75rem 1rem;       
  position: absolute;
  z-index: 100;
  min-width: 10rem;
  max-width: 90vw;
  width: max-content;  
  border:0px !important;       
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.2s ease;
  transform: translateY(0.25rem); 
}
ul.dropdown-menu{
  border:0px !important;
}
.dropdown-item {
  color: #ffffff;
  display: block;
  padding: 0.5rem 1rem;         
  margin: 0;                     
    border-radius: 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  background-color: #00aeff33;   
  color: #00ffffff;
}
.navbar .nav-item.dropdown:hover > .dropdown-menu,
.navbar .nav-item.dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); 
}
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
}
.navbar .dropdown-menu {
  transition: all 0.2s ease-in-out;
}
.navbar-toggler {
  border-color: rgb(240, 2, 169);

}/* ============================= DESKTOP (>= 992px) ============================= */
@media (min-width: 992px) {
  .dropdown-menu {
    width: auto;
    max-width: 60vw;
  }
  .navbar-nav > .nav-item:last-child { margin-left: auto; }

  .navbar-nav > .dropdown:last-child .dropdown-menu {
    right: 0;
    left: auto;
  }

  .navbar-expand-lg .navbar-nav .dropdown-menu {
  position: absolute;
    right: auto;
    left: auto;

}
}
/* ============================= SIDEBAR ============================= */
.toc {
  display: flex;
  position: sticky;
  height: 60vh;
}
.sidebar {
  padding: 1rem;
  margin: 0.2rem 0; 
  padding-right: 2rem;
  width: 20rem;
  height: 50vh;
  line-height: 2rem;
  position: sticky !important;
  top: 5rem;
  border-radius: 1.5rem;    
}

.sidebar a {
  color: white;               
  font-size: 1rem;          
  text-decoration: none;      
  white-space: nowrap;        
  display: inline-block;     
  padding: 0.3rem .8rem 0.15rem .8rem;
  border-radius: 1.5rem;       
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0.2rem 0; 
  scroll-margin-top: 100px; 
}

.sidebar a:hover,
.sidebar a:focus,
.sidebar a.active {
  /*background-color: #00fbff7b; */
  background-color:  rgb(from var(--color-accent) r g b / calc(alpha - 0.25));  
  color: #ffffff;   
  margin: 0.2rem 0;          
}
.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar .toc ul li a:hover 
.sidebar .toc ul li a:active,
.sidebar .toc ul li a:focus {
  color: #ffffff !important;
  background-color: rgb(from var(--color-accent) r g b / calc(alpha - 0.25));  
  transform: translateX(3px);
}

.sidebar ul ul {
  display: none;
  margin-left: 1.1em;
  font-size: 0.9em;
  padding-left: 0.7em;
  margin-top: 0.3rem;
}

.sidebar .toc ul li:hover > ul,
.sidebar .toc ul li:focus-within > ul {
  display: block;
}

/* ============================= Footer Bubble  ============================= */

.footer-bubble {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.5rem;  
  border-radius: 1.5rem;
  background-color: #0d1013;
  color: #ffffff;
  font-size: 1rem;        
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.4s ease, transform 0.2s ease;
  cursor: pointer;
  z-index:4;
}
.footer-bubble:hover,
.footer-bubble:focus,
.footer-bubble:active {
  background-color: #ff009d;
  color: #ffffff;
  transform: scale(1.0);
  box-shadow: 0 0 15px #ff009d;
}
/* ============================= Links on site ============================= */
a.redirecting_link {
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: 2px 4px;
  transition: all 0.4s ease;
  border-radius: 4px;
}
a.redirecting_link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -0.1em;
  width: 6px;
  height: 6px;
  background: #FFA500;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
a.redirecting_link:hover::after {
  width: calc(100% + 8px);
  height: calc(100% + 4px);
  left: -4px;
  top: -4px;
  transform: translateY(0);
  background: rgba(255, 166, 0, 0.37);
  border-radius: 12px;
  border: 1px solid rgba(255, 166, 0, 0.55);

}

a.redirecting_link:hover {
  color: inherit;
  text-decoration: none;
}

/* ============================= Side Panel Background ============================= */
.side-panel {
  position: absolute; 
  top: 0;
  width: 9rem;
  height: 100%; 
  background-size: auto; 
  background-repeat: repeat-y;
  z-index: -2;
}

.side-panel.left {
  left: 0;
  background-image: url("https://static.igem.wiki/teams/5690/graphics/rocky-wall-repeatable-object-left-1.webp");

}

.side-panel.right {
  right: 0;
  background-image: url("https://static.igem.wiki/teams/5690/graphics/rocky-wall-repeatable-object-right.webp");
}

/* ============================== back to top ================= */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: none;
  place-items: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.2s ease;
  opacity: 0.75;
}

#back-to-top:hover { transform: translateY(-3px); opacity: 1; }
#back-to-top:active { transform: translateY(-1px) scale(0.99); }

#back-to-top svg { width: 100%; height: 100%; display: block; }

#progress-circle .progress {
  transition: stroke-dashoffset 0.25s linear;
}

#back-to-top .back-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  line-height: 1.3;
  color: white;
  text-align: center;
  z-index: 2;       
  font-family: "bahnschrift light", "Helvetica Neue", Arial, sans-serif;
  font-weight: bold;
  text-transform: lowercase;
}



/* ============================= FOOTER ============================= */

footer {
  color: white;
  padding: 3rem 0;
  background-color: transparent; 
  z-index: 1;   /*otherwise it will overlap the content  */ 
	position: static;
	width: 100vw;
          
}
.footer-background {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100vw;
	height: 73vw;
	background: url("https://static.igem.wiki/teams/5690/graphics/footer-rocky-rna-floor.webp") no-repeat bottom center;
	z-index: -1;
	/* pointer-events: none; */
	background-size: cover;
	background-position: center;
}

footer .container {
  position: relative;
  z-index: 2; 
  width: 100%;
}

footer h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #00fbffff; 
; 
}

footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
footer a:hover {
  color: #00fbffff; 
}

footer p {
  text-align: right;       
}
footer li {
margin-bottom: 1rem;
}
footer .row.mt-4 .col p {
  text-align: center; 
  margin-bottom: 0;  
}

footer .col-lg-6 {
	flex: 0 0 auto;
	width: 50%!important;
}

.footer-logo {
  position: absolute;
  bottom: 10px;
  left: 20px;
}

.footer-logo img {
  height: 150px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1;
}


/* ============================= Sponsor Banner  ============================= */
.sponsor-banner {
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.579);
  padding: 10px 0;
  height: 10vh;
  border-radius: 1.5rem;
}

.sponsor-track {
  display: flex;
  align-items: center;
  height: 100%;
}

.sponsor-track-inner {
  display: flex;
  animation: scroll-sponsors 60s linear infinite;
  height: 100%;
}

.sponsor-track-inner a {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 2vw;
}
.sponsor-track-inner img {
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
}
@keyframes scroll-sponsors {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
/* ============================= Sponsor Background  ============================= */

.logo-container {
  background-color: white;   
  border-radius: 15px;      
  padding: 20px;            
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
  margin-bottom: 20px;      
}
/**=======================Site head=====================**/
.sitehead-container {
    width: 100%;         
    max-width: 1200px;   
    margin: 1rem auto;    
    position: relative;
    border-radius: 2rem;  
    overflow: hidden;     
}
.sitehead-container img {
    width: 100%;
    height: 400px;        
    object-fit: cover;
    object-position: center bottom;
    display: block;
    border-radius: inherit; }

#connie_header {
  position: absolute;
  top: 10%;
  left: 10%;
  transform: translate(-150%, -50%);
  width: 250px;
  max-width: 100%;
  height: auto;
  z-index: 10;
}

/* ============================= Glossary ============================= */

.glossary p{
  text-align: left;
  max-width: 80ch;
  overflow-wrap: break-word;
  hyphens: auto;
}
.glossary h1 {
  color: #ff3300ab; 
}
.glossary h3 {
  color: #fda137; 
}
.glossary .sidebar {
  overflow-y: auto !important;        
  overflow-x: hidden !important; 
   scrollbar-width: none;

}
.glossary .sidebar a:hover,
.glossary .sidebar a:focus,
.glossary .sidebar a.active {
    background-color: #ff3300ab !important; 
}
/*============================  glossary basti ===================*/
.glossary-entry {
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  text-align: block;
  opacity: 0.3;
  filter: blur(4px);
  transition: opacity 0.5s, filter 0.5s;
  position: relative;
  z-index: 1;
}
.glossary-entry.visible {
  opacity: 1;
  filter: blur(0);
  z-index: 2;
}

/*============================ Connie and Speechbubble on the right site ===================*/

.connie-site {
  position: absolute;
  width: auto;
  left:100%;
  margin:2rem;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;         
  justify-content: space-between;
  align-items: center;
  height: auto;
  z-index: 2;
}

.connie-side  {
  width: 10rem !important;
}
.connie-site{
  width: 15rem;
}
.speech-bubble-side p {
  font-size: 0.8rem; 
   text-align: center;
    font-style: italic;
}
.connie-site .speech-bubble-side {
  position: relative;
  margin-bottom: 0rem;
  background: #041922;
  border: 2px solid #f5ffeb9f;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 10px #9bf25dd7, 0 0 15px rgba(177, 240, 129, 0.81);

}
.connie-site .speech-bubble-side::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #041922 transparent transparent transparent;
}
.connie-hidden {
  opacity: 1;
  transform: translateX(-50px) translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.connie-visible {
  opacity: 0;
  transform: translateX(0) translateY(0);
}



/*********************** Loader ***************************/
.loader-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100; 
  text-align: center;
  color: #fff;
}
.loading-text {
color: rgba(255, 255, 255, 1);
font-size: 1rem;
font-family: "Ubuntu", "bahnschrift", "Helvetica Neue", sans-serif, Arial;
margin: 3rem;
}
.dots::after {
content: '';
display: inline-block;
width: 1ch;
text-align: left;
animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
0%, 20% { content: ''; }
40% { content: '.'; }
60% { content: '..'; }
80%, 100% { content: '...'; }
}

:root {
  --color-bg1: rgb(4, 25, 34);
  --color-bg2: rgb(0, 16, 20);
  --color1:   0, 198, 248 ;       /* g1 */
  --color2: 255, 0, 76;       /* g2 */
  --color3: 230, 168, 0;       /* g3 */
  --color4:0, 196, 16;       /* g4 */
  --color5: 0, 101, 252;       /* g5 */
  --color-interactive:255, 0, 191;
  --circle-size: 50%;
  --blending: hard-light;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 9999;
  background: linear-gradient(135deg, var(--color-bg1), var(--color-bg2));
  touch-action: none;
}

.gradients-container {
  filter: url(#goo) blur(40px); 
  width: 100%;
  height: 100%;
}

.g1, .g2, .g3, .g4, .g5, .interactive {
  position: absolute;
  opacity: 0.9; 
}
.g1 {
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1),0) 50%);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size)/2);
  left: calc(50% - var(--circle-size)/2);
  animation: moveVertical 30s ease infinite;
}
.g2 {
  background: radial-gradient(circle at center, rgba(var(--color2),0.8) 0, rgba(var(--color2),0) 50%);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size)/2);
  left: calc(50% - var(--circle-size)/2);
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
}
.g3 {
  background: radial-gradient(circle at center, rgba(var(--color3),0.8) 0, rgba(var(--color3),0) 50%);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size)/2 + 200px);
  left: calc(50% - var(--circle-size)/2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
}
.g4 {
  background: radial-gradient(circle at center, rgba(var(--color4),0.8) 0, rgba(var(--color4),0) 50%);
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size)/2);
  left: calc(50% - var(--circle-size)/2);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}
.g5 {
  background: radial-gradient(circle at center, rgba(var(--color5),0.8) 0, rgba(var(--color5),0) 50%);
  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
}
.interactive {
  background: radial-gradient(circle at center, rgba(var(--color-interactive),0.8) 0, rgba(var(--color-interactive),0) 50%);
  width: 100%;     
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0.7;
  pointer-events: none; 
  transform: translate(-50%, -50%); 
}
/* Animations */
@keyframes moveInCircle {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
@keyframes moveVertical {
  0% { transform: translateY(-50%); }
  50% { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}
@keyframes moveHorizontal {
  0% { transform: translateX(-50%) translateY(-10%); }
  50% { transform: translateX(50%) translateY(10%); }
  100% { transform: translateX(-50%) translateY(-10%); }
}

/*********************** Introbox ***************************/

.introbox {
  justify-content: flex-end ; 
  max-width: 700px ;
  margin-left: auto;
  margin-right: 3rem;
  text-align: center ;
  border: 0.5rem solid rgb(from var(--color-accent) r g b);   ;
  background: #ffffff ;
  border-radius: 2rem ;
  padding: 1rem ;
  font-size: 1.2rem;
  font-weight: bold;
  opacity:0;
  transition: opacity 0.5s;
}
.introbox.show {
  opacity: 1;
}

.speech-bubble-note {
  position: relative;
}

.speech-bubble-note::after {
content: "";
position: absolute;
top: 0; 
left: 20%;
transform: translateX(-80%) translateY(-100%); 
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-bottom: 15px solid #ffffff; 
border-top: 0;
}

/******==================rollup***************/

.rollup {
  overflow: hidden;
  cursor: pointer;
  border-radius: 1rem;
  background-color: #00000048;
  transition: all 0.3s ease;
  position: relative;
  margin: 1rem 4rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3),
              0 0 6px var(--color-accent);
}

.rollup p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem;
  font-size: 1rem;
}
.rollup h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  color: #ffffff;
  text-align: center;
  margin: 1rem !important;
}
 .rollup h3::after {
  content: '+';
  font-weight: bold;
  color: white;
  transition: transform 0.3s ease, content 0.3s ease;
}

.rollup.expanded h3::after {
  content: '−';
}


.rollup:not(.expanded) p,
.rollup:not(.expanded) img,
.rollup:not(.expanded) h4,
.rollup:not(.expanded) figcaption,
.rollup:not(.expanded) ul,
 .rollup:not(.expanded) ol,
 .rollup:not(.expanded) hr, 
 .rollup:not(.expanded) table,
 .rollup:not(.expanded) b
{
  display: none; 
}

.rollup.expanded p,
.rollup.expanded h4,
.rollup.expanded img, 
.rollup.expanded figcaption,
.rollup.expanded ul,
.rollup.expanded ol,
.rollup.expanded hr,
 .rollup.expanded b
{
  display: block;
}

.rollup.highlight:not(.expanded) .rollup-content {
  max-height: 0; 
  overflow: hidden;
}


/* ============================= Carousel ============================= */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: visible;
  aspect-ratio: 15/8; 
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 2;
}
.carousel-slide.prev-peek {
  opacity: 0.6;
  transform: scale(0.8) translateX(-20%);
  z-index: 1;
}
.carousel-slide.next-peek {
  opacity: 0.6;
  transform: scale(0.8) translateX(20%);
  z-index: 1;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease;
}
.carousel-arrow:hover {
  background: rgba(255,0,157,0.8);
}
.carousel-arrow.left { left: -3rem; }
.carousel-arrow.right { right: -3rem; }
/* Screensaver */
#screensaver-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#screensaver-overlay.visible {
  opacity: 1;
}

#screensaver-img {
  position: absolute;
  width: 200px;
  height: auto;
  user-select: none;
  pointer-events: none;
  transition: filter 0.2s, transform 0.3s ease;
  filter: drop-shadow(0 0 30px #fff);
}

/* Flip animation on bounce */
#screensaver-img.flip {
  transform: scaleX(-1) rotateY(180deg);
}

/* ============================= Bigger pictures ============================= */
.float-figure {
  float: right;           
  max-width: 450px;       
  margin: 0rem 2rem;   
  text-align: left;     
  cursor: pointer; 
 
}

.float-figure img {
  max-width: 100%;         
  height: auto;
  border-radius: 0.5rem;
}

.float-figure figcaption {
  font-size: 0.9rem;
  color: #fff;            
  margin-top: 0.3rem;
}

.full-width-figure {
  display: block;
  width: 90%;
 text-align: left;  
  margin: 0rem 2rem;  
 cursor: pointer; 
 
}

.full-width-figure img {
  width: 100%; 
  max-width:600px;             
  height: auto;           
  max-width: 100%;        
}

.full-width-figure figcaption {
  font-size: 0.9rem;
  color: #fff;           
  margin-top: 0.3rem;
}
.float-figure:hover img,
.full-width-figure:hover img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

@media (hover: none) {
  .float-figure img,
  .full-width-figure img {
    transform: none; 
  }
  }

  .image-lightbox {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.69);
  object-fit: contain;
}

.image-lightbox .close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: none;
}

/* ============================= Tables ============================= */

.deepsea-table {
  width: auto;
  border-collapse: separate; 
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
  margin: 1rem auto;
  font-size: 1rem;
  color: #b3f0ff;
  background: linear-gradient(to bottom, #00121a, #00060d);
}

.deepsea-table thead {
  background: linear-gradient(90deg, #007c42, #001a20);
  color: #ffffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: auto;
}

.deepsea-table th, .deepsea-table td {
  padding: 1rem 1rem;
  text-align: left;
  background: transparent;
}

.deepsea-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s, box-shadow 0.3s;
}

.deepsea-table tbody tr:hover {
  background: radial-gradient(circle at center, rgba(0, 90, 20, 0.3), rgba(0, 20, 4, 0.2));
  box-shadow: 0 0 12px rgba(0, 255, 55, 0.08);
}

.deepsea-table td:first-child {
  color: #007c42;
  font-weight: 600;
}

.deepsea-table td:nth-child(2) {
  color: #00ccff;
  text-align: left;
  font-family: "Courier New", monospace;
}



/*============================ Connie and Speechbubble on the right site ===================*/
.connie-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connie-side {
  width: 10rem;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
}

.connie-wrapper .speech-bubble-side {
  opacity: 0;
  width: 200px;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: #041922;
  border: 2px solid #f5ffeb9f;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 10px #9bf25dd7, 0 0 15px rgba(177, 240, 129, 0.81);
  position: absolute;
  bottom: 110%; /* place above Connie */
  left: 50%;     /* center horizontally */
  transform: translateX(-50%) scale(0.8); /* center and shrink */
  z-index: 10;
}

/* Arrow pointing down to Connie */
.connie-wrapper .speech-bubble-side::after {
  content: "";
  position: absolute;
  top: 100%;   /* arrow below bubble */
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #041922 transparent transparent transparent;
}
/* Show bubble on hover */
.connie-wrapper:hover .speech-bubble-side {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}



/* CONNIE CHAT FEATURE - Links neben Text positioniert */
.connie-chat {
  position: absolute;
  left: -150px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}

.connie-chat:hover {
  transform: scale(1.1);
}

.connie-fish {
  width: 100px;
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
  animation: float 3s ease-in-out infinite;
}

.speech-bubble {
  position: absolute;
  background: white;
  border: 2px solid #0d47a1;
  border-radius: 20px;
  padding: 12px 16px;
  max-width: 280px;
  min-width: 220px;
  font-size: 0.85rem;
  color: #0d47a1;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 15;
  /* Sprechblase rechts von Connie */
  left: 110px;
  top: 50%;
  transform-origin: left center;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  /* Pfeil zeigt zur Connie (nach links) */
  left: -16px;
  top: 50%;
  margin-top: -8px;
  border-right-color: #0d47a1;
}

/* Spezielle Pfeil-Richtung für nach links schauende Connie */
.connie-chat.education .speech-bubble::after {
  left: auto;
  right: -16px;
  border-right-color: transparent;
  border-left-color: #0d47a1;
}

/* Hover-Effekt für Sprechblase */
.connie-chat:hover .speech-bubble {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Animation für Connie */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
