
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: system-ui, sans-serif;
  }

  canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
  }

  body::before {
    content: "";
    background: url("header.jpg") no-repeat center center/cover;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
  }
  
  .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
  
  /* Remove tap highlight on touch devices */
button,
a,
.play-btn,
.icon-buttons,
.logo,
.hamburger,
.carousel-prev,
.carousel-next {
  -webkit-tap-highlight-color: transparent; /* Safari/Chrome iOS/Android */
  -moz-tap-highlight-color: transparent;    /* Firefox (older) */
  tap-highlight-color: transparent;         /* future-proof standard */
  outline: none;                            /* removes outline on focus */
}


  
  /* =========================
     SPLASH SCREEN
     ========================= */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1c98de; /* solid color covers everything */
  z-index: 9999;
  opacity: 1; /* initial opacity */
  transition: background-color 0.95s ease;
}

  #splash-logo {
    width: 50vw;
    max-width: 1000px;
    height: auto;
    transition: transform 1s ease, width 1s ease, top 1s ease, left 1s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Shrink and move to top-left corner */
  #splash-logo.shrink {
    width: 150px; /* final size */
    top: 20px;
    left: 20px;
    transform: translate(0, 0);
  }
  
  #splash.fade-out {
  background-color: transparent;
}

  #header-logo {
    display: none;
    width: 150px;
    height: auto;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
  }
  
  #header-logo:hover{
  cursor: pointer;
  animation: wiggle 0.6s ease-in-out;
  }

  /* =========================
     TOP BAR
     ========================= */
  .top-bar {
    position: absolute;
    top: 0;
    width: 100%;
    height:20%;
    max-height: 300px;
    display: flex;
    justify-content: center; /* center icons */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
  }

  .logo {
    position: absolute;
    left: 10px;
	top: 10px;
    height:100%;
    max-height: 200px;
    display: none; /* hidden initially */
  }

  .icon-buttons {
    display: flex;
    gap: 30px;
  }

  .icon-buttons img {
    height: 100%;
    max-height: 150px;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .icon-buttons img:hover {
     animation: wiggle 0.6s ease-in-out;
  }
  .icon-buttons img:active {
     animation: wiggle 0.6s ease-in-out;
  }
  
  /* Wiggle animation */
  @keyframes wiggle {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(6deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
  }

  /* =========================
     HAMBURGER MENU
     ========================= */
  .hamburger {
    width: 50px;
    height: 40px;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000; /* always on top */
    position: fixed;
    top: 20px;
    right: 20px;
	 box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .hamburger span {
    display: block;
    height: 8px;
    background: #1c98de;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
    .hamburger:hover {
     animation: wiggle 0.6s ease-in-out;
  }
  .hamburger:active {
     animation: wiggle 0.6s ease-in-out;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(22px);
    width: 75px;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-22px);
    width: 75px;
  }

  /* =========================
     FULLSCREEN MENU (top-right pop)
     ========================= */
  .menu-overlay {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100%;
    background: #1c98de;
    z-index: 500; /* below hamburger */
    opacity: 0;
    transform-origin: top right;
    transform: scale(0);
    border-bottom-left-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.22, 1.28, 0.36, 1.11),
                opacity 0.3s ease,
                border-radius 0.5s ease;
    pointer-events: none;
  }

  .menu-overlay.active {
    opacity: 1;
    transform: scale(1);
    border-bottom-left-radius: 0;
    pointer-events: auto;
  }

  /* =========================
     PAGE SECTIONS
     ========================= */
  .page {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5;
    text-align: center;
    font-size: 2em;
  }

  .page.active {
    display: flex;
  }
  
  
  /* =========================
   HELP BUTTON
   ========================= */
.help-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: transparent;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001; /* above most elements */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.help-button:hover {
  transform: scale(1.1);
}

#cookieNotice {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3498db;
  color: white;
  border: 3px solid white;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.7);
  padding: 15px 25px;
  z-index: 10000;
  text-align: center;
  font-family: sans-serif;
  font-size: 1rem;
  animation: slideUp 0.6s ease-out;
}

#cookieNotice button {
  background-color: white;
  color: #3498db;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  margin-left: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

#cookieNotice button:hover {
  transform: scale(1.05);
}

@keyframes slideUp {
  from { bottom: -100px; opacity: 0; }
  to { bottom: 0; opacity: 1; }
}

/* =========================
   FOOTER SLIDE UP
   ========================= */
