
/* Remove Potential Unwanted Pseudo-Elements */
.nav a::after,
.nav a::before,
.header::after,
.header::before {
    content: none;
}

/* Apply Box-Sizing Globally */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Wave Section for Header */
.wave {
    display: none;
}

/* Importing the 'Fredoka One' font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

/* General Reset */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka One', cursive;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('images/rocketship-cursor.png') 16 16, auto;
    background-color: #fff9c4;
    color: #333;
}

/* Header Container */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #232f3e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #FF6F61, #FFD700, #4CAF50, #1E90FF, #FF6F61);
    background-size: 300% 300%;
    animation: rainbowGradient 10s infinite;
    overflow: hidden;
    z-index: 1000;
    overflow: visible;
}

/* Subtle Animation for Background */
@keyframes rainbowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container for Header Elements */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Branding Section */
.branding {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    flex-direction: column;
    gap: 6px;
}

/* Logo Link & Container Styling */
.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    padding: 10px;
}

/* Logo Wrapper */
.logo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .logo-wrapper {
        width: 60px;
        height: 60px;
        margin-top: 20px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .electron-orbit.orbit1 {
        width: 90px;
        height: 90px;
    }

    .electron-orbit.orbit2 {
        width: 70px;
        height: 70px;
    }

    .electron {
        width: 12px;
        height: 12px;
    }

    .e1 {
        margin-top: -35px;
    }

    .e2 {
        margin-top: -25px;
        margin-left: -15px;
    }
}

/* Main Logo Image Styling */
.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
}

/* Hover Effect for Main Logo */
.logo:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.8), 0 0 15px rgba(0, 255, 255, 0.8);
    animation: spin 2s linear infinite;
}

/* Simple Spin Animation for the Main Logo */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Electron Orbits */
.electron-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.orbit1 {
    width: 120px;
    height: 120px;
    animation: orbit-rotation 6s linear infinite;
}

.orbit2 {
    width: 90px;
    height: 90px;
    animation: orbit-rotation 4s linear infinite reverse;
}

/* Shared Orbit Animation */
@keyframes orbit-rotation {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Electrons */
.electron {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ff0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

.e1 {
    margin-top: -50px;
}

.e2 {
    margin-top: -35px;
    margin-left: -20px;
}

.site-tagline {
    font-size: 0.9rem;
    color: #fff;
    margin: 0 auto;
    text-align: center;
    font-weight: bold;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    background: linear-gradient(90deg, #FF5722, #FFEB3B, #00E676, #FF4081);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.site-tagline:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@keyframes glowPulse {
    0% { text-shadow: 0px 0px 5px rgba(255, 255, 0, 0.6); }
    100% { text-shadow: 0px 0px 15px rgba(255, 255, 0, 1); }
}

@media (max-width: 768px) {
    .site-tagline {
        font-size: 0.8rem;
        padding: 3px 10px;
        text-shadow: 1px 1px 4px rgba(255, 255, 0, 0.6);
        position: relative;
        top: 0;
        width: auto;
        text-align: center;
        margin: 10px auto;
        display: flex;
    }
}

/* Search Bar Styling */
.search-bar {
    display: flex;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    margin-right: 1rem;
    margin-left: 40px;
    transition: box-shadow 0.3s ease-in-out;
}

.search-bar:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#searchInput {
    border: none;
    outline: none;
    font-style: italic;
    color: #555;
    font-size: 16px;
    flex: 1;
    margin-right: 8px;
    background: transparent;
}

#searchButton {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 5px;
}

.search-icon {
    width: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-icon:hover {
    transform: scale(1.2);
}

#searchButton:hover .search-icon {
    transform: scale(1.2);
}

#searchInput::placeholder {
    font-style: italic;
    color: #999;
}

/* Hamburger Button (Hidden on Desktop) */
.hamburger {
    display: none;
}

/* Close Button - Hide by Default */
.nav-close {
    display: none;
}

/* Navigation Links Styling */
.nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.8rem;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    position: relative; /* Ensure dropdown positioning context */
    z-index: 1001; /* Above header z-index */
}

/* Navigation Links Styling */
.nav a {
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: bold;
    color: white;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
}

/* Keyframe Animation for Text Color Wave */
@keyframes textColorWave {
    0% { color: #FFD700; }
    50% { color: #4CAF50; }
    100% { color: #1E90FF; }
}

/* Tooltip Styling */
.nav a::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    white-space: nowrap;
}

/* Tooltip Hover Effect */
.nav a:hover::after {
    content: "Check out books!";
    background: #FFEB3B;
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
    animation: fadeInTooltip 0.3s ease;
    z-index: 999;
}

/* Tooltip Animation */
@keyframes fadeInTooltip {
    from { opacity: 0; transform: translate(-50%, -30px); }
    to { opacity: 1; transform: translate(-50%, -40px); }
}

/* Icon Size in Navigation Links */
.nav a img {
    width: 24px;
    height: auto;
    margin-right: 3px;
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}

/* Adjusted Navigation List Items */
.nav ul li {
    display: flex;
    align-items: center;
    margin-right: 10px;
    justify-content: center;
    position: relative;
}

/* Navigation Link Hover Effect */
.nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: #FFD700;
    border-radius: 5px;
}

/* Larger Icon Adjustments */
.nav ul a img {
    width: 40px;
    height: 40px;
    margin-right: 6px;
    transition: transform 0.4s ease;
}

/* Adjusted Navigation Links */
.nav ul a {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
}

/* Hover Effect with Slight Scaling */
.nav ul a:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

/* Navigation Links in List Items */
.nav ul li a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hover Effect for List Items */
.nav ul li a:hover {
    color: #FFD700;
    transform: translateY(-2px);
}


/* Realms Dropdown Styling */
.nav ul li .realms-dropdown {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    padding: 10px;
    z-index: 1002;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    background-color: rgba(255, 0, 0, 0.1); /* Debug red tint */
}

.nav ul li:hover .realms-dropdown {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: rgba(0, 255, 0, 0.1); /* Debug green tint on hover */
}

.realms-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    background: #fff;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.realms-dropdown a:hover {
    background: #e0e0e0;
    color: #000;
}

