<?php

	$pixel_transport_pix_theme_css = "";


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

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

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

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

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


	// footer widget option 

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

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

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