/* Animated gradient background */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(-45deg, #a18cd1, #fbc2eb, #fad0c4, #ffd1ff);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
}

/* Background animation */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Main container */
.main-box {
    width: 900px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(15px);
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);

    animation: fadeUp 0.8s ease;
}

/* Entry animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    margin-bottom: 30px;
}

/* Top row layout */
.top-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input {
    padding: 12px;
    width: 220px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.7);
    transition: 0.3s;
}

/* Input animation */
input:focus {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Center box */
.center-box {
    margin: 20px auto;
}

textarea {
    width: 350px;
    height: 120px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.7);
    transition: 0.3s;
}

textarea:focus {
    transform: scale(1.05);
}

/* Controls */
.controls {
    margin-top: 15px;
}

select {
    padding: 10px;
    border-radius: 8px;
    border: none;
    margin-right: 10px;
}

/* Button */
button {
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, #ff6a88, #ff99ac);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

/* Hover */
button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 100, 130, 0.6);
}

/* Output */
#output {
    margin-top: 25px;
    padding: 15px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);

    opacity: 0;
    transform: scale(0.9);
    transition: 0.4s;
}

#output.show {
    opacity: 1;
    transform: scale(1);
}