<?php

$nonprofit_organization_custom_css = '';


// $nonprofit_organization_is_dark_mode_enabled = get_theme_mod( 'nonprofit_organization_is_dark_mode_enabled', false );

// if ( $nonprofit_organization_is_dark_mode_enabled ) {

//     $nonprofit_organization_custom_css .= 'body,.fixed-header,tr:nth-child(2n+2) {';
//     $nonprofit_organization_custom_css .= 'background: #000;';
//     $nonprofit_organization_custom_css .= '}';

//     $nonprofit_organization_custom_css .= '#site-navigation {';
//     $nonprofit_organization_custom_css .= 'background: #000 !important;';
//     $nonprofit_organization_custom_css .= '}';

// 	$nonprofit_organization_custom_css .= '.sticky .post-content{';
//     $nonprofit_organization_custom_css .= 'color: #000';
//     $nonprofit_organization_custom_css .= '}';

// 	$nonprofit_organization_custom_css .= 'h5.product-text a,#featured-product p.price,.card-header a,.comment-content.card-block p,.post-box.sticky a{';
//     $nonprofit_organization_custom_css .= 'color: #000 !important';
//     $nonprofit_organization_custom_css .= '}';

//     $nonprofit_organization_custom_css .= '.some{';
//     $nonprofit_organization_custom_css .= 'background: #fff;';
//     $nonprofit_organization_custom_css .= '}';

//     $nonprofit_organization_custom_css .= '.some {';
//     $nonprofit_organization_custom_css .= 'background: #fff !important;';
//     $nonprofit_organization_custom_css .= '}';
	

//     $nonprofit_organization_custom_css .= 'body,h1,h2,h3,h4,h5,p,#main-menu ul li a,.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,a,.logo span{';
//     $nonprofit_organization_custom_css .= 'color: #fff;';
//     $nonprofit_organization_custom_css .= '}';

//     $nonprofit_organization_custom_css .= 'a.wc-block-components-product-name, .wc-block-components-product-name,.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
// .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
// .wc-block-components-totals-item__label,.wc-block-components-totals-item__value,
// .wc-block-components-product-metadata .wc-block-components-product-metadata__description>p,
// .is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
// .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
// .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
// .wc-block-components-quantity-selector,table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link,.wc-block-components-product-price__value.is-discounted,del.wc-block-components-product-price__regular,.top-header h6, .top-header p,.featured-box h6{';
//     $nonprofit_organization_custom_css .= 'color: #fff !important;';
//     $nonprofit_organization_custom_css .= '}';

// 	$nonprofit_organization_custom_css .= '.post-box{';
//     $nonprofit_organization_custom_css .= '    border: 1px solid rgb(229 229 229 / 48%)';
//     $nonprofit_organization_custom_css .= '}';
// }

	/*---------------------------text-transform-------------------*/

	$nonprofit_organization_text_transform = get_theme_mod( 'menu_text_transform_nonprofit_organization','UPPERCASE');

    if($nonprofit_organization_text_transform == 'CAPITALISE'){

		$nonprofit_organization_custom_css .='#main-menu ul li a{';

			$nonprofit_organization_custom_css .='text-transform: capitalize ; font-size: 12px;';

		$nonprofit_organization_custom_css .='}';

	}else if($nonprofit_organization_text_transform == 'UPPERCASE'){

		$nonprofit_organization_custom_css .='#main-menu ul li a{';

			$nonprofit_organization_custom_css .='text-transform: uppercase ; font-size: 12px;';

		$nonprofit_organization_custom_css .='}';

	}else if($nonprofit_organization_text_transform == 'LOWERCASE'){

		$nonprofit_organization_custom_css .='#main-menu ul li a{';

			$nonprofit_organization_custom_css .='text-transform: lowercase ; font-size: 12px;';

		$nonprofit_organization_custom_css .='}';
	}

		/*---------------------------menu-zoom-------------------*/

		$nonprofit_organization_menu_zoom = get_theme_mod( 'nonprofit_organization_menu_zoom','None');

    if($nonprofit_organization_menu_zoom == 'None'){

		$nonprofit_organization_custom_css .='#main-menu ul li a{';

			$nonprofit_organization_custom_css .='';

		$nonprofit_organization_custom_css .='}';

	}else if($nonprofit_organization_menu_zoom == 'Zoominn'){

		$nonprofit_organization_custom_css .='#main-menu ul li a:hover{';

			$nonprofit_organization_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important; color: var(--first-color);';

		$nonprofit_organization_custom_css .='}';
	}

	/*---------------------------Container Width-------------------*/

