
    html { 
        scroll-behavior: smooth; 
    }

    body {
        font-family: 'DM Sans', sans-serif;
        margin: 0;
        background: #DFF6FF;
        color: #254E70;
        padding-top: 80px;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        padding: 0.75rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-left span {
        font-weight: bold;
        font-size: 1.2rem;
        color: #254E70;
    }

    nav a {
        margin-left: 1rem;
        text-decoration: none;
        font-weight: 600;
        color: #254E70;
    }

    nav a:last-child {
        color: #FF6B6B;
        font-weight: bold;
    }

    .hero {
        background: #FFF9F0;
        text-align: center;
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
        color: #FF6B6B;
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 600px;
        margin: 1rem auto;
    }

    .hero img {
        height: 150px;
        margin-top: 1rem;
    }

    .login-section {
        background: #ffffff;
        padding: 2rem 0;
        display: flex;
        justify-content: center;
    }

    .login-box {
        background: white;
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        max-width: 360px;
        width: 100%;
        text-align: center;
        margin: 0 auto;  /* Center the login box */
    }

    input[type="password"] {
        padding: 12px;
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 12px;
        margin-top: 10px;
        font-size: 1rem;
    }

    button {
        margin-top: 15px;
        padding: 12px 20px;
        background: #FF6B6B;
        color: white;
        border: none;
        border-radius: 30px;
        font-weight: bold;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
        display: inline-block;
        width: 100%;
        max-width: 350px;
        text-align: center;
        margin-bottom: 1rem;  /* Added margin to separate the button */
    }

    button:hover {
        background: #e74c3c;
    }

    .preview-section {
        padding: 3rem 1rem;
        max-width: 960px;
        margin: auto;
    }

    .section {
        background: white;
        padding: 2rem;
        margin-bottom: 2rem;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .grid {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .card {
        flex: 1 1 280px;
        max-width: 280px;
        background: #fff;
        border-radius: 12px;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        transition: transform 0.3s ease;
        position: relative;
        cursor: pointer;
    }

    .card:hover {
        transform: translateY(-6px);
    }

    .card img {
        width: 100%;
        border-radius: 8px;
    }

    .card p {
        margin-top: 0.5rem;
    }

    .card::after {
        content: '🔒 Members Only';
        position: absolute;
        top: 8px;
        right: 8px;
        background: #FF6B6B;
        color: #fff;
        font-size: 0.75rem;
        padding: 4px 8px;
        border-radius: 6px;
    }
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card .btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  background-color: #FF6B6B;
  color: white;
  transition: background 0.3s ease;
}

.card .btn:hover {
  background-color: #e74c3c;
}

.card.free-access::after {
  content: none; /* Hide badge for free-access cards */
}

.card:not(.free-access)::before {
  content: "🔒 Members";
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #ff6b6b;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

   .langs {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .langs img {
        width: 40px;
        border-radius: 50%;
    }

    .testimonial {
        font-style: italic;
        text-align: center;
    }

    footer {
        text-align: center;
        padding: 2rem 1rem;
        font-size: 0.9rem;
        background: #fff;
        color: #777;
    }

    /* Mobile-responsive adjustments */
    @media (max-width: 768px) {
        .grid {
            flex-direction: column; /* Stack cards on smaller screens */
            gap: 1.5rem; /* Increased gap between stacked cards */
        }

        .card {
            max-width: 90%; /* Ensure cards don't exceed available space */
            margin: 0 auto; /* Center cards on smaller screens */
        }

        header {
            padding: 1rem 1.5rem;
        }

        .hero h1 {
            font-size: 2.2rem; /* Adjust hero font size */
        }
    }
.character-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  margin-top: 1rem;
}

.filter-btn {
  background-color: #FFD93D;           /* Friendly yellow */
  color: #333;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;                   /* ⬅️ Smaller padding */
  cursor: pointer;
  font-size: 0.95rem;                  /* ⬅️ Slightly smaller text */
  font-weight: 600;
  transition: background-color 0.3s ease;
  min-width: unset;                    /* ⬅️ No forced stretching */
  max-width: 120px;                    /* ⬅️ Prevent wide stretch */
  text-align: center;
}

.filter-btn:hover {
  background-color: #ffc107;
}

/* Character Card Styles */
.character-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.character-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 220px;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: none; /* Default is hidden */
}

.character-card.visible {
  display: block; /* Show when character is selected */
}

.character-card:hover {
  transform: scale(1.05); /* Zoom in effect on hover */
}

.character-card img {
  width: 100%;
  border-radius: 10px;
}

.character-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FF6B6B;
}

.emotion-badge {
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .character-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .character-card {
    max-width: 90%;
    margin: 0 auto;
  }
}
/* New Style for Expanding Character Description */
.character-info {
  display: none; /* Initially hidden */
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.character-card.expanded .character-info {
  display: block; /* Display description when expanded */
}

.character-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 220px;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.character-card:hover {
  transform: scale(1.05); /* Hover effect */
}

/* Tooltip for Mood */
#mood-tooltip {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  display: none;
  z-index: 10;
}
/* Style for centering the header */
h2 {
  text-align: center;
  font-size: 2rem; /* You can adjust the font size if needed */
  font-weight: bold;
  color: #254E70; /* Adjust text color as needed */
  margin-bottom: 1.5rem; /* Space between the title and content */
}
/* Hide the "Members Only" lock for the free access card */
.card.free-access::after {
  content: none; /* Prevents the lock tag from showing */
}
/* Style the links (buttons) inside the card */
.card a {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background-color: #FF6B6B; /* Red button background */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hover Effect: Change background color and add scale */
.card a:hover {
  background-color: #e74c3c; /* Darker red on hover */
  transform: scale(1.05); /* Slightly enlarge the button */
}

/* Style the card to center its content and make the link more prominent */
.card {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Hover effect on the card itself */
.card:hover {
  transform: translateY(-6px); /* Lift the card on hover */
}

/* Optional: Add padding and margin to the card image to improve layout */
.card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff; /* Optional: Background color for the header */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds subtle shadow */
}

/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body Styling */
body {
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* Header Layout */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* ✅ Keep in one row */
  z-index: 1000;
}

/* Header Left (Logo + Title) */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 40px;
}

.site-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #254E70;
}

