/* https://caniuse.com/calc */

@import url('https://fonts.googleapis.com/css2?family=Averia+Serif+Libre:wght@300;400;700&family=Roboto+Mono:ital,wght@0,100;0,300;0,400;0,700;1,400&display=swap');

:root {
    --goud: rgb(173, 167, 141);
    --zilver: rgb(197, 216, 208);
    --zwart: rgb(20, 19, 19);
    --wit: rgb(255, 255, 254);
    --roze: rgb(231, 139, 101);


    --lichtgrijs: rgb(239, 237, 237);
    --donkergrijs: rgb(108, 107, 107);
    --tekstgrijs: rgb(70, 70, 70);
    --bordergrijs: rgb(180, 180, 180);

    --base_width: 1080px;
    --main_width: var(--base_width);
    --elem_width: calc(var(--base_width) / 4);
    --youtube_ratio: calc(315 / 560);
}

* {
    margin: 0;
    padding: 0;
}

html, body{
    width: 100%;
    height: 100%;
    font-size: 16px;
}
a{
    color: inherit;
}
div, p{
    font-family: "Averia Serif Libre", serif;
}

div.master{
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}




/* header, menu nav*/
header{
    background-color: var(--wit);
    width: 100%;
}

.inside_header{
    width: var(--main_width);
    height: 3.5em;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content:space-between;
    align-items: center;
    padding: 0;
}

header .inside_header nav{
    height: 3.5em;
    flex-grow: 1;
    margin-left: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

header .inside_header ul.menu{
    /* links in header tegen .logo aan */
    margin-top: -10px;
}

header .inside_header ul.mijn{
    /* rechts in header tegen login aan */
     margin-top: -10px;
}

header .inside_header ul.auth{
    /* helemaal rechts in header */
     margin-top: -10px;
}

header .inside_header ul{
    list-style: none;
    height: 100%;
}
header .inside_header a{
    font-family: "Roboto Mono", monospace;
    text-decoration: none;
    color: var(--zwart);
}

header .inside_header nav li{
    display: inline-block;
    margin: 5px 0;
    padding: 0 2px;
    font-size: 0.7em;
    height: 100%;
    /* cursor: pointer; */
    text-transform: uppercase;
    width: 70px;
}

header .inside_header nav a{
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}
header .inside_header nav a img{
    height: 30px;
    margin-bottom: -0.5em;
}

header .inside_header nav li:hover{
    box-shadow: -2px 0px 0px 0px var(--zilver), 2px 0px 0px 0px var(--zilver);
}

header .inside_header li.menu_active{
    background-color: var(--zilver);
}

header a.logo{
    background-image: url(/static/lotte/logo-dwars.png);
    background-repeat: no-repeat;
    background-size: contain;
    height: 2em;
    width: 12em;
    margin-top: 10px;
    /* helemaal links in header */
}
header form{
    margin-left: 1em;
}

#hamburger{
    display: none;
    width: 2em;
    height: 2em;
    background-image: url("/static/lotte/hamburger.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: 0.25em;
}

.inside_header .van-user{
    display: inline-block;
    margin-left: 0.5em;
    padding-top: 3px;
    border-bottom: 1px solid var(--goud);
    font-family: "Averia Serif Libre", serif;

}


/* submenu Vertical when Hamburger, Horizontal when wide */
#sub-menu-user,
#under_header{
    background-color: var(--zilver);
}
#sub-menu-user nav,
#under_header nav{
    width: var(--main_width);
    margin: auto;
}
#sub-menu-user nav ul{
    /* changes when hamburder in column from flex-start */
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-content: flex-end;
    list-style: none;
}
#under_header nav ul{
    /* changes when hamburder in column from flex-start */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    list-style: none;
}
#under_header nav li:not(:last-child){
    border-bottom: 2px solid white;
}
#sub-menu-user nav li,
#under_header nav li{
    padding: 0 0.5em;
}
#sub-menu-user nav li a,
#under_header nav li a{
    font-family: "Roboto Mono", monospace;
    text-transform: uppercase;
    font-size: 0.7em;
    line-height: 2.5em;
    text-decoration: none;
}
#sub-menu-user nav li a:hover,
#under_header nav li a:hover{
    color: var(--wit);
}


