/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Center Card */
.container {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

/* Converter Box */
.converter-box {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease;
}

input:focus {
    border-color: #66a6ff;
    box-shadow: 0 0 5px rgba(102, 166, 255, 0.3);
}

button {
    padding: 14px 20px;
    background: #66a6ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #5591f2;
    transform: scale(1.05);
}

/* Output Section */
.output {
    margin-top: 15px;
    font-size: 20px;
    color: #444;
    font-weight: 600;
}

/* Responsiveness */
@media (max-width: 500px) {
    h1 {
        font-size: 1.7rem;
    }
    
    .container {
        padding: 30px 20px;
    }
    
    input, button {
        font-size: 15px;
        padding: 12px;
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}