.realms-dropdown a img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.realms-dropdown .edgamers {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.realms-dropdown .einstein-lab {
    background: linear-gradient(135deg, #6b48ff, #a18cff);
}

.realms-dropdown .storybooks {
    background: linear-gradient(135deg, #ff5e62, #ff8a5c);
}

.realms-dropdown a span {
    font-weight: bold;
    color: #fff;
}

.realms-dropdown a p {
    margin: 0;
    color: #000;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 5px;
    border-radius: 3px;
    display: none; /* Hidden by default */
}

.realms-dropdown a:hover span {
    display: none; /* Hide span on hover */
}

.realms-dropdown a:hover p {
    display: block; /* Show p on hover */
    margin-left: 50px; /* Adjust to align with image position after span is hidden */
}


/* Wave Section for Header */
.wave {
    position: relative;
    width: 100%;
    height: 20px;
    background: url('images/wave.svg') repeat-x;
    background-size: contain;
    overflow: hidden;
    margin-top: -10px;
}

.wave svg {
    width: 100%;
    height: auto;
    position: relative;
    bottom: -5px;
}

/* Bounce Animation for Notifications */
.notification-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(90deg, #ff5722, #ffeb3b, #00e676, #ff4081);
    background-size: 300% 300%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowShift 5s infinite alternate;
    white-space: nowrap;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.site-title:hover {
    transform: scale(1.05);
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .header {
        width: 100%;
        top: 0;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        background: linear-gradient(90deg, #ff5f6d, #ffc371);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow: hidden;
    }

    .container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .branding {
        display: flex;
        align-items: center;
        gap: 5px;
        max-width: 100%;
        margin-top: 5px;
        overflow: hidden;
    }

    .logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        position: relative;
        padding: 4px;
    }

    .logo-wrapper {
        position: relative;
        width: 45px;
        height: 45px;
    }

    .logo {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
        position: absolute;
        top: 0;
        left: 0;
    }

    .electron-orbit.orbit1 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 45px;
        height: 45px;
        border: 1px dashed rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        pointer-events: none;
    }

    .electron-orbit.orbit2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 35px;
        height: 35px;
        border: 1px dashed rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        pointer-events: none;
    }

    .electron {
        position: absolute;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ff0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.8);
    }

    .e1 {
        margin-top: -15px;
    }

    .e2 {
        margin-top: -10px;
        margin-left: -8px;
    }

  

.search-bar {
    flex-grow: 1;
    max-width: 180px;
    background: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    margin: 0 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: max-width 0.3s ease; /* Smooth transition for width */
}

.search-bar:has(input:focus) {
    max-width: 100%; /* Expand to full available width when input is focused */
}


    .search-bar input {
        border: none;
        outline: none;
        font-size: 10px;
        flex: 1;
        background: transparent;
        padding: 2px;
    }

    .search-bar button {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0 2px;
    }

    .search-icon {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    .site-title {
        font-size: 1rem;
        color: white;
        margin-left: 8px;
        white-space: nowrap;
    }

    .site-tagline {
        display: none;
    }

    .hamburger,
    .nav {
        display: none;
    }
}
 .hero {
    background: url('images/hero-background2.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 80px 20px; /* Increased padding for better spacing */
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-attachment: fixed; /* Parallax effect */
    background-blend-mode: overlay; /* Text stands out against background */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.hero h2 {
    font-size: 2rem; /* Slightly larger for better emphasis */
    font-weight: bold;
    color: #FFD700; /* Bright yellow */
    text-shadow: 3px 3px 10px #000; /* Stronger shadow */
    margin-bottom: 25px;
    position: relative;
    z-index: 2; /* Above the overlay */
}

.hero p {
    font-size: 1.4rem; /* Slightly larger for readability */
    margin: 20px 0 30px; /* Improved spacing */
    color: #FFFFFF; /* Bright white for clarity */
    text-shadow: 2px 2px 8px #000; /* Strong shadow for visibility */
    position: relative;
    z-index: 2;
}

.cta-button {
    padding: 14px 25px; /* Larger padding for prominence */
    font-size: 1.2rem;
    background: linear-gradient(90deg, #FF8A00, #FF4500);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 30px; /* More rounded for modern look */
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background: linear-gradient(90deg, #00D5FF, #0099FF);
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    animation: float 3.5s infinite ease-in-out; /* Adjusted duration for smoother motion */
    width: 50px;
    opacity: 0.85; /* Balanced visibility */
}

.floating-icon:nth-child(1) {
    top: 8%;
    left: 20%;
    animation-duration: 3s;
}

.floating-icon:nth-child(2) {
    top: 25%;
    left: 65%;
    animation-duration: 4s;
}

.floating-icon:nth-child(3) {
    top: 70%;
    left: 30%;
    animation-duration: 3.8s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(8deg);
    }
    50% {
        transform: translateY(15px) rotate(-8deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Styles for the hero text (assuming it's an h2 or similar element) */
.hero-text {
    font-family: 'Comic Sans MS', sans-serif;
    color: #FFD700;
    text-shadow: 3px 3px 8px #000;
    font-weight: bold;
    font-size: 2rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.hero-text {
    transform: translateY(-20px);
}

/* Base styles for hero-subtext */
.hero-subtext {
    font-family: 'Comic Sans MS', sans-serif;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px #000;
    font-size: 1.4rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Hide the brief text by default (shown only on mobile) */
.hero-subtext .brief-text {
    display: none;
}


/* Media query for mobile screens */
@media (max-width: 768px) {
    .hero-text {
        font-size: 1.8rem; /* Slightly smaller for mobile */
    }
    .hero-subtext {
        font-size: 1.2rem; /* Adjusted for mobile readability */
    }
    .hero-subtext .full-text {
        display: none; /* Hide full text on mobile */
    }
    .hero-subtext .brief-text {
        display: inline; /* Show brief text on mobile */
    }
}
/* Bounce-in animation for hero text */
@keyframes bounce-in-text {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 20px 30px;
    }

    .floating-icon {
        width: 40px; /* Smaller icons for mobile */
    }
}

 .books-list {
        text-align: center;
        padding: 50px 20px;
        background: linear-gradient(to bottom right, #f0f8ff, #e6e6fa);
        border-radius: 20px;
        margin: 50px 0; /* More margin to visually separate section */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .books-list h3 {
        font-size: 2.8rem;
        color: #FF6F61;
        margin-bottom: 40px;
        text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.2);
    }

    /* Featured Books Section */
    .featured-books {
        text-align: center;
        padding: 50px 20px;
        background: linear-gradient(to bottom right, #f0f8ff, #e6e6fa);
        border-radius: 20px;
        margin: 50px 0; /* More margin to visually separate section */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .featured-books h3 {
        font-size: 2.8rem;
        color: #FF6F61;
        margin-bottom: 40px;
        text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.2);
    }

.inline-icon {
  width: 40px; /* Adjust size as needed */
  vertical-align: middle; /* Aligns the icon with the text */
  margin: 0 5px; /* Adds space on either side of the image */
}

.gaming-console {
    position: absolute;
    bottom: 12%; /* Adjust this to fine-tune placement */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Ensures it's in front of the text */
    width: 200px; /* Adjust based on the image size */
    opacity: 0.95; /* Slight transparency for smooth blending */
}

.gaming-console img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); /* Adds depth */
    animation: floatConsole 4s infinite ease-in-out;
}

/* Floating effect for a subtle motion */
@keyframes floatConsole {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Ensuring text does not overlap with the console */
.hero-text {
    margin-top: 60px; /* Adds spacing to avoid overlap */
}

.hero-subtext {
    margin-top: 30px; /* Adjusted for better spacing */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gaming-console {
        width: 140px; /* Smaller size for mobile */
        bottom: 18%; /* Adjust for proper positioning */
    }
    .hero-text {
        font-size: 2.2rem; /* Adjust text size */
    }
    .hero-subtext {
        font-size: 1.3rem;
    }
}


/* ====================================== */
/*        Book Container & Cards        */
/* ====================================== */

/* Container for Book Cards */
.book-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three cards per row on desktop */
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .book-container {
        grid-template-columns: repeat(1, 1fr); /* Two columns on tablets */
    }
}
@media (max-width: 768px) {
    .book-container {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 10px;
    }
}
@media (max-width: 480px) {
    .book-container {
        grid-template-columns: 1fr; /* One column on extra small screens */
        gap: 10px;
        padding: 10px;
    }
}

/* Book Card Styling */
.book-card {
    background: linear-gradient(to top, #ffffff, #f3f3f3);
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect for Playful Interaction */
.book-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Book Card Image */
.book-card img {
    width: 100%;
    height: auto;
    max-height: 250px; /* Uniform image height */
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #f7f7f7;
    padding: 10px;
}

/* Book Title */
.book-title {
    font-size: 1.4rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Repetitive Info (Authors and Price) */
/* Option 1: Hide repetitive details */
.book-info.author,
.book-info.price {
    display: none;
}

/* Option 2: Replace with a fun custom label (uncomment if desired)
.book-info.custom {
    font-size: 1rem;
    color: #FF6F61;
    margin-bottom: 12px;
}


/* Optional Fun Label */
.fun-label {
    font-size: 1.1rem;
    color: #FF6F61;
    margin-top: 10px;
}

/* Rating Section using Emojis */
.rating {
    margin-top: 8px;
    font-size: 1.2rem;
}

/* Badge for Emphasis (e.g., "Fun Read!") */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF6F61;
    color: #fff;
    padding: 5px 8px;
    font-size: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* Floating Bubbles */
.bubble {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(135, 206, 235, 0.6); /* Light blue */
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    z-index: 0; /* Keep bubbles behind cards */
}

.bubble:nth-child(2) {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 182, 193, 0.6); /* Light pink */
    animation-duration: 6s;
}

.bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    background-color: rgba(173, 216, 230, 0.6); /* Lighter blue */
    animation-duration: 10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
        opacity: 0.8;
    }
    50% {
        transform: translate(30px, -150px);
        opacity: 1;
    }
    100% {
        transform: translate(-30px, -300px);
        opacity: 0.5;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .book-container {
        grid-template-columns: repeat(2, 1fr); /* Two cards per row on tablets */
    }
}


.cart {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.cart p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #555;
}

.cart-container {
    text-align: left;
    margin-top: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 60px; /* Adjust width to make the image smaller */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Keep slight rounding for aesthetics */
    margin-right: 10px; /* Add spacing between the image and text */
}

.cart-item p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.cart-item button {
    padding: 5px 10px;
    font-size: 0.9rem;
    color: #fff;
    background: #ff6f61;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-item button:hover {
    background: #ff3b30;
}

/* Add Position Relative to Parent Container */
.cart-link {
    position: relative; /* Ensures the badge is positioned relative to this container */
    display: inline-block; /* Ensures proper alignment */
    margin: 0 10px;
}



/* Mobile View for Cart Section */
@media (max-width: 768px) {
    .cart {
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 10px;
        margin: 20px;
        max-width: 95%; /* Ensure it fits within the screen */
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .cart h3 {
        font-size: 1.5rem; /* Slightly smaller heading size */
        margin-bottom: 10px;
    }

    .cart p {
        font-size: 1rem; /* Smaller font size for count text */
        margin-bottom: 15px;
        color: #333;
    }

    .cart-container {
        margin-top: 15px;
    }

    .cart-item {
        flex-direction: column; /* Stack items vertically for narrow screens */
        align-items: flex-start;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .cart-item p {
        font-size: 0.9rem; /* Adjust font size for small screens */
        margin-bottom: 10px; /* Add spacing between title and button */
    }

    .cart-item button {
        align-self: flex-end; /* Align the button to the right */
        padding: 8px 12px; /* Smaller padding for the button */
        font-size: 0.8rem; /* Smaller font size */
    }

    .cart-item button:hover {
        background: #ff5733; /* Slightly darker hover color */
    }
}

.add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stack icon and text */
    background: linear-gradient(to right, #FFA500, #FF4500); /* Vibrant gradient */
    color: white;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    font-size: 0.6rem; /* Slightly increased font size for readability */
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 6px; /* Adjust padding for less height */
    border: none;
    border-radius: 10px; /* Smooth rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    margin: 5px auto; /* Center with compact margin */
    width: 120px; /* Increased width for a more prominent button */
    height: 40px; /* Reduced height for a sleeker look */
    text-align: center;
}

.add-to-cart:hover {
    background: linear-gradient(to right, #FF4500, #FFA500); /* Reverse gradient on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.add-to-cart:active {
    transform: scale(0.95); /* Shrink slightly on click */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-icon {
    width: 40px; /* Slightly larger icon for visibility */
    height: auto;
    margin-bottom: 3px; /* Compact spacing */
    transition: transform 0.3s;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5)); /* Add shadow for visibility */
}



.add-to-cart:hover .cart-icon {
    transform: rotate(10deg) scale(1.1); /* Add playful rotation on hover */
}

.add-to-cart:active .cart-icon {
    transform: rotate(0deg) scale(1); /* Reset on click */
}


@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Remove from Cart Button */
.remove-from-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stack icon and text */
    background: linear-gradient(to right, #FF6347, #FF4500); /* Distinct gradient */
    color: white;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    font-size: 0.6rem; /* Slightly increased font size for readability */
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 6px; /* Adjust padding for less height */
    border: none;
    border-radius: 10px; /* Smooth rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    margin: 5px auto; /* Center with compact margin */
    width: 120px; /* Increased width for a more prominent button */
    height: 40px; /* Reduced height for a sleeker look */
    text-align: center;
}

/* Hover Effect for Remove Button */
.remove-from-cart:hover {
    background: linear-gradient(to right, #FF4500, #FF6347); /* Reverse gradient on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

/* Active State for Remove Button */
.remove-from-cart:active {
    transform: scale(0.95); /* Shrink slightly on click */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow for click */
}

/* Optional Icon Styling for Remove Button */
.remove-icon {
    width: 40px; /* Slightly larger icon for visibility */
    height: auto;
    margin-bottom: 3px; /* Compact spacing */
    transition: transform 0.3s;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5)); /* Add shadow for visibility */
}

.remove-from-cart:hover .remove-icon {
    transform: rotate(-10deg) scale(1.1); /* Add playful rotation on hover */
}

.remove-from-cart:active .remove-icon {
    transform: rotate(0deg) scale(1); /* Reset on click */
}

/* Animation for Bouncing Remove Button */
@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


/* Footer Wave Divider Styling */
.footer-wave {
    width: 100%;
    position: absolute;
    top: -20px; /* Move wave higher */
    left: 0;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(to bottom, #FFD700, #FF6F61); /* Matching footer background */
    padding: 0;
    margin: 0;
}

.footer-wave img {
    width: 100%;
    height: auto;
    max-height: 100px; /* Adjust this value to control height */
    display: block;
    object-fit: cover; /* Ensures no stretching */
    opacity: 0.9; /* Slight transparency to blend smoothly */
}

/* Optional Animation for Fun Effect */
@keyframes waveFlow {
    0% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(-5px);
    }
}

.footer-wave img {
    animation: waveFlow 4s infinite alternate ease-in-out;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .footer-wave img {
        max-height: 80px; /* Reduce height on mobile */
    }
}

.fact-display {
  display: none; /* Hide by default */
  margin-top: 15px;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 4px #000;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 8px;
  /* display: inline-block;  <-- remove or comment this out */
}


/* ----------------------------------
   Footer Base & Cosmic Theme
------------------------------------- */
.footer.cosmic-footer {
    background: linear-gradient(to right, #FFD700, #FF6F61); /* Bright gradient */
    color: #fff;
    position: relative;
    z-index: 5;
    border-top: 5px solid #FF1493; /* Playful border */
    overflow: hidden; /* contain floating elements */
    padding: 40px 0;   /* Outer padding for the footer */
}

/* ----------------------------------
   Floating Stars (Background Decoration)
------------------------------------- */
.floating-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('images/star.png') no-repeat center center/cover;
    animation: drift 10s linear infinite;
}
/* Example star positions & delays */
.star1 { top: 20%; left: 10%; animation-delay: 0s; }
.star2 { top: 50%; left: 40%; animation-delay: 2s; }
.star3 { top: 70%; left: 80%; animation-delay: 4s; }
@keyframes drift {
    0%   { transform: translateY(0)   rotate(0deg); }
    100% { transform: translateY(-300px) rotate(360deg); }
}

/* ----------------------------------
   Main Footer Container
------------------------------------- */


.footer-container {
  display: flex;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  padding: 30px 20px;

  /* Use the same animated rainbow gradient as the header */
  background: linear-gradient(90deg, #FF6F61, #FFD700, #4CAF50, #1E90FF, #FF6F61);
  background-size: 300% 300%;
  animation: rainbowGradient 10s infinite;

  /* Keep text white and add a text-shadow for readability */
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}

/* Remove or reduce the dark overlay so colors match the header */
.footer-container::before {
  content: none; /* If you want to remove it entirely */

/* OR if you prefer a slight overlay, reduce opacity:
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0, 0, 0, 0.05); 
  z-index: -1;
*/
}

/* Rotate Logo Animation (unchanged) */
@keyframes rotate-logo {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Greeting & Description */

.footer-greeting {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    /* Stronger shadow for more visibility */
    text-shadow: 2px 2px 4px #000;
    color: #FFF700; /* Bright Yellow for visibility */
    display: block;
    margin-top: 15px;
    animation: glow 2s infinite alternate; /* Keep the glow animation */
}

/* Add a more pronounced glow effect */
@keyframes glow {
    0% {
        text-shadow: 0 0 5px #fff, 0 0 10px #ffd700, 0 0 20px #ff6f61;
    }
    50% {
        text-shadow: 0 0 8px #fff, 0 0 15px #ffd700, 0 0 30px #ff6f61;
    }
    100% {
        text-shadow: 0 0 5px #fff, 0 0 10px #ffd700, 0 0 20px #ff6f61;
    }
}

.footer-description {
    font-size: 1rem;
    margin-top: 10px;
    font-style: italic;
    /* Brighter text to ensure legibility, with a subtle dark background */
    color: #fff;
    line-height: 1.4;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
    padding: 10px;
    border-radius: 8px;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .footer-greeting {
        font-size: 1.4rem; /* Reduce size for smaller screens */
        margin-top: 10px;
    }
    .footer-description {
        font-size: 0.95rem;
    }
}

/* ----------------------------------
   Footer Links (Middle Column)
------------------------------------- */
.footer-links {
    flex: 1;
    text-align: center; /* Centered links in the middle column */
    margin-right: 20px; /* Spacing to next column */
}

.footer-links h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffeb3b; /* Make headings pop a bit more */
    text-shadow: 0px 0px 6px #000; /* Darker shadow for contrast */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links ul li a:hover {
    color: #FFD700;
    transform: scale(1.1);
}

/* Fun Privacy Policy & Terms Links */
.fun-link {
    font-weight: bold;
    font-style: italic;
    color: #ffeb3b;
    position: relative;
    animation: bounce 1.5s infinite ease-in-out;
    display: inline-block;
}
.fun-link:hover {
    color: #ffff66;
    transform: scale(1.2) rotate(5deg);
    transition: all 0.4s ease-in-out;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* ----------------------------------
   Social Media & Comet (Right Column)
------------------------------------- */
.footer-social {
    flex: 1;
    text-align: right;
}
.footer-social h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffeb3b;
    text-shadow: 0px 0px 6px #000;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}
.social-icons a img {
    width: 40px;
    transition: transform 0.5s ease;
}
.social-icons a:hover img {
    transform: scale(1.2) rotate(-15deg);
}

/* Spin the Comet Button */
.spin-comet-btn {
    background: linear-gradient(45deg, #FF6F61, #FFD700);
    color: #fff;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    margin-top: 10px;
}
.spin-comet-btn:hover {
    transform: scale(1.1);
}

/* Fact Display */
.fact-display {
    margin-top: 15px;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 0 4px #000; 
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    min-height: 40px;
    display: inline-block;
}

/* ----------------------------------
   Easter Egg Icon
------------------------------------- */
.easter-egg {
    position: absolute;
    bottom: 80px;
    right: 40px;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
    opacity: 0.7;
    z-index: 3;
}
.easter-egg:hover {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
}

/* ----------------------------------
   Footer Bottom
------------------------------------- */
.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 0px 0px 4px #000;
}
.footer-tagline {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #fff;
    font-style: italic;
}

/* ----------------------------------
   Animations for a Playful Feel
------------------------------------- */
@keyframes bounce-in {
    0%   { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0);     opacity: 1; }
}
.footer-links, .footer-social {
    animation: bounce-in 1s ease-in-out;
}

/* ----------------------------------
   Responsive Layout
------------------------------------- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        font-family: 'Comic Sans MS', 'Arial', sans-serif;
        align-items: center;
        text-align: center; /* Center each section on small screens */
    }
    .footer-links,
    .footer-social {
        flex: none;        /* Columns no longer share the row */
        margin-right: 0;   /* Remove horizontal spacing */
        margin-bottom: 20px;
    }
    .footer-bottom {
        margin-top: 10px;
        font-size: 0.8rem;
    }
}

/* Further adjustments for very small screens if desired */
@media (max-width: 480px) {
    .footer-greeting {
        font-size: 1.2rem;
    }
    .footer-description {
        font-size: 0.9rem;
    }
    .footer-links h4,
    .footer-social h4 {
        font-size: 1.3rem;
    }
}




/* Back to Top Button Styles */
#backToTopBtn {
    display: none; /* Initially hidden */
    position: fixed;
    bottom: 220px;
    right: 20px;
    z-index: 999;
    background-color: #FF1493; /* Bright pink for visibility */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#backToTopBtn:hover {
    transform: scale(1.2); /* Slightly enlarge on hover */
    background-color: #FFD700; /* Change color to yellow on hover */
}


/* Show the button when scrolling */
@media (min-width: 768px) {
    #backToTopBtn {
        display: block;
    }
}


/* Faster Rocket Animation */
.rocket {
    position: absolute;
    top: 10%;
    left: 80%;
    animation: rocketMove 2s linear infinite; /* Adjusted to 2s for faster movement */
}

/* Faster Book Animation */
.book {
    position: absolute;
    bottom: 15%;
    left: 30%;
    animation: bookMove 3s linear infinite; /* Adjusted to 3s for faster movement */
}

/* Faster Star Animation */
.star {
    position: absolute;
    top: 20%;
    left: 50%;
    animation: starTwinkle 1.5s ease-in-out infinite; /* Adjusted to 1.5s for faster effect */
}

/* Rocket Keyframes */
@keyframes rocketMove {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Book Keyframes */
@keyframes bookMove {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(30px) rotate(15deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Star Keyframes */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* WhatsApp Button Styles */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000; /* Ensure it appears above other elements */
  animation: bounce 2s infinite; /* Add bounce animation */
}

.whatsapp-button img {
  width: 60px;
  height: 60px;
  border-radius: 50%; /* Rounded button */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add a shadow for better visibility */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.whatsapp-button img:hover {
  transform: scale(1.2) rotate(10deg); /* Slight zoom and rotation on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Glow Animation */
.whatsapp-button img {
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
  }
  100% {
    box-shadow: 0 0 20px rgba(37, 211, 102, 1);
  }
}

/* Tooltip Styling (Always Visible) */
.whatsapp-button a::after {

  position: absolute;
  bottom: 80px; /* Adjust position above the button */
  right: 0;
  background: rgba(0, 0, 0, 0.8); /* Dark background for contrast */
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 1; /* Always visible */
  visibility: visible; /* Always visible */
  white-space: nowrap; /* Prevent text wrapping */
}


.whatsapp-button a:hover::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 80px;
    right: 10px;
  }

  .whatsapp-button img {
    width: 50px;
    height: 50px;
  }

.whatsapp-button a::after {
    font-size: 12px;
    bottom: 50px; /* Closer to the button */
    right: -10px; /* Adjust alignment */
  }
}

.help-text {
  margin-left: 10px; /* Space between icon and text */
  font-size: 16px;
  color: #ffcc00; /* Bright yellow for better contrast */
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
  text-shadow: 1px 1px 2px black; /* Text shadow for better readability */
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
  padding: 5px 10px; /* Add padding around the text */
  border-radius: 5px; /* Smooth corners */
  animation: fade-in 2s infinite alternate; /* Optional fade-in effect */
}


@keyframes fade-in {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}


/* Base Styles for Buttons */
.signup-btn, .login-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
    background: linear-gradient(45deg, #6A82FB, #FC5C7D); /* Playful gradient */
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid transparent; /* For gradient border effect */
    border-radius: 30px;
    padding: 12px 25px;
    text-align: center;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    max-width: 100%; /* Prevent buttons from exceeding parent width */
}

.signup-btn::before, .login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Use the same background as the button */
    border-radius: 30px;
    z-index: -1; /* Behind the button */
    transition: all 0.4s ease;
}

/* Animated Gradient Background */
.signup-btn, .login-btn {
    background-size: 200% 200%;
    animation: gradient-move 5s infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hover Glow Effect */
.signup-btn:hover, .login-btn:hover {
    background: linear-gradient(45deg, #FC5C7D, #6A82FB); /* Reverse gradient */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(252, 92, 125, 0.5);
    color: white; /* Ensure text is always visible */
}

/* Subtle Pressed Effect */
.signup-btn:active, .login-btn:active {
    transform: scale(0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Icon Animation */
.signup-btn i, .login-btn i {
    transition: transform 0.3s ease;
}

.signup-btn:hover i, .login-btn:hover i {
    transform: rotate(20deg);
}

/* Responsive Styling for Buttons */
@media (max-width: 768px) {
    .user-account {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0;
        width: 100%; /* Ensure full width on mobile */
        overflow: visible; /* Prevent clipping */
    }

    .signup-btn, .login-btn {
        width: 90%; /* Full width for smaller screens */
        font-size: 1rem;
        padding: 10px 20px; /* Slightly reduced padding */
    }
}

/* Example: Bounce animation on dropdown buttons hover */
.account-dropdown button:hover {
    animation: bounce 0.3s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@media (min-width: 769px) {
    .user-account {
        flex-direction: row;
        justify-content: flex-end;
        gap: 10px;
        width: auto; /* Auto size for larger screens */
    }

    .signup-btn, .login-btn {
        width: auto; /* Auto size for larger screens */
    }
}

/* Additional Styles to Prevent Clipping */
.header, .nav, .nav ul, .nav ul li, .user-account {
    overflow: visible; /* Allows child elements to overflow if necessary */
}

/* Prevent Text Wrapping */
.signup-btn, .login-btn {
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    white-space: nowrap; /* Prevent text from wrapping to maintain button integrity */
}

/* Add Margins for Spacing */
.signup-btn, .login-btn {
    margin: 5px; /* Ensure there's space around buttons */
}


/* General Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add padding for better spacing on smaller screens */
}


/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, #FFE6EA, #FFC1D0); /* Slightly lighter, playful gradient */
    border: 4px solid #FF9AA2;
    border-radius: 20px;
    padding: 30px 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    z-index: 1000; /* Keep the modal content above rocket/flame */
    position: relative;
    padding-top: 1px; /* Extra top space for close button */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: bounceIn 0.5s ease;
    overflow: hidden; /* Prevent content overflow */
}

/* STEM-Themed Illustrations */
.modal-illustration {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Bounce Animation for Modal */
@keyframes bounceIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-content h2 {
    font-family: "Fredoka One", cursive;
    color: #FF6F61;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-content h2 .rainbow {
    animation: rainbow-glow 2s infinite;
}

/* Rainbow Glow Animation */
@keyframes rainbow-glow {
    0%, 100% { color: #FF6F61; }
    25% { color: #FF9AA2; }
    50% { color: #FFDDE1; }
    75% { color: #FFB3C6; }
}

/* Close Modal Button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #FF6F61;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 9999; /* Very high so it sits above rocket */
}

.close-modal:hover {
    transform: scale(1.2);
    color: #FF3B3B;
}

/* Input Group Styling */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px; /* Space for the icons */
    border: 2px solid #FFB3C6;
    border-radius: 20px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding is included in the width */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden; /* Prevent content from spilling out */
}

.input-group input:focus {
    border-color: #FF6F61;
    background: #FFF5F5;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 111, 97, 0.5);
}

/* Input Icons */
.input-group i {
    position: absolute;
    left: 15px; /* Properly position the icon */
    top: 50%;
    transform: translateY(-50%);
    color: #FF6F61;
    font-size: 1.2rem;
    pointer-events: none;
}

/* Toggle Password Visibility Icon */
.input-group .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #FF6F61;
}

/* Modal Button Styling */
.modal-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #FF6F61, #FF9AA2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-family: "Fredoka One", cursive;
    cursor: pointer;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

.modal-button:hover {
    background: linear-gradient(45deg, #FF9AA2, #FF6F61);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 111, 97, 0.3);
}

.modal-button:active {
    transform: scale(0.95);
}

/* Pulse Animation for Button */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(255, 111, 97, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 10px rgba(255, 111, 97, 0.3);
    }
}

/* Loading Indicator */
#loadingIndicator {
    margin-top: 15px;
}

#loadingIndicator .spinner {
    border: 4px solid #FFF5F5;
    border-top: 4px solid #FF6F61;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Forgot Password Link */
.forgot-password {
    display: block;
    margin-top: 10px;
    color: #FF6F61;
    font-size: 0.9rem;
    text-decoration: none;
}

.forgot-password:hover {
    color: #FF3B3B;
}

/* Responsive Design */
@media (max-width: 480px) {
    .modal-content {
        padding: 15px 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .input-group input {
        font-size: 0.9rem;
        padding: 10px;
    }

    .modal-button {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

.logout-button {
    background-color: #4CAF50; /* Bright green for a friendly look */
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex; /* Flexbox for icon and text alignment */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logout-button i {
    font-size: 20px; /* Size of the icon */
}

.logout-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.logout-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for devices below 768px */
@media (max-width: 768px) {
    .input-group input {
        padding: 12px 35px; /* Adjust padding for smaller screens */
    }

    .input-group i {
        left: 10px; /* Adjust icon position */
    }

    .input-group .toggle-password {
        right: 10px; /* Adjust password toggle position */
    }

    .modal-content h2 {
        font-size: 1.6rem; /* Slightly smaller title for better fit */
    }

    .modal-content {
        padding: 15px; /* Reduce padding for smaller devices */
    }

    .modal-button {
        font-size: 1rem;
        padding: 10px 15px; /* Adjust button padding */
    }
}

/* Spinning Top Styles */
.spinning-top-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  touch-action: none; /* Prevents default touch behavior */
}

#spinningTop {
  width: 150px;
  height: 150px;
  user-select: none;     /* Prevents text selection */
  touch-action: none;    /* Ensures smooth pointer events */
  /* Remove any CSS animations that might conflict with JS */
  animation: none;
}

/* Gyroscopic Spinner Styles */
.gyroscopic-spinner-container {
  position: relative;
  width: 300px;  /* Adjust as needed */
  height: 300px; /* Adjust as needed */
  margin: 20px auto;
  /* Optional: add a border or background color */
  background: none; /* or simply remove this property */
}

#dysonScene {
  width: 100%;
  height: 100%;
  position: relative;
  /* No additional styles needed—the Three.js renderer handles drawing */
}


    /* Container for inline sections */
    .inline-sections {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      align-items: center;
      gap: 20px;
      margin: 20px;
    }
    /* Spinning Top Styles */
    .spinning-top-container {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 300px;
      height: 300px;
      touch-action: none;
    }
    #spinningTop {
      width: 150px;
      height: 150px;
      user-select: none;
      touch-action: none;
      animation: none;
    }
    /* Gyroscopic Spinner Styles */
    .gyroscopic-spinner-container {
      position: relative;
      width: 300px;
      height: 300px;
      background: none;
      margin: 20px auto;
    }
    #dysonScene {
      width: 100%;
      height: 100%;
      position: relative;
    }
    /* ISS Orbit and Earth Styles */
    .orbit-container {
      position: relative;
      width: 300px;
      height: 300px;
      margin: 40px auto;
    }
    /* Earth container to hold tilt and center the Earth */
    .earth-container {
      position: absolute;
      top: 50%;
      left: 50%;
      /* Center the Earth and apply a 23.5° tilt */
      transform: translate(-50%, -50%) rotateZ(23.5deg);
      width: 100px; /* Adjust size as needed */
      height: auto;
    }
    /* Earth rotates on its own axis */
    #earth {
      width: 100%;
      animation: earthRotation 20s linear infinite;
    }
    @keyframes earthRotation {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    .orbit {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 300px;
      height: 300px;
      margin: -150px; /* Half of container size */
      /* For fun, children can see a fast orbit (10s per revolution) */
      animation: orbit 10s linear infinite;
      transform-origin: center center;
    }
    #iss {
      position: absolute;
      top: 0; /* At the top of the orbit circle */
      left: 50%;
      transform: translateX(-50%);
      width: 50px; /* Adjust size as needed */
    }
    @keyframes orbit {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

/* ISS Info - High Contrast & Readability */
.iss-info {
  text-align: center;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  margin: 20px auto;
  font-size: 18px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.9); /* Lighter background for visibility */
  padding: 20px;
  border-radius: 15px;
  max-width: 850px;
  color: #000; /* Solid dark text */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

/* Heading Styling */
.iss-info strong {
  color: #ff4500; /* Bright Orange for Strong Emphasis */
  font-size: 1.5em;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Highlight Key Text */
.iss-info p {
  margin: 12px 0;
  color: #222; /* Ensures strong readability */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Style for Questions */
.iss-info .question {
  color: #007bff; /* Bold Blue for Questions */
  font-weight: bold;
  font-style: italic;
}

/* Activity Section */
.iss-info .activity {
  color: #e91e63; /* Fun Pink for Activity Section */
  font-weight: bold;
  text-decoration: underline;
}

/* Media Queries for Mobile Optimization */
@media (max-width: 768px) {
  .iss-info {
    font-size: 16px;
    padding: 15px;
    margin: 15px;
  }
}

@media (max-width: 480px) {
  .iss-info {
    font-size: 15px;
    padding: 12px;
    margin: 10px;
    border-radius: 10px;
  }

  .iss-info strong {
    font-size: 1.3em;
  }
}




.spinning-top-container,
.gyroscopic-spinner-container {
  flex: 1;
  padding: 0 10px; /* Optional: adjust spacing as needed */
}

/* Main button to toggle the ISS info */
.iss-challenge-btn {
  display: inline-block;
  margin: 20px auto;
  font-size: 16px;
  padding: 10px 15px;
  cursor: pointer;
  background-color: #ff4500; /* Or any preferred color */
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.iss-challenge-btn:hover {
  background-color: #e63900;
}

/* Close button inside the panel */

.close-btn {
  float: right;
  background: linear-gradient(45deg, #ff4081, #ff79b0); /* Eye-catching pink gradient */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  margin: -10px -10px 10px 0;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


/* ISS Info container (hidden by default) */
.iss-info {
  text-align: center;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  margin: 20px auto;
  font-size: 18px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 15px;
  max-width: 850px;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  position: relative; /* So the close button can float */
}

/* You can keep or adjust your other existing styles here, like spinning top, orbit, etc. */


/* Rocket Container Adjustments  */
/* ============================= */
.rocket-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    height: 150px; /* Reduced from 200px to 150px */
    position: relative;
    z-index: 1;    /* Lower than close button */
}

/* ============================= */
/* Rocket (Login) Image         */
/* ============================= */
#rocketLogin {
    width: 80px;  /* Reduced from 100px to 80px */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 2;   /* Still above the flame but below close button */
}

/* ============================= */
/* Rocket Flame (Login)         */
/* ============================= */
#rocketFlameLogin {
    position: absolute;
    bottom: -20px;
    width: 30px;
    height: 50px;
    background: radial-gradient(circle, orange, red, transparent);
    border-radius: 50%;
    opacity: 0; /* Hidden by default */
    z-index: 1; /* Below the rocket image */
    animation: flameFlicker 0.1s infinite;
    pointer-events: none; /* Flame shouldn't block clicks */
}

.modal-subtext {
    font-size: 0.9rem;         /* Slightly smaller font */
    line-height: 1.2;          /* Compact line height */
    color: #333;               /* Adjust color as needed */
    margin: 5px 0 10px 0;       /* Minimal top margin, moderate bottom margin */
    max-height: 40px;          /* Limit overall height */
    overflow: hidden;          /* Hide overflow if text is too long */
}


/* Rocket Image */
#rocket {
    width: 30px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Rocket Lift-Off Animation */
@keyframes liftOff {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-200px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-500px) scale(1);
        opacity: 0; /* Disappear into space */
    }
}

/* Flame Flicker Animation */
@keyframes flameFlicker {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

#rocketSignup {
    width: 80px;  /* Adjust width as needed (80px is a good smaller rocket size) */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 2;   /* Above the flame, but below the close button */
}

/* ============================= */
/* Rocket Flame (Signup)        */
/* ============================= */
#rocketFlameSignup {
    position: absolute;
    bottom: -20px; /* Positions flame below the rocket */
    width: 30px;
    height: 50px;
    background: radial-gradient(circle, orange, red, transparent);
    border-radius: 50%;
    opacity: 0; /* Hidden by default */
    z-index: 1; /* Below the rocket image */
    animation: flameFlicker 0.1s infinite; /* Flickering effect */
    pointer-events: none; /* Flame shouldn't block clicks */
}


.add-to-wishlist,
.remove-from-wishlist {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ffcc80; /* Border for a soft appearance */
    color: #fff; /* Text color */
    background: linear-gradient(135deg, #ffa726, #ff7043); /* Gradient for a vibrant look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.add-to-wishlist:hover,
.remove-from-wishlist:hover {
    background: linear-gradient(135deg, #ff7043, #ffcc80); /* Reverse gradient on hover */
    color: #333; /* Text color change on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Increase shadow for hover effect */
}

.add-to-wishlist:active,
.remove-from-wishlist:active {
    transform: translateY(2px); /* Button press effect */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Adjust shadow on press */
}

/* Optional: Add specific styling for the remove button */
.remove-from-wishlist {
    background: linear-gradient(135deg, #f44336, #ff5722);
    border: 2px solid #ff8a65;
}

.remove-from-wishlist:hover {
    background: linear-gradient(135deg, #ff5722, #f44336);
    color: #fff;
}

.custom-toast {
    font-size: 1em;
    /* Add other custom styles here */
}



/* 2. Icon Styles */
.cart-icon, .wishlist-icon {
    display: block;
    width: 36px; /* Base icon size */
    height: 36px;
}

/* General Styles for Cart and Wishlist Counts */
.cart-icon-count, .wishlist-icon-count {
    background: linear-gradient(135deg, #FF6347, #FF4500);
    border: 2px solid white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: absolute; /* Positioned relative to the icon */
}

/* Desktop: Position cart & wishlist badges in the top-right corner */
.cart-icon-count {
    top: -2px;
    right: -2px;
}

.wishlist-icon-count {
    top: -2px;
    right: -2px;
}

/* Mobile View Fixes */
@media (max-width: 768px) {
    /* Ensure .cart-link and .wishlist-link are relatively positioned */
    .cart-link, .wishlist-link {
        position: relative;
    }

    /* Slightly smaller icon for mobile */
    .cart-icon, .wishlist-icon {
        width: 32px;
        height: 32px;
    }

    /* Cart badge should be in the top-right corner, not above the icon */
    .cart-link .cart-icon-count {
        top: -12px;
        right: -12px;
        left: auto;
        bottom: auto;
        transform: none;
        width: 20px;
        height: 20px;
        font-size: 10px;
        line-height: 20px;
    }

    /* Wishlist badge stays in the top-right corner */
    .wishlist-icon-count {
        top: -8px;
        right: -8px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .cart-icon-count, .wishlist-icon-count {
        font-size: 10px;
        width: 20px;
        height: 20px;
    }
}
/* Make sure the "Goodies" icon does not get affected */
.bottom-navbar .goodies-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}


    /* For wishlist, keep the default mobile positioning if desired */
    .wishlist-icon-count {
        top: -5px; /* Adjust position for smaller screens */
        right: -5px; /* Adjust alignment */
        font-size: 8px; /* Slightly smaller font size */
        width: 18px; /* Adjust badge width */
        height: 18px; /* Adjust badge height */
    }
}

/* Extra Small Screen Adjustments */
@media (max-width: 480px) {
    .cart-icon-count, .wishlist-icon-count {
        /* Fine-tune positions on extra small screens */
        /* For cart count above the icon, adjust vertical offset if needed */
        /* The wishlist count retains its desktop/mobile settings */
        font-size: 10px; /* Slightly adjust font size */
        width: 20px; /* Adjust badge size */
        height: 20px; /* Adjust badge size */
    }
}

/* Hover Effects for Interactivity */
.cart-link:hover .cart-icon-count,
.wishlist-link:hover .wishlist-icon-count {
    background-color: #ff7043; /* Slight color change on hover */
    transform: scale(1.1); /* Slight zoom effect */
    transition: transform 0.2s ease, background-color 0.2s ease;
}
   
/***********************************
  UTILITY CLASSES
************************************/
.hidden {
  display: none !important; /* Force hidden unless JS changes it */
}

/***********************************
  PROFILE CONTAINER & ICON
************************************/
.profile-container {
  position: relative;  /* Position the dropdown absolutely within this container */
  display: inline-block;
  z-index: 1000;        /* Ensure above other elements */
  margin: 0 10px;       /* Spacing between navbar items */
}

/* Profile Icon (when visible) */
.profile-container .account-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #FFD700;       /* Gold border for visibility */
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the Profile Icon */
.profile-container .account-icon:hover {
  transform: scale(1.1) rotate(-5deg); 
  box-shadow: 0 6px 15px rgba(255, 215, 0, 1);
  animation: bounce 1.5s infinite;
}

/* Optional bounce animation (can remove if you don't want "shaking") */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/***********************************
  PROFILE DROPDOWN
************************************/
.profile-dropdown {
  position: absolute;
  top: 100%;         /* Below the icon */
  right: 0;          /* Align to the right edge of container */
  background: linear-gradient(135deg, #FF6F61, #FFD700, #48D1CC);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;        /* Initially transparent */
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 200px;
  text-align: center;
  overflow: hidden;
  z-index: 9999;
}

/* Show the dropdown on hover of .profile-container
   (If you want click-based toggling, remove this) */
.profile-container:hover .profile-dropdown {
  opacity: 1;
  transform: translateY(0);
}

/* If you want the dropdown to appear automatically on hover, 
   also remove the `.hidden` class from it in HTML, or override it: */
.profile-container:hover .profile-dropdown.hidden {
  display: block; /* Make sure it's displayed if hovered */
}

/***********************************
  DROPDOWN TITLE
************************************/
.profile-dropdown .dropdown-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: bold;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

/***********************************
  DROPDOWN LINKS
************************************/
.profile-dropdown a {
  display: flex;            /* Align icon & text horizontally */
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  margin: 10px 0;
  padding: 12px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  gap: 10px; /* Space between icon and text */
}

.profile-dropdown a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  color: #FFD700;
}

/***********************************
  ICONS INSIDE DROPDOWN LINKS
************************************/
.dropdown-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  0% {
    filter: brightness(1);
  }
  100% {
    filter: brightness(1.5);
  }
}

/***********************************
  DROPDOWN FOOTER (Spaceship)
************************************/
.dropdown-footer img {
  width: 30px;
  animation: rotate 3s infinite linear;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/***********************************
  MOBILE VIEW ADJUSTMENTS
************************************/
@media (max-width: 768px) {
  .profile-dropdown {
    position: fixed;   /* Keep it in a fixed position for better mobile usability */
    top: 60px;         /* Adjust for your header height */
    right: 10px;
    left: auto;
    width: calc(100% - 20px);
    border-radius: 10px;
    padding: 20px;
    transform: none;   /* Avoid weird transitions on mobile */
    opacity: 0;        /* Still initially hidden, JS or hover can reveal it */
  }

  /* On small screens, you might prefer no hover-based open:
     so you can remove .profile-container:hover .profile-dropdown
     and rely on JS to toggle .hidden class. */

  .profile-dropdown a {
    font-size: 1rem;
    padding: 15px;
  }

  .dropdown-icon {
    width: 25px;
    height: 25px;
  }
}



/* Account Menu Styling */
.account-menu {
    display: flex;
    overflow: visible !important;
    align-items: center; /* Ensure vertical alignment */
    justify-content: center; /* Center align in the navbar */
    position: relative;
    gap: 8px; /* Space between elements if needed */
}

/* Account Button Styling */
.account-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    animation: glow 2s infinite alternate;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 20px rgba(255, 165, 0, 1); }
}
.account-btn:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.2);
}

/* Account Icon Styling */
.account-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.account-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.3);
}

/* Dropdown Menu Styling */
.account-dropdown {
    display: none; /* Hide by default */
    position: absolute;
    top: calc(100% + 8px); /* Position below the account button */
    right: 0;
    background: linear-gradient(135deg, #FFCC80, #FF7043);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow: hidden;
    min-width: 220px;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

/* Show dropdown only on hover */
.account-menu:hover .account-dropdown {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Dropdown Title */
.dropdown-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

/* Account Dropdown Buttons */
.account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin: 0 auto;
    width: 90%;
    font-weight: bold;
    gap: 8px;
}

.account-link i {
    font-size: 1.3rem;
}

/* Log In Button */
.login-btn {
    background: linear-gradient(135deg, #FF7043, #FFCC80);
    box-shadow: 0 6px 12px rgba(255, 112, 67, 0.4);
    width: 100%;
}
.login-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #FFCC80, #FF7043);
    color: white;
    box-shadow: 0 8px 16px rgba(255, 112, 67, 0.6);
}

/* Sign Up Button */
.signup-btn {
    background: linear-gradient(135deg, #6A5ACD, #48D1CC);
    box-shadow: 0 6px 12px rgba(72, 209, 204, 0.4);
    width: 100%;
}
.signup-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #48D1CC, #6A5ACD);
    color: white;
    box-shadow: 0 8px 16px rgba(72, 209, 204, 0.6);
}

/* Dropdown Footer Styling */
.dropdown-footer {
    padding: 10px;
    background: rgba(255, 223, 186, 0.8);
    text-align: center;
    border-top: 1px solid #ddd;
}
.dropdown-footer img {
    width: 25px;
    animation: glow 1.5s infinite alternate;
}


/* Default Custom Cursor */
body {
    cursor: url('images/star-cursor.png'), auto; /* Ensure correct file path and size */
}

/* Cursor on Hover for Links */
a:hover {
    cursor: url('images/sparkle-cursor.png'), auto;
}

/* Custom Cursor for Navbar Links */
.nav a {
    cursor: url('images/rocket-cursor.png'), auto;
}

/* Custom Cursor for Buttons */
button {
    cursor: url('images/hand-cursor.png'), auto;
}

/* Cursor Trail */
.cursor-trail {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none; /* Prevent capturing clicks */
}

/* Fading Animation for Trail */
@keyframes trail-fade {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(2);
    }
}



 /* ---------- Feedback Modal & Button Styles ---------- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000; /* Increased as previously recommended */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow-y: auto;
}

#feedbackModal {
    z-index: 10001; /* Slightly higher to ensure precedence */
}

/* Ensure flexbox when modal is shown */
#feedbackModal[style*="display: flex"] {
    display: flex !important; /* Enforce flexbox */
}

.feedback-modal .modal-content {
    background: linear-gradient(135deg, #FFDDE1, #FFB3C6);
    border: 4px solid #FF6F61;
    border-top: 6px solid #FF4500;
    border-bottom: 6px solid #FF4500;
    border-radius: 20px;
    padding: 50px 30px 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
    @keyframes bounceIn {
      0% { transform: translateY(-50px); opacity: 0; }
      100% { transform: translateY(0); opacity: 1; }
    }
    .feedback-modal .close-modal {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 1.8rem;
      color: #FF6F61;
      cursor: pointer;
      transition: transform 0.3s ease, color 0.3s ease;
    }
    .feedback-modal .close-modal:hover {
      transform: scale(1.2);
      color: #E74C3C;
    }
    .modal-subtext {
      font-size: 0.95rem;
      color: #666;
      margin: 10px 0 20px;
    }
    /* Mascot & Rocket for Feedback */
    .mascot-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-bottom: 20px;
      position: relative;
    }
    .mascot-image {
      width: 120px;
      height: auto;
      border-radius: 50%;
      z-index: 2;
    }

.mascot-flame {
    position: absolute;
    bottom: -10px;
    width: 30px;
    height: 60px;
    background: radial-gradient(circle, orange, red, transparent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mascot-image.lift-off + .mascot-flame {
    opacity: 1;
    animation: flameFlicker 0.1s infinite;
}
@keyframes flameFlicker {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.speech-bubble {
    background: #fff;
    color: #FF6F61;
    border: 2px solid #FF6F61;
    border-radius: 15px;
    padding: 10px 15px;
    max-width: 60%; /* Relative to modal width */
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 3;
    position: relative;
}
.speech-bubble:before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px; /* Slightly smaller for mobile */
    border-style: solid;
    border-color: transparent #FF6F61 transparent transparent;
}
@media (max-width: 400px) {
    .speech-bubble {
        max-width: 80%;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    .speech-bubble:before {
        border-width: 6px;
    }
}

    /* Input Groups */
    .feedback-modal .input-group {
      position: relative;
      margin-bottom: 20px;
    }
    .feedback-modal .input-group input,
    .feedback-modal .input-group textarea {
      width: 100%;
      padding: 12px 40px;
      border: 2px solid #FFB3C6;
      border-radius: 20px;
      font-size: 1rem;
      background: #FFF5F5;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
    }
    .feedback-modal .input-group input:focus,
    .feedback-modal .input-group textarea:focus {
      border-color: #FF6F61;
      box-shadow: 0 0 8px rgba(255, 111, 97, 0.5);
      outline: none;
    }
    .feedback-modal .input-group .icon {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: #FF6F61;
      font-size: 1.2rem;
      pointer-events: none;
    }
    /* Emoji Rating */
    .emoji-rating { margin-top: 10px; }
    .emoji-container {
      display: flex;
      justify-content: space-between;
      margin-top: 10px;
    }
    .emoji-container span { font-size: 1.2rem; }
    /* Modal Button */
@media (max-width: 400px) {
    .emoji-container span {
        font-size: 1rem;
    }
}

.feedback-modal .modal-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #FF6F61, #FF9AA2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-family: "Fredoka One", "Arial", "Helvetica", sans-serif;
    cursor: pointer;
    text-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    animation: pulse 2s infinite;
}
.feedback-modal .modal-button:hover {
    background: linear-gradient(45deg, #FF9AA2, #FF6F61);
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(255, 111, 97, 0.3);
    animation-play-state: paused; /* Pause pulse animation on hover */
}
    /* Loading Indicator */
    #feedbackLoadingIndicator1 {
      margin-top: 15px;
    }
    #feedbackLoadingIndicator1 .spinner {
      border: 4px solid #FFF5F5;
      border-top: 4px solid #FF6F61;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Sticky Superpower Button */
.sticky-feedback-button {
    position: fixed; /* Keeps the button fixed on the screen */
    bottom: 150px; /* Position above the bottom edge */
    right: 20px; /* Position near the right edge */
    background: linear-gradient(45deg, #FF6F61, #FFD700, #1E90FF); /* Vibrant color gradient */
    color: white;
    font-size: 1.2rem;
    font-family: "Fredoka One", cursive;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
    z-index: 998; /* Ensure it's above most elements */
    animation: float 3s infinite ease-in-out, color-change 5s infinite alternate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect for the Superpower Button */
.sticky-feedback-button:hover {
    transform: scale(1.2) rotate(-3deg); /* Slight zoom and playful tilt */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); /* Enhanced hover shadow */
}

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }
    @keyframes color-change {
      0% { background: linear-gradient(45deg, #FF6F61, #FFD700, #1E90FF); }
      50% { background: linear-gradient(45deg, #1E90FF, #48D1CC, #FF9A9E); }
      100% { background: linear-gradient(45deg, #FFD700, #4CAF50, #FF6F61); }
    }

/* WhatsApp Icon */
.whatsapp-icon {
    position: fixed; /* Keep WhatsApp icon fixed */
    bottom: 20px; /* Adjust distance from the bottom */
    right: 20px; /* Align it on the right */
    z-index: 998; /* Lower than the feedback button */
}

.lift-off {
    animation: rocketLiftOff 1.5s ease-in-out forwards; /* Smooth lift-off */
}

/* Define rocket lift-off animation */
@keyframes rocketLiftOff {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-500px); /* Rocket moves up */
        opacity: 0; /* Rocket fades out */
    }
}

@keyframes galaxyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(2deg); }
  30% { transform: rotate(-2deg); }
  45% { transform: rotate(2deg); }
  60% { transform: rotate(-2deg); }
  75% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

.teleport-button {
  display: inline-flex;           /* Put items in a row */
  align-items: center;            /* Vertically center them */
  justify-content: center;        /* Horizontally center the group */
  background: linear-gradient(270deg, #ff6bc7, #ffca36, #fd9643, #ff6bc7);
  background-size: 600% 600%;
  animation: galaxyGradient 6s ease infinite;
  color: #fff;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: bold;
  padding: 25px 35px;
  border: none;
  border-radius: 20px;
  margin: 15px auto;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Left & right icons each in their own span */
.icon-left, 
.icon-right {
  display: inline-flex;           /* Let them behave like small 'containers' */
  align-items: center;
  justify-content: center;
  margin: 0 0.3em;                /* Small horizontal space around icons */
}

/* The text itself can remain in a separate span */
.button-text {
  display: inline-block;          /* default inline-block is fine */
}

/* Hover & Active states */
.teleport-button:hover {
  animation: wiggle 0.5s; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.teleport-button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Example of the gradient keyframe animation */
@keyframes galaxyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Example wiggle animation */
@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}


/* Responsive tweaks for smaller screens */
@media (max-width: 768px) {
  .teleport-button {
    font-size: 1rem;
    padding: 30px 40px;
  }
}
@media (max-width: 480px) {
  .teleport-button {
    font-size: 0.6rem;
    padding: 10px 18px;
  }
}


/* css/styles.css */

/* ... Existing Styles ... */

/* Interactive Elements Styles */
.interactive-elements {
    padding: 20px;
    margin: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.interactive-elements h2 {
    color: #4caf50;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
}

 .guess-ending {
        background-color: #f0f8ff;
        border: 2px dashed #8a2be2;
        padding: 20px;
        border-radius: 10px;
        max-width: 600px;
        margin: 0 auto;
        font-family: 'Comic Sans MS', cursive, sans-serif;
    }
    .guess-ending h3 {
        color: #ff69b4;
        text-align: center;
    }
    .guess-ending p {
        font-size: 1.1em;
        color: #333;
    }
    #guess-input {
        width: 100%;
        height: 100px;
        padding: 10px;
        border: 2px solid #8a2be2;
        border-radius: 5px;
        resize: none;
        font-family: 'Comic Sans MS', cursive, sans-serif;
        margin-bottom: 10px;
    }
    #submit-guess {
        background-color: #8a2be2;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
    }
    #submit-guess:hover {
        background-color: #7a1ec2;
    }
    #guess-feedback {
        margin-top: 15px;
        font-weight: bold;
        color: #ff4500;
        text-align: center;
    }
/* Animations Styles */
.animations {
    padding: 20px;
    margin: 20px;
    background: #e3f2fd;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.animations h2 {
    font-size: 1.8rem;
    color: #2196f3;
    margin-bottom: 15px;
}

#mini-animation {
    width: 80%;
    height: 200px;
    margin: 0 auto;
    border: 2px dashed #2196f3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196f3;
    font-size: 1.2rem;
    background: white;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* =========================
   Book Details Section Enhancements
   ========================= */

.book-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    margin: 40px auto;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    max-width: 1200px;
    gap: 40px;
}

.book-details img {
    flex: 1 1 300px;
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-details .details {
    flex: 2 1 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book-details .details h1 {
    font-size: 2.8rem;
    color: #333333;
    margin-bottom: 10px;
}

.book-details .details .authors {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 15px;
}

.book-details .details .price {
    font-size: 1.6rem;
    color: #ff5722;
    font-weight: bold;
    margin-bottom: 20px;
}

.book-details .details .description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.book-details .details .actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.book-details .details .actions button {
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1 1 200px;
}

.book-details .details .actions .add-to-cart {
    background-color: #ff5722;
    color: white;
}

.book-details .details .actions .add-to-cart:hover {
    background-color: #e64a19;
    transform: translateY(-3px);
}

.book-details .details .actions .remove-from-cart {
    background-color: #f44336;
    color: white;
}

.book-details .details .actions .remove-from-cart:hover {
    background-color: #d32f2f;
    transform: translateY(-3px);
}

.book-details .details .actions .add-to-wishlist {
    background-color: #ff9800;
    color: white;
}

.book-details .details .actions .add-to-wishlist:hover {
    background-color: #fb8c00;
    transform: translateY(-3px);
}

.book-details .details .actions .remove-from-wishlist {
    background-color: #f44336;
    color: white;
}

.book-details .details .actions .remove-from-wishlist:hover {
    background-color: #d32f2f;
    transform: translateY(-3px);
}

.book-details .details .actions .preview-button {
    background-color: #4caf50;
    color: white;
}

.book-details .details .actions .preview-button:hover {
    background-color: #388e3c;
    transform: translateY(-3px);
}

/* =========================
   Preview Page Specific Styles
   ========================= */

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #555555;
}

/* Hide the canvas initially */
#previewCanvas {
    display: none;
}

/* Navigation Controls */
.navigation-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.navigation-controls button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navigation-controls button:hover {
    background-color: #388e3c;
    transform: translateY(-2px);
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 15px;
}

.zoom-controls button {
    padding: 8px 16px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.zoom-controls button:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
}

/* =========================
   Responsive Styles
   ========================= */
@media (max-width: 992px) {
    .book-details {
        padding: 30px;
        margin: 30px auto;
        gap: 30px;
    }
    
    .book-details img {
        max-width: 250px;
    }
    
    .book-details .details h1 {
        font-size: 2.5rem;
    }
    
    .book-details .details .price {
        font-size: 1.5rem;
    }
    
    .book-details .details .actions button {
        flex: 1 1 180px;
        padding: 12px 20px;
    }

    /* Navigation Controls */
    .navigation-controls button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Zoom Controls */
    .zoom-controls button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .book-details {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        margin: 20px auto;
        gap: 20px;
    }
    
    .book-details img {
        max-width: 100%;
    }
    
    .book-details .details {
        align-items: center;
        text-align: center;
    }
    
    .book-details .details h1 {
        font-size: 2.2rem;
    }
    
    .book-details .details .price {
        font-size: 1.4rem;
    }
    
    .book-details .details .actions {
        justify-content: center;
    }
    
    .book-details .details .actions button {
        flex: 1 1 100%;
        max-width: 250px;
    }

    /* Navigation Controls */
    .navigation-controls button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Zoom Controls */
    .zoom-controls button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* =========================
   Additional Elements for Children's Appeal (Optional)
   ========================= */

/* Floating Balloons */
.balloon {
    position: absolute;
    bottom: -150px; /* Start below the viewport */
    width: 60px; /* Adjust size as needed */
    animation: floatUp 10s linear infinite;
    opacity: 0.9; /* Slight transparency for a natural look */
    z-index: 1; /* Ensure balloons are behind main content */
    will-change: transform, opacity; /* Optimize performance */
}

/* Additional Keyframes for Different Float Directions */

/* Float Up and Left */
@keyframes floatUpLeft {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-100px) scale(1.2);
        opacity: 0;
    }
}

/* Float Up and Right */
@keyframes floatUpRight {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(100px) scale(1.2);
        opacity: 0;
    }
}

/* Apply Different Animations to Balloons */

.balloon1 {
    left: 20%;
    animation-name: floatUpLeft;
    animation-duration: 10s;
    animation-delay: 0s;
}

.balloon2 {
    left: 50%;
    animation-name: floatUpRight;
    animation-duration: 12s;
    animation-delay: 2s;
    transform: translateX(-50%);
}

.balloon3 {
    left: 80%;
    animation-name: floatUpLeft;
    animation-duration: 14s;
    animation-delay: 4s;
    transform: translateX(-50%);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .balloon {
        width: 40px; /* Smaller balloons on small screens */
    }

    /* Adjust positions if necessary */
    .balloon1, .balloon2, .balloon3 {
        left: auto;
        right: 10%; /* Stack balloons from the right */
    }
}

/* Loading Indicator Styles */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #555555;
    z-index: 10;
}

/* Disable text selection for better UX */
button {
    user-select: none;
}

fun-facts, .meet-characters, .reviews, .guess-ending {
            background-color: #e6e6fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .fun-facts h3, .meet-characters h3, .reviews h3, .guess-ending h3 {
            color: #ff69b4;
            margin-bottom: 15px;
            text-align: center;
        }

        .fun-facts ul {
            list-style: none;
        }

        .fun-facts li {
            margin-bottom: 10px;
            padding-left: 20px;
            position: relative;
        }

        .fun-facts li::before {
            content: '✨';
            position: absolute;
            left: 0;
        }

        .meet-characters {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }

        .character-card {
            background-color: #fff;
            border: 2px solid #8a2be2;
            border-radius: 10px;
            width: 200px;
            margin: 10px;
            text-align: center;
            padding: 10px;
            transition: transform 0.3s;
        }

        .character-card:hover {
            transform: scale(1.05);
        }

        .character-card img {
            width: 100%;
            border-radius: 10px;
        }

        .character-card h4 {
            margin-top: 10px;
            color: #4b0082;
        }

        .reviews blockquote {
            font-style: italic;
            margin-bottom: 10px;
            position: relative;
            padding-left: 20px;
        }

        .reviews blockquote::before {
            content: '📚';
            position: absolute;
            left: 0;
            top: 0;
        }
 /* Responsive Design */
        @media (max-width: 768px) {
            .meet-characters {
                flex-direction: column;
                align-items: center;
            }

            .character-card {
                width: 80%;
            }
        }

/* Secret Treasure Button Glow */
  #surpriseButton {
    background: linear-gradient(to right, #ffcc33, #ff9933);
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0px 5px 15px rgba(255, 153, 51, 0.6);
    transition: transform 0.3s, background-color 0.3s;
  }

  #surpriseButton:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #ff9933, #ff6600);
  }

  #surpriseButton:active {
    transform: scale(0.95);
    background: linear-gradient(to right, #ff6600, #cc3300);
  }

  /* Mascot Float Animation */
  @keyframes floatUp {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  /* Add some fun mascot interactivity */
  #mascotArea img:hover {
    transform: rotate(10deg) scale(1.05);
    transition: transform 0.3s ease-in-out;
  }

/* =========================
   Audio Preview Section
   ========================= */
.audio-preview {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7c741, #ff6b6b);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 30px auto;
    width: 80%;
    max-width: 600px;
    animation: pulse 3s infinite;
}

.audio-preview h3 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px #000;
}

/* Animated background effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        background: linear-gradient(135deg, #f7c741, #ff6b6b);
    }
    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #ff6b6b, #f7c741);
    }
    100% {
        transform: scale(1);
        background: linear-gradient(135deg, #f7c741, #ff6b6b);
    }
}

/* =========================
   Audio Player Styling
   ========================= */
#audio-player-container {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: bounce 2s infinite;
}

/* Fun bouncing effect */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Custom Audio Player Styling */
audio {
    width: 100%;
    border-radius: 10px;
}

/* Custom Play Button */
audio::-webkit-media-controls-play-button {
    background-color: #ff6b6b;
    border-radius: 50%;
    padding: 5px;
}

/* Add a fun sparkle effect */
.audio-preview::before {
    content: "✨";
    font-size: 30px;
    position: absolute;
    left: 10px;
    top: -15px;
    animation: sparkle 1.5s infinite;
}

.audio-preview::after {
    content: "🎵";
    font-size: 30px;
    position: absolute;
    right: 10px;
    bottom: -15px;
    animation: sparkle 1.5s infinite;
}

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* =========================
   Listen to Preview Button
   ========================= */
.preview-button {
    background: linear-gradient(45deg, #ff6b6b, #ffbb33);
    border: none;
    color: white;
    font-size: 18px;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.preview-button:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #ffbb33, #ff6b6b);
}

/* Icon Animation */
.preview-button::before {
  /* Change 👀 to any emoji or character you like, e.g. "📖" */
  content: "👀";
  font-size: 22px;
  margin-right: 10px;
  animation: iconBounce 2s infinite;
}

/* Music Note Bouncing */
@keyframes musicBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Bottom Navbar Styles - Fun & Kid-Friendly */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 90px; /* Slightly taller for a playful look */
    /* Bright, playful gradient: hot pink to electric blue */
    background: linear-gradient(135deg, #ff4081, #448aff);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-top: 3px solid #fff; /* Adds a crisp edge */
}

.bottom-navbar ul {
    display: flex;
    justify-content: space-around;
    align-items: center; /* Ensure consistent vertical alignment */
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
}

.bottom-navbar li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative; /* Needed for badge positioning */
    padding: 5px 0; /* Ensure uniform spacing */
}
/* Each link stacks icon on top and label below */
.bottom-navbar li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff; /* Use white for text for contrast */
    font-family: 'Fredoka One', cursive; /* Fun, bubbly font */
    transition: transform 0.2s ease;
}

/* Bounce effect on tap/hover */
.bottom-navbar li a:hover {
    animation: bounce 0.5s;
}

/* Navbar Icon */
.bottom-navbar .navbar-icon {
    position: relative;
    width: 55px; /* Bigger icon */
    height: 55px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.bottom-navbar .navbar-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.bottom-navbar .navbar-icon:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.5);
}

.navbar-label {
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    margin-top: 4px;
    color: #fff;
    display: inline-block; /* Change to inline-block to avoid full-width block behavior */
    vertical-align: middle; /* Align with icon */
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Cart Count Badge - positioned just above the icon */
.cart-link {
    position: relative;
}

.cart-link .cart-icon-count {
    background: linear-gradient(135deg, #ffeb3b, #fbc02d); /* Fun yellow badge */
    border: 2px solid #fff;
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    bottom: calc(100% + 4px); /* Position badge above icon */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        padding-bottom: 90px;
    }
}



/* Search Bar Styles within Bottom Navbar */
.search-bar-mobile {
    flex: 1; /* Adjusted width */
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar-mobile form {
    display: flex;
    align-items: center;
}

.search-bar-mobile input {
    width: 80px; /* Reduced width for better fit */
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    outline: none;
    font-size: 0.8rem;
    background-color: #fff3e0;
    transition: width 0.3s;
}

.search-bar-mobile input:focus {
    width: 120px; /* Expanded width on focus */
}

.search-bar-mobile button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: -25px; /* Adjusted positioning */
    font-size: 1rem;
}

/* Search Icon Styles */
.search-icon {
    width: 20px;
    height: 20px;
}

/* Hide Bottom Navbar on Desktop */
@media (min-width: 769px) { 
    .bottom-navbar {
        display: none;
    }
}

/* Show Bottom Navbar only on mobile */
@media (max-width: 768px) {
    .bottom-navbar {
        display: flex; /* Ensure flex display */
    }

    /* Adjust body padding to prevent content overlap */
    body {
        padding-bottom: 60px; /* Height of the bottom navbar */
    }

    /* Adjust search bar styles if necessary */
    .search-menu-mobile a {
        flex-direction: row; /* Align search icon and label horizontally */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-bar-mobile {
        flex: 1; /* Adjust width to fit within navbar */
    }

    .search-bar-mobile input {
        width: 80px; /* Reduced width */
    }
}

/* Additional Enhancements for Kid-Friendliness */

/* Add Bouncing Animation on Hover */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px); /* Slight bounce */
    }
    60% {
        transform: translateY(-3px);
    }
}

.bottom-navbar .navbar-icon:hover {
    animation: bounce 0.5s;
}

/* Use More Vibrant Colors for Specific Icons */
#bottomSearch {
    background-color: #00aaff; /* Bright blue */
}

#whatsappIcon {
    background-color: #00cc66; /* Vibrant green */
}

#anotherIcon {
    background-color: #cc00ff; /* Purple */
}

/* Use SVGs for Better Scalability (Assuming you have SVG icons) */
.bottom-navbar .navbar-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain; /* Ensure images fit within the icon */
}



