/* ===== ALGEMENE PAGINA ===== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #2bbbad 0%, #26a69a 100%);
    color: #fff;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: linear-gradient(180deg, #004c82 0%, #003c6d 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}
header img.logo {
    height: 50px;
}

/* ===== LOGIN BOX ===== */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
}
.login-box {
    text-align: center;
    background-color: #f5f5f5;
    padding: 50px;
    border-radius: 16px;
    border: 4px solid #f57c00;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 1200px;
    width: 90%;
    color: #333333;
}
.login-box h1,
.login-box p,
.login-box .error {
    color: #333333;
}
.login-box h1 {
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 700;
}
.login-box p { font-weight: 500; }
.error {
    color: #b71c1c;
    margin-top: 10px;
    font-weight: bold;
}
input[type=password] {
    padding: 12px;
    width: 100%;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.btn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}
.btn-primary {
    margin-top: 15px;
    padding: 12px 24px;
    width: 100%;
    background: #f57c00;
    color: #ffffff;
}
.btn-primary:hover {
    background: #ef6c00;
    transform: translateY(-2px);
}
.btn-secondary {
    margin-top: 15px;
    padding: 10px 20px;
    background: #0288d1;
    color: white;
}
.btn-secondary:hover {
    background: #01579b;
    transform: translateY(-2px);
}

/* ===== GAME CONTAINER ===== */
#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
#game-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hotspot {
    position: absolute;
    cursor: pointer;
    /* background: rgba(0,0,0,0);  wit vlakje ===== */
    /* border: 1px solid rgba(255, 255, 255, 0.7); ==== randje */
    background: transparent; /* helemaal leeg */
    border: none;            /* geen rand meer */
}
.hotspot:hover {
    background: transparent;
    /* background: rgba(255,255,255,0.15);   ===== */
}

/* ===== NOTITIEBLOK  
#kladblok {
    position: fixed;
    top: 40px; 
    right: 12px;
    width: 160px;
    height: 120px;
    background: #fff8a6; /* lichtgeel */
    border: 1px solid #999;
    border-radius: 4px;
    padding: 6px;
    font-size: 13px;
    line-height: 1.3em;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.25);
    resize: none;
    z-index: 2100;
    font-family: monospace;
}
#notepad:focus,
#kladblok:focus {
    outline: none;
    border-color: #f57c00;
}

/* ===== OVERLAY ===== */
#overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
}
#overlay button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 18px;
    border: none;
    background: #f57c00;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}
#overlay button:hover {
    background: #ef6c00;
}

/* ===== PASJES ===== */
.pasje-placeholder {
    position: absolute;
    width: 12%;
    height: auto;
    border: 2px dashed rgba(255,255,255,0.6);
    z-index: 50;
}
#selected-card-slot {
    position: fixed;
    top: 150px;
    right: 12px;
    width: 160px; /* zelfde breedte als kladblok */
    z-index: 2200;
    text-align: center;
}
.pasje-selected {
    width: 100%;
    cursor: grab;
}
.pasje { cursor: pointer; }

/* Actief pasje direct onder het kladblok */
#activePassContainer {
    position: fixed;
    top: 150px; 
    right: 10px;
    margin-top: 10px;
    z-index: 2200;
    display: none;
}
#activePassContainer img {
    width: 250px;
    height: auto;
    cursor: grab;
}

/* ===== knipt ===== */
.detail-overlay {
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.85);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    z-index:2500;
}
.detail-overlay img {
    max-width:80%;
    max-height:80%;
}
.detail-overlay button {
    margin-top:20px;
    padding:10px 20px;
    background:#f57c00;
    border:none;
    color:white;
    border-radius:6px;
    cursor:pointer;
}
.detail-overlay button:hover { background:#ef6c00; }

/* ===== Overlays voor Fase 1 (donker) ===== */
.detail-overlay-dark {
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.85);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    z-index:2500;
}
.detail-overlay-dark img {
    max-width:80%;
    max-height:80%;
}
.detail-overlay-dark button {
    margin-top:20px;
    padding:10px 20px;
    background:#f57c00;
    border:none;
    color:white;
    border-radius:6px;
    cursor:pointer;
}
.detail-overlay-dark button:hover {
    background:#ef6c00;
}



