﻿:root {
    --primary-color: rgb(0, 45, 71); /* blue */
    --accent-color1: rgb(255, 127, 30); /* orange */
    --accent-color2: rgb(242, 242, 242); /* grey */
    --radius: 2px;
}

/* ==== HEADER ==== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0);
    color: rgb(0,45,71);
}

    .header .title {
        font-size: 1.5em;
        font-weight: bold;
    }

    .header .logo {
        height: 4vw;
        width: auto;
    }

.divider_header {
    border-bottom: 1px solid rgb(0, 45, 71);
    margin-top: 1vw;
    margin-bottom: 2vw;
    color: rgb(0,45,71);
}

.logo {
    padding-left: 10px;
}

/* ==== Einde HEADER ==== */

body {
    font-family: Arial,sans-serif;
    color: var(--primary-color);
    background-color: #f2f2f2; /* Light grey background */
    padding: 0;
    line-height: 1.3;
    margin: 2rem;
    max-width: 1044px;
    margin-left: 350px; /* space for floating TOC */
    transition: margin 0.3s ease;
}

.highlight-container {
    max-width: 1044px;
    background-color: rgb(173, 216, 230, 0.2);
    padding: 5px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1.3;
    

}

p {
    text-align: justify;

}

h1 {
    font-size: 1.2em;
    padding: 1vw 0 1vw 0;
    text-decoration: underline;
    text-transform: uppercase;
}

h2 {
    font-size: 1em;
}

h3 {
    font-size: 1em;
    font-style: italic;
}

h4 {
    font-style: italic;
    font-weight: normal;
}


.container {
    max-width: 1044px;
    box-sizing: border-box;
    margin: auto;
    background-color: white;
    padding: 50px;
    padding-left: 5vw;
    padding-right: 5vw;
    box-shadow: 0 4px 8px rgba(0, 45, 71, 0.3);
    background-image: url('../../media/image/CompasV2.png');
    background-size: contain;
    background-repeat: repeat-y;
    background-position: right;
    border-radius: 10px;
    margin-bottom: 2vw;
}

/* test voor nieuwe Table of Content */


/* test voor nieuwe Table of Content */


nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* spreads items with no extra gap at edges */
}

    nav section {
        background-color: rgba(0, 45, 71, 0.9);
        color: rgb(255, 127, 30);
        border-radius: 6px;
        flex: 1 1 200px;
        padding: 10px;
        transition: background-color 0.3s ease;
        position: relative;
        z-index: 0; /* base layer */
        margin: 3px;
        font-size: 0.9em;
        
    }

        nav section:hover {
            background-color: rgb(255, 127, 30);
            z-index: 1; /* bring hovered section above others */
        }

    nav h2 {
        margin: 0;
        cursor: pointer;
    }



    nav ul {
        list-style: none;
        margin: 0;
        padding: 0 0;
        position: absolute;
        background-color: rgb(242,242,242);
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        border-radius: 6px;
        z-index: 2; /* ensure submenu is above all menu items */
        font-size: 0.9em;
    }

        nav section:hover > ul,
        nav ul:hover {
            display: block;
        }

        nav ul li {
            border: 0.5px solid white;
        }



            nav ul li a {
                color: rgb(0,45,71);
                text-decoration: none;
                display: block;
                padding: 8px 12px;
            }

                nav ul li a:hover {
                    background-color: rgba(0,0,0,0.1);
                }








