:root {
    --primary-color: #003366;
    --secondary-color: #E6F7FF;
    --highlight-color: #FFD700;
    --default-font-size: 16px;
    --large-font-size: 24px;
    --larger-font-size: 32px;
    --largest-font-size: 48px;
    --largeerer-font-size: 36px;
    --medium-font-size: 20px;
    --small-font-size: 12px;
    --percent-font-size: 125%;
    --btn-border-color: #003366;
    --btn-bg-color: #E6F7FF;
    --btn-hover-bg-color: #003366;
    --btn-hover-border-color: #E6F7FF;
    --padding-small: 8px;
    --padding-medium: 10px;
    --padding-large: 20px;
    --margin-small: 10px;
    --margin-medium: 24px;
    --margin-large: 28px;
    --default-font-weight: 500;
    --large-font-weight: 600;
    --small-font-weight: 400;
    --show-da-money-weight: 16px;
}

@media (max-width: 768px) {
    :root {
        --default-font-size: calc(16px * 0.9);
        --large-font-size: calc(24px * 0.9);
        --larger-font-size: calc(32px * 0.9);
        --largest-font-size: calc(48px * 0.9);
        --largeerer-font-size: calc(36px * 0.9);
        --medium-font-size: calc(20px * 0.9);
        --small-font-size: calc(12px * 0.9);
        --percent-font-size: calc(125% * 0.9);
        --padding-small: calc(8px * 0.9);
        --padding-medium: calc(10px * 0.9);
        --padding-large: calc(20px * 0.9);
        --margin-small: calc(10px * 0.9);
        --margin-medium: calc(24px * 0.9);
        --margin-large: calc(28px * 0.9);
        --show-da-money-weight: 16px;
    }
}

@media (max-width: 576px) {
    :root {
        --default-font-size: calc(16px * 0.8);
        --large-font-size: calc(24px * 0.8);
        --larger-font-size: calc(32px * 0.8);
        --largest-font-size: calc(48px * 0.8);
        --largeerer-font-size: calc(36px * 0.8);
        --medium-font-size: calc(20px * 0.8);
        --small-font-size: calc(12px * 0.8);
        --percent-font-size: calc(125% * 0.8);
        --padding-small: calc(8px * 0.8);
        --padding-medium: calc(10px * 0.8);
        --padding-large: calc(20px * 0.8);
        --margin-small: calc(10px * 0.8);
        --margin-medium: calc(24px * 0.8);
        --margin-large: calc(28px * 0.8);
        --show-da-money-weight: 16px;
    }
}


body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling while loader is visible */
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Ensure it appears above everything else */
}

/* Hide content initially */
#content {
    display: none;
}

/* Your existing styles */
.btn-custom {
    color: black;
    border-color: black;
}

.btn-custom:hover {
    color: black;
    border-color: black;
    background-color: white;
}

.btn-check:checked + .btn-custom {
    color: white;
    background-color: rgb(126, 126, 126);
    border-color: black;
}
#outputSection {
    display: none; /* Initially hidden */
}
.collapsible {
    cursor: pointer;
}
.collapsible span {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color); /* Bootstrap primary color */
    color: var(--secondary-color);
    text-align: center;
    line-height: 24px;
    font-size: var(--default-font-size);
    margin-left: var(--margin-small);
}
.content {
    display: none;
}

/* all of the below is for the calculator table to change the row colors */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ddd;
    padding: var(--padding-small);
    text-align: left;
}
th {
    background-color: var(--secondary-color); /* Same grey as card headers */
    color: var(--primary-color);
    font-size: var(--default-font-size);
}
td {
    background-color: transparent; /* Ensure td elements are transparent */
}
/* Color styles */
.gross-pay {
    background-color: white;
    color: var(--primary-color);
    font-weight: var(--default-font-weight);
    font-size: var(--default-font-size);
}

.tax-free td {
    background-color: #c2fdab !important; /* Light green applied directly to td */
    color: var(--primary-color);
    font-weight: var(--default-font-weight);
    font-size: var(--default-font-size);
}
.tax-free-details td {
    background-color: #d2ffc0 !important; /* Lighter green applied directly to td */
    color: var(--primary-color);
    font-weight: var(--default-font-weight);
    font-size: var(--default-font-size);
}
.total-tax-due td {
    background-color: #ffafaf !important; /* Red applied directly to td */
    color: var(--primary-color);
    font-weight: var(--default-font-weight);
    font-size: var(--default-font-size);
}
.tax-due-details td {
    background-color: #ffc5c5 !important; /* Lighter red applied directly to td */
    color: var(--primary-color);
    font-weight: var(--default-font-weight);
    font-size: var(--default-font-size);
}
.in-your-pocket td {
    background-color: #62aa62 !important; /* Darker green applied directly to td */
    color: var(--primary-color);
    font-weight: var(--default-font-weight);
    /*color: white;*/
    font-size: var(--default-font-size);
}
.change-from-2024 td {
    background-color: white !important;
}

.take-home-pay td {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: var(--default-font-size);
}

/* for the cookies */

#cookie-consent-banner p {
    margin: 0;
}

#cookie-consent-banner button {
    margin-left: var(--margin-small);
}

/* Main card headers */

.main-card-header {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: var(--large-font-size);
    font-weight: var(--large-font-weight)
}

.header-for-columns {
    color: var(--primary-color);
    font-size: var(--larger-font-size);
    font-weight: var(--large-font-weight)
}

.Column-subtext {
    color: var(--primary-color);
    font-size: var(--medium-font-size);
    font-weight: var(--small-font-weight)
}

