<?php

$organic_gardening_custom_css = "";

$organic_gardening_primary_color = get_theme_mod('organic_gardening_primary_color');

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

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

/*-------------------- Scroll Top Alignment-------------------*/

$organic_gardening_scroll_top_alignment = get_theme_mod( 'organic_gardening_scroll_top_alignment','right-align');

if($organic_gardening_scroll_top_alignment == 'right-align'){
$organic_gardening_custom_css .='#button{';
	$organic_gardening_custom_css .='right: 3%;';
$organic_gardening_custom_css .='}';
}else if($organic_gardening_scroll_top_alignment == 'center-align'){
$organic_gardening_custom_css .='#button{';
	$organic_gardening_custom_css .='right:0; left:0; margin: 0 auto;';
$organic_gardening_custom_css .='}';
}else if($organic_gardening_scroll_top_alignment == 'left-align'){
$organic_gardening_custom_css .='#button{';
	$organic_gardening_custom_css .='left: 3%;';
$organic_gardening_custom_css .='}';
}

/*-------------------- Archive Page Pagination Alignment-------------------*/

$organic_gardening_archive_pagination_alignment = get_theme_mod( 'organic_gardening_archive_pagination_alignment','left-align');

if($organic_gardening_archive_pagination_alignment == 'right-align'){
$organic_gardening_custom_css .='.pagination{';
	$organic_gardening_custom_css .='justify-content: end;';
$organic_gardening_custom_css .='}';
}else if($organic_gardening_archive_pagination_alignment == 'center-align'){
$organic_gardening_custom_css .='.pagination{';
	$organic_gardening_custom_css .='justify-content: center;';
$organic_gardening_custom_css .='}';
}else if($organic_gardening_archive_pagination_alignment == 'left-align'){
$organic_gardening_custom_css .='.pagination{';
	$organic_gardening_custom_css .='justify-content: start;';
$organic_gardening_custom_css .='}';
}

/*-------------------- Scroll Top Responsive-------------------*/

$organic_gardening_resp_scroll_top = get_theme_mod( 'organic_gardening_resp_scroll_top',true);
if($organic_gardening_resp_scroll_top == true && get_theme_mod( 'organic_gardening_scroll_to_top',true) != true){
	$organic_gardening_custom_css .='#button.show{';
		$organic_gardening_custom_css .='visibility:hidden !important;';
	$organic_gardening_custom_css .='} ';
}
if($organic_gardening_resp_scroll_top == true){
	$organic_gardening_custom_css .='@media screen and (max-width:575px) {';
	$organic_gardening_custom_css .='#button.show{';
		$organic_gardening_custom_css .='visibility:visible !important;';
	$organic_gardening_custom_css .='} }';
}else if($organic_gardening_resp_scroll_top == false){
	$organic_gardening_custom_css .='@media screen and (max-width:575px){';
	$organic_gardening_custom_css .='#button.show{';
		$organic_gardening_custom_css .='visibility:hidden !important;';
	$organic_gardening_custom_css .='} }';
}

/*-------------------- Preloader Responsive-------------------*/

	$organic_gardening_resp_loader = get_theme_mod('organic_gardening_resp_loader',false);
	if($organic_gardening_resp_loader == true && get_theme_mod('organic_gardening_header_preloader',false) == false){
		$organic_gardening_custom_css .='@media screen and (min-width:575px){
			.preloader{';
			$organic_gardening_custom_css .='display:none !important;';
		$organic_gardening_custom_css .='} }';
	}

	if($organic_gardening_resp_loader == false){
		$organic_gardening_custom_css .='@media screen and (max-width:575px){
			.preloader{';
			$organic_gardening_custom_css .='display:none !important;';
		$organic_gardening_custom_css .='} }';
	}


	// Scroll to top button shape 

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

  // Footer Background Image Attatchment 

	$organic_gardening_footer_attatchment = get_theme_mod( 'organic_gardening_background_attatchment','scroll');
	if($organic_gardening_footer_attatchment == 'fixed'){
		$organic_gardening_custom_css .='.site-footer{';
			$organic_gardening_custom_css .='background-attachment: fixed;';
		$organic_gardening_custom_css .='}';
	}elseif ($organic_gardening_footer_attatchment == 'scroll'){
		$organic_gardening_custom_css .='.site-footer{';
			$organic_gardening_custom_css .='background-attachment: scroll;';
		$organic_gardening_custom_css .='}';
	}

  // Menu Hover Style	

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