/* Visually Hidden Text for Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

    /* Account Page Layout */
        .account-page {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
        }

        /* Astronaut Image */
        .astronaut-container {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .astronaut-container img {
            width: 350px;
            max-width: 90%;
            border-radius: 15px;
        }

        /* Account Box */
        .account-container {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(8px);
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
            width: 90%;
            max-width: 400px;
            text-align: center;
            margin-top: 20px;
        }

        /* Title */
        .account-title {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #ff9900;
        }

        .curious-text {
            color: #ff4500;
            font-size: 2.2rem;
        }

        /* Buttons */
        .button-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .login-btn, .signup-btn {
            font-size: 1.2rem;
            padding: 12px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            width: 100%;
            max-width: 280px;
            margin: 0 auto;
            text-align: center;
            transition: transform 0.3s;
        }

        .login-btn {
            background: #ff7043;
            color: white;
        }

        .signup-btn {
            background: #42a5f5;
            color: white;
        }

        .login-btn:hover {
            background: #ff5722;
            transform: scale(1.05);
        }

        .signup-btn:hover {
            background: #1e88e5;
            transform: scale(1.05);
        }

        /* Back to Home */
        .back-home {
            display: block;
            margin-top: 15px;
            font-size: 1rem;
            color: #ff5722;
            text-decoration: none;
            transition: color 0.3s;
        }

        .back-home:hover {
            color: #e64a19;
        }



.price-highlight {
  margin-top: 8px;
  background: linear-gradient(45deg, #FF6F61, #FFD700);
  color: #fff;
  /* Increase horizontal padding so the sparkles won't overlap the text */
  padding: 12px 50px; 
  border-radius: 8px;
  font-size: 1.2rem;
  display: inline-block;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Position the sparkles on the left and right with enough horizontal space */
.price-highlight::before,
.price-highlight::after {
  content: "✨";
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Centers the emoji vertically */
  font-size: 1.4rem;
  animation: sparkle 1.5s infinite;
  color: #fff;
}

/* Left Sparkle */
.price-highlight::before {
  left: 16px; /* Adjust to ensure no overlap */
}

/* Right Sparkle */
.price-highlight::after {
  right: 16px; /* Adjust to ensure no overlap */
}

/* Sparkle Animation */
@keyframes sparkle {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
  }
}

/* Emphasize the ₹99 Price */
.book-price {
  font-weight: bold;
  font-size: 1.4rem;
  color: #fff;
  margin-right: 5px;
}

/* Fun Text Next to the Price */
.price-details {
  font-size: 0.95rem;
  color: #fff;
  font-style: italic;
  display: inline-block;
  /* If you want the text on a new line, use display: block; */
}

/* -------- Price Styling for Responsive Screens -------- */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .price-highlight {
    font-size: 1rem;
    padding: 10px 35px;
  }

  .price-highlight::before,
  .price-highlight::after {
    font-size: 1rem;
    left: 10px;
    right: 10px;
  }

  .book-price {
    font-size: 1.3rem;
  }

  .price-details {
    font-size: 0.9rem;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .price-highlight {
    font-size: 2rem;
    padding: 12px 35px;
  }

  .price-highlight::before,
  .price-highlight::after {
    font-size: 2rem;
    left: 8px;
    right: 8px;
  }

  .book-price {
    font-size: 1.2rem;
  }

  .price-details {
    font-size: 1.5rem;
  }
}

/* Smaller Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .price-highlight {
    font-size: 0.85rem;
    padding: 6px 20px;
    border-radius: 5px;
  }

  .price-highlight::before,
  .price-highlight::after {
    font-size: 0.8rem;
    left: 5px;
    right: 5px;
  }

  .book-price {
    font-size: 1.1rem;
  }

  .price-details {
    font-size: 0.7rem;
  }
}


.zoom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Stack icon and text */
  background: linear-gradient(to right, #800080, #9932CC); /* Purple gradient */
  color: white;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-size: 0.6rem; /* Matching font size */
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 6px; /* Adjust padding for less height */
  border: none;
  border-radius: 10px; /* Smooth rounded corners */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
  margin: 5px auto; /* Center with compact margin */
  width: 120px; /* Same width */
  height: 40px; /* Same height */
  text-align: center;
}

.zoom-button:hover {
  background: linear-gradient(to right, #9932CC, #800080); /* Reverse purple gradient on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.zoom-button:active {
  transform: scale(0.95); /* Shrink slightly on click */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.unavailable-message {
  display: inline-block;
  padding: 8px 16px;
  font-family: 'Comic Sans MS', cursive;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(90deg, #ff7f50, #ff69b4);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-top: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unavailable-message:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* CONTENT SECTIONS */
.content-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0.5rem auto 2rem;
  font-size: 1.1rem;
}

.alt-bg {
  background-color: #ffffff;
}

/* Cosmic Challenges Section Container */
#challenges {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #e0f7fa, #f1f8e9); /* Refreshing cosmic pastel gradient */
}

/* Section Title */
#challenges h2 {
  font-family: 'Comic Neue', cursive;
  font-size: 2.5rem;
  color: #00897b;
  margin-bottom: 10px;
}

/* Introductory Text */
#challenges .section-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}

/* Challenge Examples Layout */
.challenge-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 0 10px;
}

/* Individual Challenge Item */
.challenge-item {
  background-color: #fff;
  border: 2px solid #00897b;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Challenge Item Title */
.challenge-item h3 {
  font-family: 'Comic Neue', cursive;
  font-size: 1.8rem;
  color: #004d40;
  margin-bottom: 10px;
}

/* Challenge Item Paragraph */
.challenge-item p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #333;
}

/* Hover Effect on Challenge Item */
.challenge-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Explore More Button */
#challenges .explore-more .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #00897b;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

#challenges .explore-more .btn:hover {
  background-color: #00695c;
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
  #challenges {
    padding: 40px 15px;
  }
  #challenges h2 {
    font-size: 2rem;
  }
  #challenges .section-intro {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .challenge-examples {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #challenges .explore-more .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}




