


/* Remove body padding-top for homepage to start content from page top */
body {
  padding-top: 0 !important;
}

*{
  padding: 0 auto;
margin-top: -1px;
}

#sideMenu, #top_title, .patrollink, #firstHeading,  #home_logo, #sideMenu { display:none; }
  #content { padding:0px; width:100%; margin-top:-7px; margin-left:0px; border:none;}

  .content h2{
    font-family: 'ProtestGuerrilla-Regular', sans-serif;
  }

  .content div{
    font-family: 'Fredoka-VariableFont_wdth_wght', sans-serif;
  }
  
  


.float1 {
    transition: property duration timing-function delay;
	animation:mymove1 4s infinite linear;
	-webkit-animation:mymove1 4s infinite linear;
}

.float2 {
    transition: property duration timing-function delay;
	animation:mymove2 4s infinite linear;
	-webkit-animation:mymove2 4s infinite linear;
}




.content{
  height:1460vh;
  width: 100vw;
  margin-top: 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 1; /* Ensure content is above background layer */
}

/* Background gradient layers - First page has separate gradient, remaining pages unified gradient */
/* Note: First page (0-120vh) gradient provided by #title element */

/* Unified background for all remaining pages (120-875vh) - Deep unified gradient */
.section-bg-1 {
  position: absolute;
  top: 120vh;
  left: 0;
  width: 100%;
  height: 1440vh; /* Covers all content from 120vh to 1400vh */
  background: linear-gradient(180deg, 
    #1a1a3e 0%,      /* Top - deep purple blue */
    #2d1b4e 15%,     /* Purple transition */
    #203a43 30%,     /* Cyan blue */
    #2c5364 50%,     /* Middle - deep cyan */
    #2a4a5a 60%,     /* Transition - deep cyan purple */
    #1a1a3e 70%,     /* Return to deep purple blue */
    #0a0e27 100%     /* Bottom - deep dark */
  );
  z-index: -1;
  transition: background 0.3s ease;
}

/* Light theme - unified background */
:root:not([data-theme="dark"]) .section-bg-1 {
  background: linear-gradient(180deg, 
    #f093fb 0%,      /* Top - pink purple */
    #f5576c 15%,     /* Coral red */
    #ffd676 30%,     /* Golden yellow */
    #4facfe 50%,     /* Middle - sky blue */
    #43e97b 70%,     /* Emerald green */
    #667eea 100%     /* Bottom - indigo blue */
  );
}

/* Remove other background layers (no longer needed) */
.section-bg-2,
.section-bg-3,
.section-bg-4,
.section-bg-5,
.section-bg-6 {
  display: none;
}


.appear{
  opacity: 0;
  animation: appear 1.5s linear forwards;
  animation-play-state:paused ;
}
@keyframes appear{
  from{
      opacity: 0;
  }
  to{
      opacity: 1;
  }
}











@keyframes mymove1{
0% {transform: translate(0px, 0vh);}
15% {transform: translate(0px, -5vh);}
25% {transform: translate(0px, -10vh);}
35% {transform: translate(0px, -5vh);}
50% {transform: translate(0px, 0vh);}
65% {transform: translate(0px, 5vh);}
75% {transform: translate(0px, 10vh);}
85% {transform: translate(0px, 5vh);}
100% {transform: translate(0px, 0vh);}

}

@keyframes mymove2{
0% {transform: translate(0px, 0vh);}
15% {transform: translate(0px, 5vh);}
25% {transform: translate(0px, 10vh);}
35% {transform: translate(0px, 5vh);}
50% {transform: translate(0px, 0vh);}
65% {transform: translate(0px, -5vh);}
75% {transform: translate(0px, -10vh);}
85% {transform: translate(0px, -5vh);}
100% {transform: translate(0px, 0vh);}

}