#doolhofCanvas {
    border:2px solid white;
    background: url('/2025/images/doolhof.jpg') no-repeat center center;
    background-size: contain;
}
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 70px);
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.keypad button {
    width: 70px;
    height: 70px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    background: linear-gradient(145deg, #555, #222);
    color: #fff;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.5), inset -2px -2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}
.keypad button:hover {
    background: linear-gradient(145deg, #666, #333);
    transform: scale(1.05);
}
.keypad button.ok {
    background: #2e7d32;
}
.keypad button.ok:hover {
    background: #388e3c;
}
.keypad button.back {
    background: #c62828;
}
.keypad button.back:hover {
    background: #e53935;
}

.keypad-display {
    background: #111;
    border: 2px solid #666;
    border-radius: 8px;
    padding: 12px;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 10px;
    text-align: center;
    color: #ffb300;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.7);
}


/* ===== nieuw fase 2 ===== */

    .highlight {
        position:absolute;
        border: 2px solid #aaa;
        background: rgba(200,200,200,0.3);
        border-radius: 6px;
        pointer-events:none;
    }
    #passwordDisplay {
        position:absolute;
        top:36%; left:40%;
        width:15%; height:40px;
        background:white;
        color:black;
        font-size:22px;
        padding:5px;
        text-align:left;
    }
    .detail-overlay {
        position: fixed;
        top: 10%;
        left: 15%;
        width: 70%;
        height: 70%;
        background: #f0f0f0;
        border: 2px solid #333;
        box-shadow: 0 0 20px rgba(0,0,0,0.7);
        z-index: 3000;
        border-radius: 6px;
        overflow: hidden;
    }
    .detail-overlay .window-body {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    .hotspot.disabled {
        pointer-events: none;
        opacity: 0.4;
    }

/* ===== Archief Code Unit (update) ===== */
.archief-overlay {
    background: #2b2b2b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: "Segoe UI", Arial, sans-serif;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #444;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

#archiefDisplay {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 10px;
    text-align: center;
    color: #ffb300;
    background: #111;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.7);
}

#archiefButtons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per rij */
    gap: 15px;
    justify-items: center;
    margin-bottom: 20px;
}

#archiefButtons button {
    display: flex;                /* centreren inhoud */
    align-items: center;
    justify-content: center;
    font-size: 28px;              /* iets groter */
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(145deg, #444, #222);
    color: #f5f5f5;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.6), inset -2px -2px 4px rgba(0,0,0,0.5);
    transition: background 0.2s, transform 0.1s;
}
#archiefButtons button:hover {
    background: linear-gradient(145deg, #666, #333);
    transform: scale(1.1);
}



.archief-controls {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.archief-controls button {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #f57c00;
    color: white;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.archief-controls button:hover {
    background: #ef6c00;
    transform: translateY(-2px);
}


.unavailable-msg {
    position: fixed; /* los van de game-container */
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 20px;
    z-index: 9999; /* hoog genoeg */
    text-align: center;
    pointer-events: none; /* voorkomt dat je er per ongeluk op klikt */
}



/* ====== Hotspot disabled ====== */
.hotspot.disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* ====== FASE 3: WhatsApp overlay ====== */
.whatsapp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* geen zwart/donker meer */
    display: flex;
    justify-content: flex-start;  /* links uitlijnen */
    align-items: flex-end;        /* onderaan uitlijnen */
    z-index: 3000;
}

/* Het chatvenster zelf */
.whatsapp-window {
    width: 320px;
    height: 500px;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    margin-left: 150px;  /* schuif naar rechts vanaf de linkerzijde */
    margin-bottom: 120px; /* omhoog vanaf onderkant (boven de telefoon) */
}


.whatsapp-header {
    flex: 0 0 auto;
    background: #075E54;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.whatsapp-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.whatsapp-header span {
    font-weight: bold;
}
.whatsapp-messages {
    flex: 1 1 auto;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #111;
}
.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4em;
}
.message.user {
    background: #128C7E;   /* donkerder groen */
    color: white;          /* witte tekst */
    align-self: flex-end;
}

.message.reply {
    background: #2a2a2a;
    color: white;
    align-self: flex-start;
}
.whatsapp-input {
    flex: 0 0 auto;
    display: flex;
    border-top: 1px solid #333;
    background: #222;
}
.whatsapp-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
    background: #222;
    color: white;
}
.whatsapp-input input::placeholder {
    color: #888;
}
.whatsapp-input button {
    border: none;
    background: #075E54;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
}
.whatsapp-input button:hover {
    background: #0b7d6d;
}

/* ====== Tekstwolk bovenin ====== */
.text-bubble {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 70%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    line-height: 1.4em;
    z-index: 100;
}
.text-bubble::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px 12px 0 12px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.9) transparent transparent transparent;
}