/* Navigation Styling */
nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: visible;
  flex-wrap: nowrap;
}

/* Nav Links */
nav a {
  text-decoration: none;
  font-weight: 600;
  color: #254E70;
  white-space: nowrap; /* Prevents text break */
}

.get-access-btn {
  background-color: #d93b3b;              /* Bold red */
  color: #ffffff !important;              /* Force pure white text */
  padding: 0.6rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  text-shadow: none;                      /* REMOVE this – it was muting the text */
  filter: none;                           /* Reset any inherited filter */
  opacity: 1;                             /* Ensure full visibility */
  z-index: 1;
  transition: background-color 0.3s ease;
}

.get-access-btn:hover {
  background-color: #b73030;
}

/* Mobile Styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .get-access-btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}
.hero {
  background: #FFF9F0;
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 2.4rem;
  color: #254E70;             /* Brand-friendly calm blue */
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #254E70;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 480px) {
  .filter-btn {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
}
.character-instructions {
  text-align: center;
  font-size: 1rem;
  color: #254E70;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.clear-btn {
  background-color: #e0e0e0;
  color: #333;
}

.clear-btn:hover {
  background-color: #cfcfcf;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.get-access-btn {
  animation: bounce 1.2s infinite ease-in-out;
}
.get-access-btn:hover {
  animation-play-state: paused;
  box-shadow: 0 0 12px rgba(217, 59, 59, 0.6); /* brighter on hover */
}
@media (max-width: 768px) {
  .get-access-btn {
    animation: none;
  }
}
.access-note {
  margin-top: 1rem;
  font-size: 1rem;
  color: #555;
  text-align: center;
}

