@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap");

body {
    margin: 0;
    font-family: "Fredoka", sans-serif;
    background: linear-gradient(135deg, #a8ff78, #78ffd6, #a18cd1);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 320px;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 28px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.plant {
    font-size: 110px;
    margin: 20px 0;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.neutral {
    opacity: 0.9;
}

.happy {
    transform: scale(1.1);
    animation: bounce 1s infinite;
}

.thriving {
    transform: scale(1.2);
    animation: spinGlow 2s infinite linear;
}

.sad {
    transform: rotate(-10deg);
    opacity: 0.5;
}

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

@keyframes spinGlow {
    0% {
        transform: scale(1.2) rotate(0deg);
        filter: drop-shadow(0 0 5px pink);
    }
    50% {
        filter: drop-shadow(0 0 20px hotpink);
    }
    100% {
        transform: scale(1.2) rotate(360deg);
        filter: drop-shadow(0 0 5px pink);
    }
}

#mood_text {
    font-size: 16px;
    color: white;
    margin-bottom: 15px;
}

input {
    padding: 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    width: 75%;
    font-size: 14px;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

button {
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: white;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    transform: scale(1.05);
    background: #ffe0f7;
}

button:active {
    transform: scale(0.95);
}
