*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    font-weight: normal;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #00AAFF, #00FF6C);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calculator {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 400px;
}

.display {
    grid-column: 1 / -1;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-around;
    word-wrap: break-word;
    word-break: break-all;
    min-height: 100px;
}

.previous-operand {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.5rem;
    min-height: 30px;
}

.current-operand {
    color: white;
    font-size: 2.5rem;
}

button {
    cursor: pointer;
    font-size: 2rem;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.span-two {
    grid-column: span 2;
}

.operator {
    background-color: rgba(255, 165, 0, 0.8);
    color: white;
}

.operator:hover {
    background-color: rgba(255, 165, 0, 1);
}

.equals {
    background-color: rgba(0, 255, 128, 0.8);
    color: white;
}

.equals:hover {
    background-color: rgba(0, 255, 128, 1);
}

.clear, .delete {
    background-color: rgba(255, 69, 0, 0.8);
    color: white;
}

.clear:hover, .delete:hover {
    background-color: rgba(255, 69, 0, 1);
}