/* Safari and Chrome: */
@-webkit-keyframes mymove1
{
0% {transform: translate(0px, 0vh);}
15% {transform: translate(0px, -5vh);}
25% {transform: translate(0px, -10vh);}
35% {transform: translate(0px, -5vh);}
50% {transform: translate(0px, 0vh);}
65% {transform: translate(0px, 5vh);}
75% {transform: translate(0px, 10vh);}
85% {transform: translate(0px, 5vh);}
100% {transform: translate(0px, 0vh);}
}
@-webkit-keyframes mymove2
{
0% {transform: translate(0px, 0vh);}
15% {transform: translate(0px, 5vh);}
25% {transform: translate(0px, 10vh);}
35% {transform: translate(0px, 5vh);}
50% {transform: translate(0px, 0vh);}
65% {transform: translate(0px, -5vh);}
75% {transform: translate(0px, -10vh);}
85% {transform: translate(0px, -5vh);}
100% {transform: translate(0px, 0vh);}
}

@keyframes change {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}

@keyframes HeaderChange {
0% {
transform: scale(1);
}
25% {
transform: scale(1.1);
}
50% {
transform: scale(1.2);
}
75% {
transform: scale(1.3);
}
100% {
transform: scale(1.4);
}
}

#title{
width: 100vw;
height: 120vh;
position: absolute;
top: 0;
left: 0;
background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #2d1b4e 100%);
transition: background 0.3s ease;
z-index: 0; /* Background layer */
overflow: hidden;
}

/* ========================================
   Homepage opening animation container and elements
   ======================================== */
.hero-animation-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Team Logo - enters from bottom right */
.hero-team-logo {
  position: absolute;
  width: 30vw;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  z-index: 10;
  animation: teamLogoAnimation 7s cubic-bezier(0.85, -0.8, 0.2, 1.8) forwards;
}

/* Fox mascot - enters from top left */
.hero-fox-mascot {
  position: absolute;
  width: 35vw;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  z-index: 5;
  animation: foxMascotAnimation 7s cubic-bezier(0.85, -0.8, 0.2, 1.8) forwards;
}

