<?php

    $motivational_life_coach_theme_css= "";

    /*-------------------- Global First Color -------------------*/

    $motivational_life_coach_global_color = get_theme_mod('motivational_life_coach_global_color');
    $motivational_life_coach_global_second_color = get_theme_mod('motivational_life_coach_global_second_color');
    $motivational_life_coach_global_third_color = get_theme_mod('motivational_life_coach_global_third_color');

    if ($motivational_life_coach_global_color) {
        $motivational_life_coach_theme_css .= ':root {';
        $motivational_life_coach_theme_css .= '--first-color: ' . esc_attr($motivational_life_coach_global_color) . ' !important;';
        $motivational_life_coach_theme_css .= '} ';
    }

    if ($motivational_life_coach_global_second_color) {
        $motivational_life_coach_theme_css .= ':root {';
        $motivational_life_coach_theme_css .= '--second-color: ' . esc_attr($motivational_life_coach_global_second_color) . ' !important;';
        $motivational_life_coach_theme_css .= '} ';
    }

    if ($motivational_life_coach_global_third_color) {
        $motivational_life_coach_theme_css .= ':root {';
        $motivational_life_coach_theme_css .= '--third-color: ' . esc_attr($motivational_life_coach_global_third_color) . ' !important;';
        $motivational_life_coach_theme_css .= '} ';
    }

    /*--------------------------- Scroll To Top Positions -------------------*/

    $motivational_life_coach_scroll_position = get_theme_mod( 'motivational_life_coach_scroll_top_position','Right');
    if($motivational_life_coach_scroll_position == 'Right'){
        $motivational_life_coach_theme_css .='#button{';
            $motivational_life_coach_theme_css .='right: 20px;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_scroll_position == 'Left'){
        $motivational_life_coach_theme_css .='#button{';
            $motivational_life_coach_theme_css .='left: 20px;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_scroll_position == 'Center'){
        $motivational_life_coach_theme_css .='#button{';
            $motivational_life_coach_theme_css .='right: 50%;left: 50%;';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Scroll To Top Border Radius -------------------*/

    $motivational_life_coach_scroll_to_top_border_radius = get_theme_mod('motivational_life_coach_scroll_to_top_border_radius');
    $motivational_life_coach_scroll_bg_color = get_theme_mod('motivational_life_coach_scroll_bg_color');
    $motivational_life_coach_scroll_color = get_theme_mod('motivational_life_coach_scroll_color');
    $motivational_life_coach_scroll_font_size = get_theme_mod('motivational_life_coach_scroll_font_size');
    if($motivational_life_coach_scroll_to_top_border_radius != '' || $motivational_life_coach_scroll_bg_color != '' || $motivational_life_coach_scroll_color != '' || $motivational_life_coach_scroll_font_size != ''){
        $motivational_life_coach_theme_css .='#colophon a#button{';
            $motivational_life_coach_theme_css .='border-radius: '.esc_attr($motivational_life_coach_scroll_to_top_border_radius).'px; background-color: '.esc_attr($motivational_life_coach_scroll_bg_color).'; color: '.esc_attr($motivational_life_coach_scroll_color).' !important; font-size: '.esc_attr($motivational_life_coach_scroll_font_size).'px;'; 
        $motivational_life_coach_theme_css .='}';
    }

     /*--------------------------- Woocommerce Product Sale Positions -------------------*/

    $motivational_life_coach_product_sale = get_theme_mod( 'motivational_life_coach_woocommerce_product_sale','Right');
    if($motivational_life_coach_product_sale == 'Right'){
        $motivational_life_coach_theme_css .='.woocommerce ul.products li.product .onsale{';
            $motivational_life_coach_theme_css .='left: auto; right: 15px;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_product_sale == 'Left'){
        $motivational_life_coach_theme_css .='.woocommerce ul.products li.product .onsale{';
            $motivational_life_coach_theme_css .='left: 15px; right: auto;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_product_sale == 'Center'){
        $motivational_life_coach_theme_css .='.woocommerce ul.products li.product .onsale{';
            $motivational_life_coach_theme_css .='right: 50%;left: 50%;';
        $motivational_life_coach_theme_css .='}';
    }

    /*---------------- Single post Settings ------------------*/

    $motivational_life_coach_single_post_navigation_show_hide = get_theme_mod('motivational_life_coach_single_post_navigation_show_hide',true);
    if($motivational_life_coach_single_post_navigation_show_hide != true){
        $motivational_life_coach_theme_css .='.nav-links{';
            $motivational_life_coach_theme_css .='display: none;';
        $motivational_life_coach_theme_css .='}';
    }

    /*---------------------------Slider Height ------------*/

    $motivational_life_coach_slider_img_height = get_theme_mod('motivational_life_coach_slider_img_height');
    if($motivational_life_coach_slider_img_height != false){
        $motivational_life_coach_theme_css .='#top-slider .owl-carousel .owl-item img{';
            $motivational_life_coach_theme_css .='height: '.esc_attr($motivational_life_coach_slider_img_height).';';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Woocommerce Product Border Radius -------------------*/

    $motivational_life_coach_woo_product_border_radius = get_theme_mod('motivational_life_coach_woo_product_border_radius', 0);
    if($motivational_life_coach_woo_product_border_radius != false){
        $motivational_life_coach_theme_css .='.woocommerce ul.products li.product a img{';
            $motivational_life_coach_theme_css .='border-radius: '.esc_attr($motivational_life_coach_woo_product_border_radius).'px;';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Woocommerce Product Sale Border Radius -------------------*/

    $motivational_life_coach_woo_product_sale_border_radius = get_theme_mod('motivational_life_coach_woo_product_sale_border_radius');
    if($motivational_life_coach_woo_product_sale_border_radius != false){
        $motivational_life_coach_theme_css .='.woocommerce ul.products li.product .onsale{';
            $motivational_life_coach_theme_css .='border-radius: '.esc_attr($motivational_life_coach_woo_product_sale_border_radius).'px;';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Single Post Page Image Box Shadow -------------------*/

    $motivational_life_coach_single_post_page_image_box_shadow = get_theme_mod('motivational_life_coach_single_post_page_image_box_shadow',0);
    if($motivational_life_coach_single_post_page_image_box_shadow != false){
        $motivational_life_coach_theme_css .='.single-post .entry-header img{';
            $motivational_life_coach_theme_css .='box-shadow: '.esc_attr($motivational_life_coach_single_post_page_image_box_shadow).'px '.esc_attr($motivational_life_coach_single_post_page_image_box_shadow).'px '.esc_attr($motivational_life_coach_single_post_page_image_box_shadow).'px #cccccc;';
        $motivational_life_coach_theme_css .='}';
    }

     /*--------------------------- Single Post Page Image Border Radius -------------------*/

    $motivational_life_coach_single_post_page_image_border_radius = get_theme_mod('motivational_life_coach_single_post_page_image_border_radius', 0);
    if($motivational_life_coach_single_post_page_image_border_radius != false){
        $motivational_life_coach_theme_css .='.single-post .entry-header img{';
            $motivational_life_coach_theme_css .='border-radius: '.esc_attr($motivational_life_coach_single_post_page_image_border_radius).'px;';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Footer Background Image Position -------------------*/

    $motivational_life_coach_footer_bg_image_position = get_theme_mod( 'motivational_life_coach_footer_bg_image_position','scroll');
    if($motivational_life_coach_footer_bg_image_position == 'fixed'){
        $motivational_life_coach_theme_css .='#colophon{';
            $motivational_life_coach_theme_css .='background-attachment: fixed !important; background-position: center !important;';
        $motivational_life_coach_theme_css .='}';
    }elseif ($motivational_life_coach_footer_bg_image_position == 'scroll'){
        $motivational_life_coach_theme_css .='#colophon{';
            $motivational_life_coach_theme_css .='background-attachment: scroll !important; background-position: center !important;';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Footer Widget Heading Alignment -------------------*/

    $motivational_life_coach_footer_widget_heading_alignment = get_theme_mod( 'motivational_life_coach_footer_widget_heading_alignment','Left');
    if($motivational_life_coach_footer_widget_heading_alignment == 'Left'){
        $motivational_life_coach_theme_css .='#colophon h5, h5.footer-column-widget-title{';
        $motivational_life_coach_theme_css .='text-align: left;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_footer_widget_heading_alignment == 'Center'){
        $motivational_life_coach_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $motivational_life_coach_theme_css .='text-align: center;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_footer_widget_heading_alignment == 'Right'){
        $motivational_life_coach_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $motivational_life_coach_theme_css .='text-align: right;';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Footer background image -------------------*/

    $motivational_life_coach_footer_bg_image = get_theme_mod('motivational_life_coach_footer_bg_image');
    if($motivational_life_coach_footer_bg_image != false){
        $motivational_life_coach_theme_css .='#colophon{';
            $motivational_life_coach_theme_css .='background: url('.esc_attr($motivational_life_coach_footer_bg_image).');';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Copyright Background Color -------------------*/

    $motivational_life_coach_copyright_background_color = get_theme_mod('motivational_life_coach_copyright_background_color');
    if($motivational_life_coach_copyright_background_color != false){
        $motivational_life_coach_theme_css .='.footer_info{';
            $motivational_life_coach_theme_css .='background-color: '.esc_attr($motivational_life_coach_copyright_background_color).' !important;';
        $motivational_life_coach_theme_css .='}';
    } 

    /*--------------------------- Site Title And Tagline Color -------------------*/

    $motivational_life_coach_logo_title_color = get_theme_mod('motivational_life_coach_logo_title_color');
    if($motivational_life_coach_logo_title_color != false){
        $motivational_life_coach_theme_css .='p.site-title a, .navbar-brand a{';
            $motivational_life_coach_theme_css .='color: '.esc_attr($motivational_life_coach_logo_title_color).' !important;';
        $motivational_life_coach_theme_css .='}';
    }

    $motivational_life_coach_logo_tagline_color = get_theme_mod('motivational_life_coach_logo_tagline_color');
    if($motivational_life_coach_logo_tagline_color != false){
        $motivational_life_coach_theme_css .='.logo p.site-description, .navbar-brand p{';
            $motivational_life_coach_theme_css .='color: '.esc_attr($motivational_life_coach_logo_tagline_color).'  !important;';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Footer Widget Content Alignment -------------------*/

    $motivational_life_coach_footer_widget_content_alignment = get_theme_mod( 'motivational_life_coach_footer_widget_content_alignment','Left');
    if($motivational_life_coach_footer_widget_content_alignment == 'Left'){
        $motivational_life_coach_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
        $motivational_life_coach_theme_css .='text-align: left;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_footer_widget_content_alignment == 'Center'){
        $motivational_life_coach_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $motivational_life_coach_theme_css .='text-align: center;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_footer_widget_content_alignment == 'Right'){
        $motivational_life_coach_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $motivational_life_coach_theme_css .='text-align: right;';
        $motivational_life_coach_theme_css .='}';
    }

    /*--------------------------- Copyright Content Alignment -------------------*/

    $motivational_life_coach_copyright_content_alignment = get_theme_mod( 'motivational_life_coach_copyright_content_alignment','Center');
    if($motivational_life_coach_copyright_content_alignment == 'Left'){
        $motivational_life_coach_theme_css .='.footer-menu-left{';
        $motivational_life_coach_theme_css .='text-align: left;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_copyright_content_alignment == 'Center'){
        $motivational_life_coach_theme_css .='.footer-menu-left{';
            $motivational_life_coach_theme_css .='text-align: center;';
        $motivational_life_coach_theme_css .='}';
    }else if($motivational_life_coach_copyright_content_alignment == 'Right'){
        $motivational_life_coach_theme_css .='.footer-menu-left{';
            $motivational_life_coach_theme_css .='text-align: right;';
        $motivational_life_coach_theme_css .='}';
    }

    /*------------------ Nav Menus -------------------*/

    $motivational_life_coach_nav_menu = get_theme_mod( 'motivational_life_coach_nav_menu_text_transform','Capitalize');
    if($motivational_life_coach_nav_menu == 'Capitalize'){
        $motivational_life_coach_theme_css .='.main-navigation .menu > li > a{';
            $motivational_life_coach_theme_css .='text-transform:Capitalize;';
        $motivational_life_coach_theme_css .='}';
    }
    if($motivational_life_coach_nav_menu == 'Lowercase'){
        $motivational_life_coach_theme_css .='.main-navigation .menu > li > a{';
            $motivational_life_coach_theme_css .='text-transform:Lowercase;';
        $motivational_life_coach_theme_css .='}';
    }
    if($motivational_life_coach_nav_menu == 'Uppercase'){
        $motivational_life_coach_theme_css .='.main-navigation .menu > li > a{';
            $motivational_life_coach_theme_css .='text-transform:Uppercase;';
        $motivational_life_coach_theme_css .='}';
    }

    $motivational_life_coach_menu_font_size = get_theme_mod( 'motivational_life_coach_menu_font_size');
    if($motivational_life_coach_menu_font_size != ''){
        $motivational_life_coach_theme_css .='.main-navigation .menu > li > a{';
            $motivational_life_coach_theme_css .='font-size: '.esc_attr($motivational_life_coach_menu_font_size).'px;';
        $motivational_life_coach_theme_css .='}';
    }

    $motivational_life_coach_nav_menu_font_weight = get_theme_mod( 'motivational_life_coach_nav_menu_font_weight',500);
    if($motivational_life_coach_menu_font_size != ''){
        $motivational_life_coach_theme_css .='.main-navigation .menu > li > a{';
            $motivational_life_coach_theme_css .='font-weight: '.esc_attr($motivational_life_coach_nav_menu_font_weight).';';
        $motivational_life_coach_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/

    $motivational_life_coach_slider_content_layout = get_theme_mod( 'motivational_life_coach_slider_content_layout','Left');
    if($motivational_life_coach_slider_content_layout == 'Left'){
        $motivational_life_coach_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $motivational_life_coach_theme_css .='text-align : left;';
        $motivational_life_coach_theme_css .='}';
    }
    if($motivational_life_coach_slider_content_layout == 'Center'){
        $motivational_life_coach_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $motivational_life_coach_theme_css .='text-align : center;';
        $motivational_life_coach_theme_css .='}';
        $motivational_life_coach_theme_css .='.slider-inner-box{';
            $motivational_life_coach_theme_css .='right : 55%;';
        $motivational_life_coach_theme_css .='}';
    }
    if($motivational_life_coach_slider_content_layout == 'Right'){
        $motivational_life_coach_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $motivational_life_coach_theme_css .='text-align : right;';
        $motivational_life_coach_theme_css .='}';
        $motivational_life_coach_theme_css .='.slider-inner-box{';
            $motivational_life_coach_theme_css .='right : 55%; left: 20%;';
        $motivational_life_coach_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/
    $motivational_life_coach_slider_opacity_setting = get_theme_mod( 'motivational_life_coach_slider_opacity_setting',true);
    $motivational_life_coach_image_opacity_color = get_theme_mod( 'motivational_life_coach_image_opacity_color');
    $motivational_life_coach_slider_opacity = get_theme_mod( 'motivational_life_coach_slider_opacity');
    if( $motivational_life_coach_slider_opacity_setting != false) {
        $motivational_life_coach_theme_css .='.slider-box img{';
            $motivational_life_coach_theme_css .='opacity: '. $motivational_life_coach_slider_opacity. ';';
        $motivational_life_coach_theme_css .='}';
        if( $motivational_life_coach_image_opacity_color != '') {
            $motivational_life_coach_theme_css .='.slider-box {';
                $motivational_life_coach_theme_css .='background-color: '. $motivational_life_coach_image_opacity_color. ';';
            $motivational_life_coach_theme_css .='}';
        }
    } else {
        $motivational_life_coach_theme_css .='.slider-box img{';
            $motivational_life_coach_theme_css .='opacity: 1;';
        $motivational_life_coach_theme_css .='}';
    }

    /*------------------ Footer CSS -------------------*/
    $motivational_life_coach_footer_bg_color = get_theme_mod( 'motivational_life_coach_footer_bg_color');
    if($motivational_life_coach_footer_bg_color != '' ){
        $motivational_life_coach_theme_css .='#colophon {';
            $motivational_life_coach_theme_css .='background-color: '.esc_attr($motivational_life_coach_footer_bg_color).'; ';
        $motivational_life_coach_theme_css .='}';
    }

    $motivational_life_coach_footer_content_color = get_theme_mod( 'motivational_life_coach_footer_content_color');
    if($motivational_life_coach_footer_content_color != ''){
        $motivational_life_coach_theme_css .='#colophon, #colophon a, #colophon h5, #colophon .widget #wp-calendar caption {';
            $motivational_life_coach_theme_css .='color: '.esc_attr($motivational_life_coach_footer_content_color).';';
        $motivational_life_coach_theme_css .='}';
    }

    /*------------------ Copyright CSS -------------------*/
    $motivational_life_coach_copyright_text_color = get_theme_mod( 'motivational_life_coach_copyright_text_color');
    if($motivational_life_coach_copyright_text_color != ''){
        $motivational_life_coach_theme_css .='#colophon .site-info a, #colophon .site-info span {';
            $motivational_life_coach_theme_css .='color: '.esc_attr($motivational_life_coach_copyright_text_color).';';
        $motivational_life_coach_theme_css .='}';
    }

    /*-------------------- Heading typography -------------------*/

    $motivational_life_coach_heading_color = get_theme_mod('motivational_life_coach_heading_color');
    $motivational_life_coach_heading_font_family = get_theme_mod('motivational_life_coach_heading_font_family');
    $motivational_life_coach_heading_font_size = get_theme_mod('motivational_life_coach_heading_font_size');
    if($motivational_life_coach_heading_color != false || $motivational_life_coach_heading_font_family != false || $motivational_life_coach_heading_font_size != false){
        $motivational_life_coach_theme_css .='h1, h2, h3, h4, h5, h6, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, #latest_post h2, h2.woocommerce-loop-product__title, #colophon h5, .sidebar h5, .article-box h3.entry-title, .slider-inner-box h2, #top-slider .slider-inner-box h2, #top-slider .slider-inner-box h3, h2.wp-block-heading a, .featured h3.main-heading, .featured h4.main-heading, h5.slider-short, h5.box-title, h5.main-title, h5.class-title, h5.service-title, h6.box-short{';
            $motivational_life_coach_theme_css .='color: '.esc_attr($motivational_life_coach_heading_color).'!important; 
            font-family: '.esc_attr($motivational_life_coach_heading_font_family).'!important;
            font-size: '.esc_attr($motivational_life_coach_heading_font_size).'px !important;';
        $motivational_life_coach_theme_css .='}';
    }

    $motivational_life_coach_paragraph_color = get_theme_mod('motivational_life_coach_paragraph_color');
    $motivational_life_coach_paragraph_font_family = get_theme_mod('motivational_life_coach_paragraph_font_family');
    $motivational_life_coach_paragraph_font_size = get_theme_mod('motivational_life_coach_paragraph_font_size');
    if($motivational_life_coach_paragraph_color != false || $motivational_life_coach_paragraph_font_family != false || $motivational_life_coach_paragraph_font_size != false){
        $motivational_life_coach_theme_css .='p, p.site-title, span, .article-box p, ul, li{';
            $motivational_life_coach_theme_css .='color: '.esc_attr($motivational_life_coach_paragraph_color).'!important; 
            font-family: '.esc_attr($motivational_life_coach_paragraph_font_family).'!important;
            font-size: '.esc_attr($motivational_life_coach_paragraph_font_size).'px !important;';
        $motivational_life_coach_theme_css .='}';
    }