

body {
    top: 0 !important;
}

canvas {
    margin: 0 auto 20px auto;
    display: none;
    max-width: 35vw !important;
}

@media (width < 450px) {
    canvas {
        max-width: 80vw !important;
    }
    .inputs {
        gap: 0px
    }
}


.inputs input[id^=credit-amount] {
    width: 60px;
}

.inputs input[id$=pop] {
    width: 100px;
}

.inputs input[id^=credit-length], .inputs input[id^=credit-rate] {
    width: 30px;
}

.sub-title {
    margin : 0 auto;
}

.tnw h2 {
    border-bottom: 1px solid var(--paragraph);
    width: fit-content;
}

.tnw h2:not(:first-child) {
    margin-top: 25px;
}

.inputs {
    gap: 0px;
}

.inputs input[id^=credit-amount] {
    width: 60px;
}

.paid-interest-pct {
    margin-top: 26px;
}

.copyright {
    display: none;
}

div:has(> span[id^=amount-report]) {
    border: 1px solid grey;
    padding: 10px;
    border-radius: 8px;
    width: fit-content;
}

.results {
    font-size: calc(var(--paragraph-font-size)*1.2);
    margin: 0 auto;
    width: fit-content;
    border-bottom: 1px solid var(--paragraph-color);
}

.dark {
    div:has(> span[id^=amount-report]) {
        border-color: silver;
    }
}

#color-bar {display: none;}

.color-bar {
    width: 80%;
    max-width: 800px;
    display: flex;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
    margin: 0 auto;
}

@media (width <= 450px) {
    .color-bar {
        flex-direction: column;
    }
}
.segment {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    
    mjx-container {
        color: silver;
        margin: 0 auto;
    }
}

.blue   { background-color: var(--blue-text); }   /* Bootstrap-like blue */
.green  { background-color: var(--green-text); }   /* Success green */
.orange { background-color: var(--orange-text); }   /* Orange */
.red    { background-color: var(--red-text); }   /* Danger red */