body {
    margin: 0px auto;
    padding: 0px;
    max-width: 1000px;
    background-color: #e8f6fc;
    font-family: verdana, geneva, tahoma, sans-serif;
    color: black;
}

.flex-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    /* Safari */
    flex-direction: column;
}

.header {
    background-color: white;
    height: 75px;
    margin: 0px;
    padding: 0px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    font-size: 32px;
}

.header1 {
    margin: 0px;
    padding: 5px 5px 5px 5px;
}

.header2 {
    margin: 0px;
    padding: 0px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
    justify-content: center;
}

.nav {
    background-color: white;
    margin: 0px;
    padding: 0px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
    justify-content: center;
    border-bottom: black solid 10px;
}

.main {
    background-color: white;
    margin: 0px;
    padding: 10px 15px;
    min-height: calc(100vh - 225px);
    line-height: 1.6;
}

.main2 { 
    background-color: white;
    margin: 0px;
    padding: 10px 15px;
    line-height: 1.6;
    background-color:  rgb(68, 180, 233);
    text-align: center;
    font-size: large;
}

.main2 a:link,
a:visited,
a:focus,
a:active {
    color: black;
}

.main2 a:hover {
    color: rgb(68, 180, 233);
    background-color: black;
}

.ad {
    max-width: 728px;
    /* actual img width */
    max-height: 90px;
    /* actual img height */
    height: 90px;
    /* actual img height - IE7 */
    background-size: cover;
    background-position: center;
    margin: 0px auto;
    border: 1px black solid;
    text-align: center;
}

.ad:after {
    content: " ";
    display: block;
    width: 100%;
    padding-top: 12.362%;
    /* 8,0888:1 ratio */
}

.toptask-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.block1 {
    width: 150px;
    height: 150px;
    position: relative;
    font-size: 24px;
    background-image: url(../figuren/126_220.png);
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block2 {
    display: none;
}

.block3 {
    width: 150px;
    height: 150px;
    position: relative;
    text-align: center;
    font-size: 24px;
    background-image: url(../figuren/potlood_220.jpg);
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toptask-container a:link,
a:visited,
a:focus,
a:active {
    text-decoration: none;
}

.toptask-container a:hover {
    text-decoration: none;
    color: black;
    background-color: transparent;
}

.rollover {
    text-align: center;
}

.rolloverhide {
    display: none;
}

.rolloverhide2 {
    display: none;
    margin-left: auto;
    margin-right: auto;
}

/* Do the shift: */

.rollover:hover img:first-child {
    display: none;
}

.rollover:hover img:last-child {
    display: inline-block;
}

.main a:link {
    color: #000000;
    text-decoration: underline;
    background-color: transparent;
}

.main a:visited {
    color: #000000;
    text-decoration: underline;
    background-color: transparent;
}

.main a:hover {
    color: #FFFFFF;
    text-decoration: none;
    background-color: #000000;
}

.main a:focus {
    color: #FFFFFF;
    text-decoration: none;
    background-color: #000000;
}

.main a:active {
    color: #000000;
    text-decoration: underline;
    background-color: transparent;
}

.tshirt-container a:hover {
    text-decoration: none;
    background-color: transparent;
}

.refer {
    font-size: small;
    color: grey;
}

.refer a:link,
a:visited,
a:focus,
a:active {
    color: grey;
    text-decoration: none;
}

.refer a:hover {
    color: grey;
    background-color: #FFFFFF;
}

.refer2 {
    font-size: small;
    color: grey;
}

.refer2 a:link,
a:visited,
a:focus,
a:active {
    color: grey;
}

.refer2 a:hover {
    color: white;
    background-color: black;
}

#totop {
    position: fixed;
    bottom: 4%;
    right: 5%;
    font-size: medium;
    text-align: center;
    text-decoration: none;
}

#totop a {
    background-color: rgb(68, 180, 233);
    text-decoration: none;
    color: white;
    padding: 5px 10px 10px 10px;
    border-radius: 5px;
    border: white 1px solid;
}

.rotate180 {
    -ms-transform: rotate(180deg);
    /* IE 9 */
    -moz-transform: rotate(180deg);
    /* Firefox */
    -webkit-transform: rotate(180deg);
    /* Safari and Chrome */
    -o-transform: rotate(180deg);
    /* Opera */
    transform: rotate(180deg);
    display: inline-block;
}

