body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #3494e6, #ec6ead);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.calculator-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

button {
    background-color: #4caf50;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease-out;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

input {
    padding: 15px;
    margin: 15px 0;
    width: 80%;
    box-sizing: border-box;
    font-size: 18px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    transition: border-color 0.3s ease, transform 0.2s ease-out;
}

input:focus {
    outline: none;
    border-color: #4caf50;
    transform: scale(1.02);
}

#result {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    margin-top: 20px;
    animation: fadeIn 1s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}