<?php  header("Content-type: text/css; charset: UTF-8"); 
$parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
require_once( $parse_uri[0] . 'wp-load.php' );
 



/*-----------------------------------------------------------------------------------*/
# Get Font Name
/*-----------------------------------------------------------------------------------*/
function weblusive_get_font ( $got_font ) {
	if ($got_font) {
		$font_pieces = explode(":", $got_font);
		$font_name = $font_pieces[0];
		return $font_name;
	}
}



?>

<?php $maincolor = weblusive_get_option('global_color'); if($maincolor):?>
.navbar-fixed-top, .subheader, #nav ul.sf-menu li.current > a,#nav ul.sf-menu li.current-menu-item > a,
#nav ul.sf-menu li > a:hover,.sf-menu .sub-menu li, .blog-text  a.read_more,.blog-text a.read_more:hover, #contactFormWidget input[type="submit"],
ul#filterOptions li a.active,ul#filterOptions li a:hover, .item:hover .port-span,.team-member .desc, .view-sixth .mask, .quote blockquote, .last-line,
.dropdown li a:hover,.tagcloud a, .tagcloud a:hover,.tab-list li a:hover,.accordion h2.active, .toggle-trigger.open, .flex-direction-nav .flex-next, 
.flex-direction-nav .flex-prev, .blog-post .post-date,.blog-tags,.pagination-list li a:hover, .pagination-list li.current a,#wp-calendar caption,
a.comment-reply-link,#contact-form input[type="submit"], #contact-form2 input[type="submit"], .services a:hover, footer, .lastdiv, .end-footer  {
	background-color:<?php echo weblusive_get_option('global_color')?>;
}
.right-social a.go-to-top{background-color:#666; background-color:rgba(0,0,0,0.5)}
.ui-state-active a{background:<?php echo weblusive_get_option('global_color')?> !important;}
.project-content {<?php $bg = HexToRGB(weblusive_get_option('global_color')); ?>
background:<?php echo weblusive_get_option('global_color');?>; background: rgba(<?php echo $bg['r'].','.$bg['g'].','.$bg['b']?>, 0.9)
}

#sidebar .widget a:hover, a.btn-icon,blockquote.speech-bubble .quote-meta, .services-home2 i, .testimonial ul li span, #breadcrumbs a, .filter-items a.active, .filter-items li a:hover {
	color:<?php echo weblusive_get_option('global_color')?>;
}
.flickr-widget ul li a:hover:after, .flickr-widget ul li a:after, .nav-arrows span,  .services a:hover{
	border-color:<?php echo weblusive_get_option('global_color')?>;
}
#nav ul.sf-menu li.current-menu-item:after, .lastdiv{
	border-top-color:<?php echo weblusive_get_option('global_color')?>;
}
.subheader .subheader2 li, .module_arrow, .arrow-right, .top-bar-section .dropdown li:hover {
	border-left-color:<?php echo weblusive_get_option('global_color')?>;
}
.subheader .subheader2 li:last-child{
        border-right-color:<?php echo weblusive_get_option('global_color')?>;
}