/* Memes Section Container */
#memes {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #FDEFF9, #E8F5FF); /* Fun pastel gradient */
}

/* Memes Section Title */
#memes h2 {
  font-family: 'Comic Neue', cursive;
  font-size: 2.5rem;
  color: #ff4081;
  margin-bottom: 10px;
}

/* Introductory Text */
#memes .section-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}

/* Meme Examples Layout */
.meme-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 0 10px;
}

/* Individual Meme Card */
.meme-item {
  background-color: #fff;
  border: 2px dashed #ff4081; /* Playful dashed border */
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Meme Image */
.meme-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Meme Caption */
.meme-item p {
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  color: #333;
}

/* Hover Effect on Meme Card */
.meme-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Explore More Button for Memes */
#memes .explore-more .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #ff4081;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

#memes .explore-more .btn:hover {
  background-color: #e040fb;
  transform: scale(1.05);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  #memes {
    padding: 40px 15px;
  }
  #memes h2 {
    font-size: 2rem;
  }
  #memes .section-intro {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .meme-examples {
    grid-template-columns: 1fr; /* Stacks cards vertically on smaller screens */
    gap: 15px;
  }
  .meme-item {
    padding: 10px;
  }
  #memes .explore-more .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* Editor's Stellar Printables Section */
#printables {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #FFF9F2, #FFEFEF); /* Warm, inviting pastel gradient */
}

