/* Font Families */
body {
    font-family: 'Merriweather', serif;
    margin: 20px;
}

h1, h2, p {
    font-family: 'Merriweather', serif;
}

h1 {
    font-size: 30px;
    color: #0d7dd4;
    margin-bottom: 20px;
    letter-spacing: 0;
}

h2 {
    color: #0d7dd4;
    margin-bottom: 20px;
}

div {
    margin-bottom: 15px;
}

label, input, select, button {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
}

label {
    color: #000000;
}

input#loanAmount, input#monthlyPay, input#loanTerm, input#interestRate {
    border: 1px solid #0d7dd4;
    border-radius: 50px;
}

button {
    cursor: pointer;
    background-color: #0d7dd4;
    color: white;
    border: 1px solid #0d7dd4;
}

button:hover {
    background-color: #0a5fa2;
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
}

button:focus, button:focus-visible {
    background-color: #0d7dd4;
    color: white;
    border: 1px solid #0d7dd4;
    outline: none;
}

input:focus, select:focus, button:focus {
    border-color: #0d7dd4;
    outline: none;
}

input:hover, select:hover {
    border-color: #0d7dd4;
}

select option:hover, select option:focus {
    background-color: #0d7dd4;
    color: white;
}

.results-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background-color: #f0fdf9;
    border: 2px solid #0d7dd4;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.results-container.show {
    opacity: 1;
    transform: scale(1);
}

#payoffTime, #results p {
    font-size: 25px;
    font-weight: bold;
    color: #0d7dd4;
    margin-bottom: 20px;
}

#results p {
    margin: 5px 0;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    width: 48%;
}

/* Font classes */
.merriweather-black {
    font-family: 'Merriweather', system-ui;
    font-weight: 900;
    font-style: normal;
}

.merriweather-black-italic {
    font-family: 'Merriweather', system-ui;
    font-weight: 900;
    font-style: italic;
}

.choice-tabs {
    display: flex;
    cursor: pointer;
    margin-bottom: 15px;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    background-color: #f0fdf9;
    border: 1px solid #0d7dd4;
    margin-right: 10px;
    font-weight: bold;
    color: #0d7dd4;
}

.tab.active {
    background-color: #0d7dd4;
    color: white;
}

.choice-content {
    border: 1px solid #0d7dd4;
    border-radius: 5px;
    padding: 15px;
    background-color: #f0fdf9;
}

.choice-content div {
    display: none;
}

.choice-content div.active {
    display: block;
}