.rotate270 {
    -ms-transform: rotate(270deg);
    /* IE 9 */
    -moz-transform: rotate(270deg);
    /* Firefox */
    -webkit-transform: rotate(270deg);
    /* Safari and Chrome */
    -o-transform: rotate(270deg);
    /* Opera */
    transform: rotate(270deg);
    display: inline-block;
}

/* background-color: #FF0000; of voor kleurenblinden #FF1414 */

.red {
    background-color: rgb(213, 94, 0);
    padding: 15px;
}

/* background-color: #00CC00; rgb(0, 158, 115) */

.green {
    background-color: #00CC00;
    padding: 15px;
}

/* background-color: #59BEDF; rgb(68, 180, 233)*/

.blue {
    background-color: rgb(68, 180, 233);
    padding: 15px;
}

span.address:after {
    content: "adverteren@kleurenblindheid.nl";
}

/* 
Generic Styling, for Desktops/Laptops 
*/
table { 
    width: 100%; 
    border-collapse: collapse; 
  }
  /* Zebra striping */
  tr:nth-of-type(odd) { 
    background:  rgb(68, 180, 233, 0.20); 
  }
  th { 
    background: rgb(68, 180, 233); 
    color: white; 
    font-weight: bold; 
  }
  td, th { 
    padding: 6px; 
    border: 1px solid #000; 
    text-align: left; 
  }

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #000; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #000; 
		position: relative;
		padding-left: 50%; 
	}
	
	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	/*
	Label the data
	*/

    td:nth-of-type(1):before { content: "Merk"; }
    td:nth-of-type(2):before { content: "Kleurenblindheid"; }
    td:nth-of-type(3):before { content: "Brilglazen"; }
    td:nth-of-type(4):before { content: "Lenzen"; }
    td:nth-of-type(5):before { content: "Op sterkte"; }
    td:nth-of-type(6):before { content: "Onderzoek"; }
    td:nth-of-type(7):before { content: "Glazen/lenzen*"; }
    .type td:nth-of-type(1):before { content: "Soort"; }
    .type td:nth-of-type(2):before { content: "Type"; }
    .type td:nth-of-type(3):before { content: "Man"; }
    .type td:nth-of-type(4):before { content: "Vrouw"; }
    .medication td:nth-of-type(1):before { content: "Aangeboren"; }
    .medication td:nth-of-type(2):before { content: "Verworven"; }
}

/* End table */

/* General class to center stuff */
.center {
    margin-left: auto;
    margin-right: auto;    
}

/* Image switch for blog */

#camo1-span * {
    visibility: hidden;
}

input#camo1 + label::after {
    visibility: visible;
    content: url(../figuren/camouflage_menner1.jpg);
}

input#camo1:checked + label::after {
    content: url(../figuren/camouflage_menner1a.jpg);
}

#camo2-span * {
    visibility: hidden;
}

input#camo2 + label::after {
    visibility: visible;
    content: url(../figuren/camouflage_menner2.jpg);
}

input#camo2:checked + label::after {
    content: url(../figuren/camouflage_menner2a.jpg);
}

.footer {
    background-color: black;
    color: white;
    margin: 0px;
    padding: 5px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

.footer1,
.footer2,
.footer3,
.footer4 {
    flex: 1 100%;
}

/* Volgorde full size: sitemap privacy copyright contact */

/* Site map */

.footer1 {
    margin: 0px;
    padding: 5px 0px;
    order: 4;
}

/* Privacy */

.footer2 {
    margin: 0px;
    padding: 5px 0px;
    order: 3;
}

/* Copyright */

.footer3 {
    margin: 0px;
    padding: 5px 0px;
    order: 2;
}

/* Contact */

.footer4 {
    margin: 0px;
    padding: 5px 0px;
    order: 1;
}

.footer a:link,
a:visited,
a:focus,
a:active {
    text-decoration: none;
    color: #FFFFFF;
    padding: 0px 0px 2px 0px;
}

.footer a:hover {
    color: #000000;
    background-color: #FFFFFF;
}

.bigspacer {
    display: none;
}

/* Navigation */

/* Thanks Cristiano Lopes de Freitas: https://github.com/cristianolopesdefreitas/responsive-menu */

.nav-bar {
    width: 100%;
    color: #FFFFFF;
    font-weight: normal;
    text-align: right;
}

.nav-bar__label {
    color: #FFFFFF;
    display: block;
    padding: 15px 0;
    text-align: center;
    width: inherit;
    background: #000000;
}

.triangle {
    border-top: 5px solid white;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: "";
    display: inline-block;
    height: 0;
    width: 0;
    vertical-align: middle;
}

.nav-bar__label,
.nav-bar__sub-label {
    cursor: pointer;
}

.nav-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
    background-color: #000000;
    color: #FFFFFF;
}

