:root {
    --bloembraaden-default-paper-color: #fff;
    --bloembraaden-default-key-color: #000;
}

/**
 * Reset
 */
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, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
main, section, article, nav, figure, figcaption,
header, footer, aside, mark, details, summary, time,
table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
    color: var(--bloembraaden-default-key-color);
}

html, body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6em;
    background-color: var(--bloembraaden-default-paper-color);
}

fieldset, legend {
    display: inline;
    vertical-align: top;
}

img {
    display: block;
    line-height: 0;
    border: 0;
}

em {
    font-style: italic;
}

strong {
    font-weight: 700;
}

s {
    text-decoration: line-through;
}

/**
 * basic margins
 */
p, h2, h3, h4, h5, h6 {
    margin-top: .8rem;
}

h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
    margin-top: 0;
}

ol li {
    margin-bottom: .6rem;
}

ol label {
    display: block;
}

/* links and wannabe links */
a, .peatcms-link {
    text-decoration: underline;
    cursor: pointer;
}

/**
 * formatting headers
 */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    text-decoration: none;
}

h1 {
    font-size: 2em;
    font-weight: bold;
}

h2 {
    font-size: 1.8em;
    font-weight: bold;
}

h3 {
    font-size: 1.6em;
    font-weight: bold;
}

h3 {
    font-size: 1.4em;
    font-weight: bold;
}

h4 {
    font-size: 1.2em;
    font-weight: bold;
}

h5 {
    font-weight: bold;
}

h6 {
    font-weight: bold;
}

[data-peatcms-placeholder] {
    display: none !important;
}

html, body {
    height: 100%;
    width: 100%;
    font-size: 16px;
}

/**
 * handy standard css classes
 */
.nodisplay,
.display-none {
    display: none;
}

/* nice embed https://stackoverflow.com/a/20130011 */
.embed-wrapper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: #CCC
}

.embed-iframe {
    position: relative;
    padding-top: 56.25%; /* 16 × 9 */
}

.embed-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.attention-grabber,
.peatcms_attention_grabber {
    animation: peatcms_attention_grabber .2s 6 ease-in-out; /* 6 = iteration count, used to be infinite but removing the class does not stop the animation in IE11 then */
}

@keyframes peatcms_attention_grabber {
    0% {
        transform: translateX(0)
    }
    25% {
        transform: translateX(-6px)
    }
    75% {
        transform: translateX(6px)
    }
    100% {
        transform: translateX(0)
    }
}

.peatcms_signal_change {
    animation: peatcms_pulsating .3s 2 ease-in;
}

/**
 * Messages
 */
#message_wrapper {
    position: fixed;
    width: 80vw;
    top: 0;
    left: 10vw;
    display: block;
    z-index: 101;
}

.message {
    position: relative;
    display: block;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    background-color: var(--bloembraaden-default-paper-color);
    box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .28);
}

.log {
    color: rgb(48, 63, 123);
}

.warn {
    color: rgb(216, 136, 16);
}

.error {
    color: rgb(200, 0, 0);
    font-weight: bold;
}

.note {
    background-color: #ffc;
}

.message .button.close::before {
    content: '×';
}

.message .button.close {
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    color: var(--bloembraaden-default-paper-color);
    border-radius: 5px; /* same as message */
    background-color: rgb(90, 90, 90);
    font-weight: bold;
    width: auto;
    height: auto;
}

.message .button.close:hover {
    background-color: rgb(0, 180, 20);
}

/**
 * prompts
 */
#bloembraaden-prompt-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#bloembraaden-prompt-wrapper .bloembraaden-prompt {
    background-color: rgb(255, 255, 255);
    padding: 1em;
    border-radius: 1em;
    max-width: 400px;
}

/**
 * from parser
 */
.nowrap {
    white-space: nowrap;
}

/**
 * Form elements
 */
textarea,
button,
input[type="submit"],
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="password"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #484844;
    padding: .25em;
    margin-bottom: .25em;
    outline: none;
    outline-offset: -1px;
}

textarea,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="password"] {
    outline: solid 1px #484844;
}

button,
input[type="submit"] {
    padding: .25em .5em;
}

@keyframes peatcms_pulsating {
    25% {
        opacity: 1;
    }
    75% {
        opacity: .31;
    }
}

.bloembraaden-fade-out {
    animation: bloembraaden_fade_out .5s forwards ease-in-out;
}

