body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #5b247a, #1bcedf);
}

.calculator {
    display: flex;
    flex-direction: column;
    width: 400px;
    padding: 25px;
    gap: 15px;
    background-color: rgba(88, 79, 99, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.display {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    background-color: #ececec;
    border-radius: 15px;
    padding: 20px;
    min-height: 120px;
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.1);
}

.formula {
    font-size: 50px;
    color: #333;
    word-wrap: break-word;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    display: flex;
    gap: 10px;
}

/* Button Styling */
button {
    flex: 1;
    padding: 15px 0;
    font-size: 28px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number {
    background-color: #6c63ff;
    color: white;
}

.number:hover {
    background-color: #5348cc;
    transform: scale(1.05);
}
.operation {
    background-color: #ff7f50;
    color: white;
}

.operation:hover {
    background-color: #e05f30;
    transform: scale(1.05);
}

.delete, .allClear {
    background-color: #ff4b5c;
    color: white;
}

.delete:hover, .allClear:hover {
    background-color: #d03a46;
    transform: scale(1.05);
}

.equals {
    background-color: #00c851;
    color: white;
}

.equals:hover {
    background-color: #007e33;
    transform: scale(1.05);
}

.empty {
    background: transparent;
    pointer-events: none;
}

.ans {
    background: transparent;
    pointer-events: none;
}
