body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    cursor: url('https://cdn.custom-cursor.com/db/1/1/1/arrow.cur'), auto;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

h1 {
    font-family: 'Lilita One', cursive;
    color: #333;
    text-align: center;
    margin-top: 20px;
    animation: fadeIn 2s ease-in-out;
}

p {
    text-align: center;
    color: #555;
    animation: fadeIn 2s ease-in-out;
}

.container {
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    animation: slideIn 1s ease-in-out;
    text-align: center;
    position: relative;
    z-index: 1;
}

label, button {
    display: block;
    margin: 10px 0;
    font-size: 1.1em;
    color: #333;
}

textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    resize: vertical;
    max-height: 150px;
    overflow-y: auto;
    display: block;
    margin: 0 auto;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#result {
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
}

#emojiRain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.emoji {
    position: absolute;
    font-size: 2em;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flex-meter {
    margin-top: 20px;
}

.meter {
    width: 100%;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.meter-fill {
    height: 100%;
    width: 0;
    background-color: #4CAF50;
    transition: width 0.5s ease;
}

#flex-level {
    margin-top: 10px;
    font-size: 1.2em;
}