/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
 margin: 0;
 padding: 0;
 border: 0;
 outline: 0;
 font-size: 100%;
 vertical-align: baseline;
 background: transparent;
}


body, p, div {
 line-height: 1.2;
}

p, ul, ol {margin-bottom:1.5em}

#navigation ol, #navigation ul {
 list-style: none;
}
blockquote, q {
 quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
 content: '';
 content: none;
}

/* remember to define focus styles! */
:focus {
 outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
 text-decoration: none;
}
del {
 text-decoration: line-through;
}

/* tables still need 'cellspacing="0" in the markup */
table {
 border-collapse: collapse;
 border-spacing: 0;
}

table {
 width: 100%;
 border-collapse: collapse;
 margin-top: 20px;
 font-size: 16px;
}


th, td {
 border: 1px solid #ddd;
 padding: 10px;
 text-align: center;
}

th {
 background-color: #4CAF50; /* Groene achtergrond voor koppen */
 color: white; /* Witte tekstkleur */
}

tr:nth-child(even) {
 background-color: #f2f2f2; /* Lichte achtergrond voor even rijen */
}

tr:hover {
 background-color: #ddd; /* Hover effect voor rijen */
}

button {
 background-color: #007BFF; /* Blauw voor knoppen */
 color: white; /* Witte tekstkleur */
 border: none;
 padding: 10px 15px;
 cursor: pointer;
 border-radius: 5px; /* Hoekafgeronde knoppen */
 font-size: 14px;
}


button:hover {
 background-color: #0056b3; /* Donkerder blauw bij hover */
}

#timerDisplay {
 margin-top: 20px;
 font-size: 1.5em;
 color: #ff5722; /* Opvallende kleur voor timertekst */
}

body{font: 76% verdana,sans-serif;text-align:left} /* Geen centrale uitlijning voor betere mobiele leesbaarheid */

#content a {
}
#content a:hover {
}

div#header h1 {
 height:80px;
 line-height:80px;
 color: #2ba3ff; /*blauw*/
}

div#header img {
 border: 0;
}
div#container{text-align:left}
div#content p, div#content ul {
 line-height:1.4;
}

h1, h2 {
 /*color: #000*/;
 color: #000;
 padding: 10px 0;
 font-weight:900;
 font-size: large;
}

h3 { font-weight: 800; padding: 10px 0; font-size: larger }
div#headnav{
 /* background-color: #38D3FF; #felblauw*/
 /*background-color: #2ba3ff; #nieuw blauw*/
 /*padding: 15px;*/
}
/*div#headnav ul {
 list-style: none;
 display: inline;
}
*/
div#navigation ul {
 margin: 0;
 padding: 0;
 margin-right: 2em;
}

div#navigation li {
 padding-bottom: 1em;
}
div#navigation{}
div#extra{}
div#footer{background: #333;color: #FFF; }
div#footer p{padding:5px 10px}

div#container{width:900px;margin:0 auto}
div#wrapper{float:left;width:100%;padding:0}
/*div#content{margin: 0 150px; padding:0; }*/ /*topbottom 0, rightleft 150 */
div#navigation{float:left;width:150px;margin-left:-900px}
div#extra{float:left;width:150px;margin-left:-150px}
div#footer{clear:left;width:100%}

form input {
 border: 1px solid black;
 font-weight:900;
}


.radio { border:none !important}

#footer a {color: white;}
#footer a:hover {color: #ff872b;}

#content ol,ul {
 list-style: disc;
}

select {border: 1px solid black }

.error { color: red; }

div#subnav {
 height: 30px;
 width: 100%;
 border-top: solid #000 1px;
 border-bottom: solid #000 1px;
 background-color: #3366ff;
}
div#subnav ul {
 margin: 0px;
 padding: 0px;
 font-family: Arial, Helvetica, sans-serif;
 font-size: small;
 color: #FFF;
 line-height: 30px;
 white-space: nowrap;
}
div#subnav li {
 list-style-type: none;
 display: inline;
}
div#subnav li a {
 text-decoration: none;
 padding: 7px 10px;
 color: #FFF;
}
div#subnav li a:link {
 color: #FFF:
}
div#subnav li a:visited {
 color: #fff;
}
div#subnav li a:hover {
 font-weight: bold;
 color: #FFF;
 background-color: #3366FF;
}

table.border {
 border: 1px solid black;
 }
table.border td {
 border: 1px solid black;
}