$nonprofit_organization_container_width = get_theme_mod('nonprofit_organization_container_width');

		$nonprofit_organization_custom_css .='body,.admin-bar .sticky-header.fixed-header,.sticky-header.fixed-header{';

			$nonprofit_organization_custom_css .='width: '.esc_attr($nonprofit_organization_container_width).'%; margin: auto;';

		$nonprofit_organization_custom_css .='}';

		/*---------------------------Slider-content-alignment-------------------*/


	$nonprofit_organization_slider_content_alignment = get_theme_mod( 'nonprofit_organization_slider_content_alignment','LEFT-ALIGN');

	 if($nonprofit_organization_slider_content_alignment == 'LEFT-ALIGN'){

			$nonprofit_organization_custom_css .='.blog_box{';

				$nonprofit_organization_custom_css .='text-align:left;';

			$nonprofit_organization_custom_css .='}';


		}else if($nonprofit_organization_slider_content_alignment == 'CENTER-ALIGN'){

			$nonprofit_organization_custom_css .='.blog_box{';

				$nonprofit_organization_custom_css .='text-align:center; right:30%; left:30%;';

			$nonprofit_organization_custom_css .='}';


		}else if($nonprofit_organization_slider_content_alignment == 'RIGHT-ALIGN'){

			$nonprofit_organization_custom_css .='.blog_box{';

				$nonprofit_organization_custom_css .='text-align:right; right:20%; left:50%;';

			$nonprofit_organization_custom_css .='}';

		}


	/*---------------------------Copyright Text alignment-------------------*/

$nonprofit_organization_copyright_text_alignment = get_theme_mod( 'nonprofit_organization_copyright_text_alignment','LEFT-ALIGN');

 if($nonprofit_organization_copyright_text_alignment == 'LEFT-ALIGN'){

		$nonprofit_organization_custom_css .='.copy-text p{';

			$nonprofit_organization_custom_css .='text-align:left;';

		$nonprofit_organization_custom_css .='}';


	}else if($nonprofit_organization_copyright_text_alignment == 'CENTER-ALIGN'){

		$nonprofit_organization_custom_css .='.copy-text p{';

			$nonprofit_organization_custom_css .='text-align:center;';

		$nonprofit_organization_custom_css .='}';


	}else if($nonprofit_organization_copyright_text_alignment == 'RIGHT-ALIGN'){

		$nonprofit_organization_custom_css .='.copy-text p{';

			$nonprofit_organization_custom_css .='text-align:right;';

		$nonprofit_organization_custom_css .='}';

	}

	/*---------------------------related Product Settings-------------------*/

	$nonprofit_organization_related_product_setting = get_theme_mod('nonprofit_organization_related_product_setting',true);

		if($nonprofit_organization_related_product_setting == false){

			$nonprofit_organization_custom_css .='.related.products, .related h2{';

				$nonprofit_organization_custom_css .='display: none;';

			$nonprofit_organization_custom_css .='}';
		}


		/*---------------------------Pagination Settings-------------------*/


$nonprofit_organization_pagination_setting = get_theme_mod('nonprofit_organization_pagination_setting',true);

	if($nonprofit_organization_pagination_setting == false){

		$nonprofit_organization_custom_css .='.nav-links{';

			$nonprofit_organization_custom_css .='display: none;';

		$nonprofit_organization_custom_css .='}';
	}

		/*--------------------------- Slider Opacity -------------------*/

	$nonprofit_organization_slider_opacity_color = get_theme_mod( 'nonprofit_organization_slider_opacity_color','0.4');

	if($nonprofit_organization_slider_opacity_color == '0'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.1'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.1';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.2'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.2';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.3'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.3';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.4'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.4';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.5'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.5';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.6'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.6';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.7'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.7';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.8'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.8';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == '0.9'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:0.9';

		$nonprofit_organization_custom_css .='}';

		}else if($nonprofit_organization_slider_opacity_color == 'unset'){

		$nonprofit_organization_custom_css .='.blog_inner_box img{';

			$nonprofit_organization_custom_css .='opacity:unset';

		$nonprofit_organization_custom_css .='}';

		}

		/*---------------------------Woocommerce Pagination Alignment Settings-------------------*/

	$nonprofit_organization_woocommerce_pagination_position = get_theme_mod( 'nonprofit_organization_woocommerce_pagination_position','Center');

	if($nonprofit_organization_woocommerce_pagination_position == 'Left'){

		$nonprofit_organization_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$nonprofit_organization_custom_css .='text-align: left;';

		$nonprofit_organization_custom_css .='}';

	}else if($nonprofit_organization_woocommerce_pagination_position == 'Center'){

		$nonprofit_organization_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$nonprofit_organization_custom_css .='text-align: center;';

		$nonprofit_organization_custom_css .='}';

	}else if($nonprofit_organization_woocommerce_pagination_position == 'Right'){

		$nonprofit_organization_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$nonprofit_organization_custom_css .='text-align: right;';

		$nonprofit_organization_custom_css .='}';
	}

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

$nonprofit_organization_first_color = get_theme_mod('nonprofit_organization_first_color');
$nonprofit_organization_second_color = get_theme_mod('nonprofit_organization_second_color');

/*--- First Global Color ---*/

if ($nonprofit_organization_first_color) {
  $nonprofit_organization_custom_css .= ':root {';
  $nonprofit_organization_custom_css .= '--first-color: ' . esc_attr($nonprofit_organization_first_color) . ' !important;';
  $nonprofit_organization_custom_css .= '} ';
}

/*--- Second Global Color ---*/

if ($nonprofit_organization_second_color) {
  $nonprofit_organization_custom_css .= ':root {';
  $nonprofit_organization_custom_css .= '--second-color: ' . esc_attr($nonprofit_organization_second_color) . ' !important;';
  $nonprofit_organization_custom_css .= '} ';
}