<?php

$freelancer_digital_agency_custom_css = '';


// $freelancer_digital_agency_is_dark_mode_enabled = get_theme_mod( 'freelancer_digital_agency_is_dark_mode_enabled', false );

// if ( $freelancer_digital_agency_is_dark_mode_enabled ) {

//     $freelancer_digital_agency_custom_css .= 'body,.fixed-header,tr:nth-child(2n+2){';
//     $freelancer_digital_agency_custom_css .= 'background: #000;';
//     $freelancer_digital_agency_custom_css .= '}';

//     $freelancer_digital_agency_custom_css .= '.some {';
//     $freelancer_digital_agency_custom_css .= 'background: #000 !important;';
//     $freelancer_digital_agency_custom_css .= '}';

// 	$freelancer_digital_agency_custom_css .= '.sticky .post-content{';
//     $freelancer_digital_agency_custom_css .= 'color: #000';
//     $freelancer_digital_agency_custom_css .= '}';

// 	$freelancer_digital_agency_custom_css .= 'h5.product-text a,#featured-product p.price,.card-header a,.comment-content.card-block p,.post-box.sticky a{';
//     $freelancer_digital_agency_custom_css .= 'color: #000 !important';
//     $freelancer_digital_agency_custom_css .= '}';

//     $freelancer_digital_agency_custom_css .= '.some{';
//     $freelancer_digital_agency_custom_css .= 'background: #fff;';
//     $freelancer_digital_agency_custom_css .= '}';

//     $freelancer_digital_agency_custom_css .= '.some {';
//     $freelancer_digital_agency_custom_css .= 'background: #fff !important;';
//     $freelancer_digital_agency_custom_css .= '}';
	

//     $freelancer_digital_agency_custom_css .= 'body,h1,h2,h3,h4,h5,p,#main-menu ul li a,.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,a,#project h2,.services-box h3{';
//     $freelancer_digital_agency_custom_css .= 'color: #fff;';
//     $freelancer_digital_agency_custom_css .= '}';

//     $freelancer_digital_agency_custom_css .= 'a.wc-block-components-product-name, .wc-block-components-product-name,.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
// .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
// .wc-block-components-totals-item__label,.wc-block-components-totals-item__value,
// .wc-block-components-product-metadata .wc-block-components-product-metadata__description>p,
// .is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
// .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
// .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
// .wc-block-components-quantity-selector,table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link,
// .wc-block-components-product-price__value.is-discounted,del.wc-block-components-product-price__regular,.services-box a,.logo span,li.menu-item-has-children:after,h1.woocommerce-products-header__title.page-title,h2.woocommerce-loop-product__title,h1.product_title.entry-title,div#tab-description h2,section.related.products h2,h2.woocommerce-Reviews-title,h2#reply-title,h2.comments-title{';
//     $freelancer_digital_agency_custom_css .= 'color: #fff !important;';
//     $freelancer_digital_agency_custom_css .= '}';

// 	$freelancer_digital_agency_custom_css .= '.post-box{';
//     $freelancer_digital_agency_custom_css .= '    border: 1px solid rgb(229 229 229 / 48%)';
//     $freelancer_digital_agency_custom_css .= '}';
// }

	/*---------------------------text-transform-------------------*/

	$freelancer_digital_agency_text_transform = get_theme_mod( 'menu_text_transform_freelancer_digital_agency','CAPITALISE');
    if($freelancer_digital_agency_text_transform == 'CAPITALISE'){

		$freelancer_digital_agency_custom_css .='#main-menu ul li a{';

			$freelancer_digital_agency_custom_css .='text-transform: capitalize ; font-size: 15px;';

		$freelancer_digital_agency_custom_css .='}';

	}else if($freelancer_digital_agency_text_transform == 'UPPERCASE'){

		$freelancer_digital_agency_custom_css .='#main-menu ul li a{';

			$freelancer_digital_agency_custom_css .='text-transform: uppercase ; font-size: 15px;';

		$freelancer_digital_agency_custom_css .='}';

	}else if($freelancer_digital_agency_text_transform == 'LOWERCASE'){

		$freelancer_digital_agency_custom_css .='#main-menu ul li a{';

			$freelancer_digital_agency_custom_css .='text-transform: lowercase ; font-size: 15px;';

		$freelancer_digital_agency_custom_css .='}';
	}

		/*---------------------------menu-zoom-------------------*/

		$freelancer_digital_agency_menu_zoom = get_theme_mod( 'freelancer_digital_agency_menu_zoom','None');

    if($freelancer_digital_agency_menu_zoom == 'None'){

		$freelancer_digital_agency_custom_css .='#main-menu ul li a{';

			$freelancer_digital_agency_custom_css .='';

		$freelancer_digital_agency_custom_css .='}';

	}else if($freelancer_digital_agency_menu_zoom == 'Zoominn'){

		$freelancer_digital_agency_custom_css .='#main-menu ul li a:hover{';

			$freelancer_digital_agency_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important; color: var(--first-color);';

		$freelancer_digital_agency_custom_css .='}';
	}

	/*---------------------------Container Width-------------------*/

