* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
}

.calculator {
    max-width: 400px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#display {
    background-color: #2d3748;
    color: #ffffff;
    font-size: 40px;
    padding: 24px;
    text-align: right;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    word-wrap: break-word;
    min-height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 24px;
}

.calculator button {
    background-color: #e2e8f0;
    color: #2d3748;
    font-size: 24px;
    padding: 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator button:hover {
    background-color: #cbd5e0;
    transform: translateY(-1px);
}


/* Operator buttons styling */
.calculator button.operator {
    background-color: #4299e1;
    color: #ffffff;
}

.calculator button.operator:hover {
    background-color: #3182ce;
}

/* Clear and Delete buttons styling */
.calculator button.clear,
.calculator button.delete {
    background-color: #ef4444;
    color: #ffffff;
}

.calculator button.clear:hover,
.calculator button.delete:hover {
    background-color: #dc2626;
}

/* Equals button styling */
.calculator button.equals {
    background-color: #10b981;
    color: #ffffff;
    grid-column: span 2;
}

.calculator button.equals:hover {
    background-color: #059669;
}