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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    min-height: 100vh;
    color: #2d5016;
}

header {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #2d5016;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    font-size: 1.2rem;
    color: #4a7c59;
    font-style: italic;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    margin: 3rem 0;
}

.cucumber-display {
    padding: 2rem;
}

.cucumber {
    font-size: 8rem;
    animation: bounce 2s infinite;
    display: inline-block;
    cursor: pointer;
}

.click-instruction {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #4a7c59;
    font-style: italic;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

section {
    background: rgba(255, 255, 255, 0.95);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

h2 {
    color: #2d5016;
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #a8e6cf;
    padding-bottom: 0.5rem;
}

p {
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.facts ul {
    list-style: none;
    padding: 0;
}

.facts li {
    background: #f0f9ff;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 5px solid #a8e6cf;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.facts li:hover {
    transform: translateX(10px);
    background: #e6f7ff;
}

.emoji-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.big-cucumber {
    font-size: 4rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.big-cucumber:hover {
    transform: scale(1.2) rotate(10deg);
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(45, 80, 22, 0.9);
    color: white;
    margin-top: 3rem;
}

/* Game Styles */
.game-hidden {
    display: none !important;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 120px);
    margin-top: 120px;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #8FBC8F 70%, #8FBC8F 100%);
    z-index: 1000;
}

#game-area {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#score {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d5016;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#cucumber-player {
    position: absolute;
    bottom: 100px;
    left: 50px;
    font-size: 3rem;
    transition: bottom 0.1s ease;
    z-index: 10;
}

#cucumber-player.jumping {
    animation: jump 1.0s ease-out;
}

@keyframes jump {
    0% { 
        bottom: 100px; 
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    50% { 
        bottom: 350px; 
        animation-timing-function: cubic-bezier(0.55, 0.06, 0.68, 0.19);
    }
    100% { 
        bottom: 100px; 
    }
}

#ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: #8FBC8F;
    border-top: 3px solid #6B8E6B;
}

.obstacle {
    position: absolute;
    bottom: 100px;
    font-size: 2.5rem;
    z-index: 5;
    animation: moveLeft linear;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

#game-over h2 {
    color: #d32f2f;
    margin-bottom: 1rem;
    border: none;
}

#game-over button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#game-over button:hover {
    background: #45a049;
}

#back-btn {
    background: #f44336 !important;
}

#back-btn:hover {
    background: #da190b !important;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .cucumber {
        font-size: 5rem;
    }
    
    main {
        padding: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .big-cucumber {
        font-size: 3rem;
    }
    
    #cucumber-player {
        font-size: 2.5rem;
        left: 30px;
    }
    
    #score {
        font-size: 1.2rem;
        padding: 8px 15px;
    }
    
    .obstacle {
        font-size: 2rem;
    }
    
    #game-over {
        padding: 1.5rem;
        width: 90%;
        max-width: 400px;
    }
}