<?php
if(isset($_COOKIE['redcolor'])){
	$ale_redcolor=$_COOKIE['redcolor'];
}
else {
	$ale_redcolor=ale_get_option('redcolor');
}

$ale_bodycolor = '';
$ale_background = ale_get_option('background');

if(isset($_COOKIE['background'])){
	$ale_bodycolor=$_COOKIE['background'];
}
else {
	$ale_bodycolor = $ale_background['image'];
}

$ale_font = ale_get_option('stylebody');

$ale_arial=ale_get_option("font-a");
$ale_montserrat=ale_get_option("font-m");
$ale_raleway=ale_get_option("font-r");
$ale_opensans=ale_get_option("font-o");
$ale_body_m=ale_get_option("bodyfont-m1");
$ale_body_r=ale_get_option("bodyfont-r1");
$ale_body_o=ale_get_option("bodyfont-o1");
$ale_h1 = ale_get_option('style-h1');
$ale_h2 = ale_get_option('style-h2');
$ale_h3 = ale_get_option('style-h3');
$ale_h4 = ale_get_option('style-h4');
$ale_h5 = ale_get_option('style-h5');
$ale_h6 = ale_get_option('style-h6');
?>
<?php
if(ale_get_option('bodyfont-r1')){ $raleway = ":".ale_get_option('bodyfont-r1'); } else {$raleway =""; }
if(ale_get_option('font-r')){ echo "<link href='http://fonts.googleapis.com/css?family=".ale_get_option('font-r').$raleway."' rel='stylesheet' type='text/css'>"; }
if(ale_get_option('bodyfont-m1')){ $montserrat = ":".ale_get_option('bodyfont-m1'); } else {$montserrat =""; }
if(ale_get_option('font-m')){ echo "<link href='http://fonts.googleapis.com/css?family=".ale_get_option('font-m').$montserrat."' rel='stylesheet' type='text/css'>"; }
if(ale_get_option('bodyfont-o1')){ $opensans = ":".ale_get_option('bodyfont-o1'); } else {$opensans =""; }
if(ale_get_option('font-o')){ echo "<link href='http://fonts.googleapis.com/css?family=".ale_get_option('font-o').$opensans."' rel='stylesheet' type='text/css'>"; }

