body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #055a60;
    color: #333;
}

.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    background-color: #6d6e6e;
    color: white;
    width: 60%;
    margin: 20px auto;
    border-radius: 8px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    padding: 20px;
}

.header h1 {
    margin: 0;
    font-size: 26px;
}

.calculator-section {
    background-color: white;
    margin-top: 20px;
    width: 60%;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.horizontal-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%; /* Full width of the parent container */
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* To include padding in the width calculation */
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Button Styling */
button {
    padding: 10px 20px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color: blue;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: darkblue;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        width: 80%;
    }

    .calculator-section {
        width: 80%;
        padding: 15px;
    }

    .horizontal-form {
        grid-template-columns: 1fr; /* Changes to a single column layout */
        gap: 20px; /* Increases the gap between form rows */
    }

    .form-group label {
        font-size: 13px; /* Reduces font size for labels */
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
        padding: 8px; /* Reduces padding for input fields */
    }

    button {
        font-size: 14px; /* Reduces font size for buttons */
    }
}