/* Desktop: content blijft binnen de 900px-kolom. Sommige pagina's vallen door
   een overtollige </div> buiten #container; die worden hier gecentreerd.
   Let op: % margin = t.o.v. de body-breedte (excl. scrollbar), dus pixel-precies.
   Netjes geneste pagina's (o.a. projecten/artikelen, HTML later opgeschoond):
   daar centreert #container al via margin auto — hier NIET centreren,
   anders dubbel en de content 190px naar rechts. */
@media screen and (min-width: 769px) {
    div#wrapper {
        max-width: 900px;
        margin-left: max(0px, calc((100% - 900px) / 2));
    }
    div#container div#wrapper { margin-left: 0; }
}

/* Mobiel: voorkom horizontaal scrollen (brede ads/tabellen) */
html, body { max-width: 100vw; overflow-x: hidden; }
img, video, iframe, table, ins { max-width: 100%; }
ins.adsbygoogle { display: block !important; overflow: hidden; }

/* Sidebar-kolommen op smallere schermen onder de content stapelen
   (staat buiten de media-query zodat het ook op precies 768px geldt) */
@media screen and (max-width: 769px) {
    div#navigation, div#extra {
        float: none;
        width: 100%;
        margin: 0;
        padding: 10px 0;
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    div#container {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }
    
    /* (sidebar-reset staat hieronder, buiten de media-query) */
    
    div#navigation {
        margin-bottom: 20px;
        border-bottom: 1px solid #ccc;
    }
    
    div#headnav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    div#wrapper {
        float: none;
        width: 100%;
    }
    
    /* Hamburger menu elementen */
    .nav-toggle {
        display: flex !important;
        position: fixed;
        top: 5px;
        right: 10px;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        z-index: 100;
    }
    
    .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 3px 0;
        transition: 0.3s;
    }
    
    div#subnav { position: relative; }
    
    div#subnav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #3366ff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        z-index: 200;
        flex-direction: column;
        display: none; /* Standaard verborgen */
    }
    
    div#subnav.active ul {
        display: flex; /* Weergegeven wanneer actief */
    }
    
    div#subnav li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    div#subnav li a {
        display: block;
        padding: 10px;
        margin: 2px 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        min-height: 44px; /* Minimum touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    div#content {
        padding: 5px 10px;
        box-sizing: border-box;
    }
    
    table {
        max-width: 100%;
        overflow-x: auto;
        display: block;
    }
    
    table {
        font-size: 14px; /* Kleiner lettertype op mobiel */
    }
    
    th, td {
        padding: 6px 4px; /* Kleinere celruimte */
    }
    
    button {
        width: 100%;
        padding: 12px;
        margin: 5px 0;
    }
    
    #timerDisplay {
        font-size: 1.2em; /* Kleinere timerdisplay */
    }
    
    h1, h2 {
        font-size: 1.2em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    body {
        font-size: 16px; /* Minimaal 16px voor leesbaarheid op mobiel */
    }
    
    /* Hamburger animaties */
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(-45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(45deg);
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 17px; /* Nog groter voor extra kleine schermen */
    }
    
    div#subnav li a {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    form input, select {
        width: 100%;
        box-sizing: border-box;
        padding: 8px;
    }
}

/* Zorg dat het hamburger menu altijd zichtbaar is op mobiel */
.nav-toggle {
    display: none; /* Wordt actief via media query bij smalle scherm */
}

/* Mobiel: pagina's zonder hamburger-element (blog, contact, ..) tonen het
   menu als inklapbare balk via :target (link anker #menu-schakelaar naar de menubalk) */
@media screen and (max-width: 768px) {
    #menu-schakelaar { display: inline-block; color: #fff; text-decoration: none; padding: 0 12px; }
    #subnav:not(:target):not(.active) ul { display: none !important; }
    #subnav:target { height: auto; position: relative; z-index: 300; }
    #subnav:target ul {
        display: flex !important;
        position: static !important;
        width: 100%;
        background-color: #3366ff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
}
@media screen and (min-width: 769px) {
    #menu-schakelaar { display: none; }
}

/* Toegankelijkheid en touchscreen optimalisatie */
@media screen and (hover: none) and (pointer: coarse) {
    button:hover,
    a:hover {
        background-color: inherit; /* Gebruik geen hover-effecten op touchapparaten */
    }
    
    button {
        min-height: 44px; /* Minimum grootte voor toegankelijkheid */
        min-width: 44px;
    }
}