@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');

body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, #2d2d44, #1c1c2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
}

.calculator-container {
    animation: slideIn 1s ease-out;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.calculator-glass {
    width: 380px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    animation: fadeIn 0.8s ease-out;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.display {
    background: rgba(0, 0, 0, 0.7);
    color: #0ff;
    font-size: 2rem;
    padding: 20px;
    text-align: right;
    min-height: 60px;
    overflow-x: auto;
    border-bottom: 1px solid #0ff3;
}

.pulse {
    animation: pulseFlash 0.3s ease;
}

@keyframes pulseFlash {
    0% {
        background-color: #0ff;
        color: #000;
    }

    100% {
        background-color: rgba(0, 0, 0, 0.7);
        color: #0ff;
    }
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px;
}

button {
    padding: 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
    cursor: pointer;
}

button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

button:active {
    transform: scale(0.95);
    box-shadow: 0 0 15px #0ff;
}

.equal {
    background: #0ff;
    color: #000;
    font-weight: bold;
}

.equal:hover {
    background: #0cf;
}