*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 20px;
}

:root{
    --myfont: "Open Sans", sans-serif;
    --maxwidth: 1920px;
    --width: 100%;
    --primary-color: #9079B7;
    --secondary-color: #9ADBF9;
    --tertiary-color: #caebfc;
    --quartiary-color: #fff;
}

/* Mobile first, desktop second.*/
@media only screen and (min-width: var(--maxwidth)) {
    :root{
        --width: 75%;
    }

}

body {
    overscroll-behavior: none;
    margin: 0 auto;
    padding: 0;
    background-color: var(--tertiary-color);
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-style: normal; 
}

header, main, footer{
    width: var(--width);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    min-height: 100px;
}

main, footer{
    max-width: var(--maxwidth);
}

header{
    background-color: var(--primary-color);
    max-width: 100%;
    color: #fff;
    padding-bottom: 10px;
    overflow: visible;
}

header h1{
    margin: 30px 0 0 10px;
    clear: none;
    float: left;
}

header img{
    height: 60px;
    margin: 10px 0 0 30px;
    float: left;
}

/* start nav madness */

nav{
    margin: 40px 0 0 50px;
    float: left;
    font-size: 25px;
}

/* mobile first */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    clear: both;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}


.menuchild{
    list-style-type: none;
    display: none;
    z-index: 99999;
}

.menuchild-active .menuchild{
    display: block
}

.menu li a {
    display: block;
}

.menu li{
    padding: 5px 5px;
    color: #645782;
}

.toggle {
    order: 1;
    font-size: 20px;
    margin-top: 20px;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}
.item.button {
    order: 2;
}
.item {
    order: 3;
    width: 100%;
    text-align: center;
    display: none;
}
.active .item {
    display: block;
}

.active{
    padding: 0;
}


/* Desktop nav */
 
@media all and (min-width: 960px) {

    .menu {
        align-items: flex-end;     
        flex-wrap: nowrap;
        background: none;
        width: auto;
        clear: none;
        justify-content: flex-end;
        margin-right: 40px;
    }

    .logo {
        order: 0;
    }    

    .item {
        order: 1;
        position: relative;
        display: block;
        width: auto;
    }

    .button {
        order: 2;
    }

    .menuchild-active .menuchild {
        display: block;
        position: absolute;
        left: 0;
        margin-top: 5px;
        background: var(--primary-color);
        border-radius: 0 0 10px 10px;
        padding: 2px;
      }


    .toggle {
        display: none;
    }

    

}


/* end nav madness */

ul.submenu{
    list-style-type: none;
    text-align: center;
    font-size: inherit;
    background-color: var(--secondary-color);
}

ul.submenu > li{
    margin-right: 20px;
    font-size: inherit;
}

ul.submenu > li > a:hover{
    color: var(--primary-color);
}

main{
    padding: 20px;
}

footer{
    background-color: var(--primary-color);
    margin-bottom: 30px;
    border-radius: 10px;
    padding: 10px;
}

footer img{
    height: 70px;
    float: left;
    margin-right: 10px;
    max-width: 200px;
}

#footercontainer{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
}

.footerelement{
    width: 100%;
}

/* Mobile first, desktop second.*/
@media only screen and (min-width: 900px) {
    .footerelement {
        width: 50%;
    }

    ul.submenu > li{
        display: inline;
    }
}

.fancysection{
    background-color: var(--secondary-color);
    width: 100%;
}

.uitlegknop{
    cursor: pointer;
    width: 100%;
    background-color: var(--tertiary-color);
    border: 0;
    padding: 5px;
    border-radius: 10px 10px;
}

.uitlegkop.active, .uitlegknop:hover{
    background-color: var(--secondary-color);
}

.uitleg{
    overflow: hidden;
    background-color: var(--tertiary-color);
    margin: 0 10px 0 10px;
    border-radius: 0 0 10px 10px;
    padding: 10px;
}

.hidden{
    display: none;
}

.tilecontainer {
    margin: 10px 0 80px 0;  
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
  
.tile {
    text-align: center;
    flex: 1;
    flex-basis: 100%;
    margin: 20px;
    padding: 10px;
    position: relative;
    width: 45%; /* required for the responsiveness of the chartjs charts, may need to be changed depending on margins and paddings */
    background-color: #fff;
    box-shadow: var(--secondary-color) 0px 1px 4px;
    border-radius: 5px;
    min-height: 300px;
}

 
.tile-short {
    min-height: 20px !important;
}

.tilethree {
    flex-basis: 100%;
}

.tile a{
    color: var(--primary-color);
}

.tile p{
    margin-bottom: 20px;
    text-align: left;
}

.tile ul{
    text-align: left;
    padding: 0 20px 0 20px
}

.chartcontainer{
    position: relative; /* required for the responsiveness of chartjs charts */
    width: 100%;
    height: 100%;
    height: 450px;
    max-height: 450px;
}

canvas{
    width: 100%;
    height: 100%;
    max-height: 300px;
}

.canvascontainer{
    margin: 0 auto;
}

@media only screen and (min-width: 900px) {
    .tilethree {
        flex-basis: 40%;
    }
}
/* Mobile first, desktop second.*/
@media only screen and (min-width: 1280px) {
    .tile {
        flex: 1;
        flex-basis: 40%;
        min-height: 300px;
    }

    .tilethree {
        flex-basis: 25%;
    }

    .chartcontainer{
        position: relative; /* required for the responsiveness of chartjs charts */
        height: 300px;
    }
}

h2{
    clear: both;
    width: 100%;
}

a{
    color: #fff;
    text-decoration: none;
}

.indicator_menu{
    text-align: center;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: var(--secondary-color) 0px 1px 4px;
    border-radius: 5px;
    padding: 10px 0 10px 0;
}

.indicator_menu > .updateChart{
    border-radius: 16px;
    border-width: 0 0 4px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    touch-action: manipulation;
    padding: 13px 16px;
    margin: 5px 0 0 0;
    transition: color 100ms;
    background-color: var(--secondary-color);
    border-style:none;
}

.indicator_menu > .updateChart:hover{
    background-color: var(--tertiary-color);
}

.indicator_menu > .active {
    background-color: var(--primary-color);
}

.indicator_menu > .active:hover {
    background-color: #d3c9e2;
}




/* chart stuff */

.chart-selected{
    background-color: pink;
}

.buttoncontainer{
    padding: 10px 0 10px 0;
}

#elan_map_svg{
    width: 100%;
    height: 100%;
}