.nav-bar__list,
[id^="toggle"] {
    display: none;
}

[id^="toggle"]:checked + .nav-bar__list {
    display: block;
    background-color: #000000;
    color: #FFFFFF;
}

.nav-bar__list-item {
    display: block;
    background-color: #000000;
    color: #FFFFFF;
}

.nav-bar__link__main,
.nav-bar__link,
.nav-bar__sub-label {
    color: #000000;
    display: block;
    padding: 10px;
    text-decoration: none;
    word-wrap: break-word;
    color: #FFFFFF;
    border-bottom: 2px black solid;
}

.nav-bar__list-item .nav-bar__list-item .nav-bar__link,
.nav-bar__list-item .nav-bar__list-item .nav-bar__sub-label {
    background-color: #000000;
    width: 100%;
    padding: 10px 10px 10px 40px;
    text-align-last: left;
    color: #FFFFFF;
}

body#testen a#navoverzicht,
a#navishihara5,
a#navishihara38,
a#navenchroma,
a#navcolorlite,
a#navlentilles,
a#navwaggoner,
a#navbiyee,
a#navhellmers,
a#navculondon,
a#navfarnsworths,
a#navfarnsworthm,
a#navfarnsworthl,
a#navfluck,
body#achtergrond a#navbiologie,
a#naverfelijkheid,
a#navevolutie,
a#navgeschiedenis,
a#navishihara,
a#navlicht,
a#navsoorten,
body#webshop a#navoverzicht,
a#navpotloden,
a#navstiften,
a#navposterL,
a#navboekje,
body#informatie a#navbrillen,
a#navapps,
a#navsoftware,
a#navboeken,
a#navvideo,
a#navmusea,
a#navlinks {
    background-color: #FFFFFF;
    color: #000000;
    cursor: default;
    text-decoration: none;
    font-weight: bold;
    padding-left: 10px;
    width: 100%;
}

body#start a#navstart,
body#blog a#navblog {
    cursor: default;
    background-color: #FFFFFF;
    color: #000000;
    font-weight: bold;
}

body#testen label#navtesten,
body#achtergrond label#navachtergrond,
body#webshop label#navwebshop,
body#informatie label#navinformatie,
body#over label#navover {
    cursor: default;
    background-color: #FFFFFF;
    color: #000000;
    font-weight: bold;
}

body#testen label#navtesten .triangle {
    border-top: 5px solid black;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: "";
    display: inline-block;
    height: 0;
    width: 0;
    vertical-align: middle;
}

body#achtergrond label#navachtergrond .triangle {
    border-top: 5px solid black;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: "";
    display: inline-block;
    height: 0;
    width: 0;
    vertical-align: middle;
}

body#webshop label#navwebshop .triangle {
    border-top: 5px solid black;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: "";
    display: inline-block;
    height: 0;
    width: 0;
    vertical-align: middle;
}

body#informatie label#navinformatie .triangle {
    border-top: 5px solid black;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: "";
    display: inline-block;
    height: 0;
    width: 0;
    vertical-align: middle;
}

.imgcenterright {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    line-height: 1.0;
}

.imgcenterleft {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    line-height: 1.0;
}

.imgcentercenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    line-height: 1.0;
}

.figcaptionright {
    font-size: small;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: right;
}

.figcaptionleft {
    font-size: small;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: left;
}

.figcaptioncenter {
    font-size: small;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: center;
}

.smalltext {
    font-size: small;
}

hr {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-style: solid;
    border-width: 1px;
    border-color: black;
}


