/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: KAAPKE Marken im Mittelstand
Author URI: https://kaapke.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* Responsive Typography */

@media (max-width: 1600px) and (max-height: 810px) and (min-width: 768px) {
    #main .fusion-portfolio h2,
    #main .post h2, #wrapper #main .post h2,
    #wrapper #main .post-content .fusion-title h2,
    #wrapper #main .post-content .title h2,
    #wrapper .fusion-title h2,
    #wrapper .post-content h2,
    #wrapper .title h2,
    .fusion-modal h2,
    .fusion-tb-footer h2,
    .fusion-tb-page-title-bar h2,
    .fusion-widget-area h2,
    h2.entry-title {
        font-size: 34px !important;
    }

    .fusion-modal h1,
    .fusion-tb-footer h1,
    .fusion-tb-page-title-bar h1,
    .fusion-widget-area h1,
    .post-content h1,
    .search-page-search-form h1 {
        font-size: 41px !important;
    }

    .fusion-author .fusion-author-title,
    .fusion-modal .modal-title,
    .fusion-modal h3,
    .fusion-tb-footer h3,
    .fusion-tb-page-title-bar h3,
    .fusion-widget-area h3,
    .post-content h3,
    .project-content h3 {
        font-size: 26px !important;
    }

    body {
        font-size: 19px !important;
    }
}

.d-none {
    display: none !important;
}

.img-cover img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.img-cover.fusion-imageframe {
    height: 100%;
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.flex-col > .fusion-builder-row:first-child {
    flex-direction: column;
}

.menu-toggle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.menu-toggle svg {
    width: 120px;
    display: block;
    transition: width .25s ease;
}

.menu-toggle-shadow {
    opacity: 0;
    transition: opacity .25s ease;
}

.menu-toggle-small svg {
    width: 120px;
    transition: width .25s ease;
}

.menu-toggle-small .menu-toggle-shadow {
    opacity: .37;
}

.logo {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 15vw;
    max-width: 600px;
    min-width: 250px;
    transition: all .25s ease-in-out;
    z-index: 99999;
    pointer-events: none;
}

.logo svg {
    display: block;
}

.logo-shadow {
    opacity: 0.37;
}

.logo-small {
    width: 10vw;
    transition: all .25s ease-in-out;
}

@media (max-width: 768px) {
    .menu-overlay.active {
        border: 10px solid;
    }

    .menu-toggle svg {
        width: 60px;
    }

    .logo, .logo-small {
        min-width: 180px;
    }

    header {
        border-width: 10px;
    }
}

.scroll-down-arrow:after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23FFFFFF;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='50,77.4 0,27.4 4.8,22.6 50,67.9 95.2,22.6 100,27.4'/%3E%3C/svg%3E");
    display: block;
    position: absolute;
    bottom: 20px;
    width: 22px;
    height: 22px;
    left: calc(50% - 11px);
    animation: scrollDownArrow 3s infinite;
    z-index: 99;
}

@keyframes scrollDownArrow {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(10px);
    }

    50% {
        transform: translateY(0);
    }
}

/* 50/50 with sticky section */
.sticky-left {
    position: fixed !important;
    width: 50% !important;
    height: 100%;
    top: 0;
}

.sticky-left .fusion-slider-sc {
    left: 30px;
    position: relative;
    top: 30px;
    width: calc(100% - 30px);
    height: calc(100% - 120px) !important;
    margin-top: 0 !important;
    z-index: 1 !important;
}

.sticky-left .flexslider .flex-direction-nav a {
    background: none;
    height: 30px !important;
    width: 30px !important;
    line-height: 1 !important;
    font-size: 28px !important;
    opacity: 1 !important;
}

.sticky-left .flexslider .flex-control-nav {
    bottom: 5px;
}

.sticky-left .flexslider .flex-direction-nav {
    position: relative;
    width: 130px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
}

.sticky-left .flexslider .flex-control-paging li a {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.8);
    width: 8px;
    height: 8px;
}

.sticky-left .flexslider .flex-control-paging li {
    margin: 0 4px;
}

