body {
    background-color: #000;
    color: #0F0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    margin: 0;
    padding: 20px;
    position: relative;
    background: radial-gradient(ellipse at center, #0a2e0a 0%, #000000 70%);
    background-size: 100% 100%;
}

.terminal-back {
    display: inline-block;
    color: #0F0;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #0F0;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #0F0;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
    position: relative;
}

.terminal-back:hover {
    background: #0F0;
    color: #000;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

#terminal {
    height: calc(100vh - 40px);
    border: 2px solid #0F0;
    overflow-y: auto;
    padding: 10px;
    animation: flicker 0.15s infinite;
    z-index: 1;
    position: relative;
}

#output {
    white-space: pre-wrap;
    text-shadow: 0 0 5px #0F0;
}

#input-line {
    display: flex;
}

.prompt {
    margin-right: 10px;
}

#input {
    background: transparent;
    border: none;
    color: #0F0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    width: 100%;
    outline: none;
}

/* ===== Terminal Responsive ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    #terminal {
        height: calc(100vh - 20px);
        padding: 8px;
    }

    #input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
        font-size: 12px;
    }

    #terminal {
        height: calc(100vh - 10px);
        padding: 5px;
    }

    #input {
        font-size: 12px;
    }
}
