<?php

	$window_blinds_repair_tp_theme_css = "";

$window_blinds_repair_theme_lay = get_theme_mod( 'window_blinds_repair_tp_body_layout_settings','Full');
if($window_blinds_repair_theme_lay == 'Container'){
$window_blinds_repair_tp_theme_css .='body{';
	$window_blinds_repair_tp_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
$window_blinds_repair_tp_theme_css .='}';
$window_blinds_repair_tp_theme_css .='@media screen and (max-width:575px){';
		$window_blinds_repair_tp_theme_css .='body{';
			$window_blinds_repair_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left: 0px';
		$window_blinds_repair_tp_theme_css .='} }';
$window_blinds_repair_tp_theme_css .='.page-template-front-page .menubar{';
	$window_blinds_repair_tp_theme_css .='position: static;';
$window_blinds_repair_tp_theme_css .='}';
$window_blinds_repair_tp_theme_css .='.scrolled{';
	$window_blinds_repair_tp_theme_css .='width: auto; left:0; right:0;';
$window_blinds_repair_tp_theme_css .='}';
}else if($window_blinds_repair_theme_lay == 'Container Fluid'){
$window_blinds_repair_tp_theme_css .='body{';
	$window_blinds_repair_tp_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$window_blinds_repair_tp_theme_css .='}';
$window_blinds_repair_tp_theme_css .='@media screen and (max-width:575px){';
		$window_blinds_repair_tp_theme_css .='body{';
			$window_blinds_repair_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
		$window_blinds_repair_tp_theme_css .='} }';
$window_blinds_repair_tp_theme_css .='.page-template-front-page .menubar{';
	$window_blinds_repair_tp_theme_css .='width: 99%';
$window_blinds_repair_tp_theme_css .='}';		
$window_blinds_repair_tp_theme_css .='.scrolled{';
	$window_blinds_repair_tp_theme_css .='width: auto; left:0; right:0;';
$window_blinds_repair_tp_theme_css .='}';
}else if($window_blinds_repair_theme_lay == 'Full'){
$window_blinds_repair_tp_theme_css .='body{';
	$window_blinds_repair_tp_theme_css .='max-width: 100%;';
$window_blinds_repair_tp_theme_css .='}';
}

$window_blinds_repair_scroll_position = get_theme_mod( 'window_blinds_repair_scroll_top_position','Right');
if($window_blinds_repair_scroll_position == 'Right'){
$window_blinds_repair_tp_theme_css .='#return-to-top{';
    $window_blinds_repair_tp_theme_css .='right: 20px;';
$window_blinds_repair_tp_theme_css .='}';
}else if($window_blinds_repair_scroll_position == 'Left'){
$window_blinds_repair_tp_theme_css .='#return-to-top{';
    $window_blinds_repair_tp_theme_css .='left: 20px;';
$window_blinds_repair_tp_theme_css .='}';
}else if($window_blinds_repair_scroll_position == 'Center'){
$window_blinds_repair_tp_theme_css .='#return-to-top{';
    $window_blinds_repair_tp_theme_css .='right: 50%;left: 50%;';
$window_blinds_repair_tp_theme_css .='}';
}

    
//Social icon Font size
$window_blinds_repair_social_icon_fontsize = get_theme_mod('window_blinds_repair_social_icon_fontsize');
	$window_blinds_repair_tp_theme_css .='.media-links a i{';
$window_blinds_repair_tp_theme_css .='font-size: '.esc_attr($window_blinds_repair_social_icon_fontsize).'px;';
$window_blinds_repair_tp_theme_css .='}';

// site title font size option
$window_blinds_repair_site_title_font_size = get_theme_mod('window_blinds_repair_site_title_font_size', 25);{
$window_blinds_repair_tp_theme_css .='.logo h1 , .logo p a{';
	$window_blinds_repair_tp_theme_css .='font-size: '.esc_attr($window_blinds_repair_site_title_font_size).'px;';
$window_blinds_repair_tp_theme_css .='}';
}

//site tagline font size option
$window_blinds_repair_site_tagline_font_size = get_theme_mod('window_blinds_repair_site_tagline_font_size', 15);{
$window_blinds_repair_tp_theme_css .='.logo p{';
	$window_blinds_repair_tp_theme_css .='font-size: '.esc_attr($window_blinds_repair_site_tagline_font_size).'px;';
$window_blinds_repair_tp_theme_css .='}';
}

// related post
$window_blinds_repair_related_post_mob = get_theme_mod('window_blinds_repair_related_post_mob', true);
$window_blinds_repair_related_post = get_theme_mod('window_blinds_repair_remove_related_post', true);
$window_blinds_repair_tp_theme_css .= '.related-post-block {';
if ($window_blinds_repair_related_post == false) {
    $window_blinds_repair_tp_theme_css .= 'display: none;';
}
$window_blinds_repair_tp_theme_css .= '}';
$window_blinds_repair_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($window_blinds_repair_related_post == false || $window_blinds_repair_related_post_mob == false) {
    $window_blinds_repair_tp_theme_css .= '.related-post-block { display: none; }';
}
$window_blinds_repair_tp_theme_css .= '}';

