/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

/* Button Styling */
.container button {
    padding: 15px 30px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Main Page Button Layout */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.container button {
    margin-bottom: 10px; /* Adds space between buttons */
}

/* Popup Styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    max-height: 80vh; /* Limit height to 80% of the viewport height */
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Close Button (for both calculators) */
#closePopupBtn, #closeMaxMortgagePopupBtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px; /* To add space between the button and the output */
}

#closePopupBtn:hover, #closeMaxMortgagePopupBtn:hover {
    background-color: #45a049;
}

.close {
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Input Fields and Button */
input, select, button {
    width: 100%;
    padding: 10px;
    margin: 12px 0;
    font-size: 16px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#closeMaxMortgagePopupBtn:hover {
    background-color: #45a049;
}

/* Other styling for Max Mortgage Calculator Popup (same as previous) */
#maxMortgageCalculatorPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

#maxMortgageCalculatorPopup .popup-content {
    max-height: 80vh;
    overflow-y: auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Favicon Styling */
.favicon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-image: url('browser.png');
    background-size: contain;
}

/* Currency Format for All Fields */
.currency {
    text-align: right;
}

