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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #00ff41;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 90%;
    max-width: 800px;
}

.terminal {
    background: #000;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    width: 100%;
    border: 1px solid #333;
}

.terminal-header {
    background: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

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

.close { background: #ff5f57; }
.minimize { background: #ffbd2e; }
.maximize { background: #28ca42; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 12px;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    position: relative;
}

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

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

.output {
    margin-top: 15px;
}

.ascii-art {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color: #ff0080;
    text-shadow: 0 0 20px #ff0080;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px) skew(-1deg); }
    20% { transform: translateX(2px) skew(1deg); }
    30% { transform: translateX(-1px) skew(-1deg); }
    40% { transform: translateX(1px) skew(1deg); }
    50% { transform: translateX(-2px) skew(-1deg); }
    60% { transform: translateX(2px) skew(1deg); }
    70% { transform: translateX(-1px) skew(-1deg); }
    80% { transform: translateX(1px) skew(1deg); }
    90% { transform: translateX(-2px) skew(-1deg); }
}

.error-messages {
    margin-top: 20px;
}

.error-line {
    margin: 10px 0;
    color: #ff6b6b;
    font-size: 14px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.error-line:nth-child(1) { animation-delay: 0.5s; }
.error-line:nth-child(2) { animation-delay: 1s; }
.error-line:nth-child(3) { animation-delay: 1.5s; }
.error-line:nth-child(4) { animation-delay: 2s; }

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

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #00ff41;
    animation: typing 3s steps(60) 2s forwards, blink 0.8s infinite 5s;
    width: 0;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: #00ff41; }
    51%, 100% { border-color: transparent; }
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ff41;
    margin-left: 5px;
    animation: blink-cursor 1s infinite;
}

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

.loading-bar {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.loading-text {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0080, #00ff41);
    width: 0%;
    border-radius: 10px;
    animation: loading 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

@keyframes loading {
    0%, 100% { width: 0%; }
    50% { width: 100%; }
}

.percentage {
    color: #00ff41;
    margin-top: 10px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .ascii-art {
        font-size: 3rem;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .error-line {
        font-size: 12px;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        );
    pointer-events: none;
    z-index: -1;
}