/* Team Logo animation: fly in from bottom right -> stay at center bottom -> move to upper right */
@keyframes teamLogoAnimation {
  0% {
    /* Starting position: bottom right, small size */
    left: 110%;
    top: 110%;
    transform: translateX(-50%) translateY(-50%) scale(0.3) rotate(-45deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    /* Fly into center bottom */
    left: 50%;
    top: 68%;
    transform: translateX(-50%) translateY(-50%) scale(1.6) rotate(0deg);
  }
  42% {
    /* Stay at center, maintain enlarged state */
    left: 50%;
    top: 68%;
    transform: translateX(-50%) translateY(-50%) scale(1.6) rotate(0deg);
  }
  100% {
    /* Rotate and move to upper right, shrink */
    left: 88%;
    top: 20%;
    transform: translateX(-50%) translateY(-50%) scale(0.45) rotate(1080deg);
    opacity: 0.9;
  }
}

/* Fox animation: fly in from top left -> stay at center top -> enlarge to fill page */
@keyframes foxMascotAnimation {
  0% {
    /* Starting position: top left, small size */
    left: -10%;
    top: -10%;
    transform: translateX(-50%) translateY(-50%) scale(0.3) rotate(45deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    /* Fly into center top */
    left: 50%;
    top: 33%;
    transform: translateX(-50%) translateY(-50%) scale(1.6) rotate(0deg);
  }
  42% {
    /* Stay at center, maintain enlarged state */
    left: 50%;
    top: 33%;
    transform: translateX(-50%) translateY(-50%) scale(1.6);
  }
  100% {
    /* Continue enlarging to fill most of page */
    left: 50%;
    top: 48%;
    transform: translateX(-50%) translateY(-50%) scale(3.8);
    opacity: 1;
  }
}

/* Responsive design - tablet */
@media (max-width: 1024px) {
  .hero-team-logo {
    width: 35vw;
    max-width: 300px;
  }
  
  .hero-fox-mascot {
    width: 40vw;
    max-width: 350px;
  }
  
  @keyframes teamLogoAnimation {
    0% {
      left: 110%;
      top: 110%;
      transform: translateX(-50%) translateY(-50%) scale(0.3) rotate(-45deg);
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    25% {
      left: 50%;
      top: 66%;
      transform: translateX(-50%) translateY(-50%) scale(1.4) rotate(0deg);
    }
    42% {
      left: 50%;
      top: 66%;
      transform: translateX(-50%) translateY(-50%) scale(1.4) rotate(0deg);
    }
    100% {
      left: 85%;
      top: 22%;
      transform: translateX(-50%) translateY(-50%) scale(0.4) rotate(1080deg);
      opacity: 0.9;
    }
  }
  
  @keyframes foxMascotAnimation {
    0% {
      left: -10%;
      top: -10%;
      transform: translateX(-50%) translateY(-50%) scale(0.3) rotate(45deg);
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    25% {
      left: 50%;
      top: 31%;
      transform: translateX(-50%) translateY(-50%) scale(1.4) rotate(0deg);
    }
    42% {
      left: 50%;
      top: 31%;
      transform: translateX(-50%) translateY(-50%) scale(1.4);
    }
    100% {
      left: 50%;
      top: 46%;
      transform: translateX(-50%) translateY(-50%) scale(3.2);
      opacity: 1;
    }
  }
}

/* Responsive design - mobile */
@media (max-width: 768px) {
  .hero-team-logo {
    width: 45vw;
    max-width: 250px;
  }
  
  .hero-fox-mascot {
    width: 50vw;
    max-width: 280px;
  }
  
  @keyframes teamLogoAnimation {
    0% {
      left: 110%;
      top: 110%;
      transform: translateX(-50%) translateY(-50%) scale(0.3) rotate(-45deg);
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    25% {
      left: 50%;
      top: 71%;
      transform: translateX(-50%) translateY(-50%) scale(1.3) rotate(0deg);
    }
    42% {
      left: 50%;
      top: 71%;
      transform: translateX(-50%) translateY(-50%) scale(1.3) rotate(0deg);
    }
    100% {
      left: 80%;
      top: 24%;
      transform: translateX(-50%) translateY(-50%) scale(0.35) rotate(1080deg);
      opacity: 0.85;
    }
  }
  
  @keyframes foxMascotAnimation {
    0% {
      left: -10%;
      top: -10%;
      transform: translateX(-50%) translateY(-50%) scale(0.3) rotate(45deg);
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    25% {
      left: 50%;
      top: 33%;
      transform: translateX(-50%) translateY(-50%) scale(1.3) rotate(0deg);
    }
    42% {
      left: 50%;
      top: 33%;
      transform: translateX(-50%) translateY(-50%) scale(1.3);
    }
    100% {
      left: 50%;
      top: 48%;
      transform: translateX(-50%) translateY(-50%) scale(2.8);
      opacity: 1;
    }
  }
}

/* AMR Section styles */
/* Rising animation - upward effect */
.rising-animation {
  display: inline-block;
  animation: riseUp 2s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes riseUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Falling animation - downward effect */
.falling-animation {
  display: inline-block;
  animation: fallDown 2s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes fallDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(20px);
    opacity: 0.6;
  }
}

/* Pulse animation - pulsing effect */
.pulse-animation {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    color: white;
  }
  50% {
    transform: scale(1.1);
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
  }
}

/* Shake animation - shaking effect */
.shake-animation {
  display: inline-block;
  animation: shake 1.5s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-5px) rotate(-2deg);
  }
  75% {
    transform: translateX(5px) rotate(2deg);
  }
}

/* Statistical data box styles */
.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  margin: 0 2vw;
}

.stat-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Transmission chart styles - same glowing border as data boxes */
.transmission-chart {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 2vh 2vw;
  transition: all 0.3s ease;
}

.transmission-chart:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.transmission-chart img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* Emoji styles */
.stat-emoji {
  font-size: 50px;
  margin-bottom: 2vh;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Number jumping animation */
.stat-number {
  animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive - tablet */
@media (max-width: 1024px) {
  .amr-stats-container {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .stat-box {
    margin-bottom: 3vh !important;
    width: 80% !important;
  }
  
  .stat-number {
    font-size: 50px !important;
  }
  
  .stat-label {
    font-size: 20px !important;
  }
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .stat-box {
    width: 90% !important;
  }
  
  .stat-number {
    font-size: 40px !important;
  }
  
  .stat-label {
    font-size: 18px !important;
  }
  
  .stat-source {
    font-size: 14px !important;
  }
}

/* Light theme - title area */
:root:not([data-theme="dark"]) #title {
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Homepage main title style - maintain original 120px size */
.home-page-title {
  margin-bottom: 10vh;
}

.home-page-title > span {
  font-family: Arlon;
  font-size: 130px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  color: var(--text-color);
}

/* Dark theme - title with glow effect */
:root.dark .home-page-title > span {
  color: var(--text-color) !important;
  text-shadow: 0 0 50px rgba(96, 165, 250, 1), 0 0 30px rgba(96, 165, 250, 0.9), 0 0 15px rgba(96, 165, 250, 0.7);
}

/* Light theme - title with increased contrast */
:root.light .home-page-title > span {
  color: #0f172a; /* slate-900 */
  text-shadow: none;
}

/* Light mode: keep size but match the "Simple Procedure" heading style */
:root.light #subtitle-video {
  color: #ffffff !important;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4) !important;
  font-weight: 900;
}

/* Responsive body text for sections */
#text1, #text2 {
  font-size: clamp(14px, 2.2vw, 22px) !important;
}

/* Constrain the embedded promo video size; override inline width/height */
#video-container iframe {
  width: min(68vw, 1100px) !important;
  height: calc(min(68vw, 1100px) * 9 / 16) !important; /* keep 16:9 */
}

/* #header_top{
animation: HeaderChange 10s linear;
animation-fill-mode:forwards;
}

#yeast0{
left: 20vw;
top:120vh;
position: absolute;
}


#yeast1{
left: 23vw;
top: 135vh;
position: absolute;
}
#yeast2{
left: 32vw;
top: 144vh;
position: absolute;
}
#yeast3{
left: 38vw;
top: 147vh;
position: absolute;
}
#yeast4{
left: 42vw;
top: 152vh;
position: absolute;
}
#yeast5{
left: 35vw;
top: 173vh;
position: absolute;
}
#yeast6{
left: 25vw;
top: 200vh;
position: absolute;
}
#yeast7{
left: 33vw;
top: 215vh;
position: absolute;
}
#yeast8{
left: 60vw;
top: 225vh;
position: absolute;
}
#yeast9{
left: 65vw;
top: 235vh;
position: absolute;
}
#yeast10{
left: 63vw;
top: 245vh;
position: absolute;
}
#yeast11{
left: 50vw;
top: 265vh;
position: absolute;
}
#yeast12{
left: 33vw;
top: 285vh;
position: absolute;
}
#yeast13{
left: 29vw;
top: 305vh;
position: absolute;
}
#yeast14{
left: 26vw;
top: 315vh;
position: absolute;
}
#yeast15{
left: 23vw;
top: 320vh;
position: absolute;
}
#yeast16{
left: 23vw;
top: 350vh;
position: absolute;
}
#yeast17{
left: 30vw;
top: 370vh;
position: absolute;
} */




.glass{
width: 400px;
height: 400px;
border-radius: 50%;
background-color: black;
left:40vw;
top:3vh;
position: relative;
}
#box1{
position: relative;
left: 10vw;
top:10vh;
width: 100px;
height: 100px;
background-color: blue;
}

#video{
height: 450px;
width: 50vw;
position: relative;
top: 2vh;
left: 2vw;
}


