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

body {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(180deg, #000 0%, #001a00 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #0f0;
    border-radius: 8px;
    background: rgba(0, 255, 0, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #0f0;
    letter-spacing: 3px;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.stats span {
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid #0f0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
}

.terminal {
    background: #000;
    border: 2px solid #0f0;
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
    position: relative;
    overflow-y: auto;
    max-height: 500px;
}

#terminal-output {
    margin-bottom: 20px;
    line-height: 1.6;
}

.terminal-line {
    margin: 5px 0;
    animation: fadeIn 0.3s;
}

.target-code {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.success-line {
    color: #00ff00;
    text-shadow: 0 0 5px #0f0;
}

.error-line {
    color: #ff0000;
    text-shadow: 0 0 5px #f00;
}

.system-line {
    color: #00ffff;
}

.input-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt {
    color: #0f0;
    font-weight: bold;
    font-size: 18px;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
}

.cursor {
    animation: blink 1s infinite;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.info {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.info h3 {
    margin-bottom: 10px;
    text-align: center;
    font-size: 18px;
}

.info p {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 12px 30px;
    background: #000;
    color: #0f0;
    border: 2px solid #0f0;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

button:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 15px #0f0;
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .stats {
        font-size: 11px;
        gap: 5px;
    }
    
    .stats span {
        padding: 4px 8px;
    }
    
    .terminal {
        padding: 10px;
        min-height: 250px;
        max-height: 400px;
    }
    
    #terminal-input {
        font-size: 14px;
    }
    
    .info {
        padding: 15px;
    }
    
    .info h3 {
        font-size: 16px;
    }
    
    .info p {
        font-size: 14px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 12px;
    }
}