button.ga-naar-registreer{
    font-family: "Roboto Mono", monospace;
    height: 2em;
    padding: 0 1em;
    border: 1px solid var(--donkergrijs);
    background-color: var(--zilver);
    color: var(--tekstgrijs);
    border-radius: 1.5em;
    -ms-border-radius: 1.5em;
    -o-border-radius: 1.5em;
    position: relative;
    top: 0.1em;
    margin-left: 0.3em;
    cursor: pointer;
}

.sub-active{
    color: white;
}

/* FIN header, menu nav*/





/* FOOTER  */
footer{
    width: 100%;
    border-top: 1px solid var(--zilver);
    font-family: "Roboto Mono", monospace;
    color: var(--zwart);
    margin-top: 3em;
    background-color: var(--zilver);
}

.inside_footer{
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-family: "Roboto Mono", monospace;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0.5em 2em;
}

footer a{
    display: inline-block;
    padding: 3px 10px;
    text-align: center;
    color: black;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
}

footer > *{
    margin: 0 0.5em;
}

footer.valop{
    background-color: var(--roze);
}
/* FIN footer  */


/* main is een grid-item van div.master, MAAR is zelf ook weer een grid-container */
main{
    /* margin-top: 4em;  IF header has FIXED */
    flex-grow: 1;
    margin-top: 1em;
}

.inside_main{
    width: var(--main_width);
    margin: auto;
}