@keyframes bloembraaden_fade_out {
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.bloembraaden-fade-in {
    animation: bloembraaden_fade_in .4s forwards ease-in-out;
}

@keyframes bloembraaden_fade_in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/**
 * Pretty select lists
 */
body select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border: none;
    padding: .25em 1.6rem .25em .25em;
    margin-bottom: .25em;
    /* border for select can only be done with outline */
    outline: none;
    outline-offset: -1px;
    /* the arrow image (https://www.filamentgroup.com/lab/select-css.html): */
    /* the color is the 484844 slightly after 'fill' */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23484844%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    /*linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);*/
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

body select::-ms-expand {
    display: none;
}

/**
 * slider https://cheewebdevelopment.com/boilerplate-vanilla-javascript-content-slider/
 */

.peatcms-slideshow-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    transition: 300ms;
}

/* ensure that we can adjust z-index or position elements absolutely within the slideshow itself (e.g., navigation) */
.peatcms-slideshow {
    position: relative;
}

/* set all slides as absolute positioning so they will stack on top of each other, and hidden from one another */
.peatcms-slide-entry {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity .6s;
}

.peatcms-slide-entry.active { /* this is how we transition the slides in/out */
    opacity: 1;
    visibility: visible;
}

/* set up our basic left/right navigation, would should ideally be vertically centered */

.peatcms-slide-nav {
    list-style: none;
}

.peatcms-slide-nav li {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    color: #333;
    background-color: var(--bloembraaden-default-paper-color);
    font-size: 25px;
}

/* pull our navigation out of the slider container to avoid z-index issues */

#peatcms-prev-slide {
    left: 0;
}

#peatcms-next-slide {
    right: 0;
}

/* src sets */
[data-srcset] {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0; /* will be set to 1 by javascript */
    transition: opacity .4s ease;
}

/* carousel */
.carousel {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel .slide {
    flex: 0 0 auto;
    cursor: grab;
    height: 100%;
}

.carousel[data-mouse-is-down] .slide {
    cursor: grabbing;
}

/* just common sense */
[hidden] {
    display: none;
}

/* prevent CLS */
.cf-turnstile {
    height: 72.5px;
}

.cf-turnstile.invisible {
    max-height: 0;
    max-width: 0;
}

:root {
    --color-key: #b45821;
    --color-accent: #a67c60;
    --color-liver: #c8ae95;
    --color-paper: #f7f2e2;
    --color-dark: #a67c60;
    --color-light: #fff;
    --padding: 28px;
}

@media (max-width: 600px) {
    :root {
        --padding: 19px;
    }

    #hamburger {
        width: 56px !important;
    }
}

body {
    overflow-y: scroll;
    overflow-x: hidden;
}

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, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
textarea, button, input[type="submit"], input[type="text"], input[type="number"],
input[type="email"], input[type="date"], input[type="checkbox"], input[type="password"],
main, section, article, nav, figure, figcaption,
header, footer, aside, mark, details, summary, time,
table, caption, tbody, tfoot, thead, tr, th, td {
    font-size: 16px; /* this is 1 rem */
    letter-spacing: 0;
    line-height: 1.6;
    font-family: "Source Sans Pro", Arial, sans-serif;
    color: var(--color-key);
    outline: none;
    word-wrap: break-word;
}

a, .peatcms-email-link {
    color: var(--color-accent);
    text-decoration: underline;
}

header, footer, main {
    width: calc(100% - var(--padding) * 2);
    padding: var(--padding);
    clear: both;
    display: block;
    position: relative;
}

/* special H1 treatment tante */
h1 {
    width: 100%;
    text-align: center;
}

blockquote {
    color: var(--color-accent);
    border: solid 1px var(--color-accent);
    margin: .2rem;
    padding: .8rem;
    font-style: italic;
}

.slogan {
    color: var(--color-accent);
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
}

.paper {
    background-color: var(--color-paper);
}

.dark {
    background-color: var(--color-dark);
}

.dark * {
    color: var(--color-paper);
}

.light {
    background-color: var(--color-light);
}

header .logo {
    margin-top: 3rem;
}

header .logo img {
    width: calc(100% - var(--padding) * 2);
    max-width: 513px;
}

#mainmenu {
    text-align: right;
}

#mainmenu ul,
#mainmenu li {
    width: auto;
    display: inline-block;
}

#mainmenu a {
    padding: .8rem .9rem calc(.8rem - 3px) .9rem;
    background-color: var(--color-liver);
    border-bottom: solid 3px var(--color-liver);
    color: var(--color-light);
    text-decoration: none;
    text-transform: uppercase;
    transition: ease-in-out 0.2s;
}

#mainmenu a.lijfwijs-parent-slug,
#mainmenu a.peatcms-current-slug,
#mainmenu a:hover {
    background-color: var(--color-paper);
    border-bottom: solid 3px var(--color-key);
    color: var(--color-key);
}

#mainmenu ul ul { /* submenu */
    margin-top: .575rem;
    z-index: 1;
    display: none;
    position: absolute;
    background-color: var(--color-liver);
    text-align: left;
}

