<?php

  $school_education_color_palette_css = '';

	// Global Color

	$school_education_first_color = school_education_get_option('school_education_first_color', '#6621ba' );

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

	$school_education_color_palette_css .='}';

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

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

	// Footer Background Color
	$school_education_footer_background_color = school_education_get_option('school_education_footer_background_color');
	$school_education_color_palette_css .='#footer-widgets {';
	$school_education_color_palette_css .='background: '.esc_attr($school_education_footer_background_color);
	$school_education_color_palette_css .='}';

  // copyright font size
	$school_education_copyright_text_font_size = school_education_get_option('school_education_copyright_text_font_size');
	$school_education_color_palette_css .='#colophon p, #colophon a , #colophon{';
	$school_education_color_palette_css .='font-size: '.esc_attr($school_education_copyright_text_font_size).'px;';
	$school_education_color_palette_css .='}';

	// Copyright Background Color
	$school_education_copyright_background_color = school_education_get_option('school_education_copyright_background_color');
	$school_education_color_palette_css .='#colophon {';
	$school_education_color_palette_css .='background: '.esc_attr($school_education_copyright_background_color);
	$school_education_color_palette_css .='}';

	// Copyright Text Color
	$school_education_copyright_text_color = school_education_get_option('school_education_copyright_text_color');
	$school_education_color_palette_css .='#colophon a , #colophon{';
	$school_education_color_palette_css .='color: '.esc_attr($school_education_copyright_text_color);
	$school_education_color_palette_css .='}';	

	// Site title And tagline Option
	$school_education_site_title_font_size = school_education_get_option('school_education_site_title_font_size');
	$school_education_site_title_color = school_education_get_option('school_education_site_title_color');
	$school_education_color_palette_css .='.site-title>a , .site-title {';
		$school_education_color_palette_css .='font-size: '.esc_attr($school_education_site_title_font_size).'px;';
		$school_education_color_palette_css .='color: '.esc_attr($school_education_site_title_color).';';
	$school_education_color_palette_css .='}';
	
	$school_education_site_tagline_font_size = school_education_get_option('school_education_site_tagline_font_size');
	if($school_education_site_tagline_font_size != false){
		$school_education_color_palette_css .='.site-description {';
			$school_education_color_palette_css .='font-size: '.esc_attr($school_education_site_tagline_font_size).'px;';
		$school_education_color_palette_css .='}';
	}

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

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

	// Sticky Copyright
        $school_education_resp_stickycopyright = school_education_get_option( 'school_education_stickycopyright_hide_show',false);
    if($school_education_resp_stickycopyright == true && school_education_get_option( 'school_education_copyright_sticky',false) != true){
        $school_education_color_palette_css  .='.copyright-sticky{';
            $school_education_color_palette_css  .='position:static;';
        $school_education_color_palette_css  .='} ';
    } 

	/* Featured Image Hover Effect */
	$school_education_hover_effect = school_education_get_option( 'school_education_featured_image_hover', 'none' );

	if ( $school_education_hover_effect !== 'none' ) {

		$school_education_color_palette_css .= '.blog-post-img{';
		$school_education_color_palette_css .= 'transition: all 0.4s ease-in-out;';
		$school_education_color_palette_css .= '}';

		switch ( $school_education_hover_effect ) {

			case 'zoom-in':
				$school_education_color_palette_css .= '.blog-post-img:hover{transform:scale(1.2);}';
			break;

			case 'zoom-out':
				$school_education_color_palette_css .= '.blog-post-img{transform:scale(1.2);}';
				$school_education_color_palette_css .= '.blog-post-img:hover{transform:scale(1);}';
			break;

			case 'scale':
				$school_education_color_palette_css .= '.blog-post-img:hover{transform:scale(1.1);}';
			break;

			case 'grayscale':
				$school_education_color_palette_css .= '.blog-post-img{filter:grayscale(100%);}';
				$school_education_color_palette_css .= '.blog-post-img:hover{filter:grayscale(0);}';
			break;

			case 'sepia':
				$school_education_color_palette_css .= '.blog-post-img:hover{filter:sepia(100%);}';
			break;

			case 'blur':
				$school_education_color_palette_css .= '.blog-post-img:hover{filter:blur(3px);}';
			break;

			case 'bright':
				$school_education_color_palette_css .= '.blog-post-img:hover{filter:brightness(1.3);}';
			break;

			case 'translate':
				$school_education_color_palette_css .= '.blog-post-img:hover{transform:translateY(-10px);}';
			break;
		}
	}

	/* Product Featured Image Hover Effect */
	$school_education_hover_effect = school_education_get_option( 'school_education_product_featured_image_hover', 'none' );

	if ( $school_education_hover_effect !== 'none' ) {

		$school_education_color_palette_css .= '.product-img{';
		$school_education_color_palette_css .= 'transition: all 0.4s ease-in-out;';
		$school_education_color_palette_css .= '}';

		switch ( $school_education_hover_effect ) {

			case 'zoom-in':
				$school_education_color_palette_css .= '.product-img:hover{transform:scale(1.2);}';
			break;

			case 'zoom-out':
				$school_education_color_palette_css .= '.product-img{transform:scale(1.2);}';
				$school_education_color_palette_css .= '.product-img:hover{transform:scale(1);}';
			break;

			case 'scale':
				$school_education_color_palette_css .= '.product-img:hover{transform:scale(1.1);}';
			break;

			case 'grayscale':
				$school_education_color_palette_css .= '.product-img{filter:grayscale(100%);}';
				$school_education_color_palette_css .= '.product-img:hover{filter:grayscale(0);}';
			break;

			case 'sepia':
				$school_education_color_palette_css .= '.product-img:hover{filter:sepia(100%);}';
			break;

			case 'blur':
				$school_education_color_palette_css .= '.product-img:hover{filter:blur(3px);}';
			break;

			case 'bright':
				$school_education_color_palette_css .= '.product-img:hover{filter:brightness(1.3);}';
			break;

			case 'translate':
				$school_education_color_palette_css .= '.product-img:hover{transform:translateY(-10px);}';
			break;
		}
	}