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

body {
    background: #0a0a0a;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 3px
    );
    pointer-events: none;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1000px;
    z-index: 10;
}

.terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3),
                inset 0 0 50px rgba(0, 255, 0, 0.05);
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.97; }
}

.terminal-header {
    background: #001a00;
    padding: 10px 15px;
    border-bottom: 2px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #00ff00;
}

.btn-close { background: #ff0000; }
.btn-minimize { background: #ffff00; }
.btn-maximize { background: #00ff00; }

.terminal-body {
    padding: 20px;
    min-height: 500px;
    max-height: 70vh;
    overflow-y: auto;
}

.output p {
    margin: 8px 0;
    line-height: 1.6;
}

.prompt {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.typing {
    color: #00ff00;
    animation: typing 1s steps(20);
}

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

.response {
    color: #00cc00;
    margin-left: 20px;
}

.ascii-art {
    color: #00ff00;
    font-size: 16px;
    line-height: 1.5;
    margin: 15px 0;
    text-shadow: 0 0 5px #00ff00;
    overflow-x: auto;
    white-space: pre;
}

.challenge-text {
    margin: 20px 0;
    line-height: 1.8;
}

.blink {
    animation: blink 1s infinite;
}

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

.active {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
}

.medium {
    color: #ffaa00;
    font-weight: bold;
}

.glitch {
    color: #ff00ff;
    animation: glitch 2s infinite;
    font-weight: bold;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
        color: #ff00ff;
    }
    92% {
        transform: translate(-2px, 1px);
        color: #00ffff;
    }
    94% {
        transform: translate(2px, -1px);
        color: #ff00ff;
    }
}

.highlight {
    color: #00ffff;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 15px #00ffff;
}

.dim {
    color: #006600;
    font-style: italic;
}

.cursor {
    animation: cursor-blink 1s infinite;
}

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

.input-section {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #00ff00;
    font-size: 12px;
    text-shadow: 0 0 5px #00ff00;
}

#ip {
    color: #00ffff;
}

.contact-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    text-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-link:hover {
    color: #00cc00;
    text-shadow: 0 0 5px #00ff00;
}

.contact-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    margin-top: 0;
}

.contact-panel.active {
    max-height: 500px;
    margin-top: 20px;
    opacity: 1;
}

.contact-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3),
                inset 0 0 30px rgba(0, 255, 0, 0.05);
}

.ascii-fingerprint {
    color: #00ff00;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #00ff00;
    white-space: pre;
    text-align: center;
}

.contact-info {
    margin-top: 15px;
}

.contact-line {
    margin: 12px 0;
    line-height: 1.6;
}

.contact-label {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 8px #00ff00;
    margin-right: 10px;
}

.contact-value {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.pgp-link {
    color: #00ff00;
    text-decoration: none;
    text-shadow: none;
    border-bottom: 1px dotted #00ff00;
    transition: all 0.3s ease;
}

.pgp-link:hover {
    color: #00cc00;
    text-shadow: 0 0 5px #00ff00;
    border-bottom-color: #00cc00;
}

.fingerprint {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid #00ff00;
    border-radius: 4px;
}

.fingerprint code {
    color: #ffaa00;
    font-size: 13px;
    text-shadow: 0 0 5px #ffaa00;
    word-break: break-all;
}

.security-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #006600;
    line-height: 1.8;
}

.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #001a00;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .ascii-art {
        font-size: 12px;
    }

    .container {
        width: 95%;
    }

    .terminal-body {
        padding: 15px;
        min-height: 400px;
    }
}
