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

body {
    background: #000000;
    font-family: Consolas, monospace;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-user-select: none; user-select: none;
}

input { user-select: text !important; }

/* 🛑 STYLING VOOR DE FAKE 403 WALL (Helder wit op gitzwart!) */
#forbidden-wall {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000000;
    display: flex; justify-content: center; align-items: center;
    z-index: 999; 
    padding: 20px;
    transition: all 0.6s ease-in-out;
    cursor: pointer; /* Geeft op mobiel aan dat het klikbaar is */
}

.error-container {
    max-width: 650px;
    text-align: left;
}

.error-code {
    font-size: 56px;
    font-weight: bold;
    color: #FF1A0A; /* Alarm rood */
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.glitch-num {
    color: #00FFCC; 
    text-shadow: 0 0 5px #00FFCC;
    animation: quickFlicker 0.4s infinite alternate;
}

.error-status {
    font-size: 16px;
    color: #FF1A0A;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.error-divider {
    width: 100%; height: 1px; background: #333; margin-bottom: 20px;
}

/* ⚪ UPGRADE NAAR COOLE HELDERWITTE TEKST */
.error-message {
    font-size: 16px !important; /* Groter op mobiel */
    color: #ffffff !important;   /* Vlijmscherp WIT! */
    line-height: 1.6;
    margin-bottom: 30px;
}

.hacker-hint {
    font-size: 13px;
    color: #4CFF00;
    text-shadow: 0 0 4px #4CFF00;
    line-height: 1.4;
}

.melt-away {
    opacity: 0; transform: scale(1.2) rotateY(15deg); pointer-events: none;
}


/* 🕷️ STYLING VOOR DE VERBORGEN ZOEKMACHINE INTERFACE */
#spider-search-core {
    width: 100%; min-height: 100vh; display: flex; justify-content: center; align-items: center;
}

.hidden-node { display: none !important; }

#spider-canvas {
    position: fixed; top: 0; left: 0; z-index: -1; width: 100%; height: 100%;
}

/* 📱 MOBIELE FIX: extra padding aan de top voor ademruimte tussenlaag! */
#search-terminal-wrapper {
    max-width: 800px; width: 95vw; 
    padding: 100px 20px 40px; /* 100px top ademruimte! */
    background: rgba(0, 0, 0, 0.93); border: 1px solid #00FFCC;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.15);
    margin: 0 auto;
}

header { text-align: center; border-bottom: 1px solid #00FFCC; padding-bottom: 20px; margin-bottom: 30px; width: 100%; }
.spider-title { font-size: 22px; color: #00FFCC; text-shadow: 0 0 8px rgba(0,255,204,0.4); }
.subtitle { color: #ccff00; font-size: 12px; margin-top: 5px; }

.search-box-section { background: rgba(5, 5, 5, 0.95); border: 1px solid #FF0F6F; padding: 25px; margin-bottom: 30px; width: 100%; }
.search-box-section h3 { font-size: 14px; color: #FF0F6F; margin-bottom: 15px; }

.search-bar-wrapper { display: flex; gap: 15px; margin-bottom: 20px; width: 100%; }

#spider-search-input {
    flex: 3; height: 45px; background: #000; border: 1px solid #FF0F6F;
    color: #FF0F6F; font-family: inherit; padding-left: 15px; outline: none;
    font-size: 14px;
}

#search-execute-btn {
    flex: 1; height: 45px; background: #FF0F6F; color: #000; font-family: inherit; font-weight: bold; border: none; cursor: pointer; transition: all 0.3s;
}
#search-execute-btn:hover { background: #00FFCC; box-shadow: 0 0 15px #00FFCC; }

#search-terminal-screen { background: #000; border: 1px solid #222; padding: 15px; min-height: 80px; display: flex; align-items: center; width: 100%; }

/* ⚪ ZOEKMACHINE OUTPUT GEFORCEERD NAAR COOLE WITTE/GROENE REEKS */
#search-output {
    font-size: 15px;
    color: #ffffff; /* Wit als basis voor resultaten */
    line-height: 1.6;
}

/* 🔗 JOUW 3 DRIE SPLINTERNIEUWE INTERACTIEVE KNOPPEN VIA FLEXBOX */
#spider-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.spider-nav-btn {
    height: 48px; background: transparent; font-family: inherit; font-weight: bold; font-size: 14px; cursor: pointer; transition: all 0.2s; text-align: left; padding-left: 20px;
}

/* Knop 1: Spiders Crawl (Neon Cyaan) */
.spider-glow { border: 1px solid #00FFCC; color: #00FFCC; }
.spider-glow:hover { background: #00FFCC; color: #000; box-shadow: 0 0 15px #00FFCC; }

/* Knop 2: Learn to Crawl (Vaporwave Roze) */
.crawl-glow { border: 1px solid #FF0F6F; color: #FF0F6F; }
.crawl-glow:hover { background: #FF0F6F; color: #000; box-shadow: 0 0 15px #FF0F6F; }

/* Knop 3: Back Button (Industrieel Grijs) */
.back-btn { border: 1px solid #555; color: #888; }
.back-btn:hover { border-color: #FAFF0A; color: #FAFF0A; box-shadow: 0 0 10px rgba(250,255,10,0.2); }

footer { text-align: center; border-top: 1px solid #222; padding-top: 20px; width: 100%; }
.back-hub-btn { height: 45px; padding: 0 25px; background: #FF1A0A; border: none; color: #fff; font-family: inherit; font-weight: bold; cursor: pointer; }
.back-hub-btn:hover { background: #FF0F6F; box-shadow: 0 0 15px #FF0F6F; }

@keyframes quickFlicker { 0% { opacity: 0.4; } 100% { opacity: 1; } }

@media (max-width: 768px) {
    #search-terminal-wrapper { padding-top: 110px; }
    .search-bar-wrapper { flex-direction: column; height: auto; }
    .spider-nav-btn { font-size: 13px; padding-left: 15px; }
}



/* ADDITIVE UPDATES: results, accessibility, and distinctive original canvas preserved */
#search-output { width:100%; overflow-wrap:anywhere; white-space:normal; }
#search-output .result-entry { margin:12px 0; padding:12px; border-left:3px solid currentColor; background:rgba(255,255,255,.035); }
#search-output .result-entry:nth-child(6n+1){color:#00ffcc}
#search-output .result-entry:nth-child(6n+2){color:#ff48b6}
#search-output .result-entry:nth-child(6n+3){color:#faff0a}
#search-output .result-entry:nth-child(6n+4){color:#9b69ff}
#search-output .result-entry:nth-child(6n+5){color:#57d8ff}
#search-output .result-entry:nth-child(6n){color:#69ff62}
#search-output .result-entry p { color:#fff; margin:5px 0; }
#search-output .result-entry a { color:inherit; text-decoration:underline; font-weight:bold; }
#search-output .result-entry a:focus-visible, button:focus-visible, input:focus-visible {outline:2px solid #faff0a;outline-offset:3px}
#search-output .no-results {color:#ff1a0a; font-weight:bold}
#search-output .search-meta {color:#fff; margin-bottom:8px}
#search-output .directory-note {color:#c8d7d4; font-size:13px; margin-top:12px}
#spider-search-input { min-width:0; user-select:text; -webkit-user-select:text; }
@media (max-width:768px){#search-terminal-wrapper{padding-top:35px}.spider-title{overflow-wrap:anywhere}.spider-nav-btn{height:auto;min-height:48px;padding:12px}}
@media (prefers-reduced-motion:reduce){.glitch-num{animation:none}.melt-away{transition:none}}
