<?php

	$marketr_pix_theme_css = "";


	// site title and tagline font size option
	$marketr_title_font_size = get_theme_mod('marketr_title_font_size', 22);{
		$marketr_pix_theme_css .='.site-header .site-branding .site-title a {';
	$marketr_pix_theme_css .='font-size: '.esc_attr($marketr_title_font_size).'px;!important';
		$marketr_pix_theme_css .='}';
	}

	// site title and tagline font size option
	$marketr_site_tagline_font_size = get_theme_mod('marketr_site_tagline_font_size', 14);{
		$marketr_pix_theme_css .='.site-header .site-branding .site-description  {';
	$marketr_pix_theme_css .='font-size: '.esc_attr($marketr_site_tagline_font_size).'px;!important';
		$marketr_pix_theme_css .='}';
	}
	
	//Font Weight
	$marketr_menu_font_weight = get_theme_mod( 'marketr_menu_font_weight','');
	if($marketr_menu_font_weight == '100'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 100;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_font_weight == '200'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 200;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_font_weight == '300'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 300;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_font_weight == '400'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 400;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_font_weight == '500'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 500;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_font_weight == '600'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 600;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_font_weight == '700'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 700;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_font_weight == '800'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 800;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_font_weight == '900'){
	$marketr_pix_theme_css .='.nav_menu li a {';
		$marketr_pix_theme_css .='font-weight: 900;';
	$marketr_pix_theme_css .='}';
	}

	// menu text transform
	$marketr_menu_text_tranform = get_theme_mod( 'marketr_menu_text_tranform','Capitalize');
	if($marketr_menu_text_tranform == 'Uppercase'){
	$marketr_pix_theme_css .='.nav_menu li a  {';
		$marketr_pix_theme_css .='text-transform: uppercase;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_menu_text_tranform == 'Lowercase'){
	$marketr_pix_theme_css .='.nav_menu li a  {';
		$marketr_pix_theme_css .='text-transform: lowercase;';
	$marketr_pix_theme_css .='}';
	}
	else if($marketr_menu_text_tranform == 'Capitalize'){
	$marketr_pix_theme_css .='.nav_menu li a  {';
		$marketr_pix_theme_css .='text-transform: capitalize;';
	$marketr_pix_theme_css .='}';
	}

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

	//Add Settings and Controls for Scroll top
	$marketr_scroll_top_position = get_theme_mod( 'marketr_scroll_top_position','Right');
	if($marketr_scroll_top_position == 'Right'){
	$marketr_pix_theme_css .='#return-to-top{';
	    $marketr_pix_theme_css .='right: 20px;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_scroll_top_position == 'Left'){
	$marketr_pix_theme_css .='#return-to-top{';
	    $marketr_pix_theme_css .='left: 20px;';
	$marketr_pix_theme_css .='}';
	}else if($marketr_scroll_top_position == 'Center'){
	$marketr_pix_theme_css .='#return-to-top{';
	    $marketr_pix_theme_css .='right: 50%;left: 50%;';
	$marketr_pix_theme_css .='}';
	}


	// footer widget option 


	$marketr_footer_widget_background_color = get_theme_mod('marketr_footer_widget_background_color');
			if ($marketr_footer_widget_background_color) {

				$marketr_pix_theme_css .= "
					.top-footer {
						background-color: ". esc_attr($marketr_footer_widget_background_color) .";
					}
				";
			}

			$marketr_footer_widget_background_image = get_theme_mod('marketr_footer_widget_background_image');
			if ($marketr_footer_widget_background_image) {
				$marketr_pix_theme_css .= "
					.top-footer {
						background-image: url(" . esc_url($marketr_footer_widget_background_image) . ");
					}
				";
			}