body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #ffffff, #e0f7fa);
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1 {
    font-size: 2.5em;
    color: #00796b;
    margin-bottom: 0.5em;
    animation: fadeIn 2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    text-align: center;
    max-width: 800px;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 2em;
}

input[type="text"] {
    padding: 10px;
    font-size: 1.2em;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 1em;
}

button {
    background: #00796b;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #004d40;
}

.output {
    margin-top: 1.5em;
    font-size: 1.2em;
    color: #00796b;
}

.rule {
    margin-top: 0.5em;
    font-size: 1em;
    color: #555;
}