@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@400;700&display=swap');

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
    overflow-x: hidden
}

.font-cyber {
    font-family: 'Orbitron', sans-serif
}

.cyber-bg {
    background: repeating-linear-gradient(0deg, transparent, transparent 1px, #0ea5e910 1px, #0ea5e910 2px), repeating-linear-gradient(90deg, transparent, transparent 1px, #0ea5e910 1px, #0ea5e910 2px), linear-gradient(#000, #0f172a);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    min-height: 100vh;
    position: relative
}

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2
}

.terminal {
    background: rgba(2, 6, 23, 0.9);
    border: 2px solid #0ea5e9;
    border-radius: 5px;
    box-shadow: 0 0 20px #0ea5e9;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    z-index: 10
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    animation: scan 2s linear infinite
}

@keyframes scan {
    0% {
        top: 0
    }

    100% {
        top: 100%
    }
}

.matrix-node {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid #0ea5e9;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    position: relative
}

.matrix-node:hover {
    background: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 15px #0ea5e9
}

.fraction-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1
}

.frac-line {
    width: 100%;
    height: 2px;
    background: #0ea5e9;
    margin: 4px 0
}

.node-line {
    position: absolute;
    height: 2px;
    background: #0ea5e9;
    transform-origin: left center
}

.cyber-btn {
    background: transparent;
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
    padding: 10px 30px;
    font-family: 'Orbitron';
    font-size: 1.2rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    position: relative;
    overflow: hidden
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    transition: left 0.5s
}

.cyber-btn:hover::before {
    left: 100%
}

.cyber-btn:hover {
    background: #0ea5e9;
    color: #000;
    box-shadow: 0 0 20px #0ea5e9
}

.input-cyber {
    background: transparent;
    border: 1px solid #0ea5e9;
    color: #0ea5e9;
    text-align: center;
    font-family: 'Orbitron';
    font-size: 1.2rem;
    width: 60px;
    padding: 5px
}/* High-quality claymation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('clay_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
