<?php

	$weight_loss_center_tp_theme_css = "";

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

		$weight_loss_center_tp_theme_css .='@media screen and (max-width:575px){';
		$weight_loss_center_tp_theme_css .='body{';
			$weight_loss_center_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
		$weight_loss_center_tp_theme_css .='} }';

		$weight_loss_center_tp_theme_css .='.page-template-front-page .menubar{';
			$weight_loss_center_tp_theme_css .='width: 99%';
		$weight_loss_center_tp_theme_css .='}';		
		$weight_loss_center_tp_theme_css .='.scrolled{';
			$weight_loss_center_tp_theme_css .='width: auto; left:0; right:0;';
		$weight_loss_center_tp_theme_css .='}';
	}else if($weight_loss_center_theme_lay == 'Full'){
		$weight_loss_center_tp_theme_css .='body{';
			$weight_loss_center_tp_theme_css .='max-width: 100%;';
		$weight_loss_center_tp_theme_css .='}';
	}

//scrol-top
$weight_loss_center_scroll_position = get_theme_mod( 'weight_loss_center_scroll_top_position','Right');
if($weight_loss_center_scroll_position == 'Right'){
$weight_loss_center_tp_theme_css .='#return-to-top{';
    $weight_loss_center_tp_theme_css .='right: 20px;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_scroll_position == 'Left'){
$weight_loss_center_tp_theme_css .='#return-to-top{';
    $weight_loss_center_tp_theme_css .='left: 20px;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_scroll_position == 'Center'){
$weight_loss_center_tp_theme_css .='#return-to-top{';
    $weight_loss_center_tp_theme_css .='right: 50%;left: 50%;';
$weight_loss_center_tp_theme_css .='}';
}


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

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

// related post
$weight_loss_center_related_post_mob = get_theme_mod('weight_loss_center_related_post_mob', true);
$weight_loss_center_related_post = get_theme_mod('weight_loss_center_remove_related_post', true);
$weight_loss_center_tp_theme_css .= '.related-post-block {';
if ($weight_loss_center_related_post == false) {
    $weight_loss_center_tp_theme_css .= 'display: none;';
}
$weight_loss_center_tp_theme_css .= '}';
$weight_loss_center_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($weight_loss_center_related_post == false || $weight_loss_center_related_post_mob == false) {
    $weight_loss_center_tp_theme_css .= '.related-post-block { display: none; }';
}
$weight_loss_center_tp_theme_css .= '}';

// slider btn
$weight_loss_center_slider_button_mob = get_theme_mod('weight_loss_center_slider_button_mob', true);
$weight_loss_center_slider_button = get_theme_mod('weight_loss_center_slider_button', true);
$weight_loss_center_tp_theme_css .= '#slider .more-btn {';
if ($weight_loss_center_slider_button == false) {
    $weight_loss_center_tp_theme_css .= 'display: none;';
}
$weight_loss_center_tp_theme_css .= '}';
$weight_loss_center_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($weight_loss_center_slider_button == false || $weight_loss_center_slider_button_mob == false) {
    $weight_loss_center_tp_theme_css .= '#slider .more-btn { display: none; }';
}
$weight_loss_center_tp_theme_css .= '}';

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

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

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

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

//menu font size
$weight_loss_center_menu_font_size = get_theme_mod('weight_loss_center_menu_font_size', 17);{
$weight_loss_center_tp_theme_css .='.main-navigation a, .main-navigation li.page_item_has_children:after,.main-navigation li.menu-item-has-children:after{';
	$weight_loss_center_tp_theme_css .='font-size: '.esc_attr($weight_loss_center_menu_font_size).'px;';
$weight_loss_center_tp_theme_css .='}';
}
// //menu font weight
// $weight_loss_center_menu_font_weight = get_theme_mod('weight_loss_center_menu_font_weight', 400);{
// $weight_loss_center_tp_theme_css .='.main-navigation a{';
// 	$weight_loss_center_tp_theme_css .='font-weight: '.esc_attr($weight_loss_center_menu_font_weight).';';
// $weight_loss_center_tp_theme_css .='}';
// }
//======================= slider Content layout ===================== //

$weight_loss_center_slider_content_layout = get_theme_mod('weight_loss_center_slider_content_layout', 'LEFT-ALIGN'); 
$weight_loss_center_tp_theme_css .= '#slider .carousel-caption{';
switch ($weight_loss_center_slider_content_layout) {
    case 'LEFT-ALIGN':
        $weight_loss_center_tp_theme_css .= 'text-align:left; right: 45%; left: 15%';
        break;
    case 'CENTER-ALIGN':
        $weight_loss_center_tp_theme_css .= 'text-align:center; left: 15%; right: 15%';
        break;
    case 'RIGHT-ALIGN':
        $weight_loss_center_tp_theme_css .= 'text-align:right; left: 45%; right: 15%';
        break;
    default:
        $weight_loss_center_tp_theme_css .= 'text-align:left; right: 45%; left: 15%';
        break;
}
$weight_loss_center_tp_theme_css .= '}';



//sale position
$weight_loss_center_scroll_position = get_theme_mod( 'weight_loss_center_sale_tag_position','right');
if($weight_loss_center_scroll_position == 'right'){
$weight_loss_center_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $weight_loss_center_tp_theme_css .='right: 25px !important;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_scroll_position == 'left'){
$weight_loss_center_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $weight_loss_center_tp_theme_css .='left: 25px !important;';
$weight_loss_center_tp_theme_css .='}';
}

//Font Weight
$weight_loss_center_menu_font_weight = get_theme_mod( 'weight_loss_center_menu_font_weight','400');
if($weight_loss_center_menu_font_weight == '100'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 100;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_menu_font_weight == '200'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 200;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_menu_font_weight == '300'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 300;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_menu_font_weight == '400'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 400;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_menu_font_weight == '500'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 500;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_menu_font_weight == '600'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 600;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_menu_font_weight == '700'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 700;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_menu_font_weight == '800'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 800;';
$weight_loss_center_tp_theme_css .='}';
}else if($weight_loss_center_menu_font_weight == '900'){
$weight_loss_center_tp_theme_css .='.main-navigation a{';
    $weight_loss_center_tp_theme_css .='font-weight: 900;';
$weight_loss_center_tp_theme_css .='}';
}

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

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

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

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

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

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

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

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

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

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

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