footer.footer {
  position: fixed;
  bottom: -100%; /* hidden below screen */
  left: 0;
  width: 100%;
  background: #1c98de;
    color: #fff;
	text-align: center;
  box-shadow: 0 -4px 8px rgba(0,0,0,0.2);
  transition: bottom 0.5s ease;
  z-index: 1000; /* below help button */
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

footer.footer.active {
  bottom: 0; /* slide up */
}
.footer-description p {
    width: 90%;
    margin: 0 auto;
    font-size: 1rem;
	padding-bottom: 10px;
    line-height: 1.5;
  }

  .footer-logos {
    display: flex;
    gap: 20px;
	margin: 20px auto;
    justify-content: center;
  }

  .footer-logos img {
    height: 50px;
    width: auto;
    display: block;
  }

  .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .footer-nav li {
    margin: 0;
  }

  .footer-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .footer-nav a:hover {
    color: #fff;
    opacity: 0.7;
  }

  .footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
	width: 100%;
    opacity: 0.7;
  }
  
  .learn-safety-btn{
  width: 200px;
  display:block;
  margin: 0 auto;
  position: absolute;
  bottom: 10px;
    left: calc(50% - 100px);
  z-index: 10;

  }
  .learn-safety-btn:hover{
    animation: wiggle 0.6s ease-in-out;
  cursor: pointer;
  }
  
  
    /* =========================
     CHARACTERS
     ========================= */
  


/* Bouncy animation */
#ring {
  position: fixed;
  bottom: 50px; /* final visible position */
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: auto;
  opacity: 0; /* start invisible */
  z-index: 4;
  pointer-events: none; /* optional so it doesn't block clicks */
}

/* Initial pop-up animation */
@keyframes popUp {
  0% {
    bottom: -300px;
    opacity: 1;
    transform: translateX(-50%) scale(0.7);
  }
  60% {
    bottom: 25px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  80% {
    bottom: 35px;
    transform: translateX(-50%) scale(1);
  }
  100% {
    bottom: 0px;
    transform: translateX(-50%) scale(1);
	opacity: 1; /* KEEP opacity at 1 */
  }
}

/* Continuous small bounce */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Trigger pop-up */
#ring.pop {
opacity: 1; /* force visible */
  animation: popUp 1s ease-out forwards, bounce 2s ease-in-out 1s infinite;
}

/* Ring sink animation */
.ring-sink {
  animation: none !important;
  bottom: -500px;
  transition: bottom 1s ease, transform 1s ease; /* smooth glide */
}


.wave-bg {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 600px; /* height of the wave container */
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

/* Wave styling and horizontal movement */
.wave {
  position: absolute;
  bottom: 0;
  width: 200%; /* extra width for smooth movement */
  height: 150px;
   animation: waveMove 6s linear infinite alternate;
}

.wave-back { z-index: 1; opacity: 0.5; animation-duration: 8s; }
.wave-middle { z-index: 3; opacity: 0.7; animation-duration: 6s; }
.wave-front { z-index: 5; opacity: 0.9; animation-duration: 4s; }

/* Animate waves horizontally */
@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.wave-ring {
  position: absolute;
  bottom: 20px;         /* starting position */
  left: 50%;
  transform: translateX(-50%);
  animation: ringBounce 2s infinite;
  z-index: 400;
  transition: bottom 0.8s ease, transform 0.8s ease; /* <-- smooth movement */
}

/* Ring floating above waves */
#wave-ring, #ring {
  position: absolute;
  bottom: 40px; /* starting position */
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: bounce 2s ease-in-out infinite;
  transition: bottom 1s ease, transform 1s ease, opacity 1s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}



/* SPEECH */
.speech-bubble {
  position: absolute;
  opacity: 0;
  width: 300px;
  height: auto;
  transition: opacity 0.5s ease;
  pointer-events: none; 
  z-index: 1002;
}

/*page character popup */

.page-popup {
  position: fixed;
  bottom: -250px; /* start offscreen */
  right: 20px;
  width: 200px;
  height: auto;
  z-index: 1002;
  opacity: 0;
  transition: bottom 0.5s ease-out, opacity 0.5s ease;
  pointer-events: none;
}

/* Active state triggers the slide-in */
.page-popup.active {
  bottom: 20px; /* final position */
  opacity: 1;
}

/* PAGE CAROUSELS */

.carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 60px;
  justify-content: flex-start;
  align-items: flex-start;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  width: 300px;          
  overflow: hidden;
  padding: 20px;
  scroll-snap-align: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.carousel.active {
  cursor: grabbing;
}

.carousel-item:hover {
  transform: translateY(-10px);
}

.carousel-item-img {
  width: 100%;
  height: auto;
  object-fit: fit;
  display: block;
}

.item-info {
  padding: 15px 10px 25px;
  color: white;
  display: flex;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 120px;
}

.item-desc {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.play-btn {
  width: 90%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}


.play-btn:hover {
     animation: wiggle 0.6s ease-in-out;

}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  cursor: pointer;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid black;
  background-color: white;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
 transform: translateY(-50%) scale(1.1);
 }
 
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }




/* === Fullscreen iframe overlay === */
#iframeOverlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