.sticky-left .flexslider .flex-control-paging li a.flex-active {
    background: #00afe6;
}

.sticky-left .fusion-slider-sc .slides {
    height: 100%;
    width: 100%;
}

.sticky-left .fusion-slider-sc .slides li.image {
    height: 100%;
}

.sticky-left .fusion-slider-sc .slides li.image img {
    height: 100%;
    object-fit: cover;
}

.sticky-left .header-textbox-wrapper + div,
.sticky-left .header-textbox-wrapper + div span.fusion-imageframe {
    height: 100%;
    z-index: -1;
    margin-top: -20px;
}

.sticky-left .header-textbox-wrapper + div span.fusion-imageframe img {
    height: 100%;
    object-fit: cover;
}

.sticky-left.hide-textbox-on-hover .header-textbox-wrapper {
    opacity: 1;
    transition: opacity .3s ease;
}

.sticky-left.hide-textbox-on-hover:hover .header-textbox-wrapper {
    opacity: 0;
}

.sticky-right {
    left: 50%;
    width: 50% !important;
    position: relative;
    padding: 60px 8vw 180px 8vw;
}

.sticky-right:after {
    content: '';
    position: fixed;
    background: linear-gradient(
            0deg, rgba(249, 249, 249, 1) 0%, rgba(249, 249, 249, 0) 100%);
    width: 50%;
    height: 120px;
    bottom: 95px;
    left: 50%;
    z-index: 999;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .sticky-right {
        padding: 6vh 8vw 230px 8vw;
    }

    .sticky-right:after {
        content: none;
    }
}

@media (max-width: 1024px) {
    div.sticky-left.fusion_builder_column {
        position: relative !important;
        width: 100% !important;
        height: auto;
    }

    .sticky-left .fusion-slider-sc > .flexslider {
        margin-bottom: 0 !important;
    }

    .sticky-left .fusion-slider-sc {
        width: calc(100% - 60px);
        height: 100%;
    }

    div.sticky-right.fusion_builder_column {
        left: 0;
        width: 100% !important;
        padding: 0px 63px 90px;
    }

    .sticky-right .fusion-google-map {
        height: 90vh !important;
        left: 30px;
        width: calc(100% - 60px) !important;
    }

}

@media (max-width: 768px) {
    div.sticky-right.fusion_builder_column {
        padding: 25px 46px 90px;
    }

    .sticky-left .fusion-slider-sc {
        top: 15px;
        left: 15px;
        width: calc(100% - 30px);
        height: auto !important;
        margin-top: -60px !important;
    }

    /*    .sticky-left .fusion-slider-sc .flexslider {
            height: auto !important;
        }

        .sticky-left .fusion-slider-sc .slides {
            height: auto;
        }*/
    .sticky-right .fusion-google-map {
        height: 90vh !important;
        left: 15px;
        width: calc(100% - 30px) !important;
    }
}

/* Transition */

.page-transition-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 999999;
    transform: translateZ(0);
    pointer-events: none;
}

.page-transition-container.hidden {
    display: none;
}

@media (max-width: 1024px) {
    .page-transition-container {
        display: none !important;
    }
}


/* START CUSTOM AVADA ELEMENTS */

/* Employee-Overview */
.employee-overview-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.employee-overview-wrapper .element {
    margin-top: 75px;
}

.employee-overview-wrapper p {
    margin: 10px 0 0;
}

.employee-overview-wrapper h4 {
    margin: 10px 0 0;
}

/* Trigger Button */
.trigger-button {
    position: absolute;
    z-index: 2;
    top: 750px;
    left: 750px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    display: flex;
    background: #00afe6;
    color: #fff;
    font-size: 32px;
    align-items: center;
    justify-content: center;
}

.trigger-button:before {
    content: '';
    display: block;
    position: absolute;
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
    opacity: .8;
    animation: puls 2s infinite;
}

@keyframes puls {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .trigger-button {
        width: 50px;
        height: 50px;
        font-size: 21px;
    }
}

.portfolio-remove-links * {
    pointer-events: none !important;
}

/* END CUSTOM AVADA ELEMENTS */