body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
}

.calculator {
    width: 300px;
    background-color: #ff8fab;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.display {
    width: 100%;
    min-height: 80px;
    background-color: #eee;
    margin-bottom: 20px;
    border-radius: 5px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    word-wrap: break-word;
    word-break: break-all;
}

.previous-operand {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.2em;
    height: 24px;
}

.current-operand {
    color: #7209b7;
    font-size: 2.5em;
    font-weight: 700;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
}

button {
    height: 70px;
    border: none;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: #ffe5ec;
    color: #7209b7;
}

button:hover {
    opacity: 0.8;
}

.clear {
    color: #ff5400;
}

.operator {
    color: #006ba6;
}

.operator.equal {
    background-color: #006ba6;
    color: #ffe5ec;
}