<?php

$graphic_design_portfolio_custom_css = "";


$graphic_design_portfolio_primary_color = get_theme_mod('graphic_design_portfolio_primary_color');

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

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

	// Scroll to top button shape 

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

  // Footer Background Image Attatchment 

	$graphic_design_portfolio_footer_attatchment = get_theme_mod( 'graphic_design_portfolio_background_attatchment','scroll');
	if($graphic_design_portfolio_footer_attatchment == 'fixed'){
		$graphic_design_portfolio_custom_css .='.site-footer{';
			$graphic_design_portfolio_custom_css .='background-attachment: fixed;';
		$graphic_design_portfolio_custom_css .='}';
	}elseif ($graphic_design_portfolio_footer_attatchment == 'scroll'){
		$graphic_design_portfolio_custom_css .='.site-footer{';
			$graphic_design_portfolio_custom_css .='background-attachment: scroll;';
		$graphic_design_portfolio_custom_css .='}';
	}

  // Menu Hover Style	

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