body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.calculator {
    border: solid black 2px;
    min-height: 560px;
    width:340px;
    margin: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background-color: rgb(217, 213, 213);
    padding-top: 12px;
    padding-bottom: 12px;
}

div {
    width: 280px;
}

.display {
    margin-top: 12px;
    margin-bottom: 24px;
}

.history, .result {
    border: solid black 2px;
    min-height: 52px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: aliceblue;
}

.result {
    padding-top: 12px;
    padding-bottom: 12px;
    height: 64px;
    border-top: none;
}

#result {
    font-size: 32px;
}

p {
    margin-right:12px;
    font-size: 16px;
    max-width: 250px;
    word-wrap: break-word;
}

.row {
    display: flex;
    height: 64px;
    justify-content: center;
    margin: 4px 0;
    gap: 6px
}

.one {
    width: 280px;
    gap: 5px;
}

.keys {
    display: flex;
    flex-direction: column;
}

button {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin:0;
    font-size: 14px;
}

button:hover {
    background-color: rgb(173, 161, 161);
}

.operator {
    background-color: rgb(201, 220, 236);
}

.equal {
    background-color: rgb(211, 242, 228);
}

.clear {
    background-color: rgb(228, 197, 197);
    flex-grow: 1;
}

.delete {
    background-color: rgb(239, 239, 202);
    flex-grow: 1;
}

.zero {
    width: 134px;
}