/* Reset some default styles */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling with gradient background */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #fad0c4 100%);
    transition: background 0.5s ease-in-out;
    animation: gradientShift 15s ease infinite;
    text-align: center;
}

/* Smooth gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
body {
    background-size: 200% 200%;
}

/* Page title */
h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Input box styling */
input {
    padding: 15px 20px;
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

input:focus {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Button styling */
button {
    padding: 12px 25px;
    margin: 15px 5px 0;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #2575fc, #6a11cb);
}

/* Clear button special color */
.clear-btn {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
}

.clear-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
}

/* Result paragraph */
p#result {
    font-size: 1.8rem;
    margin-top: 25px;
    color: #fff;
    word-wrap: break-word;
    max-width: 90%;
    padding: 10px 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

p#result:hover {
    transform: scale(1.02);
}

/* Responsive layout */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    button {
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    p#result {
        font-size: 1.4rem;
        padding: 8px 12px;
    }
}