/* Contact form */

form {
    max-width: 900px;
    text-align: center;
    margin: 20px auto;
    color: #000000;
}

form #input-name,
#input-email,
form textarea {
    border: 1px solid black;
    outline: 0;
    padding: 1em;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    display: block;
    width: 100%;
    margin-top: 10px;
    resize: none;
    cursor: pointer;
    font-family: verdana, geneva, tahoma, sans-serif;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

form #input-phone {
    border: 1px solid white;
    outline: 0;
    display: block;
    width: 100%;
    margin-top: 10px;
    resize: none;
    cursor: default; 
    font-family: verdana, geneva, tahoma, sans-serif;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 1px;
    width: 1px;
}

form #input-submit {
    outline: 0;
    padding: 15px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    display: block;
    width: 100%;
    margin-top: 10px;
    resize: none;
    color: #000000;
    cursor: pointer;
    border: 1px solid black;
    background-color: rgb(68, 180, 233);
    font-family: verdana, geneva, tahoma, sans-serif;
}

form input:focus,
form textarea:focus {
    background-color: rgb(68, 180, 233, 0.20);
    /* of #e6e6e6 */
    font-family: verdana, geneva, tahoma, sans-serif;
}

#input-submit:hover {
    font-weight: bold;
    font-family: verdana, geneva, tahoma, sans-serif;
}

form textarea {
    height: 150px;
}

.half {
    float: left;
    width: 48%;
    margin-bottom: 1em;
}

.right {
    width: 50%;
}

.left {
    margin-right: 2%;
}

textarea,
input,
button,
select {
    font-family: inherit;
    font-size: inherit;
}


/* Contact message written on envelope */

.envelope {
    position: relative;
    width: 100%;
    text-align: center;
    padding-top: 25px;
    /* for IE 6 */
}

.envelope-text {
    position: absolute;
    top: 35%;
    left: 0%;
    width: 100%;
    text-align: center;
    font-family: Lucida Console, monospace;
}

blockquote {
    font-family: Lucida Console, monospace;
    line-height: 1.6;
    background: rgb(68, 180, 233, 0.20);
    border-left: 10px solid rgb(68, 180, 233);
    margin: 10px;
    padding: 10px;
}

img {
    max-width: 100%;
    height: auto;
}


/* Clearfix */

.cf:before,
.cf:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.cf:after {
    clear: both;
}

.clear {
    clear: both;
}

/* For tablets */

@media all and (max-width: 481px) {
    .half {
        width: 100%;
        float: none;
        margin-bottom: 0;
    }
}

/* For bigger tablets */

@media all and (min-width: 621px) {
    .block1 {
        margin-right: 50px;
    }

    .block3 {
        margin-left: 50px;
    }
}


/* For desktops and laptops */

