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

button,
.display {
    font-size: 8vmin;
}

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

    /* width: auto; */
    /* width: 100vmin; 
    /* height: 100vmax; */
    /* aspect-ratio: 2/3; */
    margin: auto;
    padding: 0.5em;
    border: solid black .01em;
    border-radius: 0.5em;
}

.display,
.keypad {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin: 0.5em;
}

.display {
    width: 95%;
    min-height: 20%;
    border-radius: 5%;
    padding: 0.2em;
    background-color: lightgray;
    font-family: monospace;
}

/* Allow input to overflow on the left without complications */
#inputContainer {
    display: flex;
    flex-direction: row-reverse;
    overflow: auto;
}

/* Remove display scrollbar */
#inputContainer::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

#inputContainer {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

#ans {
    text-align: right;
}

.keypad {
    flex: 2;
}

.row {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-content: stretch;
}

button {
    flex: 1;
    width: 23%;
    margin: 0.3%;
    border-radius: 30%;
    border-style: hidden;
    text-align: center;
}

button:active {
    background-color: gray;
}

#ac {
    background-color: lightpink;
}

#ac:active {
    background-color: pink;
}

#equal {
    background-color: lightgreen;
}

#equal:active {
    background-color: green;
}

.number,
#decimal,
#del {
    background-color: lightgrey;
}