section{
    margin: 0 auto;
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

section .single_o{
    min-width: var(--main_width);
    max-width: var(--main_width);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between; /* BETWEEN */
}

section .double_o{ /* width behaviour is managed by double_xxxx*/
    margin-top: 2em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/*
double_3321 + contra 1000 - where 0 is under
double_3221 + contra 1100
double_3211 + contra 1110

double_2221 + contra 2100
double_2211 + contra 2210 = keuken
double_2111 + contra 2110

all managed in @media...
*/

/* blokje heeft geen margin en omvat inner blok */
.element{
    min-width: calc( var(--elem_width) - 30px);
    max-width: calc( var(--elem_width) - 30px);
    overflow: clip;
}

.double_i{
    /* margin-top: 2em; */
    width: 100%;
}

.single_i{
    min-width: var(--main_width);
    max-width: var(--main_width);
    overflow: clip;
}

/* ALL content elements in main in element, 2, 3, 4
voor de blokkenpagina single_o.
*/
main section > div.single_o > div > *{
    margin: 10px 0;
}

section .terug{
    display: block;
    width: 100%;
    height: 1.5em;
    font-family: "Roboto Mono", monospace;
    text-transform: uppercase;
    font-weight: 300;
    text-align: right;
}

section .terug a{
    text-decoration: none;
}

.single_o.half_i{
    justify-content: flex-end;
    /* at > 1080 : margin-right: elem-width */
}

.half_i {
    font-family: inherit;
    text-align: right;
    max-width: calc(var(--elem_width) * 2);
    min-width: var(--elem_width);
}













/* FORMS */
input{
    font-family: "Roboto Mono", monospace;
    font-weight: 300;
}
input#menu-zoek-ding{
    font-size: 0.7em;
    height: 2.5em;
    width: 16em;
}
input[type=text],
input[type=number],
input[type=email],
input[type=password],
input[type=submit],
input[type=range],
select,
textarea,
input[type="datetime-local"],
input[type="url"] {
    height: 2em;
    padding: 0 1em;
    border: 1px solid var(--donkergrijs);
    background-color: var(--lichtgrijs);
    color: var(--tekstgrijs);
    border-radius: 1.5em;
    -ms-border-radius: 1.5em;
    -o-border-radius: 1.5em;
    resize: vertical;
}

input[type=text]{
    transition: width 0.24s ease-in-out;
}
/* The slider itself
input[type=range]{
    -webkit-appearance: none;
    padding: 0 0.5em;
    width: 3em;
}
 The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look)
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2em;
    background: var(--goud);
    cursor: pointer;
    border-radius: 1.5em;
    resize: vertical;
}
input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    width: 1.5em;
    height: 1.5em;
    background: var(--goud);
    cursor: pointer;
    border-radius: 1.5em;
    resize: vertical;
}
*/

input[type=checkbox]{
    width: 2.5em;
    height: 2.5em;
}

nav input{
    width: 10em;
}
nav input:focus-within{
    width: 14em;
}

input:focus-within,
textarea:focus-within{
    outline: 2px solid var(--goud);
    outline-offset: -2px;
}

input[type=submit]{
    cursor: pointer;
    background-color: var(--zwart);
    color: white;
    font-weight: bold;
}

header input[name="menuzoeken"]{
    background-image: url('/static/lotte/zoek.svg');
    background-position: -10px 0;
    background-repeat: no-repeat;
    padding: 0 0 0 3em;
}


/* checbox */
.checkbox {
    display: block;
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.7em;
    cursor: pointer;
    font-size: 1.5em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.checkbox input{
    position: absolute;
    z-index: 10000;
    opacity: 0;
    cursor: pointer;
    top: -0.3em;
    left: 0.3em;
    height: 1.8em;
    width: 1.8em;
}
/* custom checkbox */
.checkmark {
    position: absolute;
    top: -0.25em;
    left: 0.25em;
    height: 1.25em;
    width: 1.25em;
    background-color: var(--lichtgrijs);
    border: 1px solid var(--bordergrijs);
}
/* On mouse-over effect */
.checkbox:hover input ~ .checkmark {
}

/* When the checkbox is checked, add a blue background */
.checkbox input:checked ~ .checkmark {
    background-color: var(--goud);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


ul.check,
ul.radio{
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    font-family: "Roboto Mono", monospace;
    font-weight: 300;
    font-size: 0.8em;
}
ul.check label,
ul.radio label{
    text-transform: lowercase;
    font-weight: 400;
}
ul.check input[type="checkbox"],
ul.radio input[type="radio"]{
    display: none;
}

ul.check li.check{
    text-transform: lowercase;
    border-radius: 1em;
    background-color: var(--lichtgrijs);
    padding: 0.25em 1em;
    margin: 0.25em 0.25em;
    cursor: pointer;
}

ul.radio li.radio{
    text-transform: lowercase;
    border-radius: 1em;
    background-color: var(--lichtgrijs);
    padding: 0.25em 2em;
    margin: 0.25em -1.25em 0.25em 0;
    cursor: pointer;
}

ul.check li.check:hover,
ul.radio li.radio:hover{
    background-color: var(--zilver);
}
ul.check li.check.selected,
ul.radio li.radio.selected{
    background-color: var(--goud);
}
ul.check li.check:not(.selected) > span::before{
    content: '\25a1';
}
ul.check li.check.selected > span::before{
    content: '\25a0';
}

ul.radio li.radio:not(.selected) > span::before{
    content: '\25cb';
}
ul.radio li.radio.selected > span::before{
    content: '\25cf';
}


/* filter veld users */
.user-filter{
    font-size: 0.6em;
    font-weight: bold;
}



.formfield-met-flash{
    margin: 1em 0 0 0;
    font-family: "Roboto Mono", monospace;
    font-size: 0.8em;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.formfield-met-flash p{
    font-family: inherit;
    margin-bottom: 1em;
}

.formfield-met-flash input[type="text"],
.formfield-met-flash input[type="email"],
.formfield-met-flash input[type="password"]{
    width: calc(var(--elem_width) - 2.2em);
}


.mark-input{
    background-color: var(--wit) !important;
    /* color: var(--wit) !important; */
    outline: 4px solid var(--roze);
    outline-offset: -4px;
}

footer input{
    width: 1.5em !important;
    height: 1.5em !important;
    margin-right: 0.5em !important;
}




/* login op home page en login page */
.login-home{
    font-size: 0.8em;
    font-family: "Courier New", monospace;
}
.login-home input,
.robotvraag input,
.login-home button,
.robotvraag button{
    font-size: 0.8em;
    max-width: 8em;
}
#kleuren{
    max-width: unset;
}
.login-home button,
.robotvraag button{
    border-radius: 1em;
    padding: 3px 5px;
    border: 1px solid black;
    width: 10em;
}

.robotvraag p{
    font-size: 1em;
    font-family: "Courier New", monospace;
}
.login-home div{
    display: inline-block;
}
.login-home div span{
    display: inline-block;
    margin: 3px 0;
    font-family: "Courier New", monospace;
    white-space: nowrap;
}
.login-home{
    width: 100%;
    padding: 5px;
    border: 2px solid var(--goud);
    border-radius: 3px;
}
.robotvraag input[type="submit"]{
    background-color: unset;
    width: 10em;
    font-size: 0.8em;
    font-family: "Averia Serif Libre", serif;
    text-align: center;
}
p.captcha-tekst{
    font-family: "Averia Serif Libre", serif;
    font-size: 1.2em;
}




#cookie-overlay{
    opacity: 0.95;
    background-color: white;
    position: fixed;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    z-index: 1000;
    border-radius: 3px;
}
#cookie-overlay > div{
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc((var(--elem_width) - 2em));
    background-color: black;
    color: white;
    opacity: 1;
    padding: 0em;
}
#cookie-overlay p{
    margin: 1em;
}