/* ====== Gebaren-overlay (zelfde grootte/stijl als Agenda) ====== */
.gebaren-overlay {
    position: fixed;
    top: 30%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: #f0f0f0;
    border: 2px solid #333;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    z-index: 3000;
    overflow: hidden;           /* mag blijven */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* vaste headerhoogte zodat de rest exact uitgerekend kan worden */
.gebaren-overlay .window-header {
    background: #004c82;
    color: white;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    flex: 0 0 48px;            /* << vaste hoogte */
    box-sizing: border-box;
}
.gebaren-overlay .window-header button {
    background: #c62828;
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

/* precies 3 rijen x 4 kolommen, altijd zichtbaar binnen de overlay */
.gebaren-overlay .window-body {
    flex: 1 1 auto;            /* neemt resthoogte */
    min-height: 0;             /* <<< CRUCIAAL: laat krimpen binnen flex parent */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr)); /* exact 3 rijen, delen de ruimte */
    gap: 15px;
    padding: 15px;
    background: #fff;
    box-sizing: border-box;
}

/* tile vult cel maximaal, zonder vervormen */
.gebaren-overlay .window-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;
margin: auto;
    display: block;            /* geen inline whitespace */
    cursor: pointer;
}



.gebaren-overlay .window-body img.highlighted {
    transform: scale(1.05);
    border: 2px solid #f57c00;       /* oranje rand */
    background-color: rgba(245, 124, 0, 0.15); /* heel licht oranje transparant */
    border-radius: 4px;
    transition: transform 0.2s, border 0.2s, background-color 0.2s;
    z-index: 10;
}


