/* General Reset */
body, h1, h2, p, div, form, input, select, button, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(to bottom, #6a11cb, #2575fc);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.header {
    background: #fff;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo img, .website-name img {
    max-height: 50px;
    margin-right: 10px;
}

.menu-icon img {
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.menu-icon img:hover {
    transform: scale(1.1);
}

/* Main Container */
.container {
    max-width: 1200px; /* Increased width */
    margin: 30px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 40px; /* Spacious padding */
    color: #333;
}

/* Heading */
h1 {
    font-size: 32px; /* Larger heading */
    text-align: center;
    margin-bottom: 30px;
    color: #444;
}

/* Calculator Form */
.calculator-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calculator-form .form-group {
    width: 100%;
    max-width: 800px; /* Added constraint for form width */
    margin-bottom: 20px;
}

.calculator-form label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    padding: 15px; /* Larger padding */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px; /* Larger font size */
    transition: border-color 0.3s ease;
}

.calculator-form input:focus,
.calculator-form select:focus {
    border-color: #6a11cb;
    outline: none;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    max-width: 800px; /* Constraint for button width */
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    padding: 15px; /* Larger button */
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: linear-gradient(to right, #5a0f9c, #1e54c4);
    transform: translateY(-2px);
}

/* Result Box */
.result {
    margin-top: 30px;
    padding: 20px; /* Adjust padding for spacing */
    max-width: 800px;
    background: #f4f4f4;
    border-radius: 5px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 10px;
    background: #444;
    color: #fff;
    font-size: 14px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ccc;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 48px;
    font-family: Arial, sans-serif;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: red;
}

.overlay h2 {
    animation: fadeIn 1.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        max-width: 95%;
        padding: 20px;
    }

    .calculator-form input,
    .calculator-form select,
    .btn {
        font-size: 14px;
        padding: 12px;
    }

    h1 {
        font-size: 24px;
    }
}
