body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #121886, #060437);
    background-size: cover;
}


.calculator {
    background: rgba(8, 3, 33, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    display: grid;
    grid-template-rows: auto 1fr;
    width: 300px;
}

.display {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 15px;
    text-align: right;
    font-size: 2rem;
    color: rgb(245, 244, 249);
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 15px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2), 0 4px 6px rgba(0,0,0,0.3);
}

button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

@media (max-width: 400px) {
    .calculator {
        width: 90%;
    }
    .display {
        font-size: 1.5rem;
    }
}
