/* Document Layout */
body {
    margin: 0;
    padding: 4.5rem 2rem 2rem 2rem;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #2a313d;
    color: #f1f5f9;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Background image (shared across pages) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: url('images/circuit.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    filter: blur(2px) grayscale(20%) brightness(120%);
}

/* Top Navigation Bar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.65rem 2rem;
    display: flex;
    gap: 1.5rem;
    box-sizing: border-box;
    z-index: 10;
}

/* Individual Menu Item Links */
.nav-item {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

/* Accent highlight color when hovering cursor over a link item */
.nav-item:hover {
    color: #38bdf8;
}

/* Content Container Card */
.content-card {
    max-width: 90%;
    width: 90%;
    margin: 4rem auto;
    background-color: rgba(15, 23, 42, 0.92);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

h1 {
    color: #38bdf8;
    margin-top: 0;
}

p {
    line-height: 1.6;
    color: #cbd5e1;
}

/* Numbered item list (index page) */
.item-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.item-list a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.item-list a:hover {
    color: #38bdf8;
    border-color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.08);
}

.item-number {
    color: #38bdf8;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Alinea sections with underlined captions (page0) */
.alinea {
    margin-top: 1.75rem;
}

.alinea h2 {
    color: #38bdf8;
    font-size: 1.1rem;
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

/* Reactions page header text */
.page-header {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Isso comment widget theming */
#isso-thread {
    color: #cbd5e1;
    font-family: system-ui, -apple-system, sans-serif;
}

#isso-thread .isso-comment-header a,
#isso-thread .isso-comment-header .isso-author {
    color: #38bdf8;
    font-weight: 500;
}

#isso-thread input,
#isso-thread textarea {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

#isso-thread input:focus,
#isso-thread textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

#isso-thread .isso-submit-button,
#isso-thread .isso-preview-button {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

#isso-thread .isso-submit-button:hover {
    background-color: #7dd3fc;
}

#isso-thread .isso-comment {
    border-left: 2px solid rgba(56, 189, 248, 0.3);
    padding-left: 1rem;
    margin-top: 1.25rem;
}

#isso-thread .isso-comment .isso-comment {
    border-left-color: rgba(56, 189, 248, 0.15);
}

.responsive-diagram {
  display: block;
  margin: 0 auto;        /* Centreert het diagram netjes in je .content-card */

  width: 100%;           /* Zorgt dat hij op mobiel flexibel mee naar binnen krimpt */
  max-width: min-content; /* Desktop fix: voorkomt uitsmeren, stopt bij de echte breedte (+ border) */
  height: auto;          /* Berekent de hoogte automatisch */
}

