<?php
	
	$the_writers_blog_theme_color = get_theme_mod('the_writers_blog_theme_color');

	$the_writers_blog_custom_css = '';

	$the_writers_blog_custom_css .='a.wc-block-components-totals-coupon-link, a.components-button.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained, a.wc-block-components-checkout-return-to-cart-button, .wc-block-components-totals-coupon__button.contained, button.wc-block-components-checkout-place-order-button ,#sidebox .wp-block-heading, #sidebox .wp-block-search__label ,.wp-block-button a ,#masthead .main-header, #slider .readbutton, #slider .cats, .woocommerce span.onsale, nav.woocommerce-MyAccount-navigation ul li, .blogger .icons i, .blogger .post-link, .blogger .aboutbtn, #sidebox h2, button.search-submit, .copyright, .widget .tagcloud a:hover,.widget .tagcloud a:focus,.widget.widget_tag_cloud a:hover,.widget.widget_tag_cloud a:focus,.wp_widget_tag_cloud a:hover,.wp_widget_tag_cloud a:focus, button,input[type="button"],input[type="submit"], .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,.comment-reply-link,.scrollup i,.tags p a, .post-navigation .nav-next a, .post-navigation .nav-previous a,.page-numbers, #sidebox h3, #sidebox .widget_price_filter .ui-slider-horizontal .ui-slider-range, #sidebox .widget_price_filter .ui-slider .ui-slider-handle, .site-footer .widget_price_filter .ui-slider-horizontal .ui-slider-range, .site-footer .widget_price_filter .ui-slider .ui-slider-handle, .nav-links .nav-previous a, .nav-links .nav-next a, .page-box a.post-link, .site-footer button.search-submit, #sidebox button.search-submit, #sidebox button, .site-footer button[type="submit"], .breadcrumb a , .breadcrumb span {';
		$the_writers_blog_custom_css .='background-color: '.esc_attr($the_writers_blog_theme_color).';';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_custom_css .='.main-navigation a:hover , .social-icons i:hover, #slider .readbutton:hover a, #slider .post-info i, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .blogger p.cat-pst, .blogger .aboutbtn:hover a, .post-info i,.main-navigation ul ul li a, .woocommerce-info::before, .box-content h4 a, .text p a, span.tagged_as a,#sidebox ul li a:hover,.main-navigation li li:focus > a, .main-navigation li li:hover > a, .post-info a:hover, .woocommerce-product-details__short-description p a, .woocommerce-tabs.wc-tabs-wrapper p a, #sidebox .textwidget p a, .page-box .content h3 a, .page-box .read-more-btn a, .blogger h2 a:hover, .category a:hover, p.logged-in-as a,.related-posts h3 a:hover, a{';
		$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_theme_color).';';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_custom_css .='.main-navigation ul ul, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, #slider .readbutton, .blogger .aboutbtn, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,.scrollup i, .page-box a.post-link{';
		$the_writers_blog_custom_css .='border-color: '.esc_attr($the_writers_blog_theme_color).';';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_custom_css .='.site-footer ul li a:hover , .wp-block-button:hover a{';
		$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_theme_color).'!important;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_custom_css .='.woocommerce-info{';
		$the_writers_blog_custom_css .='border-top-color: '.esc_attr($the_writers_blog_theme_color).'!important;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_custom_css .='.main-navigation ul ul li:hover{';
		$the_writers_blog_custom_css .='border-left-color: '.esc_attr($the_writers_blog_theme_color).'!important;';
	$the_writers_blog_custom_css .='}';


	$the_writers_blog_custom_css .='.wp-block-button a , .wc-block-grid__product-onsale  {';
		$the_writers_blog_custom_css .='background: '.esc_attr($the_writers_blog_theme_color).'!important;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_custom_css .='.wp-block-button a , .wp-block-button a:hover , .wc-block-grid__product-onsale ,button.wc-block-components-checkout-place-order-button:hover, a.wc-block-components-totals-coupon-link:hover, a.components-button.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover, a.wc-block-components-checkout-return-to-cart-button:hover{';
		$the_writers_blog_custom_css .='border-color: '.esc_attr($the_writers_blog_theme_color).'!important;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_custom_css .='button.wc-block-components-checkout-place-order-button:hover, a.wc-block-components-totals-coupon-link:hover, a.components-button.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover, a.wc-block-components-checkout-return-to-cart-button:hover{';
		$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_theme_color).'!important;';
	$the_writers_blog_custom_css .='}';

	// media
	$the_writers_blog_custom_css .='@media screen and (max-width:768px) {';
	$the_writers_blog_custom_css .='.page-template-home-custom #masthead .main-header{';
		$the_writers_blog_custom_css .='background-color: '.esc_attr($the_writers_blog_theme_color).'; }';	
	$the_writers_blog_custom_css .=' }';

	// css
	$the_writers_blog_slider_arrows = get_theme_mod( 'the_writers_blog_slider_arrows', false);
	if($the_writers_blog_slider_arrows == false){
		$the_writers_blog_custom_css .='.page-template-home-custom #masthead .main-header{';
			$the_writers_blog_custom_css .='position:static; background-color: #fe0219; padding: 10px 0;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.page-template-home-custom #masthead .top-menu{';
			$the_writers_blog_custom_css .='background:#fff;';
		$the_writers_blog_custom_css .='}';
	}

	/*---------------------------Width Layout -------------------*/
	$the_writers_blog_theme_lay = get_theme_mod( 'the_writers_blog_theme_options','Default');
    if($the_writers_blog_theme_lay == 'Default'){
		$the_writers_blog_custom_css .='body{';
			$the_writers_blog_custom_css .='max-width: 100%;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.page-template-custom-home-page .middle-header{';
			$the_writers_blog_custom_css .='width: 97.3%';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_theme_lay == 'Wide Layout'){
		$the_writers_blog_custom_css .='body{';
			$the_writers_blog_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='
		@media screen and (max-width: 768px){
		.page-template-home-custom #masthead .main-header{';
		$the_writers_blog_custom_css .='width:100%;';
		$the_writers_blog_custom_css .='} }';

	}else if($the_writers_blog_theme_lay == 'Box Layout'){
		$the_writers_blog_custom_css .='body{';
			$the_writers_blog_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
		$the_writers_blog_custom_css .='}';
	}

	/*--------------------------- Slider Opacity -------------------*/
	$the_writers_blog_slider_layout = get_theme_mod( 'the_writers_blog_slider_opacity_color', 0.9);
	if($the_writers_blog_slider_layout == '0'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.1'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.1';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.2'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.2';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.3'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.3';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.4'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.4';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.5'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.5';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.6'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.6';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.7'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.7';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.8'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.8';
		$the_writers_blog_custom_css .='}';
		}else if($the_writers_blog_slider_layout == '0.9'){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:0.9';
		$the_writers_blog_custom_css .='}';
		}

	/*---------------------------Slider Content Layout -------------------*/
	$the_writers_blog_slider_layout = get_theme_mod( 'the_writers_blog_slider_content_option','Left');
    if($the_writers_blog_slider_layout == 'Left'){
		$the_writers_blog_custom_css .='#slider .carousel-caption{';
			$the_writers_blog_custom_css .='text-align:left; left:9%; right:55%;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='
		@media screen and (max-width: 990px) and (min-width: 768px){
		#slider .carousel-caption{';
		$the_writers_blog_custom_css .='top:57%;';
		$the_writers_blog_custom_css .='} }';
		$the_writers_blog_custom_css .='
		@media screen and (max-width: 767px) and (min-width: 320px){
		#slider .readbutton, #slider .carousel-caption,#slider .inner_carousel{';
		$the_writers_blog_custom_css .='text-align:left; left:15%; right:15%;';
		$the_writers_blog_custom_css .='} 
		#slider .readbutton{';
		$the_writers_blog_custom_css .='text-align:left; left:0%;';
		$the_writers_blog_custom_css .='} }';
	}else if($the_writers_blog_slider_layout == 'Center'){
		$the_writers_blog_custom_css .='#slider .carousel-caption{';
			$the_writers_blog_custom_css .='text-align:center; left:32%; right:32%;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='
		@media screen and (max-width: 767px) and (min-width: 320px){
		#slider .carousel-caption{';
		$the_writers_blog_custom_css .='text-align:center; left:15%; right:10%;';
		$the_writers_blog_custom_css .='} }';
	}else if($the_writers_blog_slider_layout == 'Right'){
		$the_writers_blog_custom_css .='#slider .carousel-caption{';
			$the_writers_blog_custom_css .='text-align:right; left:55%; right:9%;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='
		@media screen and (max-width: 767px) and (min-width: 320px){
		#slider .readbutton{';
		$the_writers_blog_custom_css .='text-align:right; left:0%; right:15%;';
		$the_writers_blog_custom_css .='}
		#slider .carousel-caption, #slider .inner_carousel{';
		$the_writers_blog_custom_css .='text-align:right; left:15%; right:15%;';
		$the_writers_blog_custom_css .='} }';
	}

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

	$the_writers_blog_btn_font_size_option = get_theme_mod('the_writers_blog_btn_font_size_option', 13);
	$the_writers_blog_custom_css .='.blogger .aboutbtn a,#slider .readbutton, .form-submit input[type="submit"]{';
	$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_btn_font_size_option).'px;';
	$the_writers_blog_custom_css .='}';


	$the_writers_blog_top_bottom_padding = get_theme_mod('the_writers_blog_top_bottom_padding');
	$the_writers_blog_left_right_padding = get_theme_mod('the_writers_blog_left_right_padding');
	$the_writers_blog_custom_css .='.blogger .aboutbtn, #slider .readbutton, .form-submit input[type="submit"]{';
		$the_writers_blog_custom_css .='padding-top: '.esc_attr($the_writers_blog_top_bottom_padding).'px; padding-bottom: '.esc_attr($the_writers_blog_top_bottom_padding).'px; padding-left: '.esc_attr($the_writers_blog_left_right_padding).'px; padding-right: '.esc_attr($the_writers_blog_left_right_padding).'px; display:inline-block;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_border_radius = get_theme_mod('the_writers_blog_border_radius');
		$the_writers_blog_custom_css .='.blogger .aboutbtn,#slider .readbutton, .form-submit input[type="submit"]{';
			$the_writers_blog_custom_css .='border-radius: '.esc_attr($the_writers_blog_border_radius).'px;';
		$the_writers_blog_custom_css .='}';

	// Button Text Transform
	$the_writers_blog_theme_lay = get_theme_mod( 'the_writers_blog_button_text_transform','Uppercase');
	   if($the_writers_blog_theme_lay == 'Uppercase'){
		$the_writers_blog_custom_css .='.blogger .aboutbtn,#slider .readbutton, .form-submit input[type="submit"]{';
		$the_writers_blog_custom_css .='text-transform: uppercase;';
		$the_writers_blog_custom_css .='}';
	   }else if($the_writers_blog_theme_lay == 'Lowercase'){
		$the_writers_blog_custom_css .='.blogger .aboutbtn,#slider .readbutton, .form-submit input[type="submit"]{';
		$the_writers_blog_custom_css .='text-transform: lowercase;';
		$the_writers_blog_custom_css .='}';
	   }
	   else if($the_writers_blog_theme_lay == 'Capitalize'){
	    $the_writers_blog_custom_css .='.blogger .aboutbtn,#slider .readbutton, .form-submit input[type="submit"]{';
	    $the_writers_blog_custom_css .='text-transform: capitalize;';
		$the_writers_blog_custom_css .='}';
	   }

	// font weight
    $the_writers_blog_btn_font_weight = get_theme_mod('the_writers_blog_btn_font_weight');{
	$the_writers_blog_custom_css .='.blogger .aboutbtn a,#slider .readbutton, .form-submit input[type="submit"]{';
	$the_writers_blog_custom_css .='font-weight: '.esc_attr($the_writers_blog_btn_font_weight).';';
	$the_writers_blog_custom_css .='}';
	} 
	
	//Button hover effect
	$the_writers_blog_button_hover_effect = get_theme_mod('the_writers_blog_button_hover_effect', 'disable');
	if ($the_writers_blog_button_hover_effect !== 'disable') {
		$the_writers_blog_custom_css .= '.aboutbtn:hover {';
		switch ($the_writers_blog_button_hover_effect) {
			case 'pulse':
				$the_writers_blog_custom_css .= 'animation: pulse 0.5s ease-in-out;';
				break;
			case 'rubberBand':
				$the_writers_blog_custom_css .= 'animation: rubberBand 0.5s ease-in-out;';
				break;
			case 'swing':
				$the_writers_blog_custom_css .= 'animation: swing 0.5s ease-in-out;';
				break;
			case 'tada':
				$the_writers_blog_custom_css .= 'animation: tada 0.5s ease-in-out;';
				break;
			case 'jello':
				$the_writers_blog_custom_css .= 'animation: jello 0.5s ease-in-out;';
				break;
		}
		$the_writers_blog_custom_css .= '}';
	}

	//keyframes for all animations
	$the_writers_blog_custom_css .= '
	@keyframes pulse {
		0% { transform: scale(1); }
		50% { transform: scale(1.1); }
		100% { transform: scale(1); }
	}

	@keyframes rubberBand {
		0% { transform: scale(1); }
		30% { transform: scaleX(1.25) scaleY(0.75); }
		40% { transform: scaleX(0.75) scaleY(1.25); }
		50% { transform: scale(1); }
	}

	@keyframes swing {
		20% { transform: rotate(15deg); }
		40% { transform: rotate(-10deg); }
		60% { transform: rotate(5deg); }
		80% { transform: rotate(-5deg); }
		100% { transform: rotate(0deg); }
	}

	@keyframes tada {
		0% { transform: scale(1); }
		10%, 20% { transform: scale(0.9) rotate(-3deg); }
		30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
		40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
		100% { transform: scale(1) rotate(0); }
	}

	@keyframes jello {
		0%, 11.1%, 100% { transform: none; }
		22.2% { transform: skewX(-12.5deg) skewY(-12.5deg); }
		33.3% { transform: skewX(6.25deg) skewY(6.25deg); }
		44.4% { transform: skewX(-3.125deg) skewY(-3.125deg); }
		55.5% { transform: skewX(1.5625deg) skewY(1.5625deg); }
		66.6% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
		77.7% { transform: skewX(0.390625deg) skewY(0.390625deg); }
		88.8% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
	}';

	/*---------------------------Blog Layout -------------------*/
	$the_writers_blog_theme_lay = get_theme_mod( 'the_writers_blog_blog_post_layout','Default');
    if($the_writers_blog_theme_lay == 'Default'){
		$the_writers_blog_custom_css .='.blogger{';
			$the_writers_blog_custom_css .='';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_theme_lay == 'Center'){
		if(get_theme_mod('the_writers_blog_button_text',false)){
			$the_writers_blog_custom_css .='.blogger .icons{';
				$the_writers_blog_custom_css .='text-align:center; position: relative;
				margin-bottom: -33px; bottom:0;';
			$the_writers_blog_custom_css .='}';
			$the_writers_blog_custom_css .='.format-audio .icons, .format-video .icons, .format-gallery .icons{';
				$the_writers_blog_custom_css .='text-align:center; ';
			$the_writers_blog_custom_css .='}';
		}
		$the_writers_blog_custom_css .='.blogger, .blogger h2, .post-info, .text p, .blogger .aboutbtn, p.cat-pst{';
			$the_writers_blog_custom_css .='text-align:center;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.post-info{';
			$the_writers_blog_custom_css .='margin:10px 0;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.blogger .aboutbtn{';
			$the_writers_blog_custom_css .='margin-top:25px;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.box-content{';
			$the_writers_blog_custom_css .='margin:0;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='@media screen and (max-width:768px){
			.blogger .icons, .box-content{';
				$the_writers_blog_custom_css .='text-align:center; ';
			$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .'}';
	}else if($the_writers_blog_theme_lay == 'Left'){
		$the_writers_blog_custom_css .='.page-box, .page-box h2, .post-info, .text p, .page-box .aboutbtn, #our-services p, p.cat-pst{';
			$the_writers_blog_custom_css .='text-align:Left;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.page-box .aboutbtn{';
			$the_writers_blog_custom_css .='margin:20px 0;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.post-info hr{';
			$the_writers_blog_custom_css .='margin-bottom:10px;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.page-box h2{';
			$the_writers_blog_custom_css .='margin-top:10px;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.post-info i{';
			$the_writers_blog_custom_css .='margin-left:0;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.post-info{';
			$the_writers_blog_custom_css .='margin:10px 0;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.box-content{';
			$the_writers_blog_custom_css .='margin:0;';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_theme_lay == 'Content and Center'){
		$the_writers_blog_custom_css .='.blogger{';
			$the_writers_blog_custom_css .='';
		$the_writers_blog_custom_css .='}';
	}

	/*--------- Preloader Color Option -------*/
	$the_writers_blog_loader_color_setting = get_theme_mod('the_writers_blog_loader_color_setting');
	$the_writers_blog_custom_css .=' .circle .inner{';
		$the_writers_blog_custom_css .='border-color: '.esc_attr($the_writers_blog_loader_color_setting).';';
	$the_writers_blog_custom_css .='} ';

	$the_writers_blog_loader_background_color = get_theme_mod('the_writers_blog_loader_background_color');
	$the_writers_blog_custom_css .=' #pre-loader{';
		$the_writers_blog_custom_css .='background-color: '.esc_attr($the_writers_blog_loader_background_color).';';
	$the_writers_blog_custom_css .='} ';

	$the_writers_blog_theme_lay = get_theme_mod( 'the_writers_blog_preloader_types','Default');
    if($the_writers_blog_theme_lay == 'Default'){
		$the_writers_blog_custom_css .='{';
			$the_writers_blog_custom_css .='';
		$the_writers_blog_custom_css .='}';
	}elseif($the_writers_blog_theme_lay == 'Circle'){
		$the_writers_blog_custom_css .='.circle .inner{';
			$the_writers_blog_custom_css .='width:unset;';
		$the_writers_blog_custom_css .='}';
	}elseif($the_writers_blog_theme_lay == 'Two Circle'){
		$the_writers_blog_custom_css .='.circle .inner{';
			$the_writers_blog_custom_css .='width:80%;
    border-right: 5px;';
		$the_writers_blog_custom_css .='}';
	}

	// Responsive Media
	$the_writers_blog_sidebar = get_theme_mod( 'the_writers_blog_enable_disable_sidebar',true);
    if($the_writers_blog_sidebar == true){
    	$the_writers_blog_custom_css .='@media screen and (max-width:575px) {';
		$the_writers_blog_custom_css .='#sidebox{';
			$the_writers_blog_custom_css .='display:block;';
		$the_writers_blog_custom_css .='} }';
	}else if($the_writers_blog_sidebar == false){
		$the_writers_blog_custom_css .='@media screen and (max-width:575px) {';
		$the_writers_blog_custom_css .='#sidebox{';
			$the_writers_blog_custom_css .='display:none;';
		$the_writers_blog_custom_css .='} }';
	}

	$the_writers_blog_sliderbutton = get_theme_mod( 'the_writers_blog_enable_disable_slider',true);
	if($the_writers_blog_sliderbutton == true && get_theme_mod( 'the_writers_blog_slider_arrows', false) == false){
    	$the_writers_blog_custom_css .='#slider{';
			$the_writers_blog_custom_css .='display:none;';
		$the_writers_blog_custom_css .='} ';
	}
    if($the_writers_blog_sliderbutton == true){
    	$the_writers_blog_custom_css .='@media screen and (max-width:575px) {';
		$the_writers_blog_custom_css .='#slider{';
			$the_writers_blog_custom_css .='display:block;';
		$the_writers_blog_custom_css .='} }';
	}else if($the_writers_blog_sliderbutton == false){
		$the_writers_blog_custom_css .='@media screen and (max-width:575px){';
		$the_writers_blog_custom_css .='#slider{';
			$the_writers_blog_custom_css .='display:none;';
		$the_writers_blog_custom_css .='} }';
	}

	$the_writers_blog_sliderbutton = get_theme_mod( 'the_writers_blog_show_hide_slider_button',true);
	if($the_writers_blog_sliderbutton == true && get_theme_mod( 'the_writers_blog_slider_button',true) != true){
    	$the_writers_blog_custom_css .='#slider .readbutton{';
			$the_writers_blog_custom_css .='display:none;';
		$the_writers_blog_custom_css .='} ';
	}
    if($the_writers_blog_sliderbutton == true){
    	$the_writers_blog_custom_css .='@media screen and (max-width:575px) {';
		$the_writers_blog_custom_css .='#slider .readbutton{';
			$the_writers_blog_custom_css .='display: inline-block;';
		$the_writers_blog_custom_css .='} }';
	}else if($the_writers_blog_sliderbutton == false){
		$the_writers_blog_custom_css .='@media screen and (max-width:575px){';
		$the_writers_blog_custom_css .='#slider .readbutton{';
			$the_writers_blog_custom_css .='display:none;';
		$the_writers_blog_custom_css .='} }';
	}

	$the_writers_blog_sliderbutton = get_theme_mod( 'the_writers_blog_enable_disable_scrolltop',false);
	if($the_writers_blog_sliderbutton == true && get_theme_mod( 'the_writers_blog_hide_show_scroll',false) == false){
    	$the_writers_blog_custom_css .='.scrollup i{';
			$the_writers_blog_custom_css .='display:none;';
		$the_writers_blog_custom_css .='} ';
	}
    if($the_writers_blog_sliderbutton == true){
    	$the_writers_blog_custom_css .='@media screen and (max-width:575px) {';
		$the_writers_blog_custom_css .='.scrollup i{';
			$the_writers_blog_custom_css .='display:block;';
		$the_writers_blog_custom_css .='} }';
	}else if($the_writers_blog_sliderbutton == false){
		$the_writers_blog_custom_css .='@media screen and (max-width:575px){';
		$the_writers_blog_custom_css .='.scrollup i{';
			$the_writers_blog_custom_css .='display:none;';
		$the_writers_blog_custom_css .='} }';
	}

	// Copyright top-bottom padding setting 
	$the_writers_blog_copyright_top_bottom_padding = get_theme_mod('the_writers_blog_copyright_top_bottom_padding');
	$the_writers_blog_custom_css .='.copyright{';
		$the_writers_blog_custom_css .='padding-top: '.esc_attr($the_writers_blog_copyright_top_bottom_padding).'px; padding-bottom: '.esc_attr($the_writers_blog_copyright_top_bottom_padding).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_footer_text_font_size = get_theme_mod('the_writers_blog_footer_text_font_size', 16);
	$the_writers_blog_custom_css .='.site-info{';
		$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_footer_text_font_size).'px;';
	$the_writers_blog_custom_css .='}';

	// Slider Height 
	$the_writers_blog_slider_height_option = get_theme_mod('the_writers_blog_slider_height_option');
	$the_writers_blog_custom_css .='#slider img{';
		$the_writers_blog_custom_css .='height: '.esc_attr($the_writers_blog_slider_height_option).'px;';
	$the_writers_blog_custom_css .='}';

	// scroll to top setting
	$the_writers_blog_scroll_border_radius = get_theme_mod('the_writers_blog_scroll_border_radius');
	$the_writers_blog_custom_css .='.scrollup i{';
		$the_writers_blog_custom_css .='border-radius: '.esc_attr($the_writers_blog_scroll_border_radius).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_scroll_top_fontsize = get_theme_mod('the_writers_blog_scroll_top_fontsize');
	$the_writers_blog_custom_css .='.scrollup i{';
		$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_scroll_top_fontsize).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_scroll_top_bottom_padding = get_theme_mod('the_writers_blog_scroll_top_bottom_padding');
	$the_writers_blog_scroll_left_right_padding = get_theme_mod('the_writers_blog_scroll_left_right_padding');
	$the_writers_blog_custom_css .='.scrollup i{';
		$the_writers_blog_custom_css .='padding-top: '.esc_attr($the_writers_blog_scroll_top_bottom_padding).'px; padding-bottom: '.esc_attr($the_writers_blog_scroll_top_bottom_padding).'px; padding-left: '.esc_attr($the_writers_blog_scroll_left_right_padding).'px; padding-right: '.esc_attr($the_writers_blog_scroll_left_right_padding).'px;';
	$the_writers_blog_custom_css .='}';

	// comment settings
	$the_writers_blog_comment_button_text = get_theme_mod('the_writers_blog_comment_button_text', 'Post Comment');
	if($the_writers_blog_comment_button_text == ''){
		$the_writers_blog_custom_css .='#comments p.form-submit {';
			$the_writers_blog_custom_css .='display: none;';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_comment_form_heading = get_theme_mod('the_writers_blog_comment_form_heading', 'Leave a Reply');
	if($the_writers_blog_comment_form_heading == ''){
		$the_writers_blog_custom_css .='#comments h2#reply-title {';
			$the_writers_blog_custom_css .='display: none;';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_comment_form_size = get_theme_mod( 'the_writers_blog_comment_form_size',100);
	$the_writers_blog_custom_css .='#comments textarea{';
		$the_writers_blog_custom_css .='width: '.esc_attr($the_writers_blog_comment_form_size).'%;';
	$the_writers_blog_custom_css .='}';

	/*------------ Woocommerce Settings  --------------*/
	$the_writers_blog_shop_button_padding_top = get_theme_mod('the_writers_blog_shop_button_padding_top', 9);
	$the_writers_blog_custom_css .='.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled]{';
		$the_writers_blog_custom_css .='padding-top: '.esc_attr($the_writers_blog_shop_button_padding_top).'px; padding-bottom: '.esc_attr($the_writers_blog_shop_button_padding_top).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_shop_button_padding_left = get_theme_mod('the_writers_blog_shop_button_padding_left', 16);
	$the_writers_blog_custom_css .='.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled]{';
		$the_writers_blog_custom_css .='padding-left: '.esc_attr($the_writers_blog_shop_button_padding_left).'px; padding-right: '.esc_attr($the_writers_blog_shop_button_padding_left).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_shop_button_border_radius = get_theme_mod('the_writers_blog_shop_button_border_radius',0);
	$the_writers_blog_custom_css .='.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt{';
		$the_writers_blog_custom_css .='border-radius: '.esc_attr($the_writers_blog_shop_button_border_radius).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_display_related_products = get_theme_mod('the_writers_blog_display_related_products',true);
	if($the_writers_blog_display_related_products == false){
		$the_writers_blog_custom_css .='.related.products{';
			$the_writers_blog_custom_css .='display: none;';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_shop_products_border = get_theme_mod('the_writers_blog_shop_products_border', false);
	if($the_writers_blog_shop_products_border == true){
		$the_writers_blog_custom_css .='.woocommerce .products li{';
			$the_writers_blog_custom_css .='border: 1px solid #ddd;';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_shop_page_top_padding = get_theme_mod('the_writers_blog_shop_page_top_padding',10);
	$the_writers_blog_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$the_writers_blog_custom_css .='padding-top: '.esc_attr($the_writers_blog_shop_page_top_padding).'px !important; padding-bottom: '.esc_attr($the_writers_blog_shop_page_top_padding).'px !important;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_shop_page_left_padding = get_theme_mod('the_writers_blog_shop_page_left_padding',10);
	$the_writers_blog_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$the_writers_blog_custom_css .='padding-left: '.esc_attr($the_writers_blog_shop_page_left_padding).'px !important; padding-right: '.esc_attr($the_writers_blog_shop_page_left_padding).'px !important;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_shop_page_border_radius = get_theme_mod('the_writers_blog_shop_page_border_radius',0);
	$the_writers_blog_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$the_writers_blog_custom_css .='border-radius: '.esc_attr($the_writers_blog_shop_page_border_radius).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_shop_page_box_shadow = get_theme_mod('the_writers_blog_shop_page_box_shadow');
	$the_writers_blog_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$the_writers_blog_custom_css .='box-shadow: 0 0 '.esc_attr($the_writers_blog_shop_page_box_shadow).'px #ddd;';
	$the_writers_blog_custom_css .='}';

	// footer widget background
	$the_writers_blog_footer_widget_background = get_theme_mod('the_writers_blog_footer_widget_background', '#313131');
	$the_writers_blog_custom_css .='.site-footer{';
		$the_writers_blog_custom_css .='background-color: '.esc_attr($the_writers_blog_footer_widget_background).';';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_footer_widget_image = get_theme_mod('the_writers_blog_footer_widget_image');
	if($the_writers_blog_footer_widget_image != false){
		$the_writers_blog_custom_css .='.site-footer{';
			$the_writers_blog_custom_css .='background: url('.esc_attr($the_writers_blog_footer_widget_image).');';
			$the_writers_blog_custom_css .='background-repeat: no-repeat;';
		$the_writers_blog_custom_css .='background-size: cover;';
			$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_theme_lay = get_theme_mod( 'the_writers_blog_img_footer','scroll');
	if($the_writers_blog_theme_lay == 'fixed'){
		$the_writers_blog_custom_css .='.site-footer{';
			$the_writers_blog_custom_css .='background-attachment: fixed !important;';
		$the_writers_blog_custom_css .='}';
	}elseif ($the_writers_blog_theme_lay == 'scroll'){
		$the_writers_blog_custom_css .='.site-footer{';
			$the_writers_blog_custom_css .='background-attachment: scroll !important;';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_footer_img_position = get_theme_mod('the_writers_blog_footer_img_position','center center');
	if($the_writers_blog_footer_img_position != false){
		$the_writers_blog_custom_css .='.site-footer{';
			$the_writers_blog_custom_css .='background-position: '.esc_attr($the_writers_blog_footer_img_position).'!important;';
		$the_writers_blog_custom_css .='}';
	} 

	$the_writers_blog_footer_heading_alignment = get_theme_mod( 'the_writers_blog_footer_heading_option','Center');
    if($the_writers_blog_footer_heading_alignment == 'Left'){
		$the_writers_blog_custom_css .='.site-footer h3{';
		$the_writers_blog_custom_css .='text-align: left;';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_footer_heading_alignment == 'Center'){
		$the_writers_blog_custom_css .='.site-footer h3{';
			$the_writers_blog_custom_css .='text-align: center;';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_footer_heading_alignment == 'Right'){
		$the_writers_blog_custom_css .='.site-footer h3{';
			$the_writers_blog_custom_css .='text-align: right;';
		$the_writers_blog_custom_css .='}';
	}

	// Footer Heading Text Transform
	$the_writers_blog_theme_lay = get_theme_mod( 'the_writers_blog_footer_text_tranform','Capitalize');
	if($the_writers_blog_theme_lay == 'Uppercase'){
		$the_writers_blog_custom_css .='.site-footer h3{';
			$the_writers_blog_custom_css .='text-transform: Uppercase!important;';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_theme_lay == 'Lowercase'){
		$the_writers_blog_custom_css .='.site-footer h3{';
			$the_writers_blog_custom_css .='text-transform: Lowercase!important;';
		$the_writers_blog_custom_css .='}';
	}
	else if($the_writers_blog_theme_lay == 'Capitalize'){
		$the_writers_blog_custom_css .='.site-footer h3{';
			$the_writers_blog_custom_css .='text-transform: Capitalize!important;';
		$the_writers_blog_custom_css .='}';
	}	

	// footer heading font size
	$the_writers_blog_heading_fontsize = get_theme_mod('the_writers_blog_heading_fontsize',25);
	if($the_writers_blog_heading_fontsize != false){
		$the_writers_blog_custom_css .='.site-footer h3, .site-footer h2, .site-footer .wp-block-search__label,.site-footer .wp-block-heading{';
			$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_heading_fontsize).'px; ';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_footer_content_alignment = get_theme_mod( 'the_writers_blog_footer_content_option','Center');
    if($the_writers_blog_footer_content_alignment == 'Left'){
		$the_writers_blog_custom_css .='.site-footer ul, .site-footer p, .site-footer .tagcloud{';
		$the_writers_blog_custom_css .='text-align: left;';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_footer_content_alignment == 'Center'){
		$the_writers_blog_custom_css .='.site-footer ul, .site-footer p, .site-footer .tagcloud{';
			$the_writers_blog_custom_css .='text-align: center;';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_footer_content_alignment == 'Right'){
		$the_writers_blog_custom_css .='.site-footer ul, .site-footer p, .site-footer .tagcloud{';
			$the_writers_blog_custom_css .='text-align: right;';
		$the_writers_blog_custom_css .='}';
	}

	//Footer Social Icon Font size
	$the_writers_blog_footer_icon_font_size = get_theme_mod('the_writers_blog_footer_icon_font_size');
	$the_writers_blog_custom_css .='.site-info .socialicons a{';
	$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_footer_icon_font_size).'px;';
	$the_writers_blog_custom_css .='}';

	//footer icon color
	$the_writers_blog_footer_icon_color = get_theme_mod('the_writers_blog_footer_icon_color', '');
	$the_writers_blog_custom_css .='.site-info .socialicons a{';
	$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_footer_icon_color).'!important;';
	$the_writers_blog_custom_css .='}';	

	/*---------------------------Footer top bottom padding -------------------*/
	$the_writers_blog_footer_padding = get_theme_mod('the_writers_blog_footer_padding');
	if($the_writers_blog_footer_padding != false){
		$the_writers_blog_custom_css .='.site-footer{';
			$the_writers_blog_custom_css .='padding: '.esc_attr($the_writers_blog_footer_padding).' 0 !important;';
		$the_writers_blog_custom_css .='}';
	}

	/*------------- Navigation Menu Font Size ------------------*/
	$the_writers_blog_navigation_menu_font_size = get_theme_mod('the_writers_blog_navigation_menu_font_size');{
		$the_writers_blog_custom_css .='.main-navigation a, .navigation-top a{';
			$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_navigation_menu_font_size).'px;';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_theme_lay = get_theme_mod( 'the_writers_blog_menu_text_tranform','Default');
	if($the_writers_blog_theme_lay == 'Capitalize'){
		$the_writers_blog_custom_css .='.main-navigation a, .navigation-top a,.main-navigation ul li a{';
			$the_writers_blog_custom_css .='text-transform:capitalize;';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_theme_lay == 'Lowercase'){
		$the_writers_blog_custom_css .='.main-navigation a, .navigation-top a,.main-navigation ul li a{';
			$the_writers_blog_custom_css .='text-transform:lowercase;';
		$the_writers_blog_custom_css .='}';
	}

	/*------------- Navigation Menu Font Weight ------------------*/
	$the_writers_blog_menu_font_weight = get_theme_mod('the_writers_blog_menu_font_weight');
	$the_writers_blog_custom_css .='.main-navigation a, .navigation-top a,.main-navigation ul li a{';
		$the_writers_blog_custom_css .='font-weight: '.esc_attr($the_writers_blog_menu_font_weight).';';
	$the_writers_blog_custom_css .='}';

	// menu color
	$the_writers_blog_menu_color = get_theme_mod('the_writers_blog_menu_color');
	$the_writers_blog_custom_css .='.main-navigation a, .main-navigation ul li a, #site-navigation li a{';
			$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_menu_color).' !important;';
	$the_writers_blog_custom_css .='}';

	// Sub menu color
	$the_writers_blog_sub_menu_color = get_theme_mod('the_writers_blog_sub_menu_color');
	$the_writers_blog_custom_css .='.main-navigation ul.sub-menu a, .main-navigation ul.sub-menu li a, #site-navigation ul.sub-menu li a{';
			$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_sub_menu_color).' !important;';
	$the_writers_blog_custom_css .='}';
	$the_writers_blog_custom_css .='.main-navigation ul.sub-menu li{';
			$the_writers_blog_custom_css .='border-left-color: '.esc_attr($the_writers_blog_sub_menu_color).' !important;';
	$the_writers_blog_custom_css .='}';

	// menu hover color
	$the_writers_blog_menu_hover_color = get_theme_mod('the_writers_blog_menu_hover_color');
	$the_writers_blog_custom_css .='.main-navigation a:hover, .main-navigation ul li a:hover, .main-navigation .current_page_item > a:hover, .main-navigation .current-menu-item > a:hover, .main-navigation .current_page_ancestor > a:hover, #site-navigation li a:hover{';
			$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_menu_hover_color).' !important;';
	$the_writers_blog_custom_css .='}';

	// Sub menu hover color
	$the_writers_blog_sub_menu_hover_color = get_theme_mod('the_writers_blog_sub_menu_hover_color');
	$the_writers_blog_custom_css .='.main-navigation ul.sub-menu a:hover, .main-navigation ul.sub-menu li a:hover, .main-navigation .current_page_item > a:hover, .main-navigation .current-menu-item > a:hover, .main-navigation .current_page_ancestor > a:hover, #site-navigation ul.sub-menu li a:hover{';
			$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_sub_menu_hover_color).' !important;';
	$the_writers_blog_custom_css .='}';
	$the_writers_blog_custom_css .='.main-navigation ul.sub-menu li:hover{';
			$the_writers_blog_custom_css .='border-left-color: '.esc_attr($the_writers_blog_sub_menu_hover_color).' !important;';
	$the_writers_blog_custom_css .='}';

	// menu hover effect
	$the_writers_blog_menus_item = get_theme_mod( 'the_writers_blog_menus_item_style','None');
    if($the_writers_blog_menus_item == 'None'){
		$the_writers_blog_custom_css .='.main-navigation ul li a{';
			$the_writers_blog_custom_css .='';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_menus_item == 'Zoom In'){
		$the_writers_blog_custom_css .='.main-navigation ul li a:hover{';
			$the_writers_blog_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
		$the_writers_blog_custom_css .='}';
	}	

	// site title color option
	$the_writers_blog_site_title_color_setting = get_theme_mod('the_writers_blog_site_title_color_setting');
	$the_writers_blog_custom_css .=' site-title .logo h1 a,.site-title a{';
		$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_site_title_color_setting).'!important;';
	$the_writers_blog_custom_css .='} ';

	$the_writers_blog_tagline_color_setting = get_theme_mod('the_writers_blog_tagline_color_setting');
	$the_writers_blog_custom_css .=' .site-description{';
		$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_tagline_color_setting).'!important;';
	$the_writers_blog_custom_css .='} ';

	// site title font size option
	$the_writers_blog_site_title_font_size = get_theme_mod('the_writers_blog_site_title_font_size', 33);{
	$the_writers_blog_custom_css .='.logo h1, .site-title a{';
	$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_site_title_font_size).'px;';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_site_tagline_font_size_settings = get_theme_mod('the_writers_blog_site_tagline_font_size_settings', 12);{
	$the_writers_blog_custom_css .='.logo p{';
	$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_site_tagline_font_size_settings).'px !important;';
		$the_writers_blog_custom_css .='}';
	}

    // -------------- site logo margin ------------
	$the_writers_blog_logo_margin = get_theme_mod('the_writers_blog_logo_margin', '');{ 
	$the_writers_blog_custom_css .='.logo{';
	$the_writers_blog_custom_css .='margin: '.esc_attr($the_writers_blog_logo_margin).'px ;';
	$the_writers_blog_custom_css .='}';
	}
	//  ------------------logo padding-----------
	$the_writers_blog_logo_padding = get_theme_mod('the_writers_blog_logo_padding');
	$the_writers_blog_custom_css .='.logo{';
	$the_writers_blog_custom_css .='padding: '.esc_attr($the_writers_blog_logo_padding).'px;';
	$the_writers_blog_custom_css .='}';
   
	/*------------------ Background Skin Option  -------------------*/
	$the_writers_blog_theme_lay = get_theme_mod( 'the_writers_blog_background_image_type','Transparent');
    if($the_writers_blog_theme_lay == 'Background'){
		$the_writers_blog_custom_css .='.blogger, #sidebox .widget, .about-text, .related-posts .page-box, .woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .background-img-skin, .pages-te, .woocommerce .woocommerce-ordering{';
			$the_writers_blog_custom_css .='background-color: #fff;';
		$the_writers_blog_custom_css .='}';
	}else if($the_writers_blog_theme_lay == 'Transparent'){
		$the_writers_blog_custom_css .='.box-content, #sidebox .widget,.products li{';
			$the_writers_blog_custom_css .='background-color: transparent;';
		$the_writers_blog_custom_css .='}';
	}

	// slider overlay
	$the_writers_blog_show_slider_image_overlay = get_theme_mod('the_writers_blog_show_slider_image_overlay', true);
	if($the_writers_blog_show_slider_image_overlay == false){
		$the_writers_blog_custom_css .='#slider img{';
			$the_writers_blog_custom_css .='opacity:1;';
		$the_writers_blog_custom_css .='}';
	} 
	$the_writers_blog_color_slider_image_overlay = get_theme_mod('the_writers_blog_color_slider_image_overlay', true);
	if($the_writers_blog_show_slider_image_overlay != false){
		$the_writers_blog_custom_css .='#slider{';
			$the_writers_blog_custom_css .='background-color: '.esc_attr($the_writers_blog_color_slider_image_overlay).';';
		$the_writers_blog_custom_css .='}';
	}

	// woocommerce product sale settings
	$the_writers_blog_border_radius_product_sale_text = get_theme_mod('the_writers_blog_border_radius_product_sale_text',50);
	$the_writers_blog_custom_css .='.woocommerce span.onsale {';
		$the_writers_blog_custom_css .='border-radius: '.esc_attr($the_writers_blog_border_radius_product_sale_text).'%;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_position_product_sale = get_theme_mod('the_writers_blog_position_product_sale', 'Right');
	if($the_writers_blog_position_product_sale == 'Right' ){
		$the_writers_blog_custom_css .='.woocommerce ul.products li.product .onsale{';
			$the_writers_blog_custom_css .=' left:auto; right:0;';
		$the_writers_blog_custom_css .='}';
	}elseif($the_writers_blog_position_product_sale == 'Left' ){
		$the_writers_blog_custom_css .='.woocommerce ul.products li.product .onsale{';
			$the_writers_blog_custom_css .=' left:0; right:auto;';
		$the_writers_blog_custom_css .='}';
	}

	$the_writers_blog_product_sale_text_size = get_theme_mod('the_writers_blog_product_sale_text_size',14);
	$the_writers_blog_custom_css .='.woocommerce span.onsale{';
		$the_writers_blog_custom_css .='font-size: '.esc_attr($the_writers_blog_product_sale_text_size).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_top_bottom_product_sale_padding = get_theme_mod('the_writers_blog_top_bottom_product_sale_padding');
	$the_writers_blog_left_right_product_sale_padding = get_theme_mod('the_writers_blog_left_right_product_sale_padding');
	$the_writers_blog_custom_css .='.woocommerce span.onsale{';
		$the_writers_blog_custom_css .='padding-top: '.esc_attr($the_writers_blog_top_bottom_product_sale_padding).'px; padding-bottom: '.esc_attr($the_writers_blog_top_bottom_product_sale_padding).'px; padding-left: '.esc_attr($the_writers_blog_left_right_product_sale_padding).'px; padding-right: '.esc_attr($the_writers_blog_left_right_product_sale_padding).'px; display:inline-block;';
	$the_writers_blog_custom_css .='}';

	// woocommerce Product Navigation
	$the_writers_blog_shop_products_navigation = get_theme_mod('the_writers_blog_shop_products_navigation', 'Yes');
	if($the_writers_blog_shop_products_navigation == 'No'){
		$the_writers_blog_custom_css .='.woocommerce nav.woocommerce-pagination{';
			$the_writers_blog_custom_css .='display: none;';
		$the_writers_blog_custom_css .='}';
	}

	// Post Block
	$the_writers_blog_post_break_block_setting = get_theme_mod( 'the_writers_blog_post_break_block_setting','Into Blocks');
    if($the_writers_blog_post_break_block_setting == 'Without Blocks'){
		$the_writers_blog_custom_css .='.box-content{';
			$the_writers_blog_custom_css .='box-shadow: none;';
		$the_writers_blog_custom_css .='}';
	}

	// fixed header padding option
	$the_writers_blog_fixed_header_padding_option = get_theme_mod('the_writers_blog_fixed_header_padding_option');
	$the_writers_blog_custom_css .='.fixed-header{';
		$the_writers_blog_custom_css .='padding: '.esc_attr($the_writers_blog_fixed_header_padding_option).'px;';
	$the_writers_blog_custom_css .='}';

	// slider top and bottom padding
	$the_writers_blog_padding_top_bottom_slider_content = get_theme_mod('the_writers_blog_padding_top_bottom_slider_content');
	$the_writers_blog_padding_left_right_slider_content = get_theme_mod('the_writers_blog_padding_left_right_slider_content');
	$the_writers_blog_custom_css .='#slider .carousel-caption{';
		$the_writers_blog_custom_css .='top: '.esc_attr($the_writers_blog_padding_top_bottom_slider_content).'%; bottom: '.esc_attr($the_writers_blog_padding_top_bottom_slider_content).'%;left: '.esc_attr($the_writers_blog_padding_left_right_slider_content).'%;right: '.esc_attr($the_writers_blog_padding_left_right_slider_content).'%;';
	$the_writers_blog_custom_css .='}';

	// featured image setting
	$the_writers_blog_post_image_border_radius = get_theme_mod('the_writers_blog_post_image_border_radius', 0);
	$the_writers_blog_custom_css .='.blogger img, .wrapper img{';
		$the_writers_blog_custom_css .='border-radius: '.esc_attr($the_writers_blog_post_image_border_radius).'px;';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_featured_image_box_shadow = get_theme_mod('the_writers_blog_featured_image_box_shadow',0);
	$the_writers_blog_custom_css .='.blogger img, .wrapper img{';
		$the_writers_blog_custom_css .='box-shadow: '.esc_attr($the_writers_blog_featured_image_box_shadow).'px '.esc_attr($the_writers_blog_featured_image_box_shadow).'px '.esc_attr($the_writers_blog_featured_image_box_shadow).'px #ccc;';
	$the_writers_blog_custom_css .='}';

    //Copyright background css
	$the_writers_blog_copyright_background_color = get_theme_mod('the_writers_blog_copyright_background_color');
	$the_writers_blog_custom_css .='.copyright{';
		$the_writers_blog_custom_css .='background-color: '.esc_attr($the_writers_blog_copyright_background_color).';';
	$the_writers_blog_custom_css .='}';
     
	$the_writers_blog_copyright_text_color = get_theme_mod('the_writers_blog_copyright_text_color');
	$the_writers_blog_custom_css .='.site-info , .site-info a{';
		$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_copyright_text_color).'!important;';
	$the_writers_blog_custom_css .='}';

// featured image dimention
	$the_writers_blog_post_image_dimention = get_theme_mod('the_writers_blog_post_image_dimention', 'Default');
	$the_writers_blog_post_featured_image_width = get_theme_mod('the_writers_blog_post_featured_image_width');
	$the_writers_blog_post_featured_image_height = get_theme_mod('the_writers_blog_post_featured_image_height');

	if ($the_writers_blog_post_image_dimention == 'Custom Image Size') {
		$the_writers_blog_custom_css .= '.blogger .post-image img {';
		$the_writers_blog_custom_css .= 'width: ' . esc_attr($the_writers_blog_post_featured_image_width) . 'px !important;';
		$the_writers_blog_custom_css .= 'height: ' . esc_attr($the_writers_blog_post_featured_image_height) . 'px !important;';
		$the_writers_blog_custom_css .= '}';
	}

	// Single Post Categories
	$the_writers_blog_show_hide_single_post_categories = get_theme_mod('the_writers_blog_show_hide_single_post_categories',false);
	if ($the_writers_blog_show_hide_single_post_categories == false) {
		$the_writers_blog_custom_css .='.post-info{';
			$the_writers_blog_custom_css .=' margin-top:20px;';
		$the_writers_blog_custom_css .='}';
	}
 
    // Slider Width Layout
	$the_writers_blog_slider_width_options = get_theme_mod('the_writers_blog_slider_width_options', 'Full Width');
	if($the_writers_blog_slider_width_options == 'Full Width' ){
		$the_writers_blog_custom_css .='.page-template-home-custom #masthead .main-header{';
			$the_writers_blog_custom_css .=' position:absolute;';
		$the_writers_blog_custom_css .='}';
	}elseif($the_writers_blog_slider_width_options == 'Container Width' ){
		$the_writers_blog_custom_css .='.page-template-home-custom #masthead .main-header{';
			$the_writers_blog_custom_css .=' position:static;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='.page-template-home-custom #masthead .main-header{';
			$the_writers_blog_custom_css .=' margin-top:0px;';
		$the_writers_blog_custom_css .='}';
		$the_writers_blog_custom_css .='#slider .carousel-caption{';
			$the_writers_blog_custom_css .=' top: 45%;';
		$the_writers_blog_custom_css .='}';
	} 

	// Blog post image border radious
    $the_writers_blog_blog_post_img_border_radius = get_theme_mod('the_writers_blog_blog_post_img_border_radius', 0);
	$the_writers_blog_custom_css .='.blogger .post-image img{';
		$the_writers_blog_custom_css .='border-radius: '.esc_attr($the_writers_blog_blog_post_img_border_radius).'px!important;';
	$the_writers_blog_custom_css .='}';

     // Blog post image box shadow
	 $the_writers_blog_blog_post_img_box_shadow = get_theme_mod('the_writers_blog_blog_post_img_box_shadow',0);
	 $the_writers_blog_custom_css .='.blogger .post-image img{';
		 $the_writers_blog_custom_css .='box-shadow: '.esc_attr($the_writers_blog_blog_post_img_box_shadow).'px '.esc_attr($the_writers_blog_blog_post_img_box_shadow).'px '.esc_attr($the_writers_blog_blog_post_img_box_shadow).'px #ccc;';
	 $the_writers_blog_custom_css .='}';
    
 	// Single post image border radious
	$the_writers_blog_single_post_img_border_radius = get_theme_mod('the_writers_blog_single_post_img_border_radius', 0);
	$the_writers_blog_custom_css .='.blogger.singlebox img{';
		$the_writers_blog_custom_css .='border-radius: '.esc_attr($the_writers_blog_single_post_img_border_radius).'px !important;';
	$the_writers_blog_custom_css .='}';

	 // Single post image box shadow
	$the_writers_blog_single_post_img_box_shadow = get_theme_mod('the_writers_blog_single_post_img_box_shadow',0);
	$the_writers_blog_custom_css .='.blogger.singlebox img{';
		$the_writers_blog_custom_css .='box-shadow: '.esc_attr($the_writers_blog_single_post_img_box_shadow).'px '.esc_attr($the_writers_blog_single_post_img_box_shadow).'px '.esc_attr($the_writers_blog_single_post_img_box_shadow).'px #ccc !important;';
	$the_writers_blog_custom_css .='}';

	// Single post comments
	$the_writers_blog_post_comment_enable = get_theme_mod('the_writers_blog_post_comment_enable',true);
	if($the_writers_blog_post_comment_enable == false){
		$the_writers_blog_custom_css .='#comments{';
			$the_writers_blog_custom_css .='display: none;';
		$the_writers_blog_custom_css .='}';
	}

	// single post image dimention
	$the_writers_blog_single_post_image_dimention = get_theme_mod('the_writers_blog_single_post_image_dimention', 'Default');
	$the_writers_blog_single_post_featured_image_width = get_theme_mod('the_writers_blog_single_post_featured_image_width');
	$the_writers_blog_single_post_featured_image_height = get_theme_mod('the_writers_blog_single_post_featured_image_height');
	if($the_writers_blog_single_post_image_dimention == 'Custom Image Size'){
		$the_writers_blog_custom_css .='.blogger.singlebox .single-post-image img{';
			$the_writers_blog_custom_css .='width: '.esc_attr($the_writers_blog_single_post_featured_image_width).'px; height: '.esc_attr($the_writers_blog_single_post_featured_image_height).'px;';
		$the_writers_blog_custom_css .='}';
	}

	// Related post image box shadow
	$the_writers_blog_related_post_image_shadow = get_theme_mod('the_writers_blog_related_post_image_shadow',0);
	if($the_writers_blog_related_post_image_shadow != false){
		$the_writers_blog_custom_css .='.page-box .post-image img{';
			$the_writers_blog_custom_css .='box-shadow: '.esc_attr($the_writers_blog_related_post_image_shadow).'px '.esc_attr($the_writers_blog_related_post_image_shadow).'px '.esc_attr($the_writers_blog_related_post_image_shadow).'px #cccccc;';
		$the_writers_blog_custom_css .='}';
	}

	//scroll to top css
	$the_writers_blog_scroll_background_color = get_theme_mod('the_writers_blog_scroll_background_color');
	$the_writers_blog_custom_css .='.scrollup i{';
	$the_writers_blog_custom_css .='background: '.esc_attr($the_writers_blog_scroll_background_color).';';
	$the_writers_blog_custom_css .='border-color: '.esc_attr($the_writers_blog_scroll_background_color).';';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_scroll_icon_color = get_theme_mod('the_writers_blog_scroll_icon_color');
	$the_writers_blog_custom_css .='.scrollup i{';
	$the_writers_blog_custom_css .='color: '.esc_attr($the_writers_blog_scroll_icon_color).';';
	$the_writers_blog_custom_css .='}';

	$the_writers_blog_scroll_background_hover_color = get_theme_mod('the_writers_blog_scroll_background_hover_color');
	$the_writers_blog_custom_css .='.scrollup i:hover{';
	$the_writers_blog_custom_css .='background: '.esc_attr($the_writers_blog_scroll_background_hover_color).';';
	$the_writers_blog_custom_css .='border-color: '.esc_attr($the_writers_blog_scroll_background_hover_color).';';
	$the_writers_blog_custom_css .='}';

	//Initial Cap
	$the_writers_blog_caps_enable = get_theme_mod('the_writers_blog_caps_enable', 'false');
	if($the_writers_blog_caps_enable == 'true' ){
	$the_writers_blog_custom_css .='.blogger .text p:nth-of-type(1)::first-letter{';
	$the_writers_blog_custom_css .=' font-size: 60px; font-weight: 800;';
	$the_writers_blog_custom_css .=' margin-right: 10px;';
	$the_writers_blog_custom_css .=' font-family: "Vollkorn", serif;';
	$the_writers_blog_custom_css .=' line-height: 1;';
	$the_writers_blog_custom_css .='}';
	}elseif($the_writers_blog_caps_enable == 'false' ){
	$the_writers_blog_custom_css .='.blogger .text p:nth-of-type(1)::first-letter {';
	$the_writers_blog_custom_css .='display: none;';
	$the_writers_blog_custom_css .='}';
	}

	// header position for slider on off

	if( get_theme_mod( 'the_writers_blog_slider_arrows',false) != true){
    	$the_writers_blog_custom_css .='.page-template-home-custom #masthead .main-header{';
			$the_writers_blog_custom_css .='position : static;';
		$the_writers_blog_custom_css .='} ';
	}
