/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f0f4f8;
    animation: fadeInBody 0.5s ease-out;
}

/* Fade-in animation for body */
@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.calculator-container {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

h1 {
    font-size: 37px;
    color: #0d7dd4;
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out;
    letter-spacing: -0.5px;
}

/* Staggered fade-in effect for input fields */
.input-group {
    opacity: 0;
    animation: staggeredFadeIn 0.5s forwards;
}

.input-group:nth-child(2) {
    animation-delay: 0.2s;
}

.input-group:nth-child(3) {
    animation-delay: 0.4s;
}

.input-group:nth-child(4) {
    animation-delay: 0.6s;
}

.input-group:nth-child(5) {
    animation-delay: 0.8s;
}

/* Staggered fade-in animation */
@keyframes staggeredFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label, input, select, button {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
	
}

input, select {
    padding: 10px;
    height: 50px;  /* Adjust height to make the fields taller */
    border-radius: 25px;  /* Higher value for more roundness */
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    transition: border-color 0.3s, background-color 0.3s ease;
}

/* Ensure blue border on hover and focus */
input:focus, select:focus {
    border-color: #0d7dd4 !important;  /* Force blue border */
    background-color: #e8f0fe; /* Light blue background */
    outline: none;
}

input:hover, select:hover {
    border-color: #0d7dd4;  /* Blue border on hover */
    background-color: #e8f0fe;
}

/* Zoom-in effect for buttons */
button {
    padding: 10px;
    background-color: #0d7dd4;
    color: white;
    border: none;
    border-radius: 17px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s ease;
}

button:hover {
    background-color: #0c6bb5;
    transform: scale(1.1); /* Slight zoom-in effect on hover */
}

button:active {
    transform: scale(1.05); /* Minor zoom-in effect when clicked */
}

#results {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    border: 1px solid #0d7dd4;
    display: none;
    animation: floatIn 0.7s ease-out;
}

/* Floating bounce effect for results */
@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in animation for title */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
