<?php

$seo_consultant_custom_css = "";


$seo_consultant_primary_color = get_theme_mod('seo_consultant_primary_color');
$seo_consultant_second_color = get_theme_mod('seo_consultant_second_color');

/*------------------ Primary Global Color -----------*/

if ($seo_consultant_primary_color) {
  $seo_consultant_custom_css .= ':root {';
  $seo_consultant_custom_css .= '--primary-color: ' . esc_attr($seo_consultant_primary_color) . ' !important;';
  $seo_consultant_custom_css .= '} ';
}

/*------------------ Secondary Global Color -----------*/

if ($seo_consultant_second_color) {
  $seo_consultant_custom_css .= ':root {';
  $seo_consultant_custom_css .= '--secondary-color: ' . esc_attr($seo_consultant_second_color) . ' !important;';
  $seo_consultant_custom_css .= '} ';
}

	// Scroll to top button shape 

	$seo_consultant_scroll_border_radius = get_theme_mod( 'seo_consultant_scroll_to_top_radius','curved-box');
    if($seo_consultant_scroll_border_radius == 'box'){
		$seo_consultant_custom_css .='#button{';
			$seo_consultant_custom_css .='border-radius: 0px;';
		$seo_consultant_custom_css .='}';
	}else if($seo_consultant_scroll_border_radius == 'curved-box'){
		$seo_consultant_custom_css .='#button{';
			$seo_consultant_custom_css .='border-radius: 4px;';
		$seo_consultant_custom_css .='}';
	}
	else if($seo_consultant_scroll_border_radius == 'circle'){
		$seo_consultant_custom_css .='#button{';
			$seo_consultant_custom_css .='border-radius: 50%;';
		$seo_consultant_custom_css .='}';
	}

  // Footer Background Image Attatchment 

	$seo_consultant_footer_attatchment = get_theme_mod( 'seo_consultant_background_attatchment','scroll');
	if($seo_consultant_footer_attatchment == 'fixed'){
		$seo_consultant_custom_css .='.site-footer{';
			$seo_consultant_custom_css .='background-attachment: fixed;';
		$seo_consultant_custom_css .='}';
	}elseif ($seo_consultant_footer_attatchment == 'scroll'){
		$seo_consultant_custom_css .='.site-footer{';
			$seo_consultant_custom_css .='background-attachment: scroll;';
		$seo_consultant_custom_css .='}';
	}

  // Menu Hover Style	

	$seo_consultant_menus_item = get_theme_mod( 'seo_consultant_menus_style','None');
	if($seo_consultant_menus_item == 'None'){
		$seo_consultant_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
			$seo_consultant_custom_css .='';
		$seo_consultant_custom_css .='}';
	}else if($seo_consultant_menus_item == 'Zoom In'){
		$seo_consultant_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$seo_consultant_custom_css .= 'transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
		$seo_consultant_custom_css .= '}';
		
		$seo_consultant_custom_css .= '.main-navigation ul ul li a:hover {';
		$seo_consultant_custom_css .= 'margin-left: 20px;';
		$seo_consultant_custom_css .= '}';
	}	

	// Post Content Alignment

	$seo_consultant_blog_layout_option = get_theme_mod( 'seo_consultant_blog_layout_option','Left');
	if($seo_consultant_blog_layout_option == 'Left'){
		$seo_consultant_custom_css .='.post{';
			$seo_consultant_custom_css .='text-align: left;';
		$seo_consultant_custom_css .='}';
	}elseif ($seo_consultant_blog_layout_option == 'Right'){
		$seo_consultant_custom_css .='.post{';
			$seo_consultant_custom_css .='text-align: right;';
		$seo_consultant_custom_css .='}';
	}elseif ($seo_consultant_blog_layout_option == 'Center'){
		$seo_consultant_custom_css .='.post{';
			$seo_consultant_custom_css .='text-align: center;';
		$seo_consultant_custom_css .='}';
	}