/* Cyberpunk hacker aesthetic */
body {
    background-color: black;
    color: limegreen;
    font-family: 'Courier New', monospace;
    padding: 20px;
}

/* Terminal effect */
#terminal {
    white-space: pre-wrap;
    font-size: 18px;
    line-height: 1.5;
    border: 2px solid limegreen;
    padding: 10px;
    width: 80%;
    height: 300px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Enable flashing text */
.glitch {
    animation: flashText 0.3s infinite alternate;
}

@keyframes flashText {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Blinking cursor effect */
@keyframes blink {
    50% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: limegreen;
    animation: blink 0.8s infinite;
}

/* Security breach pop-up */
#popup {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border: 3px solid black;
    display: none;
    font-size: 22px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Countdown Timer */
#countdown {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: red;
    font-weight: bold;
    background: black;
    padding: 10px;
    border: 2px solid red;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 600px) {
    body { font-size: 16px; }

    #terminal {
        width: 95%;
        font-size: 14px;
        height: 250px;
    }

    #countdown { font-size: 18px; padding: 5px; width: 90%; }

    #popup { width: 80%; font-size: 18px; }

    #commandInput { width: 90%; }
}

/* Command Input Box */
#commandInput {
    width: 80%;
    padding: 10px;
    border: 2px solid limegreen;
    background-color: black;
    color: limegreen;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    outline: none;
    caret-color: limegreen; /* Makes the text cursor match theme */
}
