body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #dce4ff, #ddddff); /* Gradient background */
    margin: 0px;
    padding: 0;
    text-align: left;
    overflow-x: hidden; /* Prevent horizontal scrolling */

}

h1 {
    color: #7300ff;
    font-size: 38px;
    text-align: center;
}

h2 {
margin-left: 160px;
margin-top: -20px;

}
/* Flex container for inputs and results */
.calculator-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    gap: 20px; /* Space between inputs and results */
}

.input-container {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 20px;
    padding-top: 0px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-left: 210px;
}

.budget-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

label, input {
    font-size: 18px;
    margin: 5px 0;
}

input {
    padding: 8px;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #b171ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #dcbfff;
}

.results-display {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.results-display .monthly-payment {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #b171ff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}

.results-display p {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.results-display p span {
    font-weight: bold;
    color: #555;
}

/* Amortization schedule styling */
.amortization-schedule {
    margin-top: 40px;
    text-align: left;
    margin-left: -70px;
}

table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #b171ff;
    color: white;
}

td {
    background-color: #f9f9f9;
}

tbody tr:nth-child(even) {
    background-color: #f1f1f1;
}







/* Article Section */
.article-section {
    padding: 5vw;
    padding-bottom: 3vh;
    margin: 2rem auto;
    width: 50%;
    max-width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center horizontally */
}

.article-section h2 {
    font-size: 1.8rem;
    color: #000dff;
    margin-bottom: 1rem;
    text-align: center; /* Centers the text horizontally */
    margin-left: 0px;
    margin-top: -5vh;
}

.article-section h3 {
    font-size: 1.4rem;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #4400ff;
}

.article-section p {
    margin: 0.5rem 0;
    font-size: 19px;
    color: #000000;
    line-height: 1.8;
    text-align: left;
}

.article-section strong {
    color: #0056b3;
}

.article-section a {
    color: #0056b3;
    text-decoration: none;
}

.article-section a:hover {
    text-decoration: underline;
}

 .hamburger {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 20px;
 }
 
 .hamburger span {
    width: 30px;
    height: 5px;
    background-color: #fff;
    border-radius: 5px;
 }

/* Mobile Styles */
@media screen and (max-width: 1024px) {
body {
    overflow-x: scroll; /* Prevent horizontal scrolling */
}

    .input-container, .results-display {
        width: 100%;
        margin-left: 0;
    }

    /* Stack input fields vertically on mobile */
    .calculator-container {
        flex-direction: column;
        align-items: center;
    }

    /* Adjust the button */
    button {
        width: 90%;
    }

    /* Center the article section text */
    label {
        font-size: 1.2rem;
    }

    input {
        width: 85vw;
    }

    .results-display p {
padding: 0vw 2vw;
font-size: 1.1rem;
    }

    p {
        line-height: 1.7;
    }

    /* Adjust h1 size for mobile */
    h1 {
        font-size: 2rem;
    }

    /* Adjust table width for mobile */
    table {
        width: 100%;
    }

    .results-display {
padding-left: 5vw;
    }
    
    #amortization-heading {
margin-left: 17vw;
    }

    .results-amortization-container {
        width: 100vw;
        margin-left: -10vw;
    }

    /* Adjust amortization schedule for mobile */
    .amortization-schedule {
        margin-top: 5vh;
        margin-left: 5vw;
    }
    #amortizationTable {
        overflow-x: scroll;
    }

    .article-section {
        padding: 6vw;
        width: 90vw;
    }

    .article-section h2 {
        margin-top: 2vh;
    }
}