<?php function alhena_lite_css_custom() { ?>

<style type="text/css">

<?php

/* =================== BODY STYLE =================== */

	if ( get_theme_mod('wip_full_image_background') == "on" )
		echo "body {  -webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;}"; 


/* =================== BEGIN PAGE WIDTH =================== */

	if (alhena_lite_setting('wip_screen1')) {
	
		echo "@media (min-width:768px){.container{width:".esc_html(alhena_lite_setting('wip_screen1'))."px}}"; 
		echo "@media (min-width:768px){.container.block{width:" . (esc_html(alhena_lite_setting('wip_screen1'))-10) . "px}}"; 
		echo "@media (min-width:768px){.container.grid-container{width:" . (esc_html(alhena_lite_setting('wip_screen1'))-20) . "px}}"; 
	}
	
	if (alhena_lite_setting('wip_screen2')) {
		
		echo "@media (min-width:992px){.container{width:".esc_html(alhena_lite_setting('wip_screen2'))."px}}"; 
		echo "@media (min-width:992px){.container.block{width:" . (esc_html(alhena_lite_setting('wip_screen2'))-10) . "px}}"; 
		echo "@media (min-width:768px){.container.grid-container{width:" . (esc_html(alhena_lite_setting('wip_screen2'))-20) . "px}}"; 
	}
	
	if (alhena_lite_setting('wip_screen3'))  {
		
		echo "@media (min-width:1200px){.container{width:".esc_html(alhena_lite_setting('wip_screen3'))."px}}"; 
		echo "@media (min-width:1200px){.container.block{width:" . (esc_html(alhena_lite_setting('wip_screen3'))-10) . "px}}"; 
		echo "@media (min-width:768px){.container.grid-container{width:" . (esc_html(alhena_lite_setting('wip_screen3'))-20) . "px}}"; 
	}
	
/* =================== END PAGE WIDTH =================== */

/* =================== BEGIN LOGO STYLE =================== */

	$logostyle = '';
	/* Logo Font */
	if (alhena_lite_setting('wip_logo_font')) 
		$logostyle .= "font-family:'".esc_html(alhena_lite_setting('wip_logo_font'))."',Verdana, Geneva, sans-serif;"; 

	/* Logo Font Size */
	if (alhena_lite_setting('wip_logo_font_size')) 
		$logostyle .= "font-size:".esc_html(alhena_lite_setting('wip_logo_font_size')).";"; 
	
	if ($logostyle)
		echo '#logo a.logo { '.$logostyle.' } ';

/* =================== END LOGO STYLE =================== */

/* =================== BEGIN NAV STYLE =================== */

	$navstyle = '';

	/* Nav Font */
	if (alhena_lite_setting('wip_menu_font')) 
		$navstyle .= "font-family:'".esc_html(alhena_lite_setting('wip_menu_font'))."',Verdana, Geneva, sans-serif;"; 

	/* Nav  Font Size */
	if (alhena_lite_setting('wip_menu_font_size')) 
		$navstyle .= "font-size:".esc_html(alhena_lite_setting('wip_menu_font_size')).";"; 
	
	/* Nav  Font Color */
	if (alhena_lite_setting('wip_menu_font_color')) 
		$navstyle .= "color:".esc_html(alhena_lite_setting('wip_menu_font_color')).";"; 
	
	if ($navstyle)
		echo 'nav#mainmenu ul li a { '.$navstyle.' } ';

	if ( alhena_lite_setting('wip_menu_font_weight') )
		echo "nav#mainmenu ul li a { font-weight:" . esc_html(alhena_lite_setting('wip_menu_font_weight')) . ";}"; 
		
	if ( alhena_lite_setting('wip_menu_text_transform') )
		echo "nav#mainmenu ul li a { text-transform:" . esc_html(alhena_lite_setting('wip_menu_text_transform')) . ";}"; 

/* =================== END NAV STYLE =================== */

/* =================== BEGIN CONTENT STYLE =================== */

	if (alhena_lite_setting('wip_content_font_size')) 
		echo ".article p, .article li, .article address, .article dd, .article blockquote, .article td, .article th, p, li, address, dd, blockquote, td, th, .textwidget, .button, .entry-info  { font-size:".esc_html(alhena_lite_setting('wip_content_font_size'))."}"; 

/* =================== END NAV STYLE =================== */

/* =================== START TITLE STYLE =================== */

	if (alhena_lite_setting('wip_h1_font_size')) 
		echo "h1 {font-size:".esc_html(alhena_lite_setting('wip_h1_font_size'))." !important; }"; 
	if (alhena_lite_setting('wip_h2_font_size')) 
		echo "h2 { font-size:".esc_html(alhena_lite_setting('wip_h2_font_size'))." !important; }"; 
	if (alhena_lite_setting('wip_h3_font_size')) 
		echo "h3 { font-size:".esc_html(alhena_lite_setting('wip_h3_font_size'))." !important; }"; 
	if (alhena_lite_setting('wip_h4_font_size')) 
		echo "h4 { font-size:".esc_html(alhena_lite_setting('wip_h4_font_size'))." !important; }"; 
	if (alhena_lite_setting('wip_h5_font_size')) 
		echo "h5 { font-size:".esc_html(alhena_lite_setting('wip_h5_font_size'))." !important; }"; 
	if (alhena_lite_setting('wip_h6_font_size')) 
		echo "h6 { font-size:".esc_html(alhena_lite_setting('wip_h6_font_size'))." !important; }"; 

	if (alhena_lite_setting('wip_titles_font_weight')) 
		echo ".title a, h1.title, h2.title, h3.title, h4.title, h5.title, h6.title, h1, h2, h3, h4, h5, h6  { font-weight:".esc_html(alhena_lite_setting('wip_titles_font_weight')).";}"; 
	
	if (alhena_lite_setting('wip_titles_text_transform')) 
		echo ".title a, h1.title, h2.title, h3.title, h4.title, h5.title, h6.title, h1, h2, h3, h4, h5, h6  { text-transform:".esc_html(alhena_lite_setting('wip_titles_text_transform')).";}"; 

/* =================== END TITLE STYLE =================== */

/* =================== START REV SLIDER STYLE =================== */

	if (alhena_lite_setting('wip_revslider_font')) 
		echo ".tp-caption { font-family:'".esc_html(alhena_lite_setting('wip_revslider_font'))."',Verdana, Geneva, sans-serif !important ; }"; 

/* =================== END REV SLIDER STYLE =================== */

?>

</style>
    
<?php }

add_action('wp_head', 'alhena_lite_css_custom');

?>