@media all and (min-width: 961px) {
    .header {
        justify-content: left;
        padding-left: 10px;
    }

    .nav {
        justify-content: right;
        padding-right: 10px;
    }

    .nav-bar {
        justify-content: right;
        align-items: right;
        text-align: right;
    }

    .nav-bar > .nav-bar__label {
        display: none;
    }

    .nav-bar > .nav-bar__list {
        display: block;
    }

    .nav-bar > .nav-bar__list > .nav-bar__list-item {
        display: inline-block;
        position: relative;
    }

    /* Als geen hover, maar alleen door klikken
        .nav-bar__list-item .nav-bar__list {
        position: absolute;
    }*/

    .nav-bar__list-item:hover .nav-bar__list {
        position: absolute;
        display: block;
        background-color: #000000;
        color: #FFFFFF;
    }

    .nav-bar__list-item .nav-bar__list-item .nav-bar__link__main,
    .nav-bar__list-item .nav-bar__list-item .nav-bar__link,
    .nav-bar__list-item .nav-bar__list-item .nav-bar__sub-label {
        padding-left: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
        width: 140px;
        text-decoration: none;
    }

    .nav-bar__list {
        text-align: right;
        z-index: 99;
    }

    .nav-bar__list-item:last-child {
        border-right: black solid 10px;
    }

    .nav-bar__link:hover,
    .nav-bar__link:active {
        font-weight: bold;
    }

    .header {
        font-size: 42px;
    }

    .block1 {
        width: 220px;
        height: 220px;
        position: relative;
        font-size: 36px;
        background-image: url(../figuren/126_220.png);
        background-size: 100% 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0px;
    }

    .block2 {
        width: 220px;
        height: 220px;
        position: relative;
        text-align: center;
        font-size: 36px;
        background-image: url(../figuren/startpagina_poster3.png);
        background-size: 100% 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0px 75px;
    }

    .block3 {
        width: 220px;
        height: 220px;
        position: relative;
        text-align: center;
        font-size: 36px;
        background-image: url(../figuren/potlood_220.jpg);
        background-size: 100% 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0px;
    }

    .toptask-container a:link,
    a:visited,
    a:focus,
    a:active {
        text-decoration: none;
    }

    .toptask-container a:hover {
        text-decoration: none;
        color: black;
        background-color: transparent;
    }

    .rolloverhide2 {
        display: none;
        float: left;
        margin-top: 5px;
        margin-right: 10px;
    }

    .imgcenterright {
        float: right;
        margin-top: 5px;
        margin-left: 10px;
    }

    .imgcenterleft {
        float: left;
        margin-top: 5px;
        margin-right: 10px;
    }

    .footer {
        padding: 20px 0px;
        flex-flow: row;
        text-align: center;
    }

    .footer1 {
        order: 1;
    }

    .footer2 {
        order: 2;
    }

    .footer3 {
        order: 3;
    }

    .footer4 {
        order: 4;
    }

    .nav-bar__link__main:hover,
    .nav-bar__link__main:active,
    .nav-bar__link:hover,
    .nav-bar__link:active,
    .nav-bar__sub-label:hover {
        background-color: white;
        color: black;
        /*border-bottom: 2px rgb(68, 180, 233) solid;*/
    }

    body#testen a#navoverzicht,
a#navishihara5,
a#navishihara38,
a#navenchroma,
a#navcolorlite,
a#navlentilles,
a#navwaggoner,
a#navbiyee,
a#navhellmers,
a#navculondon,
a#navfarnsworths,
a#navfarnsworthm,
a#navfarnsworthl,
a#navfluck,
body#achtergrond a#navbiologie,
a#naverfelijkheid,
a#navevolutie,
a#navgeschiedenis,
a#navishihara,
a#navlicht,
a#navsoorten,
body#webshop a#navoverzicht,
a#navpotloden,
a#navstiften,
a#navposterL,
a#navboekje,
body#informatie a#navbrillen,
a#navapps,
a#navsoftware,
a#navboeken,
a#navvideo,
a#navmusea,
a#navlinks {
        background-color: #FFFFFF;
        color: #000000;
        cursor: default;
        text-decoration: none;
        font-weight: bold;
        padding-left: 25px;
        width: 130px;
    }

    body#start a#navstart,
    body#blog a#navblog {
        cursor: default;
        background-color: white;
        color: black;
        border-bottom: 5px black solid; 
    }

    body#testen label#navtesten,
    body#achtergrond label#navachtergrond,
    body#webshop label#navwebshop,
    body#informatie label#navinformatie {
        cursor: default;
        background-color: white;
        color: black;
        border-bottom: 5px black solid; 
    }

    body#testen label#navtesten .triangle {
        border-top: 5px solid white;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        content: "";
        display: inline-block;
        height: 0;
        width: 0;
        vertical-align: middle;
    }

    body#achtergrond label#navachtergrond .triangle {
        border-top: 5px solid white;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        content: "";
        display: inline-block;
        height: 0;
        width: 0;
        vertical-align: middle;
    }

    body#webshop label#navwebshop .triangle {
        border-top: 5px solid white;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        content: "";
        display: inline-block;
        height: 0;
        width: 0;
        vertical-align: middle;
    }

    body#informatie label#navinformatie .triangle {
        border-top: 5px solid white;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        content: "";
        display: inline-block;
        height: 0;
        width: 0;
        vertical-align: middle;
    }

    .bigspacer {
        display: inline;
    }

    #totop a:hover {
        background-color: rgb(68, 180, 233);
        text-decoration: none;
        color: black;
        padding: 5px 10px 10px 10px;
        border-radius: 5px;
    }
}