* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.calculator {
    height: 640px;
    width: 480px;
    padding: 1em;
    border: 1px, solid, white;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.display {
    height: 286px;
    width: 432px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
    padding-inline: 18px;

}

.display text {
    font-variant-numeric: tabular-nums;
    line-height: 1;
    padding-block: 0.25em;
    padding-inline: 0;
}

#activeRow {
    width: 100%;
    min-width: 0;
    height: 54px;
    flex-shrink: 0;
    font-size: 2.25rem;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
}

#olderRow {
    font-size: 1.5rem;
    color: #a1a1a1;
    width: 100%;
    min-height: 0;
    max-height: 232px;
    white-space: normal;
    text-align: right;
    overflow-wrap: anywhere;
    overflow-y: hidden;
}

.numblock {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.leftblock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 324px;
}

.operator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.specialFunction {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.numbers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

button {
    border: 0;
    border-radius: 25px;
    width: 100px;
    height: 50px;
    padding: 1em;
    margin: 4px; 
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 0;
}

.orange {
    background-color: #FF9200;
}

.light-grey {
    background-color: #5B5B5B;
}

.dark-grey {
    background-color: #2F2F2F;
}

.errorMessage {
    color: red;
}