/* Card background and outline styles */
.card-boarder {
    background-color: white;
    border: 1px solid var(--primary-color);
    margin-bottom: var(--margin-medium);
}


/* Card background and outline styles */
.input-box {
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: var(--default-font-weight);
    font-size: var(--default-font-size);
}

.input-label {
    font-size: var(--medium-font-size);
    font-weight: var(var(--default-font-weight));
    margin-left: var(--margin-small);
    color: var(--primary-color);
}

.question-marks {
    color: var(--primary-color);
    font-size: var(--percent-font-size);
}
.show-da-moneh {
    background-color: var(--primary-color);
    color: var(--highlight-color);
    border: 1px solid var(--secondary-color);
    font-size: var(--show-da-money-weight)
}



.show-da-moneh:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.reset-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: var(--default-font-size);
}

.reset-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.nav-style-fill {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.nav-title-text {
    color: var(--primary-color) !important;
    font-size: var(--largeerer-font-size);
    font-weight: var(--large-font-weight)
}

.nav-item .nav-link {
    color: var(--primary-color) !important;
    font-size: var(--large-font-size);
    font-weight: var(var(--default-font-weight));
    padding: 15px 20px;
    background-color: var(--secondary-color);
    text-align: center;
    height: 100%; /* Ensure full height */
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    margin-right: 24px;
}

.dropdown-menu {
    background-color: var(--secondary-color);
}

.nav-item .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

.nav-drop {
    font-size: var(--medium-font-size);
    font-weight: var(var(--default-font-weight));
    color: var(--primary-color) !important;
    background-color: var(--secondary-color);
}

.nav-drop:hover {
    font-size: var(--medium-font-size);
    font-weight: var(var(--default-font-weight));
    color: var(--secondary-color) !important;
    background-color: var(--primary-color);
}

/* Button default state */
.Btn-Salary-Select {
    background-color: var(--btn-bg-color) !important; /* Light blue background */
    color: var(--primary-color) !important; /* Dark blue text */
    border: 1px solid var(--primary-color) !important; /* Dark blue border */
    font-weight: 700 !important;
    font-size: var(--default-font-size);
}

/* Button hover state */
.Btn-Salary-Select:hover {
    background-color: var(--btn-hover-bg-color) !important; /* Dark blue background */
    color: var(--btn-hover-border-color) !important; /* Light blue text */
    border: 1px solid var(--primary-color) !important; /* Dark blue border */
}

/* Button selected state */
.btn-check:checked + .Btn-Salary-Select {
    background-color: var(--highlight-color) !important; /* Gold background */
    color: var(--primary-color) !important; /* Dark blue text */
    border: 1px solid var(--primary-color) !important; /* Dark blue border */
}

.output-salary-text {
    color: var(--primary-color);
    font-size: var(--medium-font-size);
    font-weight: var(var(--default-font-weight));
}

.salary-output-box {
    width: 175px;
    margin-top: var(--margin-small);
    margin-left: var(--margin-small);
    font-size: var(--medium-font-size);
    font-weight: var(--large-font-weight);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background-color: var(--highlight-color);
}

.interesting-data {
    color: var(--primary-color);
    margin-bottom: var(--margin-small);
    font-size: var(--default-font-size);
}

/* Ensure that the body or html can scroll when content overflows */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto; /* or use overflow: scroll; */
}

.privacy-section-main-head {
    font-size: var(--larger-font-size);
    font-weight: var(--large-font-weight);
    color: var(--primary-color);
    margin-top: var(--largest-font-size);
}
.privacy-section-sub-head-1 {
    font-size: var(--large-font-size);
    font-weight: var(var(--default-font-weight));
    color: var(--primary-color);
    margin-top: var(--medium-font-size);
}
.privacy-section-sub-head-2 {
    font-size: var(--medium-font-size);
    font-weight: var(var(--default-font-weight));
    color: var(--primary-color);
    margin-top: var(--large-font-size);
}
.privacy-section-text {
    font-size: var(--default-font-size);
    font-weight: var(--small-font-weight);
    color: var(--primary-color);
    margin-top: var(--small-font-size);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: var(--margin-small); /* Space between buttons */
}

nav ul li:last-child {
    margin-right: 0; /* Remove margin from the last item */
}

.privacy-button {
    display: inline-block;
    padding: var(--padding-small) var(--padding-medium);
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-align: center;
    border-radius: 5px; /* Optional: to make the corners rounded */
    font-size: var(--medium-font-size);
    font-weight: var(var(--default-font-weight));
}

.privacy-button:hover {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* Ensure content is visible by default */
#content {
    display: block;
}

/* If you have a loader, hide it by default */
.loader {
    display: none;
}

.footer {
    text-align: center;
    padding: var(--padding-large);
    padding-top: 120px;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--primary-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-main {
    text-align: center;
    margin-top: 250px;
    padding: var(--padding-large);
    padding-top: 120px;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--primary-color);
}

.footer-main a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-main a:hover {
    text-decoration: underline;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    padding-top: var(--padding-large); 
}

.modal-content {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    margin: 5% auto; 
    padding: var(--padding-large);
    border: 1px solid #888;
    width: 80%; 
}

.close {
    color: var(--primary-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--highlight-color);
    text-decoration: none;
    cursor: pointer;
}

.optOut {
    color: var(--primary-color);
    border: 2px solid var(--primary-color); 
    background-color: var(--secondary-color);
}

.optOut:hover {
    color: var(--primary-color);
    border: 2px solid var(--primary-color); 
    background-color: var(--highlight-color);
}
