/*
 Theme Name:     yogalicious Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme for yogalicious
 Author:         Michael Baierl
 Author URI:     https://mbaierl.com/
 Template:       Divi
 Version:        1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

/* variables for easier overriding */
:root {
    --mb-home-link-url: url(/wp-content/uploads/yogalicious_cmyk.png);
    --mb-home-link-url-alt: url(/wp-content/uploads/yogi_cmyk.png);
    --mb-footer-hover: #aca174;
}

/**
 * Menu customization - logo in the center
 */
#et-top-navigation {
    padding-top: 0 !important;
}
.menu-home-link {

}
.menu-home-link a {
    display: inline-block;
    text-indent: -999rem;
    width: 145px;
    height: 100px;
    background: var(--mb-home-link-url) no-repeat center;
    background-size: contain;
    transition: transform 0.2s ease-in-out !important;
}
.menu-home-link a:hover {
    opacity: 1 !important;
    transform: scale(1.05);
}
.et-fixed-header .menu-home-link a {
    height: 50px;
    background: var(--mb-home-link-url-alt) no-repeat center;
    background-size: contain;
}
.centered-inline-logo-wrap {
    display: none !important;
}
#top-menu, #menu-hauptmenue, #menu-hauptmenu {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}
.et_header_style_split #et-top-navigation nav>ul>li>a {
    padding-bottom: 15px !important;
}
#mobile_menu .menu-home-link {
    display: none;
}
#menu-hauptmenue, #menu-hauptmenu {
    padding-top: 0 !important;
    transform: translateY(-25px); /* this is the overlap on the front page */
}
#menu-hauptmenu li>a,
#menu-hauptmenue li>a {
    padding-bottom: 15px;
}
.home-main-menu-section {
    margin-bottom: -25px;
}

/**
 * Fixed header
 */
@media only screen and (min-width: 980px) {
    body .yl-fixed-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100000;
    }
}
body.admin-bar .yl-fixed-header {
    top: 32px;
}
.yl-fixed-header .menu-home-link a {
    height: 50px;
    background: var(--mb-home-link-url-alt) no-repeat bottom center;
    background-size: contain;
}
.yl-fixed-header #menu-hauptmenu,
.yl-fixed-header #menu-hauptmenue {
    padding-top: 10px !important;
    transform: none;
}
.mobile_menu_bar:before {
    color: #54698c !important;
}
.et_mobile_nav_menu:before {
    content: '';
    display: block;
    width: 100px;
    height: 50px;
    background: var(--mb-home-link-url-alt) no-repeat center;
    background-size: contain;
    margin: 15px auto 8px auto;
}
.et_mobile_menu .menu-home-link {
    display: none;
}
.et_pb_fullwidth_menu .mobile_menu_bar:before {
    top: 10px !important;
}
@media (max-width: 980px) {
    .yl-fixed-header .et_pb_fullwidth_menu .et_pb_row {
        min-height: 55px !important;
    }
}

.et_pb_fullwidth_menu_0.et_pb_fullwidth_menu ul li.current-menu-item .sub-menu a {
    color: #6e7891!important;
}
.et_pb_fullwidth_menu_0.et_pb_fullwidth_menu ul.sub-menu li.current-menu-item a {
    color: #bea582!important;
}

/**
 * flex footer
 */
.yl-flex a {
    color: #fff !important;
}
.yl-flex a:hover {
    color: var(--mb-footer-hover) !important;
}
.yl-flex .et_pb_column {
    display: flex;
    justify-content: space-between;
}
@media (max-width: 768px) {
    .yl-flex .et_pb_column {
        flex-direction: column;
    }
}
.yl-footer-links a {
    margin-left: 0.5rem;
    display: inline-block;
}
.yl-flex .et_pb_module {
    margin-bottom: -3px !important;
}
.yl-flex .et-social-icons {
    display: inline-block;
    float: none;
}
.yl-flex .et-social-icon a {
    font-size: 14px;
    line-height: 1em;
}
.yl-flex .et-social-icons li {
    margin-top: 2px;
    margin-left: 2px;
}

/**
 * Language switcher in secondary menu
 */
.wpml-ls-menu-item {
    padding-right: 0 !important;
    margin-right: -18px;
}
.et_pb_fullwidth_menu_0.et_pb_fullwidth_menu ul li.wpml-ls-menu-item a, .wpml-ls-menu-item a {
    color: #b6bbc8 !important;
}
.et_pb_fullwidth_menu_0.et_pb_fullwidth_menu ul li.wpml-ls-current-language a, .wpml-ls-current-language a {
    color: #54698c !important;
}
.et_mobile_menu .wpml-ls-menu-item {
    display: inline-block;
    margin-right: 0.5rem;
}

/**
 * Full height slider
 * based on custom .class et_fullscreen_slider
 */

.et_fullscreen_slider .et_pb_slides,
.et_fullscreen_slider .et_pb_slide,
.et_fullscreen_slider .et_pb_container {
    min-height: 100vh;
    height: 100vh;
    min-height: calc( 100vh - 7rem );
    height: calc( 100vh - 7rem );
}
@media (max-width: 980px) {
    .et_fullscreen_slider .et_pb_slides,
    .et_fullscreen_slider .et_pb_slide,
    .et_fullscreen_slider .et_pb_container {
        min-height: calc( 100vh - 9.5rem );
        height: calc( 100vh - 9.5rem );
    }
}

/**
 * Images
 */

.ratio-16-9 .et_pb_team_member_image {
    padding-top: 56.25%;
    display: block;
    width: 100%;
}
.ratio-16-9 .et_pb_team_member_image img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.ratio-16-9 .et_pb_team_member_description {
    display: block;
}
.ratio-16-9 .et_pb_team_member_description {
    padding: 0.7rem 0;
}

.yl-responsive-grid .et_pb_team_member_image {
    max-width: 100%;
}
@media (max-width: 980px) {
    .yl-responsive-grid .et_pb_column {
        width: 50% !important;
    }
    .yl-responsive-grid .et_pb_column .et_pb_team_member_image {
        float: none;
    }
}
@media (max-width: 768px) {
    .yl-responsive-grid .et_pb_column {
        width: 100% !important;
    }
}

/** Floating icons */
#mb-floating-icons {
    box-shadow: 0px 2px 18px 0px rgb(0 0 0 / 30%);
    padding: 10px 15px 10px 10px !important;
    position: fixed;
    right: 0;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: auto;
}
/*#mb-floating-icons > .et_pb_row {
    padding: 0;
}*/
#mb-floating-icons > .et_pb_column > .et_pb_module {
    margin-bottom: 10px;
}
#mb-floating-icons > .et_pb_column > .et_pb_module:last-child {
    margin-bottom: 0;
}
#mb-floating-icons a .et-pb-icon {
    transition: all 0.3s ease-in-out;
}
#mb-floating-icons a:hover .et-pb-icon {
    transform: scale(1.1);
    color: rgba(255,255,255,0.6);
}
@media(max-width: 768px) {
    #mb-floating-icons {
        padding: 15px 0 10px 0;
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
    }
    #mb-floating-icons > .et_pb_column {
        display: flex;
        flex-direction: row;
    }
    #mb-floating-icons > .et_pb_column > .et_pb_module {
        margin-bottom: 0;
    }
    body {
        margin-bottom: 55px;
    }
}