:root {
    --retro-green: #00ff00;
    --retro-bg: #000000;
    --scanline-color: rgba(0, 255, 0, 0.1);
}

body {
    background-color: #000; /* Black background for terminal look */
    color: #0f0; /* Green text for tech theme */
    font-family: "Courier New", Courier, monospace; /* Monospace font for command-line look */
    padding: 20px;
    margin: 0;
    position: relative;
}

.crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        to bottom,
        var(--scanline-color) 50%,
        transparent 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--retro-green);
    padding: 20px;
    position: relative;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    border: 2px solid var(--retro-green);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    background-color: rgba(0, 255, 0, 0.1);
    transform: scale(1.02);
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.retro-button {
    background: none;
    border: 2px solid var(--retro-green);
    color: var(--retro-green);
    padding: 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
}

.retro-button:hover {
    background-color: var(--retro-green);
    color: var(--retro-bg);
}

.modal {
    display: none;
    position: relative;
    top: 25px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: calc(100vw - 40px); 
    max-width: 500px; 
    max-height: 80vh; 
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--retro-green);
    padding: 20px;
    z-index: 1000;
    overflow-y: auto; 
    box-shadow: 0 0 10px var(--retro-green);
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--retro-green);
}

#modal-content {
    width: 100%;
    max-height: 70vh; 
    overflow-y: auto;
    background: var(--retro-bg);
    padding: 20px;
    border: 2px solid var(--retro-green);
    box-shadow: 0 0 10px var(--retro-green);
    color: var(--retro-green);
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box; 
}

.blink {
    animation: blink 1s step-end infinite;
}

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

.page-header {
    text-align: center;
    border-bottom: 2px solid var(--retro-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
}


::-webkit-scrollbar {
    width: 10px; 
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.9); 
    border: 2px solid var(--retro-green); 
    box-shadow: 0 0 10px var(--retro-green); 
}

::-webkit-scrollbar-thumb {
    background: var(--retro-green); 
    border-radius: 5px; 
    box-shadow: 0 0 5px var(--retro-green); 
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.8);
}


* {
    scrollbar-width: thin; 
    scrollbar-color: var(--retro-green) rgba(0, 0, 0, 0.9);
}

.legal-disclaimer {
    position: relative;
    top: 25px;
    margin: 20px;
    padding: 20px;
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
}

.legal-disclaimer h2, .legal-disclaimer h3 {
    color: #00ff00;
}

.legal-disclaimer ul {
    margin: 10px 0;
    padding-left: 20px;
}

.legal-disclaimer a {
    color: #00ff00;
    text-decoration: underline;
}

.legal-disclaimer a:hover {
    color: #ff0000;
}

.terminals {
    display: flex;
    gap: 20px; /* Space between the terminals */
}

.terminal {
    width: 48%; /* Each terminal takes up half the width */
    height: 80vh;
    border: 1px solid #0f0;
    padding: 10px;
    overflow-y: auto;
}

.interactive {
    background-color: #111; /* Slightly darker background for the interactive terminal */
}

.non-interactive {
    background-color: #222; /* Slightly lighter background for the non-interactive terminal */
}

.command-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    margin-right: 10px;
}

.input {
    background: none;
    border: none;
    color: #0f0;
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    outline: none;
    width: 100%;
}

.output {
    margin-left: 20px;
    white-space: pre-wrap;
}

.error {
    color: #f00; /* Red for errors */
}