<?php
	
	$newspaper_magazine_blog_tp_theme_css = '';

	// 1st color
	$newspaper_magazine_blog_tp_color_option_first = get_theme_mod('newspaper_magazine_blog_tp_color_option_first', '#EE2E31');
	if ($newspaper_magazine_blog_tp_color_option_first) {
		$newspaper_magazine_blog_tp_theme_css .= ':root {';
		$newspaper_magazine_blog_tp_theme_css .= '--color-primary1: ' . esc_attr($newspaper_magazine_blog_tp_color_option_first) . ';';
		$newspaper_magazine_blog_tp_theme_css .= '}';
	}

	// preloader
	$newspaper_magazine_blog_tp_preloader_color1_option = get_theme_mod('newspaper_magazine_blog_tp_preloader_color1_option');
	if($newspaper_magazine_blog_tp_preloader_color1_option != false){
	$newspaper_magazine_blog_tp_theme_css .='.center1{';
		$newspaper_magazine_blog_tp_theme_css .='border-color: '.esc_attr($newspaper_magazine_blog_tp_preloader_color1_option).' !important;';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}
	if($newspaper_magazine_blog_tp_preloader_color1_option != false){
	$newspaper_magazine_blog_tp_theme_css .='.center1 .ring::before{';
		$newspaper_magazine_blog_tp_theme_css .='background: '.esc_attr($newspaper_magazine_blog_tp_preloader_color1_option).' !important;';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	$newspaper_magazine_blog_tp_preloader_color2_option = get_theme_mod('newspaper_magazine_blog_tp_preloader_color2_option');

	if($newspaper_magazine_blog_tp_preloader_color2_option != false){
	$newspaper_magazine_blog_tp_theme_css .='.center2{';
		$newspaper_magazine_blog_tp_theme_css .='border-color: '.esc_attr($newspaper_magazine_blog_tp_preloader_color2_option).' !important;';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}
	if($newspaper_magazine_blog_tp_preloader_color2_option != false){
	$newspaper_magazine_blog_tp_theme_css .='.center2 .ring::before{';
		$newspaper_magazine_blog_tp_theme_css .='background: '.esc_attr($newspaper_magazine_blog_tp_preloader_color2_option).' !important;';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	$newspaper_magazine_blog_tp_preloader_bg_color_option = get_theme_mod('newspaper_magazine_blog_tp_preloader_bg_color_option');

	if($newspaper_magazine_blog_tp_preloader_bg_color_option != false){
	$newspaper_magazine_blog_tp_theme_css .='.loader{';
		$newspaper_magazine_blog_tp_theme_css .='background: '.esc_attr($newspaper_magazine_blog_tp_preloader_bg_color_option).';';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	$newspaper_magazine_blog_tp_footer_bg_color_option = get_theme_mod('newspaper_magazine_blog_tp_footer_bg_color_option');


	if($newspaper_magazine_blog_tp_footer_bg_color_option != false){
	$newspaper_magazine_blog_tp_theme_css .='#footer{';
		$newspaper_magazine_blog_tp_theme_css .='background: '.esc_attr($newspaper_magazine_blog_tp_footer_bg_color_option).';';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	// logo tagline color
	$newspaper_magazine_blog_site_tagline_color = get_theme_mod('newspaper_magazine_blog_site_tagline_color');

	if($newspaper_magazine_blog_site_tagline_color != false){
	$newspaper_magazine_blog_tp_theme_css .='.logo h1 a, .logo p a, .logo p.site-title a{';
	$newspaper_magazine_blog_tp_theme_css .='color: '.esc_attr($newspaper_magazine_blog_site_tagline_color).';';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	$newspaper_magazine_blog_logo_tagline_color = get_theme_mod('newspaper_magazine_blog_logo_tagline_color');
	if($newspaper_magazine_blog_logo_tagline_color != false){
	$newspaper_magazine_blog_tp_theme_css .='p.site-description{';
	$newspaper_magazine_blog_tp_theme_css .='color: '.esc_attr($newspaper_magazine_blog_logo_tagline_color).';';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	// footer widget title color
	$newspaper_magazine_blog_footer_widget_title_color = get_theme_mod('newspaper_magazine_blog_footer_widget_title_color');
	if($newspaper_magazine_blog_footer_widget_title_color != false){
	$newspaper_magazine_blog_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
	$newspaper_magazine_blog_tp_theme_css .='color: '.esc_attr($newspaper_magazine_blog_footer_widget_title_color).';';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	// copyright text color
	$newspaper_magazine_blog_footer_copyright_text_color = get_theme_mod('newspaper_magazine_blog_footer_copyright_text_color');
	if($newspaper_magazine_blog_footer_copyright_text_color != false){
	$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p, #footer .site-info a {';
	$newspaper_magazine_blog_tp_theme_css .='color: '.esc_attr($newspaper_magazine_blog_footer_copyright_text_color).'!important;';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	// header image title color
	$newspaper_magazine_blog_header_image_title_text_color = get_theme_mod('newspaper_magazine_blog_header_image_title_text_color');
	if($newspaper_magazine_blog_header_image_title_text_color != false){
	$newspaper_magazine_blog_tp_theme_css .='.box-text h2{';
	$newspaper_magazine_blog_tp_theme_css .='color: '.esc_attr($newspaper_magazine_blog_header_image_title_text_color).';';
	$newspaper_magazine_blog_tp_theme_css .='}';
	}

	// menu color
	$newspaper_magazine_blog_menu_color = get_theme_mod('newspaper_magazine_blog_menu_color');
	if($newspaper_magazine_blog_menu_color != false){
	$newspaper_magazine_blog_tp_theme_css .='.main-navigation a{';
	$newspaper_magazine_blog_tp_theme_css .='color: '.esc_attr($newspaper_magazine_blog_menu_color).';';
	$newspaper_magazine_blog_tp_theme_css .='}';
}


//Footer Font Weight
$newspaper_magazine_blog_footer_copyright_title_font_weight = get_theme_mod( 'newspaper_magazine_blog_footer_copyright_title_font_weight','');
if($newspaper_magazine_blog_footer_copyright_title_font_weight == '100'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 100;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_footer_copyright_title_font_weight == '200'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 200;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_footer_copyright_title_font_weight == '300'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 300;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_footer_copyright_title_font_weight == '400'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 400;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_footer_copyright_title_font_weight == '500'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 500;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_footer_copyright_title_font_weight == '600'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 600;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_footer_copyright_title_font_weight == '700'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 700;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_footer_copyright_title_font_weight == '800'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 800;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_footer_copyright_title_font_weight == '900'){
$newspaper_magazine_blog_tp_theme_css .='#footer .site-info p {';
    $newspaper_magazine_blog_tp_theme_css .='font-weight: 900;';
$newspaper_magazine_blog_tp_theme_css .='}';
}