<?php

  $photographer_magazine_color_palette_css = '';

	// Global Color

	$photographer_magazine_first_color = photographer_magazine_get_option('photographer_magazine_first_color');

	if($photographer_magazine_first_color != false){
		$photographer_magazine_color_palette_css .=':root {';
			$photographer_magazine_color_palette_css .='--primary-color: '.esc_attr($photographer_magazine_first_color).'!important;';
		$photographer_magazine_color_palette_css .='}';
	}

  /*-------------- Copyright Text Align-------------------*/

	$photographer_magazine_copyright_text_align = photographer_magazine_get_option('photographer_magazine_copyright_text_align');
	$photographer_magazine_color_palette_css .='.site-footer{';
	$photographer_magazine_color_palette_css .='text-align: '.esc_attr($photographer_magazine_copyright_text_align).' !important;';
	$photographer_magazine_color_palette_css .='}';
	$photographer_magazine_color_palette_css .='
	@media screen and (max-width:575px) {
	.site-footer{';
	$photographer_magazine_color_palette_css .='text-align: center !important;';
	$photographer_magazine_color_palette_css .='} }';

  // copyright font size
	$photographer_magazine_copyright_text_font_size = photographer_magazine_get_option('photographer_magazine_copyright_text_font_size');
	$photographer_magazine_color_palette_css .='#colophon p, #colophon a , #colophon{';
	$photographer_magazine_color_palette_css .='font-size: '.esc_attr($photographer_magazine_copyright_text_font_size).'px;';
	$photographer_magazine_color_palette_css .='}';

	// Copyright Background Color
	$photographer_magazine_copyright_background_color = photographer_magazine_get_option('photographer_magazine_copyright_background_color');
	$photographer_magazine_color_palette_css .='#colophon {';
	$photographer_magazine_color_palette_css .='background: '.esc_attr($photographer_magazine_copyright_background_color);
	$photographer_magazine_color_palette_css .='}';

	// Copyright Text Color
	$photographer_magazine_copyright_text_color = photographer_magazine_get_option('photographer_magazine_copyright_text_color');
	$photographer_magazine_color_palette_css .='#colophon a , #colophon{';
	$photographer_magazine_color_palette_css .='color: '.esc_attr($photographer_magazine_copyright_text_color);
	$photographer_magazine_color_palette_css .='}';

	// Site title And tagline Option
	$photographer_magazine_site_title_font_size = photographer_magazine_get_option('photographer_magazine_site_title_font_size');
	$photographer_magazine_site_title_color = photographer_magazine_get_option('photographer_magazine_site_title_color');
	$photographer_magazine_color_palette_css .='.site-title>a , .site-title {';
		$photographer_magazine_color_palette_css .='font-size: '.esc_attr($photographer_magazine_site_title_font_size).'px;';
		$photographer_magazine_color_palette_css .='color: '.esc_attr($photographer_magazine_site_title_color).';';
	$photographer_magazine_color_palette_css .='}';
	
	$photographer_magazine_site_tagline_font_size = photographer_magazine_get_option('photographer_magazine_site_tagline_font_size');
	if($photographer_magazine_site_tagline_font_size != false){
		$photographer_magazine_color_palette_css .='.site-description {';
			$photographer_magazine_color_palette_css .='font-size: '.esc_attr($photographer_magazine_site_tagline_font_size).'px;';
		$photographer_magazine_color_palette_css .='}';
	}

	//First Cap
	$photographer_magazine_show_first_caps = photographer_magazine_get_option('photographer_magazine_show_first_caps', false);
	if($photographer_magazine_show_first_caps == 'true' ){
	$photographer_magazine_color_palette_css .='.blog-content .text-content p:nth-of-type(1)::first-letter{';
	$photographer_magazine_color_palette_css .=' font-size: 50px; font-weight: 600;';
	$photographer_magazine_color_palette_css .=' margin-right: 5px;';
	$photographer_magazine_color_palette_css .=' line-height: 1;';
	$photographer_magazine_color_palette_css .='}';
	}elseif($photographer_magazine_show_first_caps == 'false' ){
	$photographer_magazine_color_palette_css .='.blog-content .text-content p:nth-of-type(1)::first-letter {';
	$photographer_magazine_color_palette_css .='display: none;';
	$photographer_magazine_color_palette_css .='}';
	}

	// preloader background image
	$photographer_magazine_show_preloader_background_image = photographer_magazine_get_option('photographer_magazine_show_preloader_background_image');
	if($photographer_magazine_show_preloader_background_image != false){
		$photographer_magazine_color_palette_css .='#preloader {';
			$photographer_magazine_color_palette_css .='background: url('.esc_attr($photographer_magazine_show_preloader_background_image).');-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;';
		$photographer_magazine_color_palette_css .='}';
	}

	// Sticky Copyright

		$photographer_magazine_resp_stickycopyright = photographer_magazine_get_option( 'photographer_magazine_stickycopyright_hide_show',false);
		if($photographer_magazine_resp_stickycopyright == true && photographer_magazine_get_option( 'photographer_magazine_copyright_sticky',false) != true){
			$photographer_magazine_color_palette_css  .='.copyright-sticky{';
				$photographer_magazine_color_palette_css  .='position:static;';
			$photographer_magazine_color_palette_css  .='} ';
		}     