//return to header mobile				
$window_blinds_repair_return_to_header_mob = get_theme_mod('window_blinds_repair_return_to_header_mob', true);
$window_blinds_repair_return_to_header = get_theme_mod('window_blinds_repair_return_to_header', true);
$window_blinds_repair_tp_theme_css .= '.return-to-header{';
if ($window_blinds_repair_return_to_header == false) {
    $window_blinds_repair_tp_theme_css .= 'display: none;';
}
$window_blinds_repair_tp_theme_css .= '}';
$window_blinds_repair_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($window_blinds_repair_return_to_header == false || $window_blinds_repair_return_to_header_mob == false) {
    $window_blinds_repair_tp_theme_css .= '.return-to-header{ display: none; }';
}
$window_blinds_repair_tp_theme_css .= '}';

//blog description              
$window_blinds_repair_mobile_blog_description = get_theme_mod('window_blinds_repair_mobile_blog_description', true);
$window_blinds_repair_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($window_blinds_repair_mobile_blog_description == false) {
    $window_blinds_repair_tp_theme_css .= '.blog-description{ display: none; }';
}
$window_blinds_repair_tp_theme_css .= '}';

//footer image
$window_blinds_repair_footer_widget_image = get_theme_mod('window_blinds_repair_footer_widget_image');
if($window_blinds_repair_footer_widget_image != false){
$window_blinds_repair_tp_theme_css .='#footer{';
	$window_blinds_repair_tp_theme_css .='background: url('.esc_attr($window_blinds_repair_footer_widget_image).');';
$window_blinds_repair_tp_theme_css .='}';
}

// related product
$window_blinds_repair_related_product = get_theme_mod('window_blinds_repair_related_product',true);
if($window_blinds_repair_related_product == false){
$window_blinds_repair_tp_theme_css .='.related.products{';
	$window_blinds_repair_tp_theme_css .='display: none;';
$window_blinds_repair_tp_theme_css .='}';
}

//menu font size
$window_blinds_repair_menu_font_size = get_theme_mod('window_blinds_repair_menu_font_size', '');{
$window_blinds_repair_tp_theme_css .='.main-navigation a, .main-navigation li.page_item_has_children:after,.main-navigation li.menu-item-has-children:after{';
	$window_blinds_repair_tp_theme_css .='font-size: '.esc_attr($window_blinds_repair_menu_font_size).'px;';
$window_blinds_repair_tp_theme_css .='}';
}

// menu text tranform
$window_blinds_repair_menu_text_tranform = get_theme_mod( 'window_blinds_repair_menu_text_tranform','');
if($window_blinds_repair_menu_text_tranform == 'Uppercase'){
$window_blinds_repair_tp_theme_css .='.main-navigation a {';
	$window_blinds_repair_tp_theme_css .='text-transform: uppercase;';
$window_blinds_repair_tp_theme_css .='}';
}else if($window_blinds_repair_menu_text_tranform == 'Lowercase'){
$window_blinds_repair_tp_theme_css .='.main-navigation a {';
	$window_blinds_repair_tp_theme_css .='text-transform: lowercase;';
$window_blinds_repair_tp_theme_css .='}';
}
else if($window_blinds_repair_menu_text_tranform == 'Capitalize'){
$window_blinds_repair_tp_theme_css .='.main-navigation a {';
	$window_blinds_repair_tp_theme_css .='text-transform: capitalize;';
$window_blinds_repair_tp_theme_css .='}';
}

// header
$window_blinds_repair_slider_arrows = get_theme_mod('window_blinds_repair_slider_arrows',true);
if($window_blinds_repair_slider_arrows == false){
$window_blinds_repair_tp_theme_css .='.page-template-front-page .menubox{';
	$window_blinds_repair_tp_theme_css .='position:static;';
$window_blinds_repair_tp_theme_css .='}';
$window_blinds_repair_tp_theme_css .='.page-template-front-page .logo:after{';
	$window_blinds_repair_tp_theme_css .='content:none;';
$window_blinds_repair_tp_theme_css .='}';
}

