/*
Theme Name: Altijd iemand die je ziet
Theme URI: altijdiemanddiejeziet.nl
Author: 0to9
Author URI: 0to9.nl
Description: The block theme for the website of altijdiemanddiejeziet.nl
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: altijdiemanddiejeziet
Tags: 
*/

a {
    font-size: inherit;
}
.is-hidden {
    display: none;
}

/* Header */

header {
    position: relative;
    z-index: 11;

    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
header h1.wp-block-site-title {
    position: relative;
    z-index: 11;
}
header.is-position-sticky {
    position: sticky;
    z-index: 11;
    top: calc(0px + var(--wp-admin--admin-bar--position-offset, 0px));
    background-color: #fff;
}
header.is-position-sticky nav {
    color: #000 !important;
    border-color: #000 !important;
}
header.is-position-sticky .wp-block-site-title a {
    color: #000 !important;
}

header nav {
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 8px;
}

.header__flare {
    position: absolute;
    z-index: 1;
    top: 0;
    pointer-events: none;
}

/* Navigation */

header nav .is-menu-open {
    border-radius: 8px;
    position: absolute;
    top: -18px;
    left: -220px;
}

header .wp-block-navigation-item.is-style-call-button.wp-block-navigation-link {
    align-items: flex-start !important;
}

header
    .wp-block-buttons.is-layout-flex.wp-container-core-buttons-is-layout-1.wp-block-buttons-is-layout-flex {
    z-index: 999 !important;
}

header nav .wp-block-navigation__responsive-container {
    width: 275px;
    min-height: 250px;
    height: fit-content;
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
    z-index: 2 !important;
}

header nav .wp-block-navigation__responsive-container > *:first-child {
    padding: 0px !important;
    height: 100%;
    gap: 16px;
}

header .wp-block-navigation-item.is-style-call-button.wp-block-navigation-link {
    background: rgba(255, 255, 255, 0.3) !important;
    padding: 16px !important;
    border-radius: 8px !important;
    width: 86% !important;
    align-items: start;
}

header
    .wp-block-navigation-item.is-style-call-button.wp-block-navigation-link
    a::before {
    content: "\f095";
    font-family: "Font Awesome 6 Pro";
    margin-right: 8px;
}

header
    .wp-block-button__link.has-custom-black-color.has-custom-green-background-color.has-text-color.has-background.has-link-color.wp-element-button {
    z-index: 2;
}

html.has-modal-open {
    overflow: visible !important;
}

header nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}

header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 0px !important;
}

header .wp-block-navigation__responsive-dialog {
    padding: 0px !important;
    margin: 0px !important;
}

header .wp-block-navigation__responsive-container-close {
    position: absolute;
    right: 14px;
    top: 16px;
    z-index: 2;
    border-radius: 6px;
    border: 2px solid white;

    svg {
        padding: 8px;
        width: 24px;
        height: 24px;
    }
}

header .wp-block-navigation__container {
    margin-top: 24px !important;
}

header
    .wp-block-navigation__container.has-text-color.has-custom-white-color.is-responsive.items-justified-center.wp-block-navigation {
    width: 100% !important;
}

header .wp-block-navigation__responsive-container-content {
    padding: 16px;
}

header .is-action{
    z-index: 3;
}

@media (max-width: 576px) {
    header
        .wp-block-buttons.is-layout-flex.wp-container-core-buttons-is-layout-1.wp-block-buttons-is-layout-flex {
        display: none;
        width: 176px;
    }

    html.has-modal-open
        header
        .wp-block-buttons.is-layout-flex.wp-container-core-buttons-is-layout-1.wp-block-buttons-is-layout-flex {
        display: block;
        margin-left: 16px !important;
    }

    html.has-modal-open header h1.wp-block-site-title {
        display: none;
    }

    header
        .wp-block-button__link.has-custom-black-color.has-custom-green-background-color.has-text-color.has-background.has-link-color.wp-element-button {
        padding: 14px;
    }

    header nav .wp-block-navigation__responsive-container {
        width: calc(100vw - 68px);
        padding: 0 48px;
    }

    header nav .is-menu-open {
        left: -16px;
    }

    .wp-block-buttons.is-layout-flex.wp-container-core-buttons-is-layout-1.wp-block-buttons-is-layout-flex {
        margin-right: -16px;
    }
    .wp-block_navigation .wp-block-buttons{
        display: none !important;
    }
    html.has-modal-open header .wp-block_navigation .wp-block-buttons{
        display: flex !important;
        position: absolute;
    }
}

/* makes sure the header doesn't disappear when nav modal is open*/
.has-modal-open .wp-block-cover .wp-block-cover__inner-container,
.has-modal-open .wp-block-cover-image .wp-block-cover__inner-container {
    z-index: 1 !important;
}

/* Home Hero */

.home .wp-block-cover{
    background: #000;
}
.home .wp-block-cover video{
    max-width: 1920px;
    margin: auto;
}

@media (max-width: 576px) {
    .home .wp-block-cover video{
        opacity: 0.5;
    }
}

/* Chat */

.wp_block_chat {
    position: fixed;
    bottom: 72px;
    z-index: 11;
    width: 100%; 
}
.wp_block_chat-inner{
    box-shadow: 0 6px 6px 0 rgba(0 , 0, 0, .02), 0 8px 24px 0 rgba(0, 0, 0, .12) !important;
    max-width: 800px;
}
@media (max-width: 781px) {
    .wp_block_chat {
        bottom: 24px;
    }
}

