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

body {
    font-family: 'Baloo 2', cursive;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-decorations {
    font-size: 3rem;
    margin-top: 30px;
}

.floating-snail, .floating-snail-2 {
    display: inline-block;
    animation: crawlSlow 8s linear infinite;
    margin: 0 20px;
}

.floating-snail-2 {
    animation-delay: 4s;
}

.floating-karate {
    display: inline-block;
    animation: kickSpin 2s ease-in-out infinite;
    margin: 0 20px;
}

.floating-star {
    display: inline-block;
    animation: sparkle 1.5s ease-in-out infinite;
    margin: 0 20px;
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes crawlSlow {
    0%, 100% {
        transform: translateX(-20px) rotate(-5deg);
    }
    50% {
        transform: translateX(20px) rotate(5deg);
    }
}

@keyframes kickSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.7;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Content Sections */
.content-section {
    padding: 60px 20px;
}

.karate-section {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.snails-section {
    background: linear-gradient(135deg, #a8e6cf 0%, #3eecac 100%);
}

.games-section {
    background: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%);
}

.inspiration-section {
    background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #2d3436;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #2d3436;
}

/* Karate Belts */
.karate-belts {
    margin: 40px 0;
}

.karate-belts h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #2d3436;
}

.belts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.belt-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInLeft 0.6s ease-out;
}

.belt-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.belt-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.belt-card h4 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2d3436;
}

.belt-card p {
    font-size: 0.9rem;
    color: #636e72;
}

/* Karate Moves */
.karate-moves {
    margin: 40px 0;
}

.karate-moves h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #2d3436;
}

.moves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.move-card {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    animation: slideInRight 0.6s ease-out;
}

.move-card:hover {
    transform: scale(1.1) rotate(2deg);
    animation: pulse 0.5s ease-in-out;
}

.move-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
}

.move-card h4 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Snail Types */
.snail-types {
    margin: 40px 0;
}

.snail-types h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #2d3436;
}

.snails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.snail-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: slideInLeft 0.6s ease-out;
}

.snail-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.snail-card:hover .snail-emoji {
    animation: crawlSlow 2s linear infinite;
}

.snail-emoji {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.snail-card h4 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2d3436;
}

.snail-card p {
    font-size: 0.95rem;
    color: #636e72;
}

/* Snail Anatomy */
.snail-anatomy {
    margin: 40px 0;
}

.snail-anatomy h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #2d3436;
}

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

.anatomy-card {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.anatomy-card:hover {
    transform: scale(1.08);
}

.anatomy-card h4 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Fun Facts */
.fun-facts {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.fun-facts h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
    color: #2d3436;
}

.facts-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.facts-list li {
    font-size: 1.1rem;
    padding: 15px 20px;
    margin: 10px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.facts-list li:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 50%);
}

/* Games Section */
.game-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.game-container h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #2d3436;
}

.game-container > p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #636e72;
}

/* Race Track */
.race-track {
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #90EE90 70%, #90EE90 100%);
    border-radius: 15px;
    padding: 30px 20px;
    margin: 20px 0;
    position: relative;
    min-height: 200px;
}

.racer {
    display: flex;
    align-items: center;
    margin: 20px 0;
    position: relative;
    transition: transform 0.1s linear;
}

.racer-snail {
    font-size: 2.5rem;
    margin-right: 10px;
}

.racer-name {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3436;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 12px;
    border-radius: 20px;
}

.game-button {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.game-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.game-button:active {
    transform: scale(0.95);
}

.game-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: scale(1);
}

.race-result {
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    margin-top: 20px;
    color: #2d3436;
    min-height: 40px;
}

/* Quiz */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-question {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.5rem;
    text-align: center;
    margin: 25px 0;
    color: #2d3436;
    min-height: 60px;
}

.quiz-options {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.quiz-option {
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    padding: 15px 25px;
    background: linear-gradient(135deg, #a8e6cf 0%, #3eecac 100%);
    color: #2d3436;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.quiz-option:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.quiz-option.correct {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    animation: pulse 0.5s ease-in-out;
}

.quiz-option.incorrect {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    color: white;
    animation: shake 0.5s ease-in-out;
}

.quiz-option:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.quiz-feedback {
    text-align: center;
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.3rem;
    margin: 20px 0;
    min-height: 40px;
    color: #2d3436;
}

.quiz-score {
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin: 25px 0;
    color: #2d3436;
    min-height: 50px;
}

/* Inspiration Section */
.inspiration-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.inspiration-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

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

.inspiration-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2d3436;
}

.inspiration-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #636e72;
}

.special-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 50%, #ff9ff3 100%);
    text-align: center;
}

.special-card h3 {
    font-size: 2.2rem;
}

.special-card p {
    color: #2d3436;
}

.final-message {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    margin-top: 20px;
    color: #2d3436;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #000000 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.meta {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .belts-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .moves-grid,
    .snails-grid,
    .anatomy-grid {
        grid-template-columns: 1fr;
    }

    .game-container {
        padding: 25px 15px;
    }

    .game-button {
        font-size: 1.1rem;
        padding: 12px 30px;
    }

    .inspiration-content {
        grid-template-columns: 1fr;
    }

    .special-card {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-decorations {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .belt-icon,
    .move-emoji,
    .snail-emoji {
        font-size: 2.5rem;
    }

    .racer-snail {
        font-size: 2rem;
    }

    .racer-name {
        font-size: 1rem;
    }
}