#fig1-2{
opacity: 0;
  animation: appear 1.5s linear forwards 0.5s;
  animation-play-state:paused ;
}
#fig1-3{
opacity: 0;
  animation: appear 1.5s linear forwards 1s;
  animation-play-state:paused ;
}
#fig1-4{
opacity: 0;
  animation: appear 1.5s linear forwards 1.5s;
  animation-play-state:paused ;
}
#fig1-5{
opacity: 0;
  animation: appear 1.5s linear forwards 2s;
  animation-play-state:paused ;
}
#fig1-6{
opacity: 0;
  animation: appear 1.5s linear forwards 2.5s;
  animation-play-state:paused ;
}

#fig2-1{
opacity: 0;
  animation: appear 1.5s linear forwards;
  animation-play-state:paused ;
}
#fig2-2{
opacity: 0;
  animation: appear 1.5s linear forwards 0.5s;
  animation-play-state:paused ;
}
#fig2-3{
opacity: 0;
  animation: appear 1.5s linear forwards 1s;
  animation-play-state:paused ;
}
#fig2-4{
opacity: 0;
  animation: appear 1.5s linear forwards 1.5s;
  animation-play-state:paused ;
}
#fig2-5{
opacity: 0;
  animation: appear 1.5s linear forwards 2s;
  animation-play-state:paused ;
}