#iframeOverlay.active {
  display: flex;
  opacity: 1;
}

#iframeOverlay iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

#closeIframeBtn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: red;
   text-shadow: 
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  line-height: 45px;
  text-align: center;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}

#closeIframeBtn:hover {
  opacity: 1;
  transform: scale(1.1);
}

 #privacyPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #3498db; /* blue background */
    color: white;
    border: 3px solid white; /* white outline */
    border-radius: 15px; /* rounded corners */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.7); /* sharp drop shadow */
    padding: 25px;
    max-width: 90%;
    width: 400px;
    z-index: 10000;
    cursor: pointer; /* clicking anywhere closes */
    text-align: center;
    font-family: sans-serif;
  }
  #privacyPopup p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
  }


 #safetyPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8); /* dim background */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
  }

  /* Popup content container */
  #safetyContent {
    background: white;
    border: 5px solid white; /* outer white outline */
    border-radius: 15px;
    padding: 0px;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    box-sizing: border-box;
	box-shadow: 8px 8px 0px rgba(0,0,0,0.6);
    position: relative;
    display: flex;
    flex-direction: column;
  }

  /* Inner blue padded outline */
  #safetyInnerContent {
    flex: 1;
    background: white;
    border: 20px solid #3498db; /* blue padded outline */
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto; /* scrollable content */
  }

  /* Close button */
  #closeSafetyBtn {
    position: absolute;
    top: -20px;
    right: -20px;
    background: white;
    border: 3px solid black;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: red;
    font-weight: bold;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  }

  #closeSafetyBtn:hover {
    transform: scale(1.1);
  }

  /* Optional: style scroll bar for inner content */
  #safetyInnerContent::-webkit-scrollbar {
    width: 12px;
  }
  #safetyInnerContent::-webkit-scrollbar-thumb {
    background-color: #3498db;
    border-radius: 6px;
  }
  #safetyInnerContent::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 6px;
  }
  
  
  
  /* LEARN WATER SAFETY SECTION */
  
      .safety-section {
		font-family: "Chalkboard SE", "Comic Sans MS", "Marker Felt", "Arial Rounded MT Bold", cursive, sans-serif;
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      margin-bottom: 30px;
      padding: 20px;
      overflow: hidden;
    }
    h3 {
      color: #0066cc;
      margin-bottom: 10px;
	  font-size: 2em;
    }
    p {
      font-size: 1.1em;
    }
    .safety-img-left, .safety-img-right {
      width: 120px;
      height: 120px;
      background-color: #cce7ff;
      border-radius: 50%;
      display: inline-block;
      text-align: center;
      line-height: 120px;
      font-size: 0.9em;
      color: #003366;
      font-weight: bold;
      margin: 10px;
      box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }
    .safety-img-left {
      float: left;
      margin-right: 20px;
    }
    .safety-img-right {
      float: right;
      margin-left: 20px;
    }

  
  /* =========================
   TABLET MEDIA BREAKPOINT
   ========================= */
  @media (max-width: 1300px) {
  .icon-buttons img {max-height: 100px;}
  }
  
    @media (max-width: 1024px) {
  .icon-buttons img {max-height: 75px;}
  }
  
    /* =========================
   PHONE MEDIA BREAKPOINT
   ========================= */
  @media (max-width: 700px) {
  .icon-buttons img {max-height: 50px;}
  
#splash-logo.shrink {
    width: 75px; /* final size */
    top: 10px;
    left: 10px;
  }
  
    #header-logo {
    width: 75px;
    top: 10px;
    left: 10px;
  }
    .top-bar {
max-height: 100px;
    justify-content: right; /* center icons */
  }
    .icon-buttons {
    gap: 10px;
  }
  
  #ring {
  bottom: 150px;
  width: 300px;
}
  
    .learn-safety-btn{
  width: 150px;
    right: 0;
  }
  .help-button {
  bottom: 10px;
}
    #safetyInnerContent {
    border: none;
    padding: 10px;
  }
  #safetyInnerContent img{
	  width:50%;
	  height: auto;
	  display:block;
  }
     .safety-img-left, .safety-img-right {
      width: 120px;
      height: 120px;
      
    }
    .safety-img-left {
      float: none;
      margin: 0 auto;
    }
    .safety-img-right {
      float: none;
      margin: 0 auto;
    }
	h3{
		text-align:center;
	}
  .page-popup {display:none;}
  
  .speech-bubble {
 transform: translate(-75%,0);
  width: 200px;
right: 0;
}
   #privacyPopup {
   
    max-width: 90%;
    width: 300px;
  }
#confirmYes, #confirmNo{
	margin-right: auto !important;
	margin-left: auto !important;
	margin: 10px auto !important;
}
#confirmClose{
	padding: 10px !important;
}
  
  /* end phone code */
  }
 