/* =========================================================================
   🛡️ FIXUNA UNDERGROUND - SECTOR ⍼ (ghost.css)
   ========================================================================= */

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

body {
    overflow-y: auto;
    overflow-x: hidden;
    background: #000000; /* Volledig zwarte basis achtergrond */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Consolas, monospace;
    -webkit-user-select: none; 
    user-select: none; /* Voorkomt tekstselectie en kopiëren door hackers */
}

/* Zorg dat de bezoeker WEL gewoon letters en codes in de input kan typen */
input { 
    -webkit-user-select: text !important; 
    user-select: text !important; 
}

/* De centrale wrapper voor alle elementen */
#main-terminal {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2; /* Staat als voorgrond-laag boven op de Matrix regen */
    padding: 60px 20px 40px; 
}

/* Afbeelding Container - Strikt beschermd met software-matige glasplaat */
#image-container {
    position: relative;
    border: 3px solid #000000;
    background-color: #000000;
    box-shadow: 0 0 20px rgba(255, 15, 111, 0.3); /* Neon roze gloed */
    margin-bottom: 40px; 
}

/* 
  HELP_COMMENT: GROOTTE VAN DE AFBEELDING AANPASSEN
  Wil je de clown groter of kleiner hebben? Wijzig de width en height 
  hieronder naar jouw eigen wens (bijvoorbeeld 700px bij 450px).
*/
#vaporwaveClown-image {
    width: 600px;
    height: 400px;
    display: block;
    pointer-events: none; /* Blokkeert slepen of opslaan van de afbeelding */
}

/* Onzichtbare anti-diefstal glasplaat over de afbeelding heen */
#image-container::after {
    content: ""; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0); 
    z-index: 10;
}

/* Het Matrix Canvas op de achtergrond */
canvas {
    position: fixed;
    top: 0; 
    left: 0;
    z-index: -1; /* CRITICAL FIX: Absoluut achter de content geplaatst! */
    height: 100%; 
    width: 100%;
}

/* Gecentreerde Cyberpunk Retro Loading Bar */
#loading-rectangle {
    height: 55px;
    width: 520px; 
    padding: 4px;
    border: 3px double #FF0F6F; /* Neon roze dubbele rand */
    background-color: rgba(0, 0, 0, 0.85);
    position: relative;
    margin-bottom: 25px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden; /* Houdt oplichtende blokjes strikt binnen de balk */
}

.loading-block {
    height: 38px;
    width: 38px;
    margin: 0 2px;
    background-color: #4CFF00; /* Fel Matrix Groen */
    box-shadow: 0 0 10px #4CFF00;
    display: inline-block;
    flex-shrink: 0; /* Voorkomt dat blokjes in elkaar gedrukt worden */
    animation: blockPulse 0.5s ease-out;
}

#loading-text {
    position: absolute;
    right: 15px;
    color: #FAFF0A; /* Retro Geel */
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 5px #FAFF0A;
    letter-spacing: 1px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7); /* Donkere achtergrond voor perfecte leesbaarheid */
    padding: 2px 6px;
    border-radius: 2px;
}

/* Input & Knoppen Container */
#buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; 
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border: 1px solid #00FFCC; /* Aqua rand */
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

#password-input {
    height: 45px;
    width: 240px;
    background-color: #000000;
    border: 2px solid #00FFCC;
    color: #00FFCC;
    font-family: inherit;
    font-size: 14px;
    padding: 0 10px;
    text-align: center;
    outline: none;
    box-shadow: inset 0 0 5px rgba(0, 255, 204, 0.5);
}

/* Cyberpunk Knoppen met felle neon hover-animaties */
.action-button {
    height: 45px;
    width: 120px;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

/* Rechterknop: Uitvoeren (Retro Geel) */
.enter-button { 
    background-color: #FAFF0A; 
    color: #000000; 
    box-shadow: 0 0 10px rgba(250, 255, 10, 0.4); 
}
.enter-button:hover { 
    background-color: #00FFCC; 
    color: #000000; 
    box-shadow: 0 0 20px #00FFCC; 
    transform: scale(1.05); 
}

/* Linkerknop: Terug/Leave (Neon Cyber Rood) */
.leave-button { 
    background-color: #FF1A0A; 
    color: #ffffff; 
    box-shadow: 0 0 10px rgba(255, 26, 10, 0.4); 
}
.leave-button:hover { 
    background-color: #FF0F6F; 
    color: #ffffff; 
    box-shadow: 0 0 20px #FF0F6F; 
    transform: scale(1.05); 
}

@keyframes blockPulse {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobiele responsive fix voor smartphones */
@media (max-width: 600px) {
    #loading-rectangle { width: 90vw; }
    #buttons-container { flex-direction: column; width: 90vw; gap: 10px; }
    #password-input, .action-button { width: 100%; }
    #vaporwaveClown-image { width: 90vw; height: auto; }
}