/* === Floating Table of Contents with Submenus === */
.floating-toc {
    position: fixed;
    top: 50%;
    left: 25px; /* 👈 move to the left side */
    transform: translateY(-50%);
    width: 250px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(0, 45, 71, 0.9);
    color: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 0.9em;
    z-index: 1000;
}

    .floating-toc h3 {
        margin-top: 0;
        text-align: center;
        color: var(--accent-color1, #00b4d8);
        font-size: 1.5em;
        border-bottom: 1px solid white;
        padding-bottom: 5px;
    }

    /* Main menu */
    .floating-toc > ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

        .floating-toc > ul > li {
            margin: 6px 0;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            text-align: left;
        }

            .floating-toc > ul > li:last-child {
                border-bottom: none;
            }

    .floating-toc a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
        display: block;
    }

        .floating-toc a:hover {
            color: var(--accent-color1, #00b4d8);
        }

    /* Submenu */
    .floating-toc ul ul {
        margin-top: 4px;
        padding-left: 15px;
        border-left: 2px solid rgba(255,255,255,0.2);
        text-align: left;
    }

        .floating-toc ul ul li {
            border-bottom: none;
            margin: 4px 0;
        }

/* === Hide <nav> when Floating TOC is visible === */
@media (min-width: 1024px) {
    nav {
        display: none;
    }
    .back {
        display: none;
    }
}

/* === Floating TOC visibility control === */
@media (max-width: 1640px) {
    .floating-toc {
        display: block;
    }
}

@media (min-width: 1025px) and (max-width: 1300px) {
    .floating-toc {
        /* Width scales from 200px to 300px as screen goes from 1025px to 1300px */
        width: 200px;
        font-size: 0.8em;
    }

    body {
        margin-left: 300px; /* space for floating TOC */
    }
}


@media (max-width: 1024px) {
    .floating-toc {
        display: none;
    }

    body {
        margin-left: 2rem; /* reset margin when TOC is hidden */
    }
}


/* ==== Table of Content opmaak ==== */

.toc-container {
    max-width: 1044px;
  
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1;
    background: linear-gradient(270deg,rgb(173, 216, 230, 0.2),#ffffff)
}

    .toc-container h2 {
        margin-bottom: 16px;
        font-size: 1.2em;
        text-decoration: underline;
        /*  border-bottom: 1px solid rgb(0, 45, 71);*/
        padding-bottom: 4px;
    }

.toc-list {
    list-style-type: none;
    padding-left: 0;
    line-height: 1;
}

    .toc-list li {
        margin: 10px 0;
        line-height: 1;
    }

        .toc-list li a {
            text-decoration: none;
            color: rgb(0, 45, 71);
            font-size: 1em;
            transition: color 0.5s;
            
        }

            .toc-list li a:hover {
                color: rgb(255, 127, 30);
            }

    /* Optional: Nested subtopics */
    .toc-list .subtopics {
        margin-top: 3px;
        margin-left: 20px;
        list-style-type: none;
    }

        .toc-list .subtopics li a {
            font-size: 0.9em;
            
        }

/* ==== Einde Table of Content opmaak ==== */

#ftn1, #ftn2, #ftn3, #ftn4, #ftn5, #ftn6, #ftn7, #ftn8, #ftn9, #ftn10, #ftn11, #ftn12, #ftn13, #ftn14, #ftn15, #ftn16, #ftn17 {
    font-size: 0.6em;
}

ol, ul {
    text-align: justify;
    line-height: 1.5;
}

ul {
    list-style-type: disc;
}

ol.banning {
    margin: 0;
    font-size: 1em; /* Matches the default size of <h5> */
    line-height: 1.5; /* Optional: Adjust line height for better readability */
    margin-left: 2vw;
    list-style-position: outside; /* default, but explicit */
}

    ol.banning li {
        font-size: inherit;
        padding-left: 10px; /* Adds space between number and text */
    }

        ol.banning li::marker {
            font-size: 0.95em; /* or any size you prefer */
        }

        .sub-list {
            list-style-type: square ;
       
        }


    .table-abbreviations

{
    width: 70%;
    border-collapse: collapse;
}

.table-abbreviations, th, td {
    border: 1px solid black;
}

    .table-abbreviations th, .table-abbreviations td {
        padding: 8px;
        text-align: left;
    }

   

    .table-abbreviations td:first-child {
        width: 15%;
    }

.kader {
    display: block;
    padding: 0 10px;
    border: 1px solid rgb(0, 45, 71);
}

.dot-list {
    counter-reset: section;
    list-style: none;
    padding-left: 0;
}

    .dot-list li::before {
        counter-increment: section;
        content: "." counter(section) " ";
        margin-right: 0.5em;
    }

.image-container {
    display: flex;
    justify-content: center;
}

    .image-container img {
        width: 100%; /* Adjusts the width of each image */
        box-shadow: 0 4px 8px rgba(0, 45, 71, 0.3);
        margin: 0 10px;
    }

pre {
    background: rgb(0,45,71, 0.5);
    color: white;
    padding: 12px;
    border-radius: 6px;
    white-space: pre-wrap; /* wraps text instead of horizontal scrolling */
    word-wrap: break-word; /* breaks long words if needed */
    overflow: visible; /* ensures no hidden overflow */
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(0,45,71,0.2);
}

.table2 {
    background-color: rgb(242, 242, 242);
    text-align: center;
    border-collapse: collapse;
    width: 50%;  
}

    .table2 td:hover {
        background-color: white;

    }

    .table2 a {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color:rgb(0, 45, 71);
}



        th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
    font-size:0.9em;
}

th {
    background-color: rgb(0, 45, 71);
    color:white;
    border-color:white;
}

    th:first-child, th:last-child {
        border-left: 1px solid black;
        
    }

    th:last-child {
        border-right: 1px solid black;
    }



footer {
    text-align: center;
    background-color: #f2f2f2;
    box-sizing: border-box;
    padding: 10px;
    font-weight: bold;
    bottom: 0;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 8px rgba(0, 45, 71, 0.3);
    font-family: 'Courier New';
    font-size:1.2em;
}

/* ============ 'back to top' button ========== */

.back-to-top {
    display: inline-block;
    font-size: 0.5em;
    border: none;
    text-decoration: none;
    background-color: rgb(0, 45, 71);
    color: white;
    padding: 5px;
    margin: 1vw 0 1vw 0;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: 0px 2px 2px 0px rgba(0, 45, 71,0.5);
    text-transform: uppercase;
}

    .back-to-top:hover {
        background-color: white;
        color: var(--primary-color);
        border: none;
    }


.title a,
.no-underline {
    text-decoration: none;
    color: var(--primary-color);    
}

.flex-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 5px; /* Space between each flex item */
}

    .flex-container h5, .flex-container p {
        margin: 0;
    }

    .flex-container > :first-child {
        flex: 0 0 25px; /* Fixed width of 60px, adjust as needed */
        min-width: 25px;
        max-width: 25px;
    }



    @media (min-width: 756px) and (max-width: 1024px) {
        .header .title {
        font-size: 1.2em;
    }
}

@media  (max-width: 1024px) {

    .header .logo {
        height: 10vw;
        width: auto;
    }

    body {
        font-family: Arial,sans-serif;
        color: var(--primary-color);
        background-color: #f2f2f2; /* Light grey background */
        line-height: 1.3;
        font-size: 0.9em;
    }

    h1, h2 {
        font-size: 1em;
    }

    .toc-container h2 {
        padding-bottom: 1vw;
        font-size: 1em;
    }

    .toc-list li a {
        font-size: 1em;
    }
}

@media only screen and (max-width: 756px) {
    .header .title {
        font-size: 1em;
    }
}