* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.terminal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 20px #00ff00;
    z-index: 2;
    backdrop-filter: blur(2px);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.terminal-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.terminal-header {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    padding: 8px 16px;
    border-bottom: 1px solid #00ff00;
    display: flex;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.close {
    background: #ff5f57;
}

.btn.minimize {
    background: #ffbd2e;
}

.btn.maximize {
    background: #28ca42;
}

.terminal-title {
    color: #00ff00;
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-content {
    padding: 20px;
    color: #00ff00;
    font-size: 16px;
    line-height: 1.5;
    min-height: 300px;
}

.terminal-line {
    margin-bottom: 10px;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
}

.command {
    color: #00ff00;
    margin-left: 5px;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.output-lines {
    margin-bottom: 10px;
}

.output-line {
    margin-bottom: 8px;
    color: #00ff00;
}

.output-line.error {
    color: #ff4444;
}

.output-line.success {
    color: #44ff44;
}

.output-line.info {
    color: #4444ff;
}

@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        max-width: none;
    }
    
    .terminal-content {
        padding: 15px;
        font-size: 14px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
}

.matrix-char {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px #00ff00;
}

#command-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    margin-left: 5px;
    flex: 1;
}

#command-input::placeholder {
    color: #006600;
}

.input-line {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #command-input {
        font-size: 14px;
    }
}