/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #FF6B35;
    --yellow: #FFD23F;
    --cream: #FFF9F0;
    --dark-amber: #B8860B;
    --navy: #2C3E50;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, .nav-link, .category-label, .story-title, .char-name, .game-name {
    font-family: 'Boogaloo', cursive;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--orange);
    text-shadow: 2px 2px 0 var(--yellow);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--orange);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--orange);
    clip-path: ellipse(50% 100% at 50% 0%);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    color: white;
}

.logo-star {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-family: 'Boogaloo', cursive;
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    padding: 10px 20px;
    background: white;
    color: var(--orange);
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 0 var(--yellow);
}

/* Announcement Banner */
.announcement-banner {
    background: var(--yellow);
    padding: 12px 0;
    overflow: hidden;
    margin-top: 20px;
}

.announcement-track {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.announcement-track span {
    font-family: 'Boogaloo', cursive;
    font-size: 20px;
    color: var(--dark-amber);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
    padding: 80px 20px 120px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    animation: titleBounce 2s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 24px;
    color: white;
    margin-bottom: 40px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.cta-primary, .cta-secondary {
    font-family: 'Boogaloo', cursive;
    font-size: 24px;
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-primary {
    background: white;
    color: var(--orange);
    box-shadow: 0 6px 0 #e65a2b;
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 0 #e65a2b;
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.cta-secondary:hover {
    background: white;
    color: var(--orange);
}

.hero-characters {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 64px;
}

.character {
    display: inline-block;
}

.bounce-1 { animation: bounce 1s ease-in-out infinite; }
.bounce-2 { animation: bounce 1.2s ease-in-out infinite; }
.bounce-3 { animation: bounce 1.4s ease-in-out infinite; }
.bounce-4 { animation: bounce 1.6s ease-in-out infinite; }
.bounce-5 { animation: bounce 1.8s ease-in-out infinite; }

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

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--cream);
    clip-path: ellipse(50% 100% at 50% 100%);
}

/* Category Cards */
.categories {
    padding: 80px 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    padding: 40px 20px;
    text-align: center;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid;
}

.category-card:hover {
    transform: scale(1.1) rotate(3deg);
}

.cat-blue { background: #E3F2FD; border-color: #2196F3; }
.cat-pink { background: #FCE4EC; border-color: #E91E63; }
.cat-green { background: #E8F5E9; border-color: #4CAF50; }
.cat-yellow { background: #FFF9C4; border-color: #FFC107; }
.cat-purple { background: #F3E5F5; border-color: #9C27B0; }
.cat-orange { background: #FFE0B2; border-color: #FF9800; }

.category-icon {
    font-size: 80px;
    margin-bottom: 15px;
}

.category-label {
    font-size: 28px;
    color: var(--navy);
}

/* Story Cards */
.stories-section {
    background: #FFE0F0;
    padding: 80px 20px;
    border-radius: 40px;
    margin: 0 20px 80px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 0 var(--yellow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 15px 0 var(--yellow);
}

.story-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Boogaloo', cursive;
    font-size: 16px;
    font-weight: bold;
}

.badge-new { background: #4CAF50; color: white; }
.badge-hot { background: #FF5722; color: white; }
.badge-fav { background: #FFC107; color: white; }

.story-thumbnail {
    font-size: 100px;
    margin: 20px 0;
}

.story-title {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 15px;
}

.story-meta {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
    color: #666;
}

/* Comic Strip */
.comic-section {
    padding: 80px 20px;
    background: var(--navy);
}

.comic-section .section-title {
    color: var(--yellow);
}

.comic-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.comic-panel {
    min-width: 280px;
    height: 350px;
    border-radius: 15px;
    border: 6px solid white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    position: relative;
}

.panel-1 { background: #FFCDD2; }
.panel-2 { background: #C8E6C9; }
.panel-3 { background: #BBDEFB; }
.panel-4 { background: #FFF9C4; }
.panel-5 { background: #F8BBD0; }

.speech-bubble {
    background: white;
    padding: 15px;
    border-radius: 15px;
    font-family: 'Boogaloo', cursive;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.panel-character {
    font-size: 100px;
    text-align: center;
}

/* Characters Section */
.characters-section {
    background: #E8F5E9;
    padding: 80px 20px;
    border-radius: 40px;
    margin: 80px 20px;
}

.characters-row {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0;
}

.character-card {
    min-width: 220px;
    background: white;
    border: 4px solid var(--yellow);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.character-card:hover {
    transform: scale(1.1) rotate(-5deg);
}

.char-avatar {
    font-size: 80px;
    margin-bottom: 15px;
}

.char-name {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 8px;
}

.char-role {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* Games Section */
.games-section {
    padding: 80px 20px;
    background: var(--navy);
}

.games-section .section-title {
    color: var(--yellow);
}

.games-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'Boogaloo', cursive;
    font-size: 18px;
    padding: 10px 25px;
    background: white;
    color: var(--navy);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--yellow);
    transform: scale(1.05);
}

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

.game-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 0 30px var(--yellow);
    transform: translateY(-10px);
}

.game-thumb {
    font-size: 80px;
    margin-bottom: 15px;
}

.game-name {
    font-size: 26px;
    color: var(--navy);
    margin-bottom: 10px;
}

.game-difficulty {
    font-size: 24px;
    margin-bottom: 20px;
}

.play-btn {
    font-family: 'Boogaloo', cursive;
    font-size: 20px;
    padding: 12px 30px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: scale(1.1);
}

/* Music Section */
.music-section {
    padding: 80px 20px;
}

.featured-song {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    color: white;
}

.song-icon {
    font-size: 100px;
    animation: musicPulse 2s ease-in-out infinite;
}

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

.song-info {
    flex: 1;
}

.song-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.song-artist {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.play-pause-btn {
    font-size: 40px;
    background: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    transform: scale(1.2);
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #FFE66D, #95E1D3, #C7CEEA, #FF6B9D);
}

.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.song-item {
    background: #FFF3E0;
    padding: 20px;
    border-radius: 15px;
    font-family: 'Boogaloo', cursive;
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-item:hover {
    background: var(--yellow);
    transform: scale(1.05);
}

/* Art Section */
.art-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 40px;
    margin: 0 20px;
}

.art-section .section-title {
    color: white;
}

.art-canvas {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}

.canvas-placeholder {
    border: 4px dashed var(--orange);
    border-radius: 15px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Boogaloo', cursive;
    font-size: 32px;
    color: #ccc;
}

.art-tools {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.color-palette {
    display: flex;
    gap: 15px;
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.3);
}

.brush-sizes {
    display: flex;
    gap: 10px;
}

.brush-btn {
    font-family: 'Boogaloo', cursive;
    font-size: 18px;
    padding: 10px 20px;
    background: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brush-btn:hover {
    background: var(--yellow);
    transform: scale(1.1);
}

.submit-art-btn {
    font-family: 'Boogaloo', cursive;
    font-size: 28px;
    padding: 15px 50px;
    background: var(--yellow);
    color: var(--navy);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    box-shadow: 0 6px 0 #e6bb39;
    transition: all 0.3s ease;
}

.submit-art-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 0 #e6bb39;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 20px;
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-family: 'Boogaloo', cursive;
    font-size: 24px;
}

.progress-text {
    background: #BBDEFB;
    padding: 10px 25px;
    border-radius: 20px;
}

.score-counter {
    background: var(--yellow);
    padding: 10px 25px;
    border-radius: 20px;
}

.quiz-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 8px 0 var(--yellow);
    max-width: 700px;
    margin: 0 auto;
}

.quiz-question {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--navy);
}

.quiz-answers {
    display: grid;
    gap: 20px;
}

.answer-btn {
    font-family: 'Boogaloo', cursive;
    font-size: 22px;
    padding: 20px;
    background: #f0f0f0;
    border: 4px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.answer-btn:hover {
    background: var(--yellow);
    border-color: var(--orange);
    transform: scale(1.05);
}

.answer-btn.correct {
    background: #C8E6C9;
    border-color: #4CAF50;
}

/* Footer */
.footer {
    background: var(--orange);
    padding: 50px 20px 30px;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 80px;
}

.footer-wave {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--orange);
    clip-path: ellipse(50% 100% at 50% 0%);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-characters {
        font-size: 48px;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
    }
    
    .featured-song {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 32px;
    }
}