body {
    font-family: "Comic Sans MS", cursive, sans-serif;
    background: linear-gradient(135deg, #f7d794, #f3a683, #ff9a9e, #fecfef);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

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

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.1);
}

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

p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

input {
    margin-top: 1rem;
    padding: 1rem;
    width: 100%;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

input:focus {
    outline: none;
    border-color: #ffb142;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 177, 66, 0.3);
}

button {
    margin-top: 1.5rem;
    padding: 1rem;
    width: 100%;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ffb142, #ff793f);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, #ff793f, #ffb142);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 121, 63, 0.4);
}

button:active {
    transform: translateY(0);
}

#outputBox {
    margin-top: 2rem;
    padding: 1.5rem;
    font-weight: bold;
    min-height: 60px;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 12px;
    border: 2px dashed #6b46c1;
    font-size: 1.1rem;
    color: #6b46c1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#outputBox:not(:empty) {
    animation: pulseGlow 2s ease-in-out;
}

@keyframes pulseGlow {
    0% { 
        background: rgba(107, 70, 193, 0.1);
        transform: scale(1);
    }
    50% { 
        background: rgba(107, 70, 193, 0.2);
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(107, 70, 193, 0.3);
    }
    100% { 
        background: rgba(107, 70, 193, 0.1);
        transform: scale(1);
    }
}

.footer {
    margin-top: 1.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
    color: #888;
}

/* Loading animation for dots */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 2rem;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    input, button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}