#fig4-1{
  opacity: 0;
    animation: appear 1.5s linear forwards;
    animation-play-state:paused ;
  }
  
#fig4-2{
  opacity: 0;
     animation: appear 1.5s linear forwards 2s;
    animation-play-state:paused ;
  }
    
#fig4-3{
 opacity: 0;
animation: appear 1.5s linear forwards 4s;
animation-play-state:paused ;
}
      
    





#fig5-1{
  opacity: 0;
    animation: appear 1.5s linear forwards ;
    animation-play-state:paused ;
  }

#fig5-2{
  opacity: 0;
    animation: appear 1.5s linear forwards 2s;
    animation-play-state:paused ;
}
 #fig5-3{
   opacity: 0;
    animation: appear 1.5s linear forwards 4s;
    animation-play-state:paused ;
}
#fig5-4{
  opacity: 0;
    animation: appear 1.5s linear forwards 6s;
    animation-play-state:paused ;
  }

/* ========================================
   Second screen: Antibiotic resistance statistics box styles
   ======================================== */

/* Statistics box container */
.amr-stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 8vw;
}

/* Individual statistics box */
.amr-stat-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 3vh 2vw;
  min-width: 300px;
  max-width: 420px;
  width: 35vw;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.amr-stat-box:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Icon styles */
.amr-stat-icon {
  font-size: 4rem;
  margin-bottom: 1.5vh;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Number styles */
.amr-stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #ff6b6b;
  margin: 1.5vh 0;
  font-family: 'Arial', sans-serif;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(255, 107, 107, 0.5);
}

#money-box .amr-stat-number {
  color: #ffd93d;
  text-shadow: 0 2px 10px rgba(255, 217, 61, 0.5);
}

/* Label text */
.amr-stat-label {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: white;
  font-weight: 600;
  margin: 1vh 0;
  line-height: 1.4;
}

/* Source citation */
.amr-stat-source {
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: 1vh;
  line-height: 1.3;
}

/* Light theme styles */
:root:not([data-theme="dark"]) .amr-stat-box {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

:root:not([data-theme="dark"]) .amr-stat-box:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

:root:not([data-theme="dark"]) .amr-stat-label {
  color: #0f172a;
}

:root:not([data-theme="dark"]) .amr-stat-source {
  color: rgba(0, 0, 0, 0.5);
}

/* Responsive design - mobile */
@media (max-width: 768px) {
  .amr-stats-container {
    flex-direction: column;
    align-items: center;
    gap: 4vh;
  }

  .amr-stat-box {
    width: 80vw;
    min-width: 280px;
    max-width: 380px;
    padding: 2.5vh 4vw;
  }

  .amr-stat-icon {
    font-size: 3rem;
  }

  .amr-stat-number {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}

  
