@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
    margin: 0;
    padding: 20px;
    background-color: #1a1a1a;
    font-family: 'VT323', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal {
    width: 800px;
    height: 600px;
    background-color: #000;
    border: 2px solid #30da30;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(48, 218, 48, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background-color: #30da30;
    color: #000;
    padding: 5px 10px;
    font-size: 1.2em;
    text-align: center;
}

.terminal-output {
    flex-grow: 1;
    padding: 10px;
    color: #30da30;
    font-size: 1.2em;
    line-height: 1.3;
    overflow-y: auto;
    white-space: pre-wrap;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #30da30;
}

.prompt {
    color: #30da30;
    margin-right: 10px;
    font-size: 1.2em;
}

#input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #30da30;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    outline: none;
}

/* Scrollbar styling */
.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #000;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #30da30;
    border-radius: 4px;
}

.dialog-mode {
    background-color: #2b2b2b;
    color: #00ff00;
    font-family: monospace;
} 

/* Blinking cursor effect */
#input::after {
    content: '▋';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* CRT screen effect */
.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(48, 218, 48, 0.1) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
} 