#mainmenu li[aria-expanded="true"] ul {
    display: block;
}

#mainmenu ul ul li {
    display: block;
}

#mainmenu ul ul a { /* submenu */
    padding: .8rem .9rem;
    display: block;
    width: 100%;
    border-bottom: none;
}

#mainmenu ul ul a.peatcms-current-slug,
#mainmenu ul ul a:hover {
    border-bottom: none;
}

footer img {
    margin: .9rem auto;
    max-height: 81px;
}

footer img.logo {
    width: 262px;
    max-width: calc(100% - var(--padding) * 2);
}

footer aside {
    display: inline;
    width: calc(50% - var(--padding) / 2); /* padding / 2 assures room between the asides */
    text-align: center;
    padding: 0;
}

/* page layout */
.content {
    display: flex;
    flex-wrap: wrap;
}

.content h1 {
    width: 100%;
    font-size: 2rem;
}

.content h2 {
    font-size: 1.4rem;
}

.content h3 {
    font-size: 1.25rem;
}

.content h1,
.content h2,
.content h3 {
    font-weight: normal;
}

.content h3:first-child {
    margin-top: 0;
}

.content h1.align-center {
    text-align: center;
}

.content img {
    border-radius: .4rem;
    width: 100%;
    height: auto;
    margin-top: .8rem;
}

.content img.signature {
    width: 220px;
    border-radius: 0;
}

.content ul {
    margin-left: 2rem;
}

.content .column,
.content .images {
    width: calc(50% - var(--padding));
    float: left;
    margin: 0 var(--padding) var(--padding) 0;
}

.content .column.right,
.content .images {
    float: right;
    margin: 0 0 var(--padding) var(--padding);
}

.embeds {
    margin-top: var(--padding);
}

.content .pages {
    width: 100%;
}

.content .pages .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.content .pages .flex > img {
    margin: 0 auto var(--padding) auto;
    width: 20%;
    height: auto;
}

.content .pages .button h2 {
    display: none;
}

.button.plan-direct-een-afspraak a,
.content .pages .button a {
    display: block;
    padding: .5rem .9rem;
    background-color: var(--color-accent);
    color: var(--color-light);
    text-decoration: none;
    width: max-content;
    margin: 2rem auto 1rem auto;
}

.content .pages .button a:hover {
    background-color: var(--color-liver);
}

#melding-wrapper {
    width: 100%;
    padding: 0;
    background-color: var(--color-dark);
    text-align: center;
    position: sticky;
    bottom: 0;
}

#melding {
    padding: 1rem;
}

#melding > * {
    color: var(--color-light);
}

#melding .close {
    cursor: pointer;
    background-color: var(--color-liver);
    font-size: 150%;
    text-decoration: none;
    width: 1.2rem;
    line-height: 1.2rem;
    position: absolute;
    right: var(--padding);
}

@media (max-width: 768px) {
    .content .pages .flex > img {
        width: 44%;
    }

    .content .column,
    .content .images {
        width: 100%;
    }

    .content .left,
    .content .right {
        margin: 0 auto;
        float: none;
    }

    .pages .flex > img {
        width: 44%;
    }
}

/* (Contact) form */
.hipster-input {
    white-space: nowrap;
    position: relative;
    height: 3.54rem;
}

.hipster-input textarea,
.hipster-input input {
    position: absolute;
    width: calc(100% - 1.78rem);
    max-width: 500px;
    outline: none;
    height: 1.8rem;
    font-size: 1rem;
    line-height: 1em;
    color: var(--color-key);
    padding: 1rem 4px 1px 11px;
    border: solid 1px var(--color-accent);
}

.hipster-input textarea {
    display: block;
    height: 6rem;
}

#contact-section input:focus,
#contact-section input:active,
#contact-section textarea:focus,
#contact-section textarea:active {
    outline: solid 2px var(--color-accent);
    background: var(--color-light);
}

#contact-section input[type="submit"] {
    background-color: var(--color-liver);
    color: var(--color-light);
}

.hipster-input label {
    position: absolute;
    font-size: .69rem;
    margin-left: 4px;
    transition: all .23s ease-in-out;
}

.hipster-input textarea:placeholder-shown:not(:focus) + label,
.hipster-input input:placeholder-shown:not(:focus) + label {
    font-size: 1.11rem;
    margin-top: .6em;
    margin-left: 12px;
}

/* enlarge the hipster input div to the size of the textarea for a textarea */
.hipster-input.textarea {
    height: 7.7rem;
}

#footer-light .peatcms-email-link,
#footer-light a {
    display: block;
    width: max-content;
    margin: 0 auto;
}

