/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f0f8;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff69b4;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #e1477d;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    padding: 4rem 2rem;
    margin: 2rem;
    border-radius: 20px;
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: #ffa500;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.video-placeholder {
    background: white;
    border-radius: 15px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-button {
    font-size: 3rem;
    color: #ff69b4;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

/* Section Styles */
.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #ff69b4;
    font-weight: 700;
}

.view-all {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #ff69b4;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.view-all:hover {
    background-color: #ff69b4;
    color: white;
}

/* Content Grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    font-size: 3rem;
    margin-bottom: 1rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.content-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.content-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Theme Colors */
.space-theme { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.space-theme .card-image { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.dino-theme { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.dino-theme .card-image { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.knight-theme { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.knight-theme .card-image { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.ocean-theme { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.ocean-theme .card-image { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.puzzle-theme { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.puzzle-theme .card-image { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.bunny-theme { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.bunny-theme .card-image { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.forest-theme { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.forest-theme .card-image { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }

.city-theme { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.city-theme .card-image { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }

.soup-theme { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
.soup-theme .card-image { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }

.number-theme { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.number-theme .card-image { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }

.color-theme { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.color-theme .card-image { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.shape-theme { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.shape-theme .card-image { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }

.animal-theme { background: linear-gradient(135deg, #c2e59c 0%, #64b3f4 100%); }
.animal-theme .card-image { background: linear-gradient(135deg, #c2e59c 0%, #64b3f4 100%); }

.dragon-theme { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.dragon-theme .card-image { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.girl-theme { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.girl-theme .card-image { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.star-theme { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.star-theme .card-image { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.treasure-theme { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.treasure-theme .card-image { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.ghost-theme { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.ghost-theme .card-image { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* Story Cards */
.story-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.story-image {
    font-size: 4rem;
    margin-bottom: 1rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.story-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.story-card p {
    color: #666;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff69b4;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #ff69b4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #e1477d;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Game Specific Styles */
.game-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-area {
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-instructions {
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

.score-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff69b4;
    margin-bottom: 1rem;
}

/* Drag and Drop Game Elements */
.letter-container, .shape-container, .color-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.draggable-item {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.draggable-item:hover {
    transform: scale(1.1);
}

.draggable-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.drop-zone {
    width: 100px;
    height: 100px;
    border: 3px dashed #ff69b4;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    background-color: rgba(255, 105, 180, 0.2);
    border-color: #e1477d;
}

.drop-zone.filled {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Story Reader Styles */
.story-reader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.story-header {
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.story-controls {
    background: #f8f9fa;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-page {
    display: none;
}

.story-page.active {
    display: block;
}

.story-page h2 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

.close-story {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.close-story:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-nav {
    display: flex;
    gap: 1rem;
}

.page-nav button {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-nav button:hover {
    background: #e1477d;
}

.page-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .card-image {
        font-size: 2rem;
        height: 60px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #ff69b4;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }
    
    .content-card {
        border: 2px solid #000;
    }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-bar {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.search-bar button {
    background: #ffa500;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
}

/* Filters Section */
.filters-section {
    padding: 2rem;
    background: white;
    border-bottom: 1px solid #eee;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.filters-container h3 {
    margin-bottom: 1rem;
    color: #333;
}

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

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #ff69b4;
    background: transparent;
    color: #ff69b4;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ff69b4;
    color: white;
}

/* Featured Content Sections */
.featured-cartoon,
.featured-game,
.featured-story {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.featured-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-video,
.featured-game-area,
.featured-story-image {
    position: relative;
}

.featured-info h2 {
    color: #ff69b4;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.featured-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.episode-info,
.game-stats,
.story-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.episode-info span,
.game-stats span,
.story-stats span {
    background: #e1477d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.watch-btn,
.play-btn,
.read-btn {
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watch-btn:hover,
.play-btn:hover,
.read-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Content Grids */
.cartoons-section,
.games-section,
.stories-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cartoons-grid,
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cartoon-card,
.game-card,
.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cartoon-card:hover,
.game-card:hover,
.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cartoon-thumbnail,
.game-thumbnail,
.story-thumbnail {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cartoon-icon,
.game-icon,
.story-icon {
    font-size: 3rem;
}

.play-overlay,
.read-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cartoon-card:hover .play-overlay,
.game-card:hover .play-overlay,
.story-card:hover .read-overlay {
    opacity: 1;
}

.cartoon-info,
.game-info,
.story-info {
    padding: 1.5rem;
}

.cartoon-info h3,
.game-info h3,
.story-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.cartoon-meta,
.game-meta,
.story-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cartoon-meta span,
.game-meta span,
.story-meta span {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #666;
}

.difficulty-easy {
    background: #d4edda !important;
    color: #155724 !important;
}

.difficulty-medium {
    background: #fff3cd !important;
    color: #856404 !important;
}

.difficulty-hard {
    background: #f8d7da !important;
    color: #721c24 !important;
}

/* Sort Options */
.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options select {
    padding: 0.5rem;
    border: 2px solid #ff69b4;
    border-radius: 5px;
    background: white;
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.game-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-game {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.game-controls {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.restart-btn {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

/* Game Specific Elements */
.alphabet-soup-preview {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
    border-radius: 15px;
    overflow: hidden;
}

.soup-bowl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.floating-letter {
    font-size: 1.5rem;
    margin: 0.25rem;
    animation: float 3s ease-in-out infinite;
}

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

.target-word {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ff69b4;
}

.soup-container {
    margin: 1rem 0;
}

.letter-soup {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.word-builder {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.color-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.color-box {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.color-box:hover {
    transform: scale(1.1);
}

.shapes-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

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

.shape-drop-zone {
    width: 120px;
    height: 120px;
    border: 3px dashed #ff69b4;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.shape-label {
    font-weight: bold;
    color: #ff69b4;
    margin-top: 0.5rem;
}

.demo-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
}

/* About Page Styles */
.mission-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.mission-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-text h2 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

.mission-visual {
    display: flex;
    justify-content: center;
}

.mission-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mission-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.safe-theme { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.learn-theme { background: linear-gradient(135deg, #007bff 0%, #6610f2 100%); }
.fun-theme { background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%); }

.features-section {
    padding: 3rem 2rem;
}

.features-section h2 {
    text-align: center;
    color: #ff69b4;
    margin-bottom: 2rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.safety-theme { background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%); }
.education-theme { background: linear-gradient(135deg, #007bff 0%, #6610f2 100%); }
.accessibility-theme { background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%); }
.parent-theme { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }

.team-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.team-section h2 {
    text-align: center;
    color: #ff69b4;
    margin-bottom: 2rem;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.creator-theme { background: linear-gradient(135deg, #e83e8c 0%, #fd7e14 100%); }
.educator-theme { background: linear-gradient(135deg, #007bff 0%, #20c997 100%); }
.tech-theme { background: linear-gradient(135deg, #ffc107 0%, #28a745 100%); }

.role {
    color: #ff69b4;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.values-section {
    padding: 3rem 2rem;
}

.values-section h2 {
    text-align: center;
    color: #ff69b4;
    margin-bottom: 2rem;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certifications-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.certifications-section h2 {
    text-align: center;
    color: #ff69b4;
    margin-bottom: 2rem;
}

.certifications-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certification-badge {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stats-section {
    padding: 3rem 2rem;
}

.stats-section h2 {
    text-align: center;
    color: #ff69b4;
    margin-bottom: 2rem;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    color: white;
    border-radius: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.awards-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.awards-section h2 {
    text-align: center;
    color: #ff69b4;
    margin-bottom: 2rem;
}

.awards-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.award-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.award-year {
    background: #ff69b4;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cta-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-methods {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.methods-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.method-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.email-theme { background: linear-gradient(135deg, #007bff 0%, #6610f2 100%); }
.chat-theme { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.phone-theme { background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%); }
.emergency-theme { background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%); }

.method-link {
    display: inline-block;
    background: #ff69b4;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.method-link:hover {
    background: #e1477d;
}

.emergency-btn {
    background: #dc3545;
}

.emergency-btn:hover {
    background: #c82333;
}

.contact-form-section {
    padding: 3rem 2rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff69b4;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ff69b4;
    border-radius: 4px;
    position: relative;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #ff69b4;
    font-weight: bold;
}

.submit-btn {
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #218838;
}

.faq-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    color: #ff69b4;
    margin-bottom: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #ff69b4;
    font-weight: bold;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: #666;
    line-height: 1.6;
}

.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 2000;
}

.chat-header {
    background: #ff69b4;
    color: white;
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.bot-message .message-avatar {
    background: #ff69b4;
}

.user-message .message-avatar {
    background: #007bff;
}

.message-content {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    background: #f8f9fa;
}

.user-message .message-content {
    background: #007bff;
    color: white;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.send-btn {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

.emergency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.emergency-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.emergency-content h2 {
    color: #dc3545;
    margin-bottom: 1.5rem;
    text-align: center;
}

.emergency-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.emergency-item {
    padding: 1.5rem;
    border: 2px solid #dc3545;
    border-radius: 10px;
    background: #f8f9fa;
}

.emergency-item h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.emergency-link {
    color: #dc3545;
    font-weight: bold;
    text-decoration: none;
}

.close-emergency {
    background: #dc3545;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Stories Grid and Story Reader */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.story-reader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
}

.story-header {
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%);
    color: white;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.close-story {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.story-content {
    background: white;
    width: 100%;
    max-width: 800px;
    height: 400px;
    overflow-y: auto;
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-page {
    text-align: center;
}

.story-page h2 {
    color: #ff69b4;
    margin-bottom: 1.5rem;
}

.story-controls {
    background: #f8f9fa;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-info {
    font-weight: bold;
    color: #666;
}

.page-nav {
    display: flex;
    gap: 1rem;
}

.page-nav button {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-nav button:hover {
    background: #e1477d;
}

.page-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.story-options button {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Game Area Styling */
.game-area {
    padding: 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-instructions {
    text-align: center;
    margin-bottom: 2rem;
}

.game-instructions h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

.draggable-item {
    display: inline-block;
    padding: 1rem;
    margin: 0.25rem;
    background: #ff69b4;
    color: white;
    border-radius: 15px;
    cursor: grab;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    user-select: none;
}

.draggable-item:hover {
    transform: scale(1.1);
    background: #e1477d;
}

.draggable-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.drop-zone {
    width: 60px;
    height: 60px;
    border: 3px dashed #ff69b4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff69b4;
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    background: #fff0f5;
    border-color: #e1477d;
}

.drop-zone.filled {
    background: #ff69b4;
    color: white;
    border-color: #ff69b4;
}

.target-color {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.shape-circle { background: #007bff; }
.shape-square { background: #28a745; }
.shape-triangle { background: #ffc107; }

/* Theme Classes for Content Cards with Better Contrast */
.knight-theme { 
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%); 
    color: white;
}
.dragon-theme { 
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%); 
    color: white;
}
.girl-theme { 
    background: linear-gradient(135deg, #e83e8c 0%, #f8d7da 100%); 
    color: #333;
}
.star-theme { 
    background: linear-gradient(135deg, #ffc107 0%, #fff3cd 100%); 
    color: #333;
}
.treasure-theme { 
    background: linear-gradient(135deg, #fd7e14 0%, #ffeaa7 100%); 
    color: #333;
}
.ghost-theme { 
    background: linear-gradient(135deg, #6c757d 0%, #f8f9fa 100%); 
    color: #333;
}
.forest-theme { 
    background: linear-gradient(135deg, #28a745 0%, #d4edda 100%); 
    color: white;
}
.ocean-theme { 
    background: linear-gradient(135deg, #007bff 0%, #cce7ff 100%); 
    color: white;
}
.bunny-theme { 
    background: linear-gradient(135deg, #f8d7da 0%, #fff 100%); 
    color: #333;
}
.soup-theme { 
    background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); 
    color: white;
}
.number-theme { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white;
}
.color-theme { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
    color: white;
}
.shape-theme { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
    color: white;
}
.animal-theme { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); 
    color: #333;
}
.puzzle-theme { 
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); 
    color: white;
}
.city-theme { 
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); 
    color: #333;
}

/* New Game Themes */
.space-theme { 
    background: linear-gradient(135deg, #2c3e50 0%, #4a69bd 100%); 
    color: white;
}
.music-theme { 
    background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%); 
    color: white;
}
.science-theme { 
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%); 
    color: white;
}
.cooking-theme { 
    background: linear-gradient(135deg, #ff512f 0%, #f09819 100%); 
    color: white;
}
.sports-theme { 
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); 
    color: white;
}
.nature-theme { 
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%); 
    color: #333;
}
.magic-theme { 
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); 
    color: white;
}
.building-theme { 
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); 
    color: #333;
}

/* Better Font Contrast for All Elements */
.cartoon-thumbnail, .game-thumbnail, .story-thumbnail {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.floating-letter, .floating-element {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.mission-icon, .feature-icon, .member-avatar {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Improved button contrast */
.filter-btn, .method-link, .cta-button {
    text-shadow: none;
    font-weight: 600;
}

/* Enhanced readability for colored backgrounds */
.safe-theme, .learn-theme, .fun-theme,
.safety-theme, .education-theme, .accessibility-theme, .parent-theme,
.creator-theme, .educator-theme, .tech-theme {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #ff69b4;
    margin: 0;
}

/* Story Elements */
.story-preview {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.floating-element {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-element:nth-child(3) {
    animation-delay: 1s;
}

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

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #218838;
    transform: translateY(-2px);
    color: white;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .featured-content,
    .mission-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .live-chat-widget {
        width: 300px;
        height: 350px;
    }
    
    .methods-grid,
    .features-grid,
    .team-grid,
    .values-container,
    .certifications-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .episode-info,
    .game-stats,
    .story-stats {
        justify-content: center;
    }
    
    .story-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-nav {
        order: 2;
    }
    
    .progress-info {
        order: 1;
    }
    
    .story-options {
        order: 3;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 1rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .cartoons-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .live-chat-widget {
        width: 280px;
        bottom: 10px;
        right: 10px;
    }
}