/* Section Title */
#printables h2 {
  font-family: 'Comic Neue', cursive;
  font-size: 2.5rem;
  color: #FF6F91; /* Bright, playful pink */
  margin-bottom: 10px;
}

/* Introductory Text */
#printables .section-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}

/* Printable Examples Grid */
.printable-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 0 10px;
}

/* Individual Printable Card */
.printable-item {
  background-color: #fff;
  border: 2px solid #FF6F91; /* Playful border */
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Printable Image */
.printable-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Printable Caption */
.printable-item p {
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  color: #333;
}

/* Hover Effect on Printable Card */
.printable-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Explore More Button */
#printables .explore-more .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #FF6F91;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

#printables .explore-more .btn:hover {
  background-color: #E040FB;
  transform: scale(1.05);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  #printables {
    padding: 40px 15px;
  }
  #printables h2 {
    font-size: 2rem;
  }
  #printables .section-intro {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .printable-examples {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .printable-item {
    padding: 10px;
  }
  #printables .explore-more .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

.categories-section {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.categories-section > div {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* Ensures responsiveness */
  align-items: stretch; /* Make all .category-card the same height in a row */
}

/* Make entire card clickable, no underline */
.category-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Category card as a flex column */
.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space between top content & button */
  align-items: center;
  width: 350px; /* Increased from 280px */
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-align: center;
}