/*------------- Blog Page------------------*/
	$window_blinds_repair_post_image_round = get_theme_mod('window_blinds_repair_post_image_round', 0);
	if($window_blinds_repair_post_image_round != false){
		$window_blinds_repair_tp_theme_css .='.blog .box-image img{';
			$window_blinds_repair_tp_theme_css .='border-radius: '.esc_attr($window_blinds_repair_post_image_round).'px;';
		$window_blinds_repair_tp_theme_css .='}';
	}

	$window_blinds_repair_post_image_width = get_theme_mod('window_blinds_repair_post_image_width', '');
	if($window_blinds_repair_post_image_width != false){
		$window_blinds_repair_tp_theme_css .='.blog .box-image img{';
			$window_blinds_repair_tp_theme_css .='Width: '.esc_attr($window_blinds_repair_post_image_width).'px;';
		$window_blinds_repair_tp_theme_css .='}';
	}

	$window_blinds_repair_post_image_length = get_theme_mod('window_blinds_repair_post_image_length', '');
	if($window_blinds_repair_post_image_length != false){
		$window_blinds_repair_tp_theme_css .='.blog .box-image img{';
			$window_blinds_repair_tp_theme_css .='height: '.esc_attr($window_blinds_repair_post_image_length).'px;';
		$window_blinds_repair_tp_theme_css .='}';
	}

	// footer widget title font size
	$window_blinds_repair_footer_widget_title_font_size = get_theme_mod('window_blinds_repair_footer_widget_title_font_size', '');{
	$window_blinds_repair_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
		$window_blinds_repair_tp_theme_css .='font-size: '.esc_attr($window_blinds_repair_footer_widget_title_font_size).'px;';
	$window_blinds_repair_tp_theme_css .='}';
	}

	// Copyright text font size
	$window_blinds_repair_footer_copyright_font_size = get_theme_mod('window_blinds_repair_footer_copyright_font_size', '');{
	$window_blinds_repair_tp_theme_css .='#footer .site-info p{';
		$window_blinds_repair_tp_theme_css .='font-size: '.esc_attr($window_blinds_repair_footer_copyright_font_size).'px;';
	$window_blinds_repair_tp_theme_css .='}';
	}

	// copyright padding
	$window_blinds_repair_footer_copyright_top_bottom_padding = get_theme_mod('window_blinds_repair_footer_copyright_top_bottom_padding', '');
	if ($window_blinds_repair_footer_copyright_top_bottom_padding !== '') { 
	    $window_blinds_repair_tp_theme_css .= '.site-info {';
	    $window_blinds_repair_tp_theme_css .= 'padding-top: ' . esc_attr($window_blinds_repair_footer_copyright_top_bottom_padding) . 'px;';
	    $window_blinds_repair_tp_theme_css .= 'padding-bottom: ' . esc_attr($window_blinds_repair_footer_copyright_top_bottom_padding) . 'px;';
	    $window_blinds_repair_tp_theme_css .= '}';
	}

	// copyright position
	$window_blinds_repair_copyright_text_position = get_theme_mod( 'window_blinds_repair_copyright_text_position','Center');
	if($window_blinds_repair_copyright_text_position == 'Center'){
	$window_blinds_repair_tp_theme_css .='#footer .site-info p{';
	$window_blinds_repair_tp_theme_css .='text-align:center;';
	$window_blinds_repair_tp_theme_css .='}';
	}else if($window_blinds_repair_copyright_text_position == 'Left'){
	$window_blinds_repair_tp_theme_css .='#footer .site-info p{';
	$window_blinds_repair_tp_theme_css .='text-align:left;';
	$window_blinds_repair_tp_theme_css .='}';
	}else if($window_blinds_repair_copyright_text_position == 'Right'){
	$window_blinds_repair_tp_theme_css .='#footer .site-info p{';
	$window_blinds_repair_tp_theme_css .='text-align:right;';
	$window_blinds_repair_tp_theme_css .='}';
}

// Header Image title font size
$window_blinds_repair_header_image_title_font_size = get_theme_mod('window_blinds_repair_header_image_title_font_size', '32');{
$window_blinds_repair_tp_theme_css .='.box-text h2{';
    $window_blinds_repair_tp_theme_css .='font-size: '.esc_attr($window_blinds_repair_header_image_title_font_size).'px;';
$window_blinds_repair_tp_theme_css .='}';
}


/*--------------------------- banner image Opacity -------------------*/
    $window_blinds_repair_theme_lay = get_theme_mod( 'window_blinds_repair_header_banner_opacity_color','0.5');
        if($window_blinds_repair_theme_lay == '0'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.1'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.1';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.2'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.2';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.3'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.3';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.4'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.4';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.5'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.5';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.6'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.6';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.7'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.7';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.8'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.8';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '0.9'){
            $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
                $window_blinds_repair_tp_theme_css .='opacity:0.9';
            $window_blinds_repair_tp_theme_css .='}';
        }else if($window_blinds_repair_theme_lay == '1'){
            $window_blinds_repair_tp_theme_css .='#slider img{';
                $window_blinds_repair_tp_theme_css .='opacity:1';
            $window_blinds_repair_tp_theme_css .='}';
        }

    $window_blinds_repair_header_banner_image_overlay = get_theme_mod('window_blinds_repair_header_banner_image_overlay', true);
    if($window_blinds_repair_header_banner_image_overlay == false){
        $window_blinds_repair_tp_theme_css .='.single-page-img, .featured-image{';
            $window_blinds_repair_tp_theme_css .='opacity:1;';
        $window_blinds_repair_tp_theme_css .='}';
    }

    $window_blinds_repair_header_banner_image_ooverlay_color = get_theme_mod('window_blinds_repair_header_banner_image_ooverlay_color', true);
    if($window_blinds_repair_header_banner_image_ooverlay_color != false){
        $window_blinds_repair_tp_theme_css .='.box-image-page{';
            $window_blinds_repair_tp_theme_css .='background-color: '.esc_attr($window_blinds_repair_header_banner_image_ooverlay_color).';';
        $window_blinds_repair_tp_theme_css .='}';
    }