/* ==================== SKELETON RESPONSIVE =======================*/
/*
double_3321 + contra 1000
double_3221 + contra 1100
double_3211 + contra 1110

double_2221 + contra 2210
double_2211 + contra 2200
double_2111 + contra 2110
*/

/* 4 blocks wide */
@media only screen
and (min-width : 1100px){
    :root {
        --main_width: 1080px;
        --elem_width: 270px;
    }

    .single_o .half_i{
        margin-right: var(--elem_width);
    }

    .double_3321,
    .double_3221,
    .double_3211{
        min-width: calc((var(--elem_width) * 3) - 3em);
        max-width: calc((var(--elem_width) * 3) - 3em);
    }
    .double_3321.double_contra,
    .double_3221.double_contra,
    .double_3211.double_contra{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }

    .double_2211{
        min-width: calc(var(--elem_width) * 2);
        max-width: calc(var(--elem_width) * 2);
    }
    .double_2211.double_contra{
        min-width: calc(var(--elem_width) - 3em);
        max-width: calc(var(--elem_width) - 3em);
    }

    .double_2221{
        min-width: calc(var(--elem_width) * 2);
        max-width: calc(var(--elem_width) * 2);
    }
    .double_2221.double_contra{
        min-width: calc(var(--elem_width) - 3em);
        max-width: calc(var(--elem_width) - 3em);
    }
    section .double_2221:nth-child(1),
    section .double_2211:nth-child(1){
        order: 1;
    }
    section .double_2221:nth-child(2),
    section .double_2211:nth-child(2){
        order: 2;
    }section .double_2221:nth-child(3),
    section .double_2211:nth-child(3){
        order: 3;
    }

}

/* 3 blocks wide */
@media only screen
and (max-width: 1100px) {
    /* Styles */
    :root {
        --main_width: 810px;
        --elem_width: 270px;
    }

    .double_3321{
        min-width: calc(var(--elem_width) * 3);
        max-width: calc(var(--elem_width) * 3);
    }
    .double_3321.double_contra{
        min-width: calc(var(--elem_width) * 3);
        max-width: calc(var(--elem_width) * 3);
    }

    .double_3221,
    .double_3211{
        min-width: calc((var(--elem_width) * 2) - 3em);
        max-width: calc((var(--elem_width) * 2) - 3em);
    }
    .double_3221.double_contra,
    .double_3211.double_contra{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }

    .double_2211{
        min-width: calc(var(--elem_width) * 2);
        max-width: calc(var(--elem_width) * 2);
    }
    .double_2211.double_contra:first-of-type{

    }
    .double_2211.double_contra:last-of-type{
        min-width: calc(var(--elem_width) - 3em);
        max-width: calc(var(--elem_width) - 3em);
    }

    .double_2221{
        min-width: calc(var(--elem_width) * 2);
        max-width: calc(var(--elem_width) * 2);
    }
    .double_2221.double_contra:first-of-type{

    }
    .double_2221.double_contra:last-of-type{
        min-width: calc(var(--elem_width) - 3em);
        max-width: calc(var(--elem_width) - 3em);
    }
    section .double_2221:nth-child(1),
    section .double_2211:nth-child(1){
        order: 3;
    }
    section .double_2221:nth-child(2),
    section .double_2211:nth-child(2){
        order: 1;
    }section .double_2221:nth-child(3),
    section .double_2211:nth-child(3){
        order: 2;
    }
    .inside_header .van-user{
        display: none;
    }
}

