<?php

$kids_birthday_party_custom_css = "";

$kids_birthday_party_primary_color = get_theme_mod('kids_birthday_party_primary_color');

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

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

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

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

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

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

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

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

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

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

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

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

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

	// Scroll to top button shape 

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

  // Footer Background Image Attatchment 

	$kids_birthday_party_footer_attatchment = get_theme_mod( 'kids_birthday_party_background_attatchment','scroll');
	if($kids_birthday_party_footer_attatchment == 'fixed'){
		$kids_birthday_party_custom_css .='.site-footer{';
			$kids_birthday_party_custom_css .='background-attachment: fixed;';
		$kids_birthday_party_custom_css .='}';
	}elseif ($kids_birthday_party_footer_attatchment == 'scroll'){
		$kids_birthday_party_custom_css .='.site-footer{';
			$kids_birthday_party_custom_css .='background-attachment: scroll;';
		$kids_birthday_party_custom_css .='}';
	}

  // Menu Hover Style	

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