<?php
	
	$the_wp_fitness_first_theme_color = get_theme_mod('the_wp_fitness_first_theme_color');
	$the_wp_fitness_second_theme_color = get_theme_mod('the_wp_fitness_second_theme_color');

	$the_wp_fitness_custom_css = '';

	if($the_wp_fitness_first_theme_color != false){
		$the_wp_fitness_custom_css .=' #sidebar .tagcloud a:hover, .nav-menu ul ul a, .woocommerce .cart .button, .woocommerce .cart input.button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button.alt, h1.page-title, h1.search-title, .trainerbox h3:hover, .testbutton a:hover , #footer input[type="submit"], .read-more a, .pagination a:hover, .pagination .current , span.meta-nav , .woocommerce span.onsale, .title-box, #sidebar .tagcloud a:hover, #footer .tagcloud a:hover, .tags a:hover, #comments a.comment-reply-link, .back-to-top, .blogbtn a, .woocommerce-product-search button, a.button:hover, #slider .carousel-indicators .active {';
			$the_wp_fitness_custom_css .='background-color: '.esc_html($the_wp_fitness_first_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}
	if($the_wp_fitness_first_theme_color != false){
		$the_wp_fitness_custom_css .='a, code, nav-menu ul li a:active, .nav-menu ul li a:hover, #header .logo a, .widget_calendar caption, .nav-menu ul ul a:hover, .nav-menu a:hover, .social-media i:hover, #header .logo p,   .woocommerce-message, .woocommerce-message::before,  h1.woocommerce-products-header__title,  .blog-sec h3 a, testbutton a,  #footer h3, .footerinner ul li a:hover, .read-more a:hover, .carousel-control-next-icon, .carousel-control-prev-icon, span.post-title, .testbutton a:hover,  .tags a i, #comments a.comment-reply-link:hover, #comments input[type="submit"].submit:hover, #header .logo a, #wrapper .related-posts h2.related-posts-main-title, #wrapper .related-posts h3 a, .woocommerce ul.products li.product span.woocommerce-Price-amount.amount, a.button {';
			$the_wp_fitness_custom_css .='color: '.esc_html($the_wp_fitness_first_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}
	if($the_wp_fitness_first_theme_color != false){
		$the_wp_fitness_custom_css .=' 
		@media screen and (max-width:1000px){
		.nav-menu .current_page_item > a, .nav-menu .current-menu-item > a, .nav-menu .current_page_ancestor > a, .nav-menu ul li a:hover {';
			$the_wp_fitness_custom_css .='color: '.esc_html($the_wp_fitness_first_theme_color).';';
		$the_wp_fitness_custom_css .='} }';
	}
	if($the_wp_fitness_first_theme_color != false){
		$the_wp_fitness_custom_css .=' .woocommerce-message, .testbutton a, .pagination .current, .pagination a:hover, .nav-menu ul ul, .nav-menu ul ul a:hover, hr.images_border, #sidebar .tagcloud a:hover, #footer .tagcloud a:hover, .tags a:hover, a.button, a.button:hover  {';
			$the_wp_fitness_custom_css .='border-color: '.esc_html($the_wp_fitness_first_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}
	if($the_wp_fitness_first_theme_color != false){
		$the_wp_fitness_custom_css .='  .back-to-top::before{';
			$the_wp_fitness_custom_css .='border-bottom-color: '.esc_html($the_wp_fitness_first_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}

	if($the_wp_fitness_second_theme_color != false){
		$the_wp_fitness_custom_css .='.bradcrumbs a, input[type="submit"], a.button, #comments input[type="submit"].submit, #sidebar input[type="submit"], #header, .woocommerce ul.products li.product .button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .inner, .read-more a:hover, .nav-menu ul ul a:hover, #comments a.comment-reply-link:hover, .blogbtn a:hover, .testbutton a:hover, #slider .carousel-indicators li {';
			$the_wp_fitness_custom_css .='background-color: '.esc_html($the_wp_fitness_second_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}
	if($the_wp_fitness_second_theme_color != false){
		$the_wp_fitness_custom_css .='.pagination span, .pagination a, nav.woocommerce-MyAccount-navigation ul li a, h1.page-title, h1.search-title, .trainerbox h3 , #trainer h2 , .read-more a, .carousel-control-next-icon:hover, .carousel-control-prev-icon:hover, .about h3, .blog-sec h2 a, #sidebar h3, .pagination .current, #sidebar a.rsswidget, #sidebar .widget_calendar caption, #sidebar td#prev a, .testbutton a, #sidebar .tagcloud a:hover, #footer .tagcloud a:hover,  #sidebar ul li a:hover, #wrapper h1, span.meta-nav, #wrapper p a, .comment-meta.commentmetadata a, p.woocommerce-result-count, .woocommerce select.orderby, .woocommerce span.onsale, .woocommerce .cart .button, .woocommerce .cart input.button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, h2.woocommerce-loop-product__title, span.woocommerce-Price-amount.amount , .woocommerce ul.products li.product a, .woocommerce div.product .product_title, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button.alt, .woocommerce span a, .woocommerce table.shop_table td a, a.showcoupon, .blogbtn a, .woocommerce-product-search button{';
			$the_wp_fitness_custom_css .='color: '.esc_html($the_wp_fitness_second_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}
	if($the_wp_fitness_second_theme_color != false){
		$the_wp_fitness_custom_css .='nav.woocommerce-MyAccount-navigation ul li,  .blog-sec, #sidebar form, #sidebar h3 , #wrapper, .pagination span, .pagination a, #sidebar aside, #wrapper, .woocommerce select.orderby{';
			$the_wp_fitness_custom_css .='border-color: '.esc_html($the_wp_fitness_second_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}
	if($the_wp_fitness_second_theme_color != false){
		$the_wp_fitness_custom_css .=' a:focus, input:focus, textarea:focus {';
			$the_wp_fitness_custom_css .='outline-color: '.esc_html($the_wp_fitness_second_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}
	if($the_wp_fitness_second_theme_color != false){
		$the_wp_fitness_custom_css .='  .back-to-top::after{';
			$the_wp_fitness_custom_css .='border-bottom-color: '.esc_html($the_wp_fitness_second_theme_color).';';
		$the_wp_fitness_custom_css .='}';
	}

	// Layout Options
	$the_wp_fitness_theme_layout = get_theme_mod( 'the_wp_fitness_theme_layout_options','Default Theme');
    if($the_wp_fitness_theme_layout == 'Default Theme'){
		$the_wp_fitness_custom_css .='body{';
			$the_wp_fitness_custom_css .='max-width: 100%;';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_theme_layout == 'Container Theme'){
		$the_wp_fitness_custom_css .='body{';
			$the_wp_fitness_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='.page-template-custom-front-page .menu-sec{';
			$the_wp_fitness_custom_css .='right:0;';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_theme_layout == 'Box Container Theme'){
		$the_wp_fitness_custom_css .='body{';
			$the_wp_fitness_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='.page-template-custom-front-page .menu-sec{';
			$the_wp_fitness_custom_css .='right:0;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='#header .logo{';
			$the_wp_fitness_custom_css .='padding:10px 15px 10px 25px;';
		$the_wp_fitness_custom_css .='}';
	}


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

	$the_wp_fitness_slider_layout = get_theme_mod( 'the_wp_fitness_slider_opacity_color','0.7');
	if($the_wp_fitness_slider_layout == '0'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.1'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.1';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.2'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.2';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.3'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.3';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.4'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.4';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.5'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.5';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.6'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.6';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.7'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.7';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.8'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.8';
		$the_wp_fitness_custom_css .='}';
	}else if($the_wp_fitness_slider_layout == '0.9'){
		$the_wp_fitness_custom_css .='#slider img{';
			$the_wp_fitness_custom_css .='opacity:0.9';
		$the_wp_fitness_custom_css .='}';
	}

	/*--------------Slider Content Layout ---------------*/

	$the_wp_fitness_slider_layout = get_theme_mod( 'the_wp_fitness_slider_alignment_option','Right Align');
    if($the_wp_fitness_slider_layout == 'Left Align'){
		$the_wp_fitness_custom_css .='#slider .carousel-caption{';
			$the_wp_fitness_custom_css .='text-align:left;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='#slider .carousel-caption{';
		$the_wp_fitness_custom_css .='left:15%; right:50%;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='@media screen and (max-width: 1000px){
			#slider .carousel-caption{';
			$the_wp_fitness_custom_css .='right:40%;';
		$the_wp_fitness_custom_css .='} }';

	}else if($the_wp_fitness_slider_layout == 'Center Align'){
		$the_wp_fitness_custom_css .='#slider .carousel-caption, #slider .inner_carousel, #slider .inner_carousel h1{';
			$the_wp_fitness_custom_css .='text-align:center;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='#slider .carousel-caption{';
		$the_wp_fitness_custom_css .='left:30%; right:30%;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='@media screen and (max-width: 1000px){
			#slider .carousel-caption{';
			$the_wp_fitness_custom_css .='right:15%; left:15%;';
		$the_wp_fitness_custom_css .='} }';

	}else if($the_wp_fitness_slider_layout == 'Right Align'){
		$the_wp_fitness_custom_css .='#slider .carousel-caption{';
			$the_wp_fitness_custom_css .='text-align:right;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='#slider .carousel-caption{';
		$the_wp_fitness_custom_css .='left:50%; right:15%;';
		$the_wp_fitness_custom_css .='}';
		$the_wp_fitness_custom_css .='@media screen and (max-width: 1000px){
			#slider .carousel-caption{';
			$the_wp_fitness_custom_css .='left:40%;';
		$the_wp_fitness_custom_css .='} }';
	}

	/*--------- Preloader Color Option -------*/
	$the_wp_fitness_preloader_color = get_theme_mod('the_wp_fitness_preloader_color');

	if($the_wp_fitness_preloader_color != false){
		$the_wp_fitness_custom_css .=' .tg-loader{';
			$the_wp_fitness_custom_css .='border-color: '.esc_html($the_wp_fitness_preloader_color).';';
		$the_wp_fitness_custom_css .='} ';
		$the_wp_fitness_custom_css .=' .tg-loader-inner{';
			$the_wp_fitness_custom_css .='background-color: '.esc_html($the_wp_fitness_preloader_color).';';
		$the_wp_fitness_custom_css .='} ';
	}

	$the_wp_fitness_preloader_bg_color = get_theme_mod('the_wp_fitness_preloader_bg_color');

	if($the_wp_fitness_preloader_bg_color != false){
		$the_wp_fitness_custom_css .=' #overlayer{';
			$the_wp_fitness_custom_css .='background-color: '.esc_html($the_wp_fitness_preloader_bg_color).';';
		$the_wp_fitness_custom_css .='} ';
	}

	/*------------ Button Settings option-----------------*/

	$the_wp_fitness_top_button_padding = get_theme_mod('the_wp_fitness_top_button_padding');
	$the_wp_fitness_bottom_button_padding = get_theme_mod('the_wp_fitness_bottom_button_padding');
	$the_wp_fitness_left_button_padding = get_theme_mod('the_wp_fitness_left_button_padding');
	$the_wp_fitness_right_button_padding = get_theme_mod('the_wp_fitness_right_button_padding');
	if($the_wp_fitness_top_button_padding != false || $the_wp_fitness_bottom_button_padding != false || $the_wp_fitness_left_button_padding != false || $the_wp_fitness_right_button_padding != false){
		$the_wp_fitness_custom_css .='.blogbtn a, .read-more a, .testbutton a, #comments input[type="submit"].submit{';
			$the_wp_fitness_custom_css .='padding-top: '.esc_html($the_wp_fitness_top_button_padding).'px; padding-bottom: '.esc_html($the_wp_fitness_bottom_button_padding).'px; padding-left: '.esc_html($the_wp_fitness_left_button_padding).'px; padding-right: '.esc_html($the_wp_fitness_right_button_padding).'px; display:inline-block;';
		$the_wp_fitness_custom_css .='}';
	}

	$the_wp_fitness_button_border_radius = get_theme_mod('the_wp_fitness_button_border_radius',0);
	$the_wp_fitness_custom_css .='.blogbtn a, .read-more a, .testbutton a, #comments input[type="submit"].submit{';
		$the_wp_fitness_custom_css .='border-radius: '.esc_html($the_wp_fitness_button_border_radius).'px;';
	$the_wp_fitness_custom_css .='}';

	/*----------- Copyright css -----*/
	$the_wp_fitness_copyright_top_padding = get_theme_mod('the_wp_fitness_top_copyright_padding');
	$the_wp_fitness_copyright_bottom_padding = get_theme_mod('the_wp_fitness_bottom_copyright_padding');
	if($the_wp_fitness_copyright_top_padding != false || $the_wp_fitness_copyright_bottom_padding != false){
		$the_wp_fitness_custom_css .='.inner{';
			$the_wp_fitness_custom_css .='padding-top: '.esc_html($the_wp_fitness_copyright_top_padding).'px; padding-bottom: '.esc_html($the_wp_fitness_copyright_bottom_padding).'px; ';
		$the_wp_fitness_custom_css .='}';
	} 

	$the_wp_fitness_copyright_alignment = get_theme_mod('the_wp_fitness_copyright_alignment', 'center');
	if($the_wp_fitness_copyright_alignment == 'center' ){
		$the_wp_fitness_custom_css .='#footer .inner p{';
			$the_wp_fitness_custom_css .='text-align: '. $the_wp_fitness_copyright_alignment .';';
		$the_wp_fitness_custom_css .='}';
	}elseif($the_wp_fitness_copyright_alignment == 'left' ){
		$the_wp_fitness_custom_css .='#footer .inner p{';
			$the_wp_fitness_custom_css .=' text-align: '. $the_wp_fitness_copyright_alignment .';';
		$the_wp_fitness_custom_css .='}';
	}elseif($the_wp_fitness_copyright_alignment == 'right' ){
		$the_wp_fitness_custom_css .='#footer .inner p{';
			$the_wp_fitness_custom_css .='text-align: '. $the_wp_fitness_copyright_alignment .';';
		$the_wp_fitness_custom_css .='}';
	}

	$the_wp_fitness_copyright_font_size = get_theme_mod('the_wp_fitness_copyright_font_size');
	$the_wp_fitness_custom_css .='#footer .inner p{';
		$the_wp_fitness_custom_css .='font-size: '.esc_html($the_wp_fitness_copyright_font_size).'px;';
	$the_wp_fitness_custom_css .='}';

	/*------ Slider Show/Hide ------*/
	$the_wp_fitness_slider = get_theme_mod('the_wp_fitness_slider_hide');
	if($the_wp_fitness_slider == false ){
		$the_wp_fitness_custom_css .='.page-template-custom-front-page .menu-sec{';
			$the_wp_fitness_custom_css .='position: static; ';
		$the_wp_fitness_custom_css .='}';
	}