/* 2 blocks wide */
@media only screen
and (max-width: 830px) {
    /* Styles */
    :root {
        --main_width: 540px;
        --elem_width: 270px;
    }

    .double_3321,
    .double_3221{
        min-width: calc(var(--elem_width) * 2);
        max-width: calc(var(--elem_width) * 2);
    }
    .double_3321.double_contra,
    .double_3221.double_contra{
        min-width: calc(var(--elem_width) * 2);
        max-width: calc(var(--elem_width) * 2);
    }

    .double_3211{
        min-width: calc(var(--elem_width) - 3em);
        max-width: calc(var(--elem_width) - 3em);
    }
    .double_3211.double_contra{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }

    .double_2211{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }
    .double_2211.double_contra:first-of-type{

    }
    .double_2211.double_contra:last-of-type{
        min-width: calc(var(--elem_width));
        max-width: calc(var(--elem_width));
    }

    .double_2221{
        min-width: calc(var(--elem_width) * 2);
        max-width: calc(var(--elem_width) * 2);
    }
    .double_2221.double_contra:first-of-type{
        /* managed by ordering in specifics */
    }
    .double_2221.double_contra:last-of-type{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }

    section .double_2221:nth-child(1),
    section .double_2211:nth-child(1){
        order: 2;
    }
    section .double_2221:nth-child(2),
    section .double_2211:nth-child(2){
        order: 1;
    }section .double_2221:nth-child(3),
    section .double_2211:nth-child(3){
        order: 3;
    }
}

/* 1 block wide */
@media only screen
and (max-width: 560px) {
    /* Styles */
    :root {
        --main_width: 270px;
    }

    .double_3321,
    .double_3221,
    .double_3211 {
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }

    .double_3321.double_contra,
    .double_3221.double_contra,
    .double_3211.double_contra {
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }

    .double_2211{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }
    .double_2211.double_contra:first-of-type{

    }
    .double_2211.double_contra:last-of-type{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }

    .double_2221{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }
    .double_2221.double_contra:first-of-type{
        /* managed by ordering in specifics */
    }
    .double_2221.double_contra:last-of-type{
        min-width: var(--elem_width);
        max-width: var(--elem_width);
    }
    section .double_2221:nth-child(1),
    section .double_2211:nth-child(1){
        order: 2;
    }
    section .double_2221:nth-child(2),
    section .double_2211:nth-child(2){
        order: 1;
    }section .double_2221:nth-child(3),
    section .double_2211:nth-child(3){
        order: 3;
    }
}











/* ================= MOBILE HEADER AND NAV ============= */
@media only screen
and (max-width: 1100px) {
    header a.logo {
        background-image: url(/static/lotte/logo.png);
        height: 2em;
        width: 2em;
        /* helemaal links in header */
    }
}

@media only screen
and (max-width: 830px) {
    /* SHOW HAMBURGER, HIDE MENU */
    #hamburger {
        display: inline-block;
        color: var(--zwart);
    }
    header .inside_header nav{
        display: none;
    }

    /* smaller search */
    header form {
        margin: 0;
    }

    #sub-menu-user nav ul {
        flex-direction: column;
        justify-content: flex-start;
        align-content:flex-start;
    }
    #sub-menu-user nav ul li:not(:last-child){
        border-bottom: 2px solid white;
    }

    main {
        margin-top: 0;
    }
    footer{
        font-size: 0.8em;
    }
    footer input{
        width: 1em !important;
        height: 1em !important;
    }
}

@media only screen
and (max-width: 560px) {
    /* smaller logo */
    header a.logo {
        background-image: url(/static/lotte/logo.png);
        height: 2em;
        width: 2em;
        /* helemaal links in header */
    }

    footer{
        font-size: 0.6em;
    }
    footer input{
        width: 1em !important;
        height: 1em !important;
    }
}