.access-note a {
  color: #FF6B6B;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.access-note a:hover {
  color: #e74c3c;
  text-decoration: underline;
}
.access-note a:hover {
  text-decoration: underline;
}
.login-box {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
}
.social-icons img {
  width: 26px;
  height: 26px;
  margin: 0 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.social-icons img:hover {
  transform: scale(1.2);
}
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  width: 260px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card img {
  height: 240px;
  width: 100%;
  object-fit: contain; /* ensures full image shows */
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.05rem;
  color: #254E70;
}

.card p {
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

.card .btn {
  margin-top: 0.75rem;
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  background-color: #FF6B6B;
  color: white;
  transition: background 0.3s ease;
}

.card .btn:hover {
  background-color: #e74c3c;
}

.card::after {
  content: '🔒 Members Only';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #FF6B6B;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.card.free-access::after {
  content: none;
}

.label-free {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #38b000;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 2;
}
/* DARK MODE BASE */
body.dark-mode {
  background-color: #121212;
  color: #f5f5f5;
}

/* Main section backgrounds */
.dark-mode .section,
.dark-mode .character-card,
.dark-mode .card {
  background-color: #1f1f1f;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Buttons */
.dark-mode .btn {
  background-color: #333;
  color: #fff;
  border: 1px solid #666;
}
.dark-mode .btn:hover {
  background-color: #444;
}

/* Filter buttons */
.dark-mode .filter-btn {
  background-color: #2c2c2c;
  color: #fff;
  border: 1px solid #555;
}
.dark-mode .filter-btn.clear-btn {
  background-color: #444;
  color: #fff;
}

/* Character info / toggle popups */
.dark-mode .character-info {
  background-color: #2a2a2a;
  color: #fff;
}

/* Dark mode for login modal */
.dark-mode .login-modal {
  background-color: #1e1e1e;
  border: 1px solid #555;
  color: #f2f2f2;
}
.dark-mode .login-modal input {
  background-color: #2c2c2c;
  border: 1px solid #555;
  color: #f2f2f2;
}
.dark-mode .login-modal .btn {
  background-color: #ff6b6b;
  color: #fff;
}

/* Flipbook / worksheet cards */
.dark-mode .card p,
.dark-mode .card h3 {
  color: #fff;
}

/* Fix header and section title contrast */
.dark-mode header,
.dark-mode h2,
.dark-mode h3 {
  background-color: #121212;
  color: #f2f2f2;
}
body,
.card,
.section,
.character-card,
.login-modal {
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dark-mode-toggle {
  background-color: #FF6B6B;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
}

body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark-mode header,
body.dark-mode nav,
body.dark-mode section,
body.dark-mode .character-card,
body.dark-mode footer {
  background-color: #1e1e1e !important;
  color: #f0f0f0 !important;
}

body.dark-mode .access-btn,
body.dark-mode .dark-mode-toggle {
  background-color: #444;
  color: #fff;
}

body.dark-mode .character-card {
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .dark-mode-toggle {
    padding: 6px 12px;
    font-size: 14px;
  }
}
.dark-mode-toggle-container {
  margin-top: 8px;
  text-align: center;
}

.dark-mode-toggle {
  background-color: #ddd;
  color: #333;
  border: none;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.language-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffffffdd;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10000;
  display: flex;
  gap: 8px;
  align-items: center;
}
.language-switcher img {
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition: transform 0.2s;
}
.language-switcher img:hover {
  transform: scale(1.1);
}
.hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

<style>
  body {
    font-family: 'DM Sans', sans-serif;
    background: #E6F4FA;
    margin: 0;
    padding: 0;
    color: #254E70;
  }

  header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .logo {
    height: 40px;
  }

  .site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #254E70;
  }

  .site-title span {
    color: #FF6B6B;
  }

  nav a {
    margin-left: 1.2rem;
    text-decoration: none;
    color: #254E70;
    font-weight: 600;
  }

  .get-access-btn {
    background: #FF6B6B;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
  }

  .hero {
  text-align: center;
  padding: 5rem 1rem 1.5rem; /* Increased top padding */
}

  .hero h1 {
    font-size: 2.3rem;
    color: #FF6B6B;
    margin-bottom: 0.5rem;
  }

  .hero p {
    margin: 0.5rem auto;
    font-size: 1.05rem;
    color: #444;
    max-width: 600px;
  }

  .video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .video-wrapper h3 {
    margin: 0.2rem 0 0.75rem 0;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #254E70;
  }

  .video-wrapper video {
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
  }

  .video-wrapper p {
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
    text-align: center;
  }

  @media (max-width: 768px) {
    .video-wrapper {
      padding: 0 1rem;
    }

    .hero h1 {
      font-size: 2rem;
    }
  }
html, body {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  padding-top: env(safe-area-inset-top);
  margin: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #FFF7F0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.page-container {
  padding-top: 80px; /* space for fixed header */
}

.hero {
  text-align: center;
  padding: calc(5rem + env(safe-area-inset-top)) 1rem 1.5rem;
}

.hero h1 {
  font-size: 2.3rem;
  color: #FF6B6B;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hero p {
  margin: 0.5rem auto;
  font-size: 1.05rem;
  color: #444;
  max-width: 600px;
  text-align: center;
}

.video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.video-wrapper h3 {
  margin: 0.2rem 0 0.75rem 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #254E70;
}

.video-wrapper video {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.video-wrapper p {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.5rem;
  text-align: center;
}

/* ✅ Mobile Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.4;
    padding: 0 1rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1.2rem;
  }

  .video-wrapper {
    padding: 0 1rem;
  }

  .page-container {
    padding-top: 90px; /* Ensures nothing is hidden by fixed header */
  }
}
.card::after {
  content: none !important;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