/* Hover effect */
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Fix image dimensions for uniform height; 
   'object-fit: cover' crops edges if the aspect ratio differs */
.category-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Category Title */
.category-card h2 {
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: #FF6F61;
  text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.2);
    
}

/* Description text */
.category-card p {
  font-size: 1rem;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Updated category button styling */
.category-card .btn {
  display: inline-flex;           /* Align inner content in a row */
  align-items: center;
  justify-content: center;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  background: linear-gradient(270deg, #ff6bc7, #ffca36, #fd9643, #ff6bc7);
  background-size: 600% 600%;
  animation: galaxyGradient 6s ease infinite;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.category-card .btn:hover {
  animation: wiggle 0.5s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.category-card .btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ensure the keyframe animations are defined */
@keyframes galaxyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .categories-section > div {
    flex-direction: column;
    align-items: center;
  }

  .category-card {
    width: 100%;
    max-width: 450px; /* Increased max width for mobile */
  }
}



/* Featured Games: Use grid layout with exactly three columns */
#featuredGames .book-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
}

/* Each card: removed fixed width so it fills the grid cell */
#featuredGames .featured-game-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff6e0;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect on the entire card */
#featuredGames .featured-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

#featuredGames .featured-game-card .card-image {
  height: 180px;      /* Consistent container height */
  overflow: hidden;   /* Hide any overflow if image is narrower or taller */
}

#featuredGames .featured-game-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows the entire image within 180px */
  display: block;
}

