body {
    font-family: Arial, sans-serif;
    margin: 20px;
    justify-content: center;
    text-align: center;
    overflow-x: auto;
    overflow-y: auto;
}

input[type="text"] {
    text-align: right;
    min-width: 3ch;
    width: 6ch;
    max-width: 100%;
}

input[class="percentchange"] {
    min-width: 3ch;
    width: 10ch;
}

input[type="number"]#decimalPlaces {
    width: 3ch;
    min-width: 5ch;
}

input[type="button"] {
    padding: 5px 10px;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    margin: 5px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.formula {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    overflow-x: auto;
}

.fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1.1;
    position: relative;
}

.numerator,
.denominator {
    display: block;
    white-space: nowrap;
}

.fraction:not(:has(.numerator))::after {
    display: none;
}

.fraction:has(.numerator)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: black;
}

span {
    font-size: 1.2rem;
    white-space: nowrap;
}

span#normal {
    font-size: 1rem;
    white-space: nowrap;
}

hr {
    border: none;
    border-top: 3px double #333333;
    color: #333333;
    overflow: visible;
    text-align: center;
    height: 5px;
}