$freelancer_digital_agency_container_width = get_theme_mod('freelancer_digital_agency_container_width');

		$freelancer_digital_agency_custom_css .='body,.page-template-frontpage #site-navigation{';

			$freelancer_digital_agency_custom_css .='width: '.esc_attr($freelancer_digital_agency_container_width).'%; margin: 0 auto';

		$freelancer_digital_agency_custom_css .='}';


	/*---------------------------Slider-content-alignment-------------------*/

	$freelancer_digital_agency_slider_content_alignment = get_theme_mod( 'freelancer_digital_agency_slider_content_alignment','LEFT-ALIGN');

	 if($freelancer_digital_agency_slider_content_alignment == 'LEFT-ALIGN'){

			$freelancer_digital_agency_custom_css .='.blog_box{';

				$freelancer_digital_agency_custom_css .='text-align:left;';

			$freelancer_digital_agency_custom_css .='}';


		}else if($freelancer_digital_agency_slider_content_alignment == 'CENTER-ALIGN'){

			$freelancer_digital_agency_custom_css .='.blog_box{';

				$freelancer_digital_agency_custom_css .='text-align:center; right:30%; left:30%;';

			$freelancer_digital_agency_custom_css .='}';


		}else if($freelancer_digital_agency_slider_content_alignment == 'RIGHT-ALIGN'){

			$freelancer_digital_agency_custom_css .='.blog_box{';

				$freelancer_digital_agency_custom_css .='text-align:right; right:20%; left:50%;';

			$freelancer_digital_agency_custom_css .='}';

		}

		/*---------------------------Copyright Text alignment-------------------*/

$freelancer_digital_agency_copyright_text_alignment = get_theme_mod( 'freelancer_digital_agency_copyright_text_alignment','LEFT-ALIGN');

 if($freelancer_digital_agency_copyright_text_alignment == 'LEFT-ALIGN'){

		$freelancer_digital_agency_custom_css .='.copy-text p{';

			$freelancer_digital_agency_custom_css .='text-align:left;';

		$freelancer_digital_agency_custom_css .='}';


	}else if($freelancer_digital_agency_copyright_text_alignment == 'CENTER-ALIGN'){

		$freelancer_digital_agency_custom_css .='.copy-text p{';

			$freelancer_digital_agency_custom_css .='text-align:center;';

		$freelancer_digital_agency_custom_css .='}';


	}else if($freelancer_digital_agency_copyright_text_alignment == 'RIGHT-ALIGN'){

		$freelancer_digital_agency_custom_css .='.copy-text p{';

			$freelancer_digital_agency_custom_css .='text-align:right;';

		$freelancer_digital_agency_custom_css .='}';

	}

	/*---------------------------related Product Settings-------------------*/

$freelancer_digital_agency_related_product_setting = get_theme_mod('freelancer_digital_agency_related_product_setting',true);

	if($freelancer_digital_agency_related_product_setting == false){

		$freelancer_digital_agency_custom_css .='.related.products, .related h2{';

			$freelancer_digital_agency_custom_css .='display: none;';

		$freelancer_digital_agency_custom_css .='}';
	}

	/*---------------------------Scroll to Top Alignment Settings-------------------*/

	$freelancer_digital_agency_scroll_top_position = get_theme_mod( 'freelancer_digital_agency_scroll_top_position','Right');

	if($freelancer_digital_agency_scroll_top_position == 'Right'){

		$freelancer_digital_agency_custom_css .='.scroll-up{';

			$freelancer_digital_agency_custom_css .='right: 20px;';

		$freelancer_digital_agency_custom_css .='}';

	}else if($freelancer_digital_agency_scroll_top_position == 'Left'){

		$freelancer_digital_agency_custom_css .='.scroll-up{';

			$freelancer_digital_agency_custom_css .='left: 20px;';

		$freelancer_digital_agency_custom_css .='}';

	}else if($freelancer_digital_agency_scroll_top_position == 'Center'){

		$freelancer_digital_agency_custom_css .='.scroll-up{';

			$freelancer_digital_agency_custom_css .='right: 50%;left: 50%;';

		$freelancer_digital_agency_custom_css .='}';
	}

		/*---------------------------Pagination Settings-------------------*/