/* bevestiging na gebaren puzzel */
.confirm-box {
  position: fixed !important;   /* los van flex-body */
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #fff;
  color: #222;
  border: 2px solid #004c82;
  border-radius: 8px;
  padding: 16px 22px;
  z-index: 99999;              /* altijd boven alles */
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


.confirm-box button {
  margin: 10px 6px 0;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.confirm-box .ok {
  background: #2e7d32;
  color: #fff;
}
.confirm-box .cancel {
  background: #c62828;
  color: #fff;
}

/* Zwarte overlay voor de fade-in */

#fade-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  opacity: 1;                   /* Start altijd zwart */
  transition: opacity 1.6s ease;
  pointer-events: none;
  z-index: 9999;
}

/* ====== FASE 4: Vragenlijst overlay in A4-formaat ====== */
.detail-overlay-a4 {
    position: fixed;
    top: 7%;
    left: 30%;
    width: 40%;
    height: 85%;
    background: #f0f0f0;
    border: 2px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    z-index: 3000;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-overlay-a4 .window-header {
    background: #004c82;
    color: white;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    flex: 0 0 48px;
    box-sizing: border-box;
}

.detail-overlay-a4 .window-header button {
    background: #c62828;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.detail-overlay-a4 .window-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
}

.detail-overlay-a4 .window-body img {
    height: 100%;
    width: auto;
    object-fit: contain; /* of cover als je iets mag afsnijden */
}

/* Navigatieknoppen links/rechts */
.overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay-nav:hover {
    background: rgba(0,0,0,0.7);
}
.overlay-nav.left { left: 10px; }
.overlay-nav.right { right: 10px; }

/* ===== FASE 4: Dossier fullscreen overlay ===== */
.dossier-overlay {
    position: fixed;
    top: 15%;
    left: 15%;
    
    height: 70%;
    background: #f0f0f0;   /* lichtgrijze achtergrond */
    border: 2px solid #333;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.dossier-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* volledige afbeelding zichtbaar */
}

.dossier-overlay .hotspot-close {
    position: absolute;
    top: 0%;
    right: 0%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 3100;
}

/* ==== NIEUWE DNA OVERLAY STYLING ==== */
.dna-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.dna-window {
  background: #111;
  width: 70%;
  height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
}

.dna-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.dna-left img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dna-right {
  flex: 0 0 200px;
  padding: 100px;
margin-left: -100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1c1c1c;
  color: white;
}

.dna-right label {
  margin-bottom: 8px;
  font-weight: bold;
}

.dna-right input {
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
  font-size: 14px;
}

.dna-right button {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #f57c00;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
.dna-right button:hover {
  background: #ef6c00;
}

/* navigatieknoppen */
.dna-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 26px;
  font-weight: bold;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;  
}
.dna-nav:hover { background: rgba(255,255,255,0.4); }

.dna-nav.left { left: 15px; }
.dna-nav.right { right: 15px; }

/* sluitknop */
.dna-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
}
.dna-close-btn:hover { background: #e53935; }

.kevin-overlay {
    position: fixed;
    top: 34%;
    left: 31%;
    width: 33%;   /* 63% - 32% */
    height: 37%;  /* 71% - 34% */
    background: black;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}


.kevin-window {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.kevin-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* ===== TOETSENBORD (nummer intoetsen) ===== */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 55px); /* 3 knoppen per rij, kleiner */
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.keypad button {
    width: 55px;
    height: 55px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    background: linear-gradient(145deg, #555, #222);
    color: #fff;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.5), inset -2px -2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}
.keypad button:hover {
    background: linear-gradient(145deg, #666, #333);
    transform: scale(1.05);
}

/* Display waar nummer getoond wordt */
.keypad-display {
    background: #111;
    border: 2px solid #666;
    border-radius: 8px;
    padding: 5px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
    color: #ffb300;
    margin-bottom: 2px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.7);

    height: 35px;        /* vaste hoogte */
    line-height: 20px;   /* tekst netjes gecentreerd in die hoogte */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ===== CONTROLS (call/hangup/backspace) ===== */
.kevin-controls {
    display: flex;
    justify-content: center; /* centreren */
    gap: 20px;
    margin-top: 12px;
}

.kevin-controls img {
    width: 40px;
    height: 40px;
    display: block;
}

.kevin-controls .back-btn {
    cursor: pointer;
    font-size: 28px;
    line-height: 40px;
    color: white;
}

.blood-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); /* donkere achtergrond */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000; /* hoger dan dossier (3000) */
}

.blood-window {
    position: relative;
    background: transparent;
    width: 70%;
    height: 83%;
    border-radius: 8px;
    box-shadow: none;          /* ← ook geen schaduw meer */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blood-window img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.blood-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    background: #c62828;
    border-radius: 50%;
    width: 32px; 
    height: 32px;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    z-index: 5000; /* <-- toegevoegd, altijd bovenop */
}
.blood-close-btn:hover { 
    background: #e53935; 
}


.blood-scene {
    position: relative;
    width: 100%;
    height: 100%;
}
.blood-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Slots in machine */
.tube-slot {
    position: absolute;
    width: 40px;
    height: 80px;
    border: 2px dashed rgba(0,0,0,0.3);
    top: 60%;   /* positie nog afstemmen */
    background: rgba(200,200,200,0.3);
}
#slot1 { top: 43%; left: 77%; width: 2%; height: 19%; }
#slot2 { top: 43%; left: 79.5%; width: 2%; height: 19%; }


/* Startknop */
.start-btn {
  display: none; /* standaard niet zichtbaar */
}

.start-btn.active {
  display: flex;               /* verschijnt pas actief */
  position: absolute;
  top: 48.5%;
  left: 56.2%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4caf50, #2e7d32);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4),
              inset 0 2px 4px rgba(255,255,255,0.3);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.start-btn.active:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5),
              inset 0 2px 6px rgba(255,255,255,0.4);
}

.tube-hotspot {
    position: absolute;
    cursor: pointer;
    /* geen border of achtergrond standaard */
    background: transparent;
}

/* wanneer aangeklikt */
.tube-hotspot.selected {
    background: rgba(30,30,30,0.8); /* antraciet, 80% ondoorzichtig */
}

.tube-img {
  cursor: pointer;
  transition: opacity 0.2s;
}
.tube-img.taken {
  opacity: 0.2; /* vervaagd zodra weggehaald */
  pointer-events: none;
}

.error-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  z-index: 999;
}