/* Card content: fills remaining space and is a flex container for proper alignment */
#featuredGames .featured-game-card .card-content {
  flex-grow: 1;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  padding: 15px;
  text-align: center;
}

/* Title styling */
#featuredGames .featured-game-card .card-content h4 {
  font-family: 'Comic Neue', cursive;
  color: #ff6600;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Bottom area (heart + button) pinned at the bottom */
#featuredGames .featured-game-card .bottom-area {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Heart icon and count styling */
.like-container {
  margin-bottom: 8px;
}

.heart-icon {
  font-size: 1.2rem;
  color: #1e90ff;
  margin-right: 4px;
}

/* Play button styling (using the same gradient as teleport-button) */
.play-button {
  display: inline-flex;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
  align-items: center;
  justify-content: center;
  background: linear-gradient(270deg, #ff6bc7, #ffca36, #fd9643, #ff6bc7);
  background-size: 600% 600%;
  animation: galaxyGradient 6s ease infinite;
  color: #fff;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.play-button:hover {
  animation: wiggle 0.5s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Make the entire card clickable */
.card-link {
  text-decoration: none;
  color: inherit;
}

/* Keyframe animations */
@keyframes galaxyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}



.explore-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(270deg, #ff6bc7, #ffca36, #fd9643, #ff6bc7);
  background-size: 600% 600%;
  animation: galaxyGradient 6s ease infinite;
  color: #fff;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.explore-more-button:hover {
  animation: wiggle 0.5s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.explore-more-button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ensure keyframe animations are defined */
@keyframes galaxyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* Banner Container: side-by-side layout */
.play-now-banner {
  display: inline-flex;         /* Puts icon + text on one line */
  align-items: center;          /* Vertically center them */
  justify-content: center;      /* Center horizontally within banner */
  gap: 10px;                    /* Small space between icon & text */
  background: linear-gradient(270deg, #ff6bc7, #ffca36, #fd9643, #ff6bc7);
  background-size: 600% 600%;
  animation: galaxyGradient 6s ease infinite;
  padding: 12px 20px;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  border-radius: 20px;
  color: #fff;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Icon: scaled down if needed */
.play-icon {
  width: 32px;    /* Adjust as desired */
  height: auto;
  display: block;
}

/* Optional: separate text styling */
.play-now-text {
  display: inline-block;
}

/* Hover & active animations */
.play-now-banner:hover {
  animation: wiggle 0.5s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.play-now-banner:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Keyframes for gradient & wiggle (if not already defined) */
@keyframes galaxyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}



/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
  /* Same playful background color or a light gradient */
  background: #fff6e0; 
  /* Or try a subtle gradient:
     background: linear-gradient(135deg, #fff6e0 60%, #ffefd5 100%);
  */
  padding: 60px 20px;
  text-align: center; /* Center headings and intro */
}

/* Heading in a playful gradient text style */
.testimonial-heading {
  font-family: 'Comic Neue', cursive;
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(270deg, #ff6bc7, #ffca36, #fd9643, #ff6bc7);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: galaxyGradient 6s ease infinite;
  text-transform: uppercase;
}

/* Intro text just below heading */
.testimonial-intro {
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
}

/* Grid layout for 3 testimonial cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto; /* Center the grid container */
}

/* Individual testimonial cards */
.testimonial-card {
  background-color: #fff; /* White card background */
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center avatar & text */
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect to match your game cards */
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Avatar styling: circle, consistent size */
.testimonial-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  margin-bottom: 15px;
}

/* Quoted text styling */
.testimonial-quote {
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: #333;
  line-height: 1.5;
  margin: 0 0 10px; /* Space below quote */
  position: relative;
  max-width: 280px;
}

/* Decorative quotes or bubble style (optional) */
.testimonial-quote::before {
  content: "“";
  font-size: 2rem;
  color: #fd9643; 
  position: absolute;
  top: -10px; 
  left: -10px;
}
.testimonial-quote::after {
  content: "”";
  font-size: 2rem;
  color: #fd9643; 
  position: absolute;
  bottom: -10px; 
  right: -10px;
}

/* Author name (child's name & age) */
.testimonial-author {
  font-family: 'Comic Neue', cursive;
  color: #ff6600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Star rating styling */
.testimonial-stars span {
  font-size: 1.3rem;
  color: #ffd700; /* Gold stars */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on medium screens */
  }
}
@media (max-width: 576px) {
  .testimonial-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}

/* Reuse your existing keyframes for the gradient animation */
@keyframes galaxyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ==================== Benefits Section ==================== */
.benefits-section {
  background: linear-gradient(135deg, #fff6e0, #ffefd5);
  padding: 60px 20px;
  text-align: center;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.benefits-title {
  font-size: 2.5rem;
  color: #fff;
  background: linear-gradient(270deg, #ff6bc7, #ffca36, #fd9643, #ff6bc7);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: galaxyGradient 6s ease infinite;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
}

.benefits-subtitle {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 40px;
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.benefit-icon {
  width: 80px;        /* Adjust as desired */
  height: 80px;       /* Ensures a fixed square container */
  margin: 0 auto 15px;/* Centers icon and adds spacing below */
  display: block;
}


.benefit-icon img {
  width: 100%;        /* Fill container width */
  height: 100%;       /* Fill container height */
  object-fit: contain;/* Show entire image without cropping */
  display: block;     /* Remove extra space below images */
}


.benefit-card h3 {
  font-size: 1.5rem;
  color: #ff6600;
  margin-bottom: 10px;
  font-family: 'Comic Neue', cursive;
}

.benefit-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .benefits-container {
    grid-template-columns: 1fr;
    padding: 0 5%;
  }
}

/* Gradient Animations */
@keyframes galaxyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, #fff6e0, #ffefd5);
  padding: 60px 20px;
  margin: 40px auto;
  max-width: 1200px;
  border-radius: 15px;
  text-align: center;
  font-family: 'Comic Sans MS', 'Arial', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.faq-heading {
  font-family: 'Comic Neue', cursive;
  font-size: 2.5rem;
  color: #ff6600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.faq-intro {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
}

/* FAQ Container Layout */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* FAQ Item */
.faq-item {
  background: #fff;
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* FAQ Question Button */
.faq-question {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ff6bc7;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

/* Rotate the plus sign when active */
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
  display: none;
  font-size: 1rem;
  color: #333;
  padding: 10px 0;
  border-top: 1px dashed #ccc;
}

.faq-item.active .faq-answer {
  display: block;
}

    /* ====== SECTION CONTAINER ====== */
    .content-section {
      margin: 2rem auto;
      max-width: 900px;
      padding: 1rem 20px;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 15px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    /* ====== SECTION TITLE & INTRO TEXT ====== */
    .content-section h2 {
      font-family: 'Comic Neue', cursive;
      font-size: 2.5rem;
      text-align: center;
      color: #ff4081;
      margin-bottom: 0.5rem;
    }
    .section-intro {
      font-family: 'Roboto', sans-serif;
      font-size: 1.2rem;
      text-align: center;
      color: #555;
      margin-bottom: 1.5rem;
    }

    /* ====== LYRICS CONTAINER ====== */
    .lyrics-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      padding: 0 10px;
    }

    /* ====== INDIVIDUAL LYRIC ITEM CARD ====== */
    .lyric-item {
      background: #fff;
      border-radius: 10px;
      padding: 1rem;
      border: 2px dashed #ff4081;
      text-align: center;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .lyric-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    .lyric-item h3 {
      font-family: 'Comic Neue', cursive;
      font-size: 1.4rem;
      margin-bottom: 0.5rem;
      color: #333;
    }
    .lyric-item p {
      font-size: 1rem;
      line-height: 1.4;
      color: #555;
    }

    /* ====== RESPONSIVE MEDIA QUERY ====== */
    @media (max-width: 768px) {
      .content-section h2 {
        font-size: 2rem;
      }
      .section-intro {
        font-size: 1rem;
      }
      .lyrics-container {
        grid-template-columns: 1fr;
        gap: 15px;
      }
      .lyric-item h3 {
        font-size: 1.2rem;
      }
      .lyric-item p {
        font-size: 0.95rem;
      }
    }

.cosmic-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #ff4081; /* Base color */
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cosmic-btn:hover {
  background-color: #e040fb;
  transform: scale(1.05);
}


/* Shop Menu Styles */
.shop-menu {
  position: relative;
}

.shop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff; /* Adjust color to match your theme */
  font-size: 1rem;
}

.shop-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a3d; /* Match your theme's background */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  min-width: 150px;
  z-index: 1000;
}

.shop-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #fff; /* Adjust color to match your theme */
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.shop-dropdown a:hover {
  background-color: #ff6600; /* Match your theme's hover color */
  border-radius: 4px;
}

/* Show dropdown on hover */
.shop-menu:hover .shop-dropdown {
  display: block;
}

/* Optional: Style the chevron icon */
.shop-btn .fas.fa-chevron-down {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.shop-menu:hover .shop-btn .fas.fa-chevron-down {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .category-section div {
    gap: 20px;
  }
}






