* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 62.5%;

    /* font-colors */
    --fc-titles: #B2342B;
    --fc-subtitles: #000000;
    --fc-text: #000000;
    --fc-select: #6D6D6D;
    --fc-sor: #FFFFFF;
    --fc-liv: #000000;
    --fc-lim: #FFFFFF;
    --fc-fix: #FFFFFF;

    /* font-sizes */
    --fs-header: 2.6rem;
    --fs-text: 1.6rem;
    --fs-selected: 2.0rem;
    --fs-big: 2.8rem;

    /* background colors */
    --bc-lightgray: #E0E0E0;
    --bc-darkgray: #E0E0E0;
    --bc-select: #FAFAFC;
    --bc-sor: #000000;
    --bc-liv: #D9D9D9;
    --bc-lim: #ADADAD;
    --bc-fix: #696969;

    /* other */
    --border-select: #E6E6F0;
}

body {
    font-family: 'Inter', sans-serif;

    background-color: #F9F4FB;
}

header {
    margin-top: 1.1rem;

    display: flex;
    align-items: center;
    justify-content: space-around;
}

header select {
    font-size: var(--fs-header);
    font-weight: bold;
    color: var(--fc-titles);

    border-radius: 0.8rem;
    border-color: #E6E6F0;
    background-color: var(--bc-select);

    padding: 0.3rem 1.5rem 0.3rem 0;

}

.data {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    place-items: center;

    margin-bottom: 1.1rem;
}

.term {
    margin-top: 2.5rem;
    padding-left: 2.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.term h3 {
    font-size: 1.8rem;
}

.term p {
    font-size: 1.4rem;
    margin-left: -1.5rem;
}

.termInfo {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.runtime, .actual, .original {
    font-weight: 400;
}

.filters {
    margin-top: 2.1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 2rem;
}

.antecipation, .reduction, .hole, .parcela {
    display: flex;
    flex-direction: column;
}

span {
    font-size: 1.5rem;
    font-weight: bold;

    text-align: center;

    margin-bottom: 0.5rem;
}

.filters select {
    display: block;
    margin: 0 auto;

    border-radius: 0.8rem;
    border-color: #E6E6F0;
    background-color: var(--bc-select);

    padding: 0.5rem;

    width: 6.7rem;

    color: var(--fc-select);
}

#contemplate-in {
    margin: 0 0.5rem;
    border-color: #E6E6F0;
}

#own-parcelas,
#credit-parcelas {
    margin: 0 auto;
    border-color: #696969;
}

#own-parcelas,
#credit-parcelas,
#contemplate-in {
    display: block;

    font-size: 1.8rem;

    border-style: solid;

    border-radius: 0.8rem;
    background-color: var(--bc-select);

    padding: 0.3rem 1.5rem 0.3rem 0;

    padding: 0.5rem;

    width: 6.3rem;

    color: var(--fc-select);
}

.reduction select {
    width: 8rem;
}

.parcela p {
    display: block;
    margin: 0 auto;

    margin-top: 0.5rem;

    font-size: 1.5rem;
}

.order{
    display: flex;
    align-items: center;
    justify-content: space-evenly;

    margin-bottom: 1.1rem;

    font-size: 1.6rem;
}

.order-legend {
    color: var(--fc-sor);
    background-color: var(--bc-sor);
    padding: 0.2rem;
}

.type {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.selected {
    font-size: 2.0rem;

    color: var(--fc-titles);
    background: #D9D9D9;

    border-top-left-radius: 1.0rem;
    border-top-right-radius: 1.0rem;
    padding: 0.5rem 1.8rem 0.3rem;
}

.sor-selected {
    font-size: 2.0rem;

    color: var(--fc-titles);
    background: #D9D9D9;

    border-top-left-radius: 1.0rem;
    border-top-right-radius: 1.0rem;
    padding: 0.5rem 1.8rem 1.1rem;
}

button:not([class*="selected"]) {
    background: none;
}

.type button {
    border: none;

    font-weight: bold;
    text-align: center;

    cursor: pointer;
}

.type button:hover {
    color: #323232;
}

.calculations table {
    padding: 0.5rem;

    width: 100%;
    background: #D9D9D9;
    text-align: center;

    border-collapse: separate;
    border-spacing: 0 0.8rem;
}

.calculations thead tr:first-child th:first-child {
    color: #B2342B;
}

.calculations tr:last-child td:last-child,
.calculations tr:last-child td:nth-child(2) {
    border-top: 0.3rem solid #000000;
}

th {
    font-size: 1.5rem;
}

td {
    font-size: 1.8rem;
}

.available-credit {
    margin-top: 0.2rem;
    padding: 1rem;

    display: flex;
    align-items: center;
    justify-content: space-around;

    text-align: center;

    background: #D9D9D9;
    width: 100%;
}

.available-credit h1 {
    font-size: 2.4rem;
    color: var(--fc-titles);
}

.available-credit span {
    font-size: 2.4rem;
}

.contemplation {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 1.1rem;
}

.contemplation-date {
    margin-left: 2.5rem;
}

.after {
    display: flex;
    align-items: center;
    justify-content: space-around;

    margin-top: 0.6rem;

    width: 100%;
    background: #D9D9D9;
    text-align: center;
}

.after h1 {
    text-transform: uppercase;
    color: var(--fc-titles);
    font-size: 2.8rem;

    padding: 1.3rem 0;

    margin-left: 5rem;
}

.after td {
    padding: 0 2.5rem;
}

nav {
    background: var(--fc-titles);

    height: 7.2rem;

    display: grid;
    justify-items: center;
}

nav li {
    display: inline-block;

    color: #FFFFFF;
    font-size: 1.2rem;

    height: 6rem;
    width: 7rem;

    border: 1px solid #FFFFFF;
    border-radius: 1.5rem;

    text-align: center;
    padding-top: 2rem;
}

a {
    text-decoration: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    text-decoration: inherit;
    color: inherit;
}

.btn {
    font-size: 1.2rem;
}

.modal {
    display: block;
    flex-direction: column;
    justify-content: center;
    
    margin-top: -40rem;

    width: 75%;

    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;

    gap: 0.4rem;
    padding: 1.8rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    z-index: 2;
}

.modal h3 {
    font-size: 2.0rem;
    padding-bottom: 1.5rem;
}

.modal p, li {
    font-size: 1.2rem;
    color: #777;
    margin: 0.4rem 0 0.2rem;
}

.modal li {
    margin-left: 1.4rem;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.hidden {
    display: none;
}

.titleVersion {
    font-weight: 800;
    margin-top: 1.5rem;
}

.modal-dialog {
    overflow-y: scroll;
    max-height: 50%;
    margin-top: 50px;
    margin-bottom: 50px;
}

.modal-body {
    height: 30rem;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: self-start;
}