.subheader, .inner-footer h4, .sf-menu .sub-menu li, .sl-slider h2 span, .recent-projects > h2 span, h2.heading span, .team > h2 span, .contact-page > h2 span, .blog > h2 span, 
h2.top-title span, .single-work > h2 span, .filter-items a.active, .filter-items li a:hover{
	border-bottom-color:<?php echo weblusive_get_option('global_color')?>;
}
.top-header ul li{border-right-color:#666}
.top-header ul li:first-child{border-left-color:#666}
.top-header .login{background:#666}
<?php endif?>
<?php if(weblusive_get_option('sticky_header')):?>
.navbar-fixed-top{ z-index:999999 !important}
#container.boxed-style .navbar-fixed-top {
	position: absolute;
}
.navbar-fixed-top, .navbar-fixed-bottom{position:fixed;}
.banner {margin-top:<?php $topbar =  weblusive_get_option('topbar'); echo(!$topbar) ? '90px' : '116px'?>}
<?php endif?>
<?php $bg = weblusive_get_option( 'background' ); 
if( weblusive_get_option('background_full') ): ?>
body{<?php echo "\n"; ?>
	<?php if (isset( $bg['color'])):?> background-color: !important;<?php endif?>
	<?php if (isset( $bg['img'])):?>
		background-image : url('<?php echo $bg['img'] ?>') !important;<?php echo "\n"; ?>
		filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $bg['img'] ?>',sizingMethod='scale') !important;<?php echo "\n"; ?>
		-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $bg['img'] ?>',sizingMethod='scale')" !important;<?php echo "\n"; ?>
	<?php endif?>
}
<?php else: ?>
	body{background:<?php echo isset($bg['color']) ? $bg['color'] : '';?> url('<?php echo isset($bg['img']) ? $bg['img'] : '' ?>') <?php echo isset($bg['repeat']) ? $bg['repeat'] : ''; ?> <?php echo isset($bg['attachment']) ? $bg['attachment'] : ''; ?> <?php echo  isset($bg['hor']) ? $bg['hor'] : ''  ?> <?php echo  isset($bg['ver']) ? $bg['ver'] :'' ?> !important;}<?php echo "\n"; ?>
<?php endif; ?>
<?php if( weblusive_get_option( 'links_color' ) || weblusive_get_option( 'links_decoration' )  ): ?>
a {
	<?php if( weblusive_get_option( 'links_color' ) ) echo 'color: '.weblusive_get_option( 'links_color' ).' !important;'; ?>
	<?php if( weblusive_get_option( 'links_decoration' ) ) echo 'text-decoration: '.weblusive_get_option( 'links_decoration' ).' !important;'; ?>
}
<?php endif; ?>
<?php if( weblusive_get_option( 'links_color_hover' ) || weblusive_get_option( 'links_decoration_hover' )  ): ?>
a:hover {
	<?php if( weblusive_get_option( 'links_color_hover' ) ) echo 'color: '.weblusive_get_option( 'links_color_hover' ).' !important;'; ?>
	<?php if( weblusive_get_option( 'links_decoration_hover' ) ) echo 'text-decoration: '.weblusive_get_option( 'links_decoration_hover' ).' !important;'; ?>
}
<?php endif; ?>
.subheader{
<?php if( weblusive_get_option('topbar_background')):$bg = weblusive_get_option( 'topbar_background' );?>
	background:<?php echo isset($bg['color']) ? $bg['color'] : '';?> url('<?php echo isset($bg['img']) ? $bg['img'] : '' ?>') <?php echo isset($bg['repeat']) ? $bg['repeat'] : ''; ?> <?php echo isset($bg['attachment']) ? $bg['attachment'] : ''; ?> <?php echo  isset($bg['hor']) ? $bg['hor'] : ''  ?> <?php echo  isset($bg['ver']) ? $bg['ver'] :'' ?> !important;
<?php endif; ?>
}
.subheader .phone{
<?php if(weblusive_get_option('topbar_color')):?>
	color:<?php echo weblusive_get_option('topbar_color')?> !important
<?php endif?>
}
<?php if( weblusive_get_option('topbar_links_color')):?>
	.subheader a {color:<?php echo weblusive_get_option('topbar_links_color')?> !Important}
<?php endif?>
<?php if(weblusive_get_option('topbar_links_color_hover')):?>
	.subheader a:hover {color:<?php echo weblusive_get_option('topbar_links_color_hover')?> !Important}
<?php endif?>
<?php if( weblusive_get_option('header_background')):$bg = weblusive_get_option( 'header_background' );?>
	#header .row2{background:<?php echo isset($bg['color']) ? $bg['color'] : '';?> url('<?php echo isset($bg['img']) ? $bg['img'] : '' ?>') <?php echo isset($bg['repeat']) ? $bg['repeat'] : ''; ?> <?php echo isset($bg['attachment']) ? $bg['attachment'] : ''; ?> <?php echo  isset($bg['hor']) ? $bg['hor'] : ''  ?> <?php echo  isset($bg['ver']) ? $bg['ver'] :'' ?> !important;}
<?php endif; ?>

<?php if( weblusive_get_option( 'sub_nav_background' )): ?>
.sf-menu .sub-menu li {background-color:<?php echo weblusive_get_option( 'sub_nav_background' ).' !important;';?>;}<?php echo "\n"; ?>
<?php endif; ?>
<?php if( weblusive_get_option( 'sub_nav_color' )): ?>
.sf-menu .sub-menu li a {color:<?php echo weblusive_get_option( 'sub_nav_color' ).' !important;';?>;}<?php echo "\n"; ?>
<?php endif; ?>
<?php if( weblusive_get_option( 'nav_links_color' ) || weblusive_get_option( 'nav_shadow_color' ) ): ?>
.sf-menu li a{
	<?php if( weblusive_get_option( 'nav_links_color' ) ) echo 'color: '.weblusive_get_option( 'nav_links_color' ).' !important;'; ?>
	<?php if( weblusive_get_option( 'nav_shadow_color' ) ) echo 'text-shadow: 0 1px 1px '.weblusive_get_option( 'nav_shadow_color' ).' !important;'; ?>
}
<?php endif; ?>
<?php if( weblusive_get_option( 'nav_links_color_hover' ) || weblusive_get_option( 'nav_shadow_color_hover' ) ): ?>
.sf-menu li a:hover  {
	<?php if( weblusive_get_option( 'nav_links_color_hover' ) ) echo 'color: '.weblusive_get_option( 'nav_links_color_hover' ).' !important;'; ?>
	<?php if( weblusive_get_option( 'nav_shadow_color_hover' ) ) echo 'text-shadow: 0 1px 1px '.weblusive_get_option( 'nav_shadow_color_hover' ).' !important;'; ?>
}
<?php endif; ?>
<?php if( weblusive_get_option( 'nav_current_links_color' ) || weblusive_get_option( 'nav_current_shadow_color' ) || weblusive_get_option( 'nav_current_bg' )): ?>
#nav ul.sf-menu>li>a:hover{<?php if( weblusive_get_option( 'nav_current_bg' ) ) echo 'background-color:'.weblusive_get_option( 'nav_current_bg' ).' !important;'; ?>} 
#nav ul.sf-menu li.current-menu-item:after{<?php if( weblusive_get_option( 'nav_current_bg' ) ) echo 'border-top-color:'.weblusive_get_option( 'nav_current_bg' ).' !important;'; ?>} 
#nav ul.sf-menu li.current-menu-item > a {
	<?php if( weblusive_get_option( 'nav_current_links_color' ) ) echo 'color: '.weblusive_get_option( 'nav_current_links_color' ).' !important;'; ?>
	<?php if( weblusive_get_option( 'nav_current_shadow_color' ) ) echo 'text-shadow: 0 1px 1px '.weblusive_get_option( 'nav_current_shadow_color' ).' !important;'; ?>
	<?php if( weblusive_get_option( 'nav_current_bg' ) ) echo 'background-color:'.weblusive_get_option( 'nav_current_bg' ).' !important;'; ?>
}
<?php endif; ?>
<?php if( weblusive_get_option( 'nav_separator' ) ): ?>
.sf-menu .sub-menu li {
	border-bottom-color: <?php echo weblusive_get_option( 'nav_separator' ); ?>;
}
<?php endif; ?>
<?php $contentbg = weblusive_get_option( 'main_content_bg' ); 
if( !empty( $contentbg['img']) || !empty( $contentbg['color'] ) ): ?>
body, #boxed {background:<?php echo isset($contentbg['color']) ? $contentbg['color'] : '';?> url('<?php echo isset($contentbg['img']) ? $contentbg['img'] : '' ?>') <?php echo isset($contentbg['repeat']) ? $contentbg['repeat'] : ''; ?> <?php echo isset($contentbg['attachment']) ? $contentbg['attachment'] : ''; ?> <?php echo  isset($contentbg['hor']) ? $contentbg['hor'] : ''  ?> <?php echo  isset($contentbg['ver']) ? $contentbg['ver'] :'' ?> !important;}<?php echo "\n"; ?>
<?php endif; ?>
<?php if( weblusive_get_option('promo_bg')):$bg = weblusive_get_option( 'promo_bg' );?>
	#banner{background:<?php echo isset($bg['color']) ? $bg['color'] : '';?> url('<?php echo isset($bg['img']) ? $bg['img'] : '' ?>') <?php echo isset($bg['repeat']) ? $bg['repeat'] : ''; ?> <?php echo isset($bg['attachment']) ? $bg['attachment'] : ''; ?> <?php echo  isset($bg['hor']) ? $bg['hor'] : ''  ?> <?php echo  isset($bg['ver']) ? $bg['ver'] :'' ?> !important;}
<?php endif; ?>
<?php if( weblusive_get_option('footer_background')):$footerbg = weblusive_get_option( 'footer_background' );?>
	footer, .lastdiv, .end-footer {background:<?php echo isset($footerbg['color']) ? $footerbg['color'] : '';?> url('<?php echo isset($footerbg['img']) ? $footerbg['img'] : '' ?>') <?php echo isset($footerbg['repeat']) ? $footerbg['repeat'] : ''; ?> <?php echo isset($footerbg['attachment']) ? $footerbg['attachment'] : ''; ?> <?php echo  isset($footerbg['hor']) ? $footerbg['hor'] : ''  ?> <?php echo  isset($footerbg['ver']) ? $footerbg['ver'] :'' ?> !important;}
<?php endif; ?>
<?php if( weblusive_get_option( 'footer_title_color' ) ): ?>
.footer-block h4{	<?php if( weblusive_get_option( 'footer_title_color' ) ) echo 'color: '.weblusive_get_option( 'footer_title_color' ).';'; ?>
}
<?php endif; ?>
<?php if( weblusive_get_option( 'footer_links_color' ) ): ?>
footer a  {	<?php if( weblusive_get_option( 'footer_links_color' ) ) echo 'color: '.weblusive_get_option( 'footer_links_color' ).' !important;'; ?>
}
<?php endif; ?>
<?php if( weblusive_get_option( 'footer_links_color_hover' ) ): ?>
footer a:hover {<?php if( weblusive_get_option( 'footer_links_color_hover' ) ) echo 'color: '.weblusive_get_option( 'footer_links_color_hover' ).' !important;'; ?>
}
<?php endif; ?>
<?php  $css =  weblusive_get_option('css'); if (isset($css)) echo htmlspecialchars_decode($css ) , "\n";?>
<?php if( weblusive_get_option('css_tablets') ) : ?>
@media (min-width: 768px) and (max-width: 979px) { 
<?php echo htmlspecialchars_decode( weblusive_get_option('css_tablets') ) , "\n";?>
}
<?php endif; ?>
<?php if( weblusive_get_option('css_wide_phones') ) : ?>
@media (max-width: 767px) {
<?php echo htmlspecialchars_decode( weblusive_get_option('css_wide_phones') ) , "\n";?>
}
<?php endif; ?>
<?php if( weblusive_get_option('css_phones') ) : ?>
@media (max-width: 480px) {
<?php echo htmlspecialchars_decode( weblusive_get_option('css_phones') ) , "\n";?>
}
<?php endif; ?>
<?php foreach( $custom_typography as $selector => $value):
$option = weblusive_get_option( $value );
if(isset( $option['font']) || isset($option['color']) || isset($option['size']) || isset($option['weight']) || isset($option['style']) ):
echo "\n".$selector."{\n"; ?>
<?php if(isset($option['font']))
	echo "	font-family: '". weblusive_get_font( $option['font']  )."' !important;\n"?>
<?php if(isset($option['color']))
	echo "	color :". $option['color']."  !important;\n"?>
<?php if(isset($option['size'] ))
	echo "	font-size : ".$option['size']."px !important;\n"?>
<?php if(isset($option['weight']) )
	echo "	font-weight: ".$option['weight']." !important;\n"?>
<?php if(isset($option['style'] ))
	echo "	font-style: ". $option['style']."  !important;\n";
	echo "}\n";?>
<?php endif;
endforeach; ?>

