<?php

    $construction_demolition_services_theme_css= "";

    /*--------------------------- Scroll to top positions -------------------*/

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

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

    $construction_demolition_services_nav_menu = get_theme_mod( 'construction_demolition_services_nav_menu_text_transform','Capitalize');
    if($construction_demolition_services_nav_menu == 'Capitalize'){
        $construction_demolition_services_theme_css .='.site-navigation .primary-menu > li a{';
            $construction_demolition_services_theme_css .='text-transform:Capitalize;';
        $construction_demolition_services_theme_css .='}';
    }
    if($construction_demolition_services_nav_menu == 'Lowercase'){
        $construction_demolition_services_theme_css .='.site-navigation .primary-menu > li a{';
            $construction_demolition_services_theme_css .='text-transform:Lowercase;';
        $construction_demolition_services_theme_css .='}';
    }
    if($construction_demolition_services_nav_menu == 'Uppercase'){
        $construction_demolition_services_theme_css .='.site-navigation .primary-menu > li a{';
            $construction_demolition_services_theme_css .='text-transform:Uppercase;';
        $construction_demolition_services_theme_css .='}';
    }

    $construction_demolition_services_menu_font_size = get_theme_mod( 'construction_demolition_services_menu_font_size');
    if($construction_demolition_services_menu_font_size != ''){
        $construction_demolition_services_theme_css .='.site-navigation .primary-menu > li a{';
            $construction_demolition_services_theme_css .='font-size: '.esc_attr($construction_demolition_services_menu_font_size).'px;';
        $construction_demolition_services_theme_css .='}';
    }

    $construction_demolition_services_nav_menu_font_weight = get_theme_mod( 'construction_demolition_services_nav_menu_font_weight',400);
    if($construction_demolition_services_menu_font_size != ''){
        $construction_demolition_services_theme_css .='.site-navigation .primary-menu > li a{';
            $construction_demolition_services_theme_css .='font-weight: '.esc_attr($construction_demolition_services_nav_menu_font_weight).';';
        $construction_demolition_services_theme_css .='}';
    }

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

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

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

    $construction_demolition_services_heading_color = get_theme_mod('construction_demolition_services_heading_color');
    $construction_demolition_services_heading_font_family = get_theme_mod('construction_demolition_services_heading_font_family');
    $construction_demolition_services_heading_font_size = get_theme_mod('construction_demolition_services_heading_font_size');
    if($construction_demolition_services_heading_color != false || $construction_demolition_services_heading_font_family != false || $construction_demolition_services_heading_font_size != false){
        $construction_demolition_services_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, #top-slider .slider-inner-box h3, .featured h3.main-heading, .article-box h3.entry-title, .featured h4.main-heading, #colophon h5, .sidebar h5{';
            $construction_demolition_services_theme_css .='color: '.esc_attr($construction_demolition_services_heading_color).'!important; 
            font-family: '.esc_attr($construction_demolition_services_heading_font_family).'!important;
            font-size: '.esc_attr($construction_demolition_services_heading_font_size).'px !important;';
        $construction_demolition_services_theme_css .='}';
    }

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

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

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

    /*------------------ Slider CSS -------------------*/
    $construction_demolition_services_slider_opacity_setting = get_theme_mod( 'construction_demolition_services_slider_opacity_setting',true);
    $construction_demolition_services_image_opacity_color = get_theme_mod( 'construction_demolition_services_image_opacity_color');
    $construction_demolition_services_slider_opacity = get_theme_mod( 'construction_demolition_services_slider_opacity');
    if( $construction_demolition_services_slider_opacity_setting != false) {
        $construction_demolition_services_theme_css .='.main-slider img{';
            $construction_demolition_services_theme_css .='opacity: '. $construction_demolition_services_slider_opacity. ';';
        $construction_demolition_services_theme_css .='}';
        if( $construction_demolition_services_image_opacity_color != '') {
            $construction_demolition_services_theme_css .='.main-slider{';
                $construction_demolition_services_theme_css .='background-color: '. $construction_demolition_services_image_opacity_color. ';';
            $construction_demolition_services_theme_css .='}';
        }
    } else {
        $construction_demolition_services_theme_css .='.main-slider img{';
            $construction_demolition_services_theme_css .='opacity: 1;';
        $construction_demolition_services_theme_css .='}';
    }

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

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

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

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

    $construction_demolition_services_first_color = get_theme_mod('construction_demolition_services_first_color');
    $construction_demolition_services_second_color = get_theme_mod('construction_demolition_services_second_color');

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

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

    /*--------------------------- Featured Image Border Radius -------------------*/

    $construction_demolition_services_post_page_image_border_radius = get_theme_mod('construction_demolition_services_post_page_image_border_radius', 0);
    if($construction_demolition_services_post_page_image_border_radius != false){
        $construction_demolition_services_theme_css .='.article-box img{';
            $construction_demolition_services_theme_css .='border-radius: '.esc_attr($construction_demolition_services_post_page_image_border_radius).'px;';
        $construction_demolition_services_theme_css .='}';
    }

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

    $construction_demolition_services_post_page_image_box_shadow = get_theme_mod('construction_demolition_services_post_page_image_box_shadow',0);
    if($construction_demolition_services_post_page_image_box_shadow != false){
        $construction_demolition_services_theme_css .='.article-box img{';
            $construction_demolition_services_theme_css .='box-shadow: '.esc_attr($construction_demolition_services_post_page_image_box_shadow).'px '.esc_attr($construction_demolition_services_post_page_image_box_shadow).'px '.esc_attr($construction_demolition_services_post_page_image_box_shadow).'px #cccccc;';
        $construction_demolition_services_theme_css .='}';
    }

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

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

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

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

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

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