<?php

    $charity_zone_theme_css= "";

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

    $charity_zone_global_color = get_theme_mod('charity_zone_global_color');

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

    /*------------------ Slider CSS -------------------*/

    $charity_zone_slider_content_layout = get_theme_mod( 'charity_zone_slider_content_layout','Center');
    if($charity_zone_slider_content_layout == 'Left'){
        $charity_zone_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p, .slider-inner-box a h2{';
            $charity_zone_theme_css .='text-align : left;';
        $charity_zone_theme_css .='}';
    }
    if($charity_zone_slider_content_layout == 'Center'){
        $charity_zone_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p, .slider-inner-box a h2{';
            $charity_zone_theme_css .='text-align : center;';
        $charity_zone_theme_css .='}';
    }
    if($charity_zone_slider_content_layout == 'Right'){
        $charity_zone_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p, .slider-inner-box a h2{';
            $charity_zone_theme_css .='text-align : right;';
        $charity_zone_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/
    $charity_zone_slider_opacity_setting = get_theme_mod( 'charity_zone_slider_opacity_setting',true);
    $charity_zone_image_opacity_color = get_theme_mod( 'charity_zone_image_opacity_color');
    $charity_zone_slider_opacity = get_theme_mod( 'charity_zone_slider_opacity');
    if( $charity_zone_slider_opacity_setting != false) {
        $charity_zone_theme_css .='#top-slider .slider-box img{';
            $charity_zone_theme_css .='opacity: '. $charity_zone_slider_opacity. ';';
        $charity_zone_theme_css .='}';
        if( $charity_zone_image_opacity_color != '') {
            $charity_zone_theme_css .='.slider-box{';
                $charity_zone_theme_css .='background-color: '. $charity_zone_image_opacity_color. ';';
            $charity_zone_theme_css .='}';
        }
    } else {
        $charity_zone_theme_css .='#top-slider .slider-box img{';
            $charity_zone_theme_css .='opacity: 1;';
        $charity_zone_theme_css .='}';
    }

    /*--------------------------- Preloader color -------------------*/
    $charity_zone_preloader2_dot_color = get_theme_mod( 'charity_zone_preloader2_dot_color');
    if( $charity_zone_preloader2_dot_color != '') {
        $charity_zone_theme_css .='.load hr {';
            $charity_zone_theme_css .='background-color: '. $charity_zone_preloader2_dot_color. ';';
        $charity_zone_theme_css .='}';
    }