body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    padding-bottom: 150px;
}

.card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.header-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    margin-block-start: 0;
    padding: 15px;
    font-size: 2rem;
    font-weight: 800;
    z-index: 1000;
}

.header-sub {
    text-align: center;
    color: #007BFF;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 70px;
    margin-bottom: 15px;
    font-style: italic;
}

.description-text {
    text-align: left;
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0px;
}

input,
select {
    margin: 10px 0;
    padding: 12px;
    width: calc(100% - 24px);
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

#chart-container {
    margin-top: 20px;
    width: 100%;
    height: 200px;
}

.toggle-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: #cccccc solid 2px;
}

.toggle-button label {
    font-weight: bold;
    color: #333;
}

.toggle-checkbox {
    appearance: none;
    width: 50px;
    height: 25px;
    background: #ddd;
    border-radius: 25px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-checkbox:checked {
    background: #ff7f50;
}

.toggle-checkbox::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-checkbox:checked::before {
    transform: translateX(25px);
}

.slider-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    margin-left: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    display: block;
    box-sizing: border-box;
}

table,
th,
td {
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

th {
    background-color: #333;
    color: white;
    word-wrap: break-word;
    white-space: normal;
    padding: 10px;
}

.progress-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    /* Adjusted padding for a smaller fixed element */
    text-align: center;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-bar {
    height: 20px;
    width: 100%;
    max-width: 500px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.progress-bar .fill {
    height: 100%;
    position: absolute;
    top: 0;
}

.progress-bar .fill.principal {
    background: linear-gradient(to right, #007BFF, #00c6ff);
}

.progress-bar .fill.interest {
    background: linear-gradient(to right, #f44336, #ff7f50);
}

.progress-bar .percentage-label {
    position: absolute;
    top: 0px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

#principal-percentage {
    left: 10px;
}

#interest-percentage {
    right: 10px;
}

.result-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    color: white;
}

.label-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1rem;
}

.select-currency {
    margin-bottom: 10px;
    background-color: #1c4876;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    width: 100%;
}

.label-bold {
    margin-bottom: 10px;
    font-weight: bold;
}

.label-flex {
    flex: 1;
}

.input-field {
    display: block;
}

.slider-field {
    display: none;
}

#read-more-btn {
    border: none;
    background-color: transparent;
    color: #1c4876;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline;
    /* Ensures it stays in the flow of the text */
    padding: 5px;
    transition: color 0.3s ease;
}

#read-more-btn:hover {
    color: #0056b3;
    /* Changes color to indicate hover */
}


/* For the extended text */

#read-more-text {
    max-height: 0;
    overflow: hidden;
    display: inline-block;
    transition: max-height 0.3s ease;
}

footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-top: 3px solid #333;
    margin-top: 40px;
    font-size: 1rem;
    line-height: 1.5;
}

footer p {
    margin: 0;
}

#show-email-button {
    border: none;
    background-color: #a74500;
    color: #ffffff;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#show-email-button:hover {
    background-color: #0056b3;
}

#contact-email a {
    color: #df650f;
    text-decoration: none;
    font-weight: bold;
}

#contact-email a:hover {
    color: #ff7f50;
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
    text-align: center;
}

.language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Aligns to the right */
    margin-bottom: 15px;
}

.language-selector label {
    margin-right: 8px;
}

.language-dropdown {
    width: auto;
    /* Make the width as narrow as the content */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}