<?php
	
	$fm_radio_station_tp_theme_css = '';

	// 1st color
	$fm_radio_station_tp_color_option_first = get_theme_mod('fm_radio_station_tp_color_option_first', '#CA1288');
	if ($fm_radio_station_tp_color_option_first) {
		$fm_radio_station_tp_theme_css .= ':root {';
		$fm_radio_station_tp_theme_css .= '--color-primary1: ' . esc_attr($fm_radio_station_tp_color_option_first) . ';';
		$fm_radio_station_tp_theme_css .= '}';
	}

	// 2ndcolor
	$fm_radio_station_tp_color_option_sec = get_theme_mod('fm_radio_station_tp_color_option_sec', '#FF4E00');
	if ($fm_radio_station_tp_color_option_sec) {
		$fm_radio_station_tp_theme_css .= ':root {';
		$fm_radio_station_tp_theme_css .= '--color-primary3: ' . esc_attr($fm_radio_station_tp_color_option_sec) . ';';
		$fm_radio_station_tp_theme_css .= '}';
	}

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

	$fm_radio_station_tp_preloader_color2_option = get_theme_mod('fm_radio_station_tp_preloader_color2_option');

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

	$fm_radio_station_tp_preloader_bg_color_option = get_theme_mod('fm_radio_station_tp_preloader_bg_color_option');

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

	$fm_radio_station_tp_footer_bg_color_option = get_theme_mod('fm_radio_station_tp_footer_bg_color_option');


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

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

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

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

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

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

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

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


/*--------------------------- banner image Opacity -------------------*/
    $fm_radio_station_theme_lay = get_theme_mod( 'fm_radio_station_header_banner_opacity_color','0.5');
        if($fm_radio_station_theme_lay == '0'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.1'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.1';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.2'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.2';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.3'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.3';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.4'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.4';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.5'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.5';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.6'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.6';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.7'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.7';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.8'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.8';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '0.9'){
            $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
                $fm_radio_station_tp_theme_css .='opacity:0.9';
            $fm_radio_station_tp_theme_css .='}';
        }else if($fm_radio_station_theme_lay == '1'){
            $fm_radio_station_tp_theme_css .='#main-slider img{';
                $fm_radio_station_tp_theme_css .='opacity:1';
            $fm_radio_station_tp_theme_css .='}';
        }

    $fm_radio_station_header_banner_image_overlay = get_theme_mod('fm_radio_station_header_banner_image_overlay', true);
    if($fm_radio_station_header_banner_image_overlay == false){
        $fm_radio_station_tp_theme_css .='.single-page-img, .featured-image{';
            $fm_radio_station_tp_theme_css .='opacity:1;';
        $fm_radio_station_tp_theme_css .='}';
    }

    $fm_radio_station_header_banner_image_ooverlay_color = get_theme_mod('fm_radio_station_header_banner_image_ooverlay_color', true);
    if($fm_radio_station_header_banner_image_ooverlay_color != false){
        $fm_radio_station_tp_theme_css .='.box-image-page{';
            $fm_radio_station_tp_theme_css .='background-color: '.esc_attr($fm_radio_station_header_banner_image_ooverlay_color).';';
        $fm_radio_station_tp_theme_css .='}';
    }

// Header Image title font size
$fm_radio_station_header_image_title_font_size = get_theme_mod('fm_radio_station_header_image_title_font_size', '40');{
$fm_radio_station_tp_theme_css .='.box-text h2{';
    $fm_radio_station_tp_theme_css .='font-size: '.esc_attr($fm_radio_station_header_image_title_font_size).'px;';
$fm_radio_station_tp_theme_css .='}';
}


// footer widget letter case
$fm_radio_station_footer_widget_title_text_tranform = get_theme_mod( 'fm_radio_station_footer_widget_title_text_tranform','');
if($fm_radio_station_footer_widget_title_text_tranform == 'Uppercase'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='text-transform: uppercase;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_text_tranform == 'Lowercase'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='text-transform: lowercase;';
$fm_radio_station_tp_theme_css .='}';
}
else if($fm_radio_station_footer_widget_title_text_tranform == 'Capitalize'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='text-transform: capitalize;';
$fm_radio_station_tp_theme_css .='}';
}

//Footer Font Weight
$fm_radio_station_footer_widget_title_font_weight = get_theme_mod( 'fm_radio_station_footer_widget_title_font_weight','');
if($fm_radio_station_footer_widget_title_font_weight == '100'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 100;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_font_weight == '200'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 200;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_font_weight == '300'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 300;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_font_weight == '400'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 400;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_font_weight == '500'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 500;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_font_weight == '600'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 600;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_font_weight == '700'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 700;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_font_weight == '800'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 800;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_font_weight == '900'){
$fm_radio_station_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $fm_radio_station_tp_theme_css .='font-weight: 900;';
$fm_radio_station_tp_theme_css .='}';
}

// footer widget position
$fm_radio_station_footer_widget_title_position = get_theme_mod( 'fm_radio_station_footer_widget_title_position','');
if($fm_radio_station_footer_widget_title_position == 'Right'){
$fm_radio_station_tp_theme_css .='#footer aside.widget{';
$fm_radio_station_tp_theme_css .='text-align: right;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_position == 'Left'){
$fm_radio_station_tp_theme_css .='#footer aside.widget{';
$fm_radio_station_tp_theme_css .='text-align: left;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_footer_widget_title_position == 'Center'){
$fm_radio_station_tp_theme_css .='#footer aside.widget{';
$fm_radio_station_tp_theme_css .='text-align: center;';
$fm_radio_station_tp_theme_css .='}';
}


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