/* Content Container */

.home .entry-content,
.wp_part_title {
    margin-top: -100px; /* Adjust based on the header height */
}
.entry-content .is-position-sticky {
    top: calc(
        100px + var(--wp-admin--admin-bar--position-offset, 0px)
    ); /* Adjust based on the header height */
}
mark {
    font-family: Pacifico !important;
}

/* Headings */

.has-blend-mode {
    mix-blend-mode: difference;
}

/* Angles */

.is-style-angle-right {
    background-image: url("assets/images/angle-right.svg");
    background-repeat: no-repeat;
    background-color: #fff;
}
.is-style-angle-left {
    background-image: url("assets/images/angle-left.svg");
    background-repeat: no-repeat;
    background-color: #fff;
}

/* Light Flares */
.has-flare-angle-up::after {
    content: url("assets/images/background_flare_01.png");
    display: block;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.has-flare-angle-down::after {
    content: url("assets/images/background_flare_02.png");
    display: block;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 992px) {
    .has-flare-angle-up::after {
        opacity: 0.5;
    }
    .has-flare-angle-down::after {
        opacity: 0.5;
    }
}

.has-bottom-gradient {
    position: relative;
    overflow: hidden;
}
.has-bottom-gradient::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    z-index: 2;
}
@media (max-width: 992px) {
    .has-flare-angle-up::after {
        opacity: 0.5;
    }

    .has-flare-angle-down::after {
        opacity: 0.5;
    }
}

/* Button */

.wp-block-button i {
    margin-right: 8px;
}
.is-style-label .wp-block-button__link {
    color: var(--wp--preset--color--custom-black);
    background-color: var(--wp--preset--color--custom-yellow-contrast);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 24px;
}
.wp-block-button a {
    transition: all 0.1s ease-in-out;
}
.wp-block-button a:hover {
    background-color: #fff;
    color: #000;
}
.wp-block-button a.has-custom-green-background-color:hover {
    background-color: #94ffef !important;
    color: #000 !important;
}

/* Details */

details {
    border-radius: 4px;
}
details summary {
    display: block; /* This hides the summary's ::marker pseudo-element */
    font-weight: 500;
}
details summary::-webkit-details-marker {
    display: none; /* This also hides the ::marker pseudo-element, but in Safari */
}
details summary::after {
    font-family: "Font Awesome 6 Pro";
    content: "\f107";
    vertical-align: middle;
    float: right;
    padding: 14px 16px;
    border-radius: 4px;
    background: #000;
    color: #fff;
    margin-top: -14px;
}
details[open] summary::after {
    font-family: "Font Awesome 6 Pro";
    content: "\f106";
    vertical-align: middle;
    float: right;
    padding: 14px 16px;
    border-radius: 4px;
    background: #000;
    color: #fff;
    margin-top: -14px;
}
details p {
    padding: 0 32px 32px 32px;
    margin-top: 0px;
}
details summary:hover {
    color: var(--wp--preset--color--custom-orange);
}
details summary {
    cursor: pointer;
    transition: margin 0.2s ease-out;
    padding: 32px;
}
details[open] summary ~ * {
    animation: sweep 0.3s ease-in-out;
}
@keyframes sweep {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 479px) {
    details summary::after {
        display: none !important;
    }
}

/* Gallery */

.is-style-partners img {
    width: 250px !important;
}

/* Back to top */

#makeiteasy-back-to-top i {
    margin-right: 0px;
}

.reset {
    margin-left: 0px !important;
    transition: ease 1.0s;
    
}

/* Crisp Chat */
.crisp-client{
    display: block !important;

}
body.page .crisp-client .cc-1brb6 .cc-1yy0g .cc-1no03{
    min-width: 800px !important;
    right: 50% !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    margin-bottom: -24px !important;
}
.crisp-client .cc-1brb6[data-full-view="false"] .cc-1yy0g .cc-1m2mf, .crisp-client .cc-1brb6 .cc-1yy0g .cc-1m2mf .cc-157aw .cc-d73fc{
    visibility: hidden !important;
    display: none !important;
}
.crisp-client .cc-1brb6 .cc-1yy0g .cc-1no03 .cc-rfbfu .cc-1iwcs .cc-1nvun .cc-qqgts .cc-1si9v, .crisp-client .cc-1brb6[data-full-view=true] .cc-1yy0g .cc-1m2mf{
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 781px) {

    .wp_block_chat-inner .wp-block-group{
        display: none !important;
    }
    .wp_block_chat-inner .wp-block-buttons{
        width: 100% !important;
    }
    .wp_block_chat-inner .wp-block-button{
        width: 100% !important;
    }

    body.page .crisp-client .cc-1brb6 .cc-1yy0g .cc-1no03{
        min-width: calc(100% - 96px) !important;
        margin-left: 48px !important;
        margin-right: 48px !important;
        right: 0 !important;
        left: 0 !important;
        transform: translate(0, 0) !important;
         margin-bottom: -72px !important;
    }
}

@media (max-width: 479px) {
    body.page .crisp-client .cc-1brb6 .cc-1yy0g .cc-1no03{
        min-width: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        transform: translate(0, 0) !important;
    }
    .cc-lso1a{
        pointer-events: auto !important;
    }
}