/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

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

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: bounce 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-animation {
    position: relative;
    height: 100px;
    margin-top: 40px;
}

.running-figure {
    position: relative;
    display: inline-block;
    animation: run 2s ease-in-out infinite;
}

.running-figure .body {
    font-size: 4rem;
    display: block;
}

.floating-hands {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
}

.floating-hands .hand {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.floating-hands .hand:nth-child(1) {
    left: 0;
    animation-delay: 0s;
}

.floating-hands .hand:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.floating-hands .hand:nth-child(3) {
    right: 0;
    animation-delay: 2s;
}

/* Main content */
main {
    background: white;
}

.intro {
    padding: 60px 0;
    text-align: center;
    background: #f8f9fa;
}

.intro h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.intro p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

/* Hands Gallery */
.hands-gallery {
    padding: 60px 0;
    background: white;
}

.hands-gallery h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.hand-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #f0f0f0;
}

.hand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.hand-demo {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.runner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.runner .body {
    font-size: 3rem;
    z-index: 2;
}

.runner-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.runner .hands {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.runner .hand {
    position: absolute;
    font-size: 1.5rem;
    top: 30%;
}

.left-hand {
    left: 20%;
}

.right-hand {
    right: 20%;
}

/* Hand type specific animations */
.zombie-hand {
    animation: zombieSwing 2s ease-in-out infinite;
}

.trex-hand {
    animation: trexWiggle 1.5s ease-in-out infinite;
    font-size: 1rem !important;
}

.flycatcher-hand {
    animation: grabAir 1s ease-in-out infinite;
}

.robot-hand {
    animation: robotMove 2s linear infinite;
}

.drama-hand {
    animation: dramaticWave 2.5s ease-in-out infinite;
}

.conductor-hand {
    animation: conduct 3s ease-in-out infinite;
}

.hand-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.hand-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Quiz Section */
.quiz-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.quiz-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.quiz-question p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

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

.quiz-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(10px);
}

.quiz-result {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
}

.quiz-result h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.result-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Tips Section */
.tips-section {
    padding: 60px 0;
    background: white;
}

.tips-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

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

.tip-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.tip-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes run {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

@keyframes trexWiggle {
    0%, 100% {
        transform: scale(0.8) rotate(-5deg);
    }
    50% {
        transform: scale(0.8) rotate(5deg);
    }
}

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

@keyframes robotMove {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-90deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(90deg);
    }
}

@keyframes dramaticWave {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    33% {
        transform: scale(1.3) rotate(-30deg);
    }
    66% {
        transform: scale(1.2) rotate(30deg);
    }
}

@keyframes conduct {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(-20deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(20deg);
    }
}

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

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hand-card {
        padding: 20px;
    }

    .quiz-container {
        padding: 20px;
    }

    .quiz-option {
        padding: 15px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .runner-img {
        width: 120px;
        height: 120px;
    }
}

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

    .container {
        padding: 0 15px;
    }

    .hand-demo {
        height: 100px;
    }

    .runner .body {
        font-size: 2.5rem;
    }

    .runner-img {
        width: 80px;
        height: 80px;
    }
}