?>
<style type='text/css'>
	body {
		<?php
		if($ale_font['size']){ echo "font-size:".$ale_font['size'].";"; };
		if($ale_font['style']){ echo "font-style:".$ale_font['style'].";"; };
		if($ale_font['color']){ echo "color:".$ale_font['color'].";"; };
		if($ale_font['face']){ $fontfamily =  str_replace ('+',' ',$ale_font['face']); echo "font-family:".$fontfamily.";"; };
		if($ale_background['color']){ echo "background-color:".$ale_background['color'].";"; }
		if($ale_background['image']){ echo "background-image: url(".$ale_background['image'].");"; }
		if($ale_background['repeat']){ echo "background-repeat:".$ale_background['repeat'].";"; }
		if($ale_background['position']){ echo "background-position:".$ale_background['position'].";"; }
		if($ale_background['attachment']){ echo "background-attachment:".$ale_background['attachment'].";"; }
		?>
	}
	h1 {
		<?php
		if($ale_h1['size']){ echo "font-size:".$ale_h1['size'].";"; };
		if($ale_h1['style']){ echo "font-style:".$ale_h1['style'].";"; };
		if($ale_h1['color']){ echo "color:".$ale_h1['color'].";"; };
		if($ale_h1['face']){ $h1family =  str_replace ('+',' ',$ale_h1['face']); echo "font-family:".$h1family.";"; };
		?>
	}
	h2 {
		<?php
		if($ale_h2['size']){ echo "font-size:".$ale_h2['size'].";"; };
		if($ale_h2['style']){ echo "font-style:".$ale_h2['style'].";"; };
		if($ale_h2['color']){ echo "color:".$ale_h2['color'].";"; };
		if($ale_h2['face']){ $h2family =  str_replace ('+',' ',$ale_h2['face']); echo "font-family:".$h2family.";"; };
		?>
	}
	h3 {
		<?php
		if($ale_h3['size']){ echo "font-size:".$ale_h3['size'].";"; };
		if($ale_h3['style']){ echo "font-style:".$ale_h3['style'].";"; };
		if($ale_h3['color']){ echo "color:".$ale_h3['color'].";"; };
		if($ale_h3['face']){ $h3family =  str_replace ('+',' ',$ale_h3['face']); echo "font-family:".$h3family.";"; };
		?>
	}
	h4 {
		<?php
		if($ale_h4['size']){ echo "font-size:".$ale_h4['size'].";"; };
		if($ale_h4['style']){ echo "font-style:".$ale_h4['style'].";"; };
		if($ale_h4['color']){ echo "color:".$ale_h4['color'].";"; };
		if($ale_h4['face']){ $h4family =  str_replace ('+',' ',$ale_h4['face']); echo "font-family:".$h4family.";"; };
		?>
	}
	h5 {
		<?php
		if($ale_h5['size']){ echo "font-size:".$ale_h5['size'].";"; };
		if($ale_h5['style']){ echo "font-style:".$ale_h5['style'].";"; };
		if($ale_h5['color']){ echo "color:".$ale_h5['color'].";"; };
		if($ale_h5['face']){ $h5family =  str_replace ('+',' ',$ale_h5['face']); echo "font-family:".$h5family.";"; };
		?>
	}
	h6 {
		<?php
		if($ale_h6['size']){ echo "font-size:".$ale_h6['size'].";"; };
		if($ale_h6['style']){ echo "font-style:".$ale_h6['style'].";"; };
		if($ale_h6['color']){ echo "color:".$ale_h6['color'].";"; };
		if($ale_h6['face']){ $h6family =  str_replace ('+',' ',$ale_h6['face']); echo "font-family:".$h6family.";"; };
		?>
	}

	/*Header Font (Arial)*/
	body,#price_range,#min_val,#max_val,#select_brand .dropdown span.selected,#select_status .dropdown span.selected,.informations h3,.atributes_b,
	#h_subaru p,#h_subaru h1,#atributes_s,#details_s,#sho_m,#caracteristici p.detalii,#caracteristici p,#right-panel h1.title,#right-panel p.info,
	#right-panel span a,.ul_brands > li:last-child,#adam_text,.personal_text,.a_text,.title_information,#text1,#text2,#text3,.p_title,.p_text,.p_text2,
	.breadcrumbs,#text1_about,#text2_about,#information_about h4,#information_about p,input.input_v,.page-numbers.current,.page-numbers,#h4_rezerv,.p_res,p.title_cars,
	.flexslider_rez p.title_cars span,.submit_rez,#form_reservation p,#menu_blog ul li a,.p1,.p4,.big_company,.news_company,.big_date_company,.company,
	.date_company,.h4_gallery,.p_gallery,.h4_title,.contacts > p,.submit,#telefon_contact p span,#typical_author,#date_author,
	#text_typical1 > p,#show-hide h4,.submit_comments,.comment p.name,.comment p.timpul,.text > p,.comment a.comment-reply-link,.reduction h2,
	.title_post,.title_post span,.content_post,.post_special table tr td:nth-child(1),.post_special table tr td:nth-child(2),.post_special table tr td:nth-child(3),
	.dropdown .selected, .dropdown li,.dropdown,.dropdown .selected, .dropdown li,#filter_all p,.val_range input,.val_range input,.title_m,.work_m,
	.content_m,.number_m span,.email_m span,.title_top,.stats_h,.title_open,.title_open span,.price_open,.price_open span,.social_h3,.additional_info h1,.additional_info p,
	.links_section ul li a,.column1 li,.column2 li,.user_b,.title_b,.date_b,.text_blog1,.recent_blog1 h1,.title_r,.info_r,.widget_categories p,.widget_categories ul li a,.t_p,.year_p,.widget_tag_cloud p,
	.tagcloud a,.top_blog2,.blog2_content h1,.text_blog2,.title_gallery1,.pictures_gallery1,.dot-irecommendthis-count,.title_gallery2,.words_gallery2,
	#text_typical1 > ol > li,#text_typical1 h1,#text_typical1 ul > li,#text_typical1 blockquote > p,#text_typical1 table th,#text_typical1 table td,.result_ajax,.results_more,
	ul.group2 li,ul.group1 li,.tweets_txt span,.mc4wp-form label,p.success,p.error,p.caption,.whitelink,.entry-meta,.widget,.widget_text .textwidget,.widget_recent_comments ul li a,
	.widget_recent_comments ul li span a,.widget_pages ul li a,.widget_most_recommended_posts ul li a,.widget_meta ul li a,.widget_mc4wp_widget input[type=submit],
	.widget_nav_menu,.widget_calendar,.widget_archive,.detail,.entry-title,.p_title_contact
	{
		<?php if($ale_arial){ $mainarial =  str_replace ('+',' ',$ale_arial); echo "font-family:".$mainarial.";"; } ?>
	}

	/*Arial*/
	.p_contact1,.p_contact2
	{
	<?php if($ale_arial){ $mainarial =  str_replace ('+',' ',$ale_arial); echo "font-family:".$mainarial." !important;"; } ?>
	}

	/*Raleway*/
	.home-brands .home-person .text h3,.home-brands .home-person .text .number.home-brands .slider article .text h3,
	.home-brands .slider article .text p,.home-blog .isotope-gutter .item h3,.home-description h2,
	.home_slider .slides article .details .citroen_logo,.home_slider .slides article h1,
	.sitelogo a,footer .bottom-line .logo a .text,.page-template-about .information .wrapper-inside article p
	{
	<?php if($ale_raleway){ $mainraleway =  str_replace ('+',' ',$ale_raleway); echo "font-family:".$mainraleway.";"; } ?>

	}

	/*Montserrat*/
	.footer_top ul li,.home-blog h2,.home-description .details .text .price,.page-header .page-name,header nav,.home_slider .slides article .details .car-price,
	.our-team-archive-page section h2,.page-template-about .video h2,.page-template-service .details .wrapper-inside h2,
	.page-template-service .details h2,.page-template-service .details article h3,.page-template-contact .contact-data .phone,
	.comments-block h2,.single-listing-page .similar-cars h2,.story ol > li:before, .content-right ol > li:before
	{
	<?php if($ale_montserrat){ $mainmontserrat =  str_replace ('+',' ',$ale_montserrat); echo "font-family:".$mainmontserrat.";"; } ?>
	}

	/*opensans*/
	.detail_stats,.detail_statsb,.h_service,.content_service,.page-template-service .stats .wrapper-inside .item span.text {
	<?php if($ale_opensans){ $mainopensans =  str_replace ('+',' ',$ale_opensans); echo "font-family:".$mainopensans.";"; } ?>

	}


	body
	{
	<?php if($ale_bodycolor){ echo "background-image:url(".$ale_bodycolor.");"; }  ?>
	}

	.post_special table tr td:nth-child(3),.email_m span,.price_open span,.social_h3,.year_p,.services,.fa-home,#telefon_contact .fa-mobile,#telefon_contact .fa-envelope,
	#telefon_contact .fa-globe,.widget_categories ul li a:before,.red-col-hover:hover,.filter-form .p_fill:hover input,.woocommerce .star-rating span,
	.woocommerce div.product span.price,.woocommerce div.product p.price,.woocommerce div.product div.summary .woocommerce-review-link,
	.woocommerce div.product .product_meta a,.links_section li:nth-child(1) a,#typical_author, a,.filter-form .submit:hover input,
	.sidebar ul li:before,.sidebar a:hover,.sidebar .widget_aletheme_popular_widget .item a:hover,.red-col,.woocommerce a.remove,
	.our-team-archive-page section .isotope-gutter .item .text .email,.comments-block .comment .content .comment-reply-link:hover,
	.comments-block .form-box a:hover,.woocommerce div.product .woocommerce-tabs > ul li a:hover,
	.woocommerce form .form-row .required,.story a:hover, .content-right a:hover,
	.story ul > li:before, .content-right ul > li:before,.story ol > li:before, .content-right ol > li:before,
	.single-listing-page .information .tabs > ul li.ui-tabs-active a,.single-listing-page .details .car-details ul li:before,
	.single-listing-page .information .tabs .item ul li:before
	{
	<?php if($ale_redcolor){ echo "color:".$ale_redcolor.";"; }  ?>
	}

	#navMenu > ul > li > ul > li > a:hover,#navMenu > ul li > ul,input.input_v,.flexslider5 .flex-direction-nav li:nth-child(1),.flexslider5 .flex-direction-nav li:nth-child(2),
	.single_play,.flexslider ol.flex-control-nav li a,.flexslider ul.flex-direction-nav li:last-child,
	.flexslider ul.flex-direction-nav li:first-child,.red-bg-hover:hover,.red-bg,header nav > ul > li > ul li:hover,.link:hover,
	.home-subscribe .wrapper-inside > div > form > p:nth-child(2):hover:before,.pagination ul li .current:before,#form_reservation .submit_rez:hover,
	#find-car:hover,.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
	.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt,
	.woocommerce span.onsale,.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
	.woocommerce #respond input#submit.alt:hover,#progress_bar,header nav > ul > li > ul li > ul li,
	.category-list li:hover:before,.category-list .current-cat:before,.dropdown-select li.focus, .dropdown li.focus,
	.sidebar .widget_tag_cloud .tagcloud a:hover,.sidebar .widget_aletheme_filter_widget .rangeSlider .ui-slider .ui-slider-handle,
	.sidebar .widget_aletheme_filter_widget .rangeSlider .ui-widget-header,.woocommerce a.remove:hover,
	.sidebar input[type="submit"],.pagination ul li a.next:hover,.pagination ul li a.prev:hover,
	.filter-form .rangeSlider .ui-slider .ui-slider-handle,.filter-form .rangeSlider .ui-widget-header,
	.single-post-page .post-slider .flex-direction-nav li a,header .sitelogo a:hover .background,.single-listing-page .details .share ul li a:hover
	{
	<?php if($ale_redcolor){ echo "background-color:".$ale_redcolor.";"; }?>
}
	.p_fill:after {
	<?php if($ale_redcolor){ echo "border-left: 11px solid ".$ale_redcolor.";"; }?>
	}
	.filter-form .submit:after{
	<?php if($ale_redcolor){ echo "border-left: 10px solid ".$ale_redcolor.";"; }?>
	}

	.reservation-listing .scroll .item a:before{
	<?php if($ale_redcolor){ echo "border-right: 39px solid ".$ale_redcolor.";"; }?>
	}

	.element:hover .block_border,.element-popular:hover .block_border {
	<?php if($ale_redcolor){ echo "box-shadow: 0px 0px 0px 5px ".$ale_redcolor." inset;"; }?>
	<?php if($ale_redcolor){ echo "-moz-box-shadow: 0px 0px 0px 5px ".$ale_redcolor." inset;"; }?>
	<?php if($ale_redcolor){ echo "-webkit-box-shadow: 0px 0px 0px 5px ".$ale_redcolor." inset;"; }?>
	}

	.home-listing .item a:hover,.archive-page-listing .item a:hover,.element-popular a:hover,
	.single-listing-page .similar-cars .item a:hover{
	<?php if($ale_redcolor){ echo "box-shadow: 0px 0px 0px 6px ".$ale_redcolor." inset;"; }?>
	<?php if($ale_redcolor){ echo "-moz-box-shadow: 0px 0px 0px 6px ".$ale_redcolor." inset;"; }?>
	<?php if($ale_redcolor){ echo "-webkit-box-shadow: 0px 0px 0px 6px ".$ale_redcolor." inset;"; }?>
	}
	.m_image:hover .reservations_border {
	<?php if($ale_redcolor){ echo "box-shadow: 0px 0px 0px 3px ".$ale_redcolor." inset;"; }?>
	<?php if($ale_redcolor){ echo "-moz-box-shadow: 0px 0px 0px 3px ".$ale_redcolor." inset;"; }?>
	<?php if($ale_redcolor){ echo "-webkit-box-shadow: 0px 0px 0px 3px ".$ale_redcolor." inset;"; }?>
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li.active{
	<?php if($ale_redcolor){ echo "box-shadow: 0px 5px 0px 0 ".$ale_redcolor.";"; }?>
	<?php if($ale_redcolor){ echo "-moz-box-shadow: 0px 5px 0px 0 ".$ale_redcolor.";"; }?>
	<?php if($ale_redcolor){ echo "-webkit-box-shadow: 0px 5px 0px 0 ".$ale_redcolor.";"; }?>
	}


	.page-template-gallery-2 .isotope .item .overlay{
		<?php if($ale_redcolor){
		echo "-webkit-box-shadow: 0 -4px 0 " . $ale_redcolor . ";";
		echo "-moz-box-shadow: 0 -4px 0 " . $ale_redcolor . ";";
		echo "box-shadow: 0 -4px 0 " . $ale_redcolor . ";"; }?>
	}

	.reservation-listing .scroll .item a{
	<?php if($ale_redcolor){
		echo "-webkit-box-shadow: inset 0 0 0 4px " . $ale_redcolor . ";";
		echo "-moz-box-shadow: inset 0 0 0 4px " . $ale_redcolor . ";";
		echo "box-shadow: inset 0 0 0 4px " . $ale_redcolor . ";"; }?>
	}

	.icon_reservations1 {
	<?php if($ale_redcolor){ echo "
}border-color: transparent transparent ".$ale_redcolor." transparent;"; }?>
	}

.reduction,.icon_pag,#play_single,#click_icon1,#click_icon,#slider_menu,.red_show,.read_post,.click_blog2,.line_gallery2,
#bol1,#bol2,#boll1,#boll2,#circle1,#circle2,#circle3
{
<?php if($ale_redcolor){ echo "background-color:".$ale_redcolor.";";
echo "opacity:0.98;";
  echo "-webkit-opacity:0.98;";
   echo "-khtml-opacity:0.98;";
	echo "-moz-opacity:0.98;";
}  ?>
	}



</style>