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

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
    background: linear-gradient(135deg, #87CEEB, #E0F7FA);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

header h1 {
    font-size: 3.5rem;
    color: #FF6F00;
    text-shadow: 4px 4px 0px #FFD54F, 6px 6px 0px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    animation: bounceTitle 2s infinite;
}

header p {
    font-size: 1.8rem;
    color: #4A148C;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Το Δέντρο */
.tree {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 500px;
}

/* Κορμός */
.trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 150px;
    background: linear-gradient(to right, #5D4037, #8D6E63, #5D4037);
    border-radius: 20px 20px 10px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Φύλλα (η κορυφή) */
.leaves {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 350px;
    background: radial-gradient(ellipse at center, #66BB6A, #388E3C);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Τα ζωάκια - θα τα βάλουμε με JavaScript πάνω στα φύλλα */
.animal {
    position: absolute;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.animal:hover {
    transform: scale(1.2) rotate(-5deg);
}

.animal .emoji {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.animal .age-tag {
    background: #FFD54F;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4A148C;
    margin-top: -5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

/* Στο css/style.css προσθέτουμε: */

/* Το ζωάκι πηδάει */
.animal.jumping {
    animation: jumpAndSpin 0.8s ease 3;
}

@keyframes jumpAndSpin {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    30% {
        transform: translateY(-50px) scale(1.2) rotate(-10deg);
    }
    50% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    70% {
        transform: translateY(-30px) scale(1.1) rotate(10deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* Το δέντρο μεγαλώνει */
.tree.grow-tree {
    animation: growTree 1.5s ease;
}

@keyframes growTree {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1);
    }
    60% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Τα φύλλα αλλάζουν χρώμα ομαλά */
.leaves {
    transition: background 1s ease;
}