body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.calculator {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333333;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: #555555;
    font-weight: bold;
}

input[type="number"],
input[type="text"] {
    width: calc(100% - 30px);
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #dddddd;
    border-radius: 10px;
    transition: border-color 0.3s;
}

input[type="number"]:focus,
input[type="text"]:focus {
    border-color: #00f2fe;
    outline: none;
}

button {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(to right, #ff4b2b, #ff416c);
}

span {
    color: #555555;
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
