/* NAVIGATION (top and sidebar     */
/* version 3.0 - date: 18-11-2016  */

/* TOP NAVIGATION */

    #top_nav {
        height: 110px;    
        background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
        overflow: visible;
        border-top-left-radius: 0.8em;
        border-top-right-radius: 0.8em;
    } 

    #top_nav ul {float: right; overflow: hidden;}   

    #top_nav ul li {
        float: left;
        margin-left: 0.2em;
        text-align: center;                
    }

    #top_nav ul li.three_line_menu {display:none; }
   
    #top_nav ul li a {
        width: 6.8em;
        padding: 0.4em 0.2em;
        display: block;
        background: rgba(92, 106, 143, 0.4);
        zoom: 1;
        font-size: 0.8em;
        line-height: 1.2em;        
        text-transform: uppercase;
        text-decoration: none;
        color: #000;
    }
    
    /* selects the first (and only) child of the one-before-last list item */
    #top_nav ul li:nth-last-child(2) a:first-child {
        border-top-right-radius: 0.8em;
    }        
    
    #top_nav ul li a:hover, #top_nav ul li.active a {
        color: #FFF;
        background: rgba(92, 106, 143, 0.7);
    }
    
    #top_nav ul li.active a {font-style:italic;}
    
    #top_nav ul li a .desc {
        display: none;
        padding-top: 5px;
        text-transform: lowercase;
        color: #FFFA99;
    }

    #top_nav li:hover a .desc, #top_nav li.active a .desc {display: block; }
    
    
    /* ------ WHEN SCREEN SIZE CHANGES ---- */
    
    @media screen and (max-width: 850px) {
    
    /* HAMBURGER MENU */
    
    	#top_nav {position: relative; }
  
        /* show only the menu icon */	
    	#top_nav ul {
    		position: absolute;    
    		width: 7.6em;
            /* slides the full menu in view */ 
            -webkit-transition: width 0.4s ease-in-out;
            -moz-transition: width 0.4s ease-in-out;
            -ms-transition: width 0.4s ease-in-out;
            -o-transition: width 0.4s ease-in-out;
            transition: width 0.4s ease-in-out;        
    		padding-top: 0.2em;
    		left: auto;
    		top: 0.4em;
    		right: 0.4em;
    		border: solid 1px #aaa;
            background-color: rgba(255, 255, 255, 0.4);				
    		border-radius: 0.4em;
    		box-shadow: 0 1px 2px rgba(0,0,0,.3);
            -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.3);
            -moz-box-shadow: 0 1px 2px rgba(0,0,0,.3);                
    	}
  
    	#top_nav li {
            float: left;
    		display: none; /* hide all <li> items */
    		margin-bottom: 0.2em;
            border-radius: 0.2em;
    	}
        
    	#top_nav ul li a {border-radius: 0em;}  /* set all radii of the links to 0 */
               
      
    	#top_nav ul li.current,              /* show only current <li> item */
        #top_nav ul li.three_line_menu {     /* and the 3-lines <li> item */
    		display: block;
    	}
   
        /* hamburger menu picture with borders */
        #top_nav ul li.three_line_menu {
           position: relative;
           padding-right: 1.25em;
        }
      
        #top_nav ul li.three_line_menu:before {    
           content: "";
           position: absolute;
           top: 0.6em;
           left: 0;
           width: 1.5em;
           height: 1.25em;
           border-top: 0.75em double #333;
           border-bottom: 0.25em solid #333;
        }
      
    	#top_nav a {
    		display: block;
    		text-align: center;
    	}
  
    	#top_nav .current a {
    		background: none;
            color: #FFFA99 !important;
            border-top-left-radius: 0.4em;
            border-bottom-left-radius: 0.4em;
    	}
      
    	#top_nav ul:hover li {
    		display: block;
    		margin-bottom: 0.2em;
    	}
      
        #top_nav ul:hover li.three_line_menu {display:none; }
  
        #top_nav li:hover a .desc, #top_nav li.active a .desc {display: none; }
        
        /* End of hamburger menu */
        
       /* SIDEBAR MENU SLIDE */    
        #main-content-3 {         /* gaat van 224px naar slechts 0.5em en schuift over de sidebar! */
           padding-left: 0.5em;
           -webkit-transition: padding-left 0.5s ease-in-out;
           -moz-transition: padding-left 0.5s ease-in-out;
           -ms-transition: padding-left 0.5s ease-in-out;
           -o-transition: padding-left 0.5s ease-in-out;
           transition: padding-left 0.5s ease-in-out;
        }
    
        /* schuift het menu van de examples boven de uitleg */
        #menu_sidebar_bottom {position:relative !important; width:100% !important; left:0 !important; margin:0 !important; }
        #menu_sidebar_bottom ul li {float:left; }
        #menu_sidebar_bottom ul li a {margin-right:0.5em; }
        
        #footerLeft {width: 22em; }
        
        #footerLeft dt.space {padding-left: 0em; }
    
        .toggle {display: block !important; z-index: 5; }	/* overrides the display: none; */
                
        /* End of sidebar menu slide */    

    }  /* end of media querie */
    

    @media screen and (min-width: 521px) and (max-width: 850px) {
    
    	/* when hover on the whole ul [3-line character icon] */
    	#top_nav ul:hover {width: 28.5em; } /* 2 rows with 5 columns */
    	#top_nav ul:hover li a {border-radius: 0em;} /* set all radii of the links to 0 */        
        
        #top_nav ul:hover li:nth-child(1) a:first-child {border-top-left-radius: 0.4em; }        
        #top_nav ul:hover li:nth-child(1) a:first-child {border-bottom-left-radius: 0em; }
        #top_nav ul:hover li:nth-child(5) a:first-child {border-top-right-radius: 0.4em; }
        #top_nav ul:hover li:nth-child(6) a:first-child {border-bottom-left-radius: 0.4em; }
        #top_nav ul:hover li:nth-child(9) a:first-child {border-top-right-radius: 0em; }         
      
    }  /* end of media querie */      
        

    @media screen and (max-width: 520px) {
        
        /* when hover on the whole ul [3-line character icon] */
        #top_nav ul:hover {width: 17.3em; } /* 3 rows with 3 columns */
        #top_nav ul:hover li a {border-radius: 0em;} /* set all radii of the links to 0 */
 
        #top_nav ul:hover li:nth-child(1) a:first-child {border-top-left-radius: 0.4em; }        
        #top_nav ul:hover li:nth-child(1) a:first-child {border-bottom-left-radius: 0em; }
        #top_nav ul:hover li:nth-child(3) a:first-child {border-top-right-radius: 0.4em; }
        #top_nav ul:hover li:nth-child(7) a:first-child {border-bottom-left-radius: 0.4em; }              
        #top_nav ul:hover li:nth-child(9) a:first-child {border-top-right-radius: 0em; }
        #top_nav ul:hover li:nth-child(9) a:first-child {border-bottom-right-radius: 0.4em; }
        
        .header_comment {
           max-width: 235px;
           padding-right: 0.2em;
           text-align: right;
      }        
        
               
  
    }  /* end of media querie */
  

    /* SIDEBAR NAVIGATION USING CHECKBOX-HACK */
    
    input.on_off[type=checkbox] {
       position: absolute;
       left: 0.8em;
       top: 1.5em;
       width: 4.4em;
       height: 6.6em;		
       opacity: 0;
       filter: alpha(opacity=0);
    }
    
    label.toggle {
       position: absolute;
       height: 7em;
       width: 4.6em;
       left: 1.1em;
       top: 1.7em;
       cursor: pointer;
       user-select: none;
       opacity: 1;
       filter: alpha(opacity=100);   
       display:none;
    }
    
    label.toggle:before {
       content: "\00BB";
       position: absolute;	
       left: 0.8em;
       top: 0.95em;		
       font-weight: normal;
       font-size: 2em;
    }
    
    .toggle {
       background-color: rgba(255,255,255,0.8);
       text-align: center;	  
       padding: 0.3em;
       font-size: 0.8em;
       line-height: 3.2em;        
       text-transform: uppercase;
       text-decoration: none;
       color: #000;
       border-radius: 0.8em;		
       -webkit-border-radius: 0.8em;
       box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.5);
    }
    
    .toggle:hover {
       color: #FFF;
       background-color: rgba(92,106,143,0.8);			
    }
    
    /* ---------- THE CHECKBOX HACK IN THE CHECKED STATE ---------------------- */
    /* This enables the toggle-button to slide the content back and forth ----- */
    
    input.on_off[type=checkbox]:checked ~ div div div:nth-child(n).toggle_bar {
       padding-left: 224px !important;  /* moet erbij!! */
    }
    
    input.on_off[type=checkbox]:checked ~ label:nth-child(n).toggle:before {  /* toggle on/off */
       content: "\00AB";
       left: 0.8em;
       top: 0.95em;		
    }   
