body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 20px;
}

.container {
    display: flex;
    justify-content: space-between;
    column-gap: 1px; /* Espacio de 10px entre los contenedores */
    align-items: flex-start;
    flex-wrap: wrap;
}

.other-calculators,
.calculator-container,
.definitions {
    background: #fff;
    padding: 30px; /* Aumentar el relleno interno */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px; /* Aumentar el ancho máximo */
    box-sizing: border-box;
    margin: 0;
}

.calculator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

h2 {
    margin-top: 0;
    font-size: 22px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    color: #007bff;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
}

ul li a {
    text-decoration: none;
    color: #007bff;
}

ul li a:hover {
    text-decoration: underline;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 10px; /* Aumentar el relleno interno de los campos de entrada */
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button-group button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 23%;
    font-size: 14px;
    margin: 0 2px;
    box-sizing: border-box;
}

.button-group button:hover {
    background-color: #0056b3;
}

#result {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
    color: #007bff;
}

#amortization-schedule {
    margin-top: 20px;
    display: none; /* Inicialmente oculto */
    width: 100%;
    overflow-x: auto;
}

#amortization-schedule table {
    width: 100%;
    border-collapse: collapse;
}

#amortization-schedule th, #amortization-schedule td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.amortization-btn {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px; /* Separación de otros botones */
    display: block; /* Para que tome todo el ancho posible dentro del contenedor */
    width: 100%;
}

.amortization-btn:hover {
    background-color: #0056b3;
}

footer {
    padding: 20px;
    background-color: #f7f7f7;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #ccc;
}

footer a {
    margin: 0 10px;
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}