* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}
/* 针对特定语言的字体 */
[lang="hi"], [lang="bn"], [lang="ur"] {
    font-family: 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Arabic', sans-serif;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #929292;
    border-radius: 5px;
}

nav ul li a.active {
    background-color: #007bff;
}

nav ul li a:hover {
    background-color: #0056b3;
}

.calculator-section {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    gap: 20px;
}

.calculator-form, .calculator-results {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 48%;
}

.calculator-form h2, .calculator-results h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.calculator-results h2 span {
    color: #ff0000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 0.9em;
}

button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

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

.payoff-summary p {
    margin-bottom: 10px;
}

.table-container {
    max-height: 300px; /* Set a maximum height for the table */
    overflow-y: auto; /* Add vertical scrollbar */
    border: 1px solid #ccc;
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

table th {
    background-color: #f4f4f4;
    position: sticky;
    top: 0;
    z-index: 1;
}

.keywords-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.keywords-container h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.keywords-container p {
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1em;
    color: #666;
}

.keyword-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.keyword-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.keyword-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #007bff;
}

.keyword-section p {
    font-size: 1em;
    color: #555;
    text-align: left;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .calculator-section {
        flex-direction: column;
    }

    .calculator-form, .calculator-results {
        width: 100%;
    }

    .keywords-container {
        padding: 10px;
    }

    .keyword-section {
        padding: 15px;
    }

    .keyword-section h2 {
        font-size: 1.3em;
    }

    .keyword-section p {
        font-size: 0.9em;
    }
}
.language-switcher {
    position: absolute;
    top: 20px;
    right: 10%;
    display: flex;
    align-items: center;
    gap: 10px;
    align-content: right;
}

.language-switcher label {
    color: #fff;
    font-size: 1em;
}

.language-switcher select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.language-switcher select:focus {
    outline: none;
    border-color: #007bff;
}