@media (min-width: 600px) {
    #footer-light aside {
        padding-bottom: var(--padding); /* restore footer padding that is lost because of floating asides */
    }

    #footer-light aside.left {
        float: left;
        text-align: right;
    }

    #footer-light aside.left > * {
        margin-right: 0;
    }

    #footer-light aside.right {
        float: right;
    }

    #footer-light aside.right > * {
        margin-left: 0;
    }
}

#bloembraaden-tagline {
    text-align: center;
    margin: 1rem;
    font-size: .8rem;
}

#bloembraaden-tagline a {
    font-size: inherit;
}

/* responsive */
#mainmenu, .content {
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

#hamburger {
    display: none;
    position: absolute;
    z-index: 2;
    right: var(--padding);
    top: 0;
    width: calc(var(--padding) * 2);
    height: calc(var(--padding) * 2);
    text-align: center;
}

@media (max-width: 830px) {
    #hamburger {
        display: block;
        cursor: pointer;
    }

    #mainmenu {
        position: fixed;
        display: block;
        z-index: 2;
        right: -410px;
        top: calc(var(--padding) * 2);
        height: calc(100vh - var(--padding) * 2);
        width: 100vw;
        max-width: 410px;
        background-color: var(--color-dark);
        transition: right 0.49s ease-in-out;
        overflow: scroll;
    }

    #mainmenu ul {
        width: 100%;
    }

    #mainmenu a:hover,
    #mainmenu a.peatcms-current-slug,
    #mainmenu a.lijfwijs-parent-slug,
    #mainmenu ul ul a,
    #mainmenu ul ul a:hover,
    #mainmenu ul ul a.peatcms-current-slug,
    #mainmenu a {
        display: block;
        border-bottom: solid 1px var(--color-paper);
        border-top: solid 1px var(--color-paper);
        padding-bottom: .9rem;
        width: auto;
    }

    #mainmenu ul ul {
        width: calc(100% - 4px);
        margin: 0 auto;
        position: relative;
        /*display: block;*/
    }

    #mainmenu li {
        display: block;
        position: relative;
        width: 100%;
        text-align: center;
    }

    [data-mobile-menu] {
        overflow: hidden;
    }

    [data-mobile-menu] #mainmenu {
        right: 0;
    }

    [data-mobile-menu] #mainmenu ul {
        overflow: auto;
    }

    #header-light,
    #content {
        transition: opacity 0.49s ease-in-out;
    }

    [data-mobile-menu] #header-light,
    [data-mobile-menu] #content {
        opacity: .4;
    }
}

@media (max-width: 501px) {
    .content .pages .flex > img {
        max-width: 220px;
        width: 90%;
    }
}

/* better focus styles */
input[type="submit"]:focus,
.peatcms-email-link:focus-visible,
a:focus-visible {
    outline: solid 2px var(--color-accent);
}

.dark a:focus-visible {
    outline: solid 2px var(--color-paper);
}

/* hamburger to close transition */
/* https://stackoverflow.com/questions/48596990/transition-hamburger-menu-icon-into-cross-close-icon-using-only-css */
#icon {
    position: absolute;
    top: 0;
    right: 1rem;
    left: 1rem;
    width: auto;
    height: 100%;
}

/* MENU ICON */

.lines,
.lines:before,
.lines:after {
    position: absolute;
    display: block;
    width: 100%;
    left: 0;
    background: #FFFFFF;
    transition: 0.3s;
}

.lines {
    height: 3px;
    margin-top: -2px;
    top: 50%;
}

.lines:before,
.lines:after {
    content: '';
    height: 100%;

    /* Try different values here: .25rem, .5rem, .2rem, 5rem, 10rem... */
    transform-origin: 1rem center;
}

.lines:before {
    top: 8px;
}

.lines:after {
    top: -8px;
}

/* CLOSE ICON */

[data-mobile-menu] #icon {
    transform: scale3d(0.8, 0.8, 0.8);
}

[data-mobile-menu] #icon .lines {
    background: transparent;
}

[data-mobile-menu] #icon .lines:before,
[data-mobile-menu] #icon .lines:after {
    top: 0;
    transform-origin: 50% 50%;
}

[data-mobile-menu] #icon .lines:before {
    transform: rotate3d(0, 0, 1, 45deg);
}

[data-mobile-menu] #icon .lines:after {
    transform: rotate3d(0, 0, 1, -45deg);
}

/* plan direct een afspraak */
.button.plan-direct-een-afspraak {
    display: block;
    position: absolute;
    transform: translateY(-23px);
}

@media (min-width: 758px) {
    .button.plan-direct-een-afspraak {
        right: var(--padding);
        transform: translateY(80px);
    }
}
