@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;600&display=swap');

body {
    font-family: 'Exo 2', sans-serif;
    background-color: #050510;
    color: #e0e0e0;
    overflow-x: hidden
}

.font-cyber {
    font-family: 'Orbitron', sans-serif
}

.neon-text {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff00de, 0 0 30px #ff00de, 0 0 40px #ff00de, 0 0 55px #ff00de, 0 0 75px #ff00de
}

.neon-box {
    box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, inset 0 0 5px #00ffff
}

.cyber-grid {
    background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    height: 100vh;
    position: fixed;
    width: 100%;
    z-index: -1;
    perspective: 1000px;
    transform-style: preserve-3d
}

.grid-floor {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom, transparent 0%, rgba(5, 5, 16, 1) 80%);
    left: -50%;
    transform: rotateX(60deg)
}

.cityscape {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to top, #050510 0%, transparent 100%);
    z-index: -1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    opacity: 0.6
}

.building {
    width: 50px;
    background: #0a0a20;
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2)
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    max-width: 500px;
    margin: 20px auto;
    background: rgba(10, 10, 32, 0.9);
    padding: 20px;
    border: 2px solid #ff00de;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 222, 0.3)
}

.cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative
}

.cell.input-active {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    animation: pulse 1.5s infinite
}

.cell.carry {
    font-size: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2px;
    color: #ff00de
}

.cell.operator {
    color: #ff00de;
    font-weight: bold
}

.line {
    grid-column: 1/-1;
    height: 2px;
    background: #ff00de;
    margin: 5px 0;
    box-shadow: 0 0 10px #ff00de
}

@keyframes pulse {
    0% {
        box-shadow: inset 0 0 0 rgba(0, 255, 255, 0)
    }

    50% {
        box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.5)
    }

    100% {
        box-shadow: inset 0 0 0 rgba(0, 255, 255, 0)
    }
}

.keypad-btn {
    background: rgba(5, 5, 16, 0.8);
    border: 1px solid #00ffff;
    color: #00ffff;
    font-family: 'Orbitron';
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
    transition: all 0.1s;
    backdrop-filter: blur(5px)
}

.keypad-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px #00ffff
}

.keypad-btn:active {
    transform: scale(0.95)
}