$freelancer_digital_agency_pagination_setting = get_theme_mod('freelancer_digital_agency_pagination_setting',true);

	if($freelancer_digital_agency_pagination_setting == false){

		$freelancer_digital_agency_custom_css .='.nav-links{';

			$freelancer_digital_agency_custom_css .='display: none;';

		$freelancer_digital_agency_custom_css .='}';
	}

	/*--------------------------- Slider Opacity -------------------*/

	$freelancer_digital_agency_slider_opacity_color = get_theme_mod( 'freelancer_digital_agency_slider_opacity_color','0.5');

	if($freelancer_digital_agency_slider_opacity_color == '0'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.1'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.1';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.2'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.2';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.3'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.3';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.4'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.4';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.5'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.5';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.6'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.6';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.7'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.7';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.8'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.8';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == '0.9'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:0.9';

		$freelancer_digital_agency_custom_css .='}';

		}else if($freelancer_digital_agency_slider_opacity_color == 'unset'){

		$freelancer_digital_agency_custom_css .='.blog_inner_box img{';

			$freelancer_digital_agency_custom_css .='opacity:unset';

		$freelancer_digital_agency_custom_css .='}';

		}

		/*---------------------------woocommerce pagination alignment settings-------------------*/

	$freelancer_digital_agency_woocommerce_pagination_position = get_theme_mod( 'freelancer_digital_agency_woocommerce_pagination_position','Center');

	if($freelancer_digital_agency_woocommerce_pagination_position == 'Left'){

		$freelancer_digital_agency_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$freelancer_digital_agency_custom_css .='text-align: left;';

		$freelancer_digital_agency_custom_css .='}';

	}else if($freelancer_digital_agency_woocommerce_pagination_position == 'Center'){

		$freelancer_digital_agency_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$freelancer_digital_agency_custom_css .='text-align: center;';

		$freelancer_digital_agency_custom_css .='}';

	}else if($freelancer_digital_agency_woocommerce_pagination_position == 'Right'){

		$freelancer_digital_agency_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$freelancer_digital_agency_custom_css .='text-align: right;';

		$freelancer_digital_agency_custom_css .='}';
	}

/*---------------------------Global Color-------------------*/

$freelancer_digital_agency_first_color = get_theme_mod('freelancer_digital_agency_first_color');
$freelancer_digital_agency_second_color = get_theme_mod('freelancer_digital_agency_second_color');
$freelancer_digital_agency_third_color = get_theme_mod('freelancer_digital_agency_third_color');
$freelancer_digital_agency_fourth_color = get_theme_mod('freelancer_digital_agency_fourth_color');

/*--- First Global Color ---*/

if ($freelancer_digital_agency_first_color) {
  $freelancer_digital_agency_custom_css .= ':root {';
  $freelancer_digital_agency_custom_css .= '--first-color: ' . esc_attr($freelancer_digital_agency_first_color) . ' !important;';
  $freelancer_digital_agency_custom_css .= '} ';
}

/*--- Second Global Color ---*/

if ($freelancer_digital_agency_second_color) {
  $freelancer_digital_agency_custom_css .= ':root {';
  $freelancer_digital_agency_custom_css .= '--second-color: ' . esc_attr($freelancer_digital_agency_second_color) . ' !important;';
  $freelancer_digital_agency_custom_css .= '} ';
}

/*--- Third Global Color ---*/

if ($freelancer_digital_agency_third_color) {
  $freelancer_digital_agency_custom_css .= ':root {';
  $freelancer_digital_agency_custom_css .= '--third-color: ' . esc_attr($freelancer_digital_agency_third_color) . ' !important;';
  $freelancer_digital_agency_custom_css .= '} ';
}

/*--- Fourth Global Color ---*/

if ($freelancer_digital_agency_fourth_color) {
  $freelancer_digital_agency_custom_css .= ':root {';
  $freelancer_digital_agency_custom_css .= '--fourth-color: ' . esc_attr($freelancer_digital_agency_fourth_color) . ' !important;';
  $freelancer_digital_agency_custom_css .= '} ';
}