<?php

$organic_farm_custom_style= "";

//Slider-content-alignment

$green_farm_slider_content_alignment = get_theme_mod( 'green_farm_slider_content_alignment','CENTER-ALIGN');

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

$organic_farm_custom_style .='#slider .carousel-caption{';

	$organic_farm_custom_style .='text-align:left;  right: 50%; left: 15%;';

$organic_farm_custom_style .='}';

$organic_farm_custom_style .='@media screen and (max-width:1199px){';

$organic_farm_custom_style .='#slider .carousel-caption{';

    $organic_farm_custom_style .='right: 35%; left: 15%';
    
$organic_farm_custom_style .='} }';

$organic_farm_custom_style .='@media screen and (max-width:991px){';

$organic_farm_custom_style .='#slider .carousel-caption{';

    $organic_farm_custom_style .='right: 20%; left: 15%';
    
$organic_farm_custom_style .='} }';


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

$organic_farm_custom_style .='#slider .carousel-caption{';

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

$organic_farm_custom_style .='}';

$organic_farm_custom_style .='@media screen and (max-width:1199px){';

$organic_farm_custom_style .='#slider .carousel-caption{';

    $organic_farm_custom_style .='right: 20%; left: 20%';
    
$organic_farm_custom_style .='} }';

$organic_farm_custom_style .='@media screen and (max-width:991px){';

$organic_farm_custom_style .='#slider .carousel-caption{';

    $organic_farm_custom_style .='right: 15%; left: 15%';
    
$organic_farm_custom_style .='} }';


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

$organic_farm_custom_style .='#slider .carousel-caption{';

	$organic_farm_custom_style .='text-align:right;  right: 15%; left: 50%;';

$organic_farm_custom_style .='}';

$organic_farm_custom_style .='@media screen and (max-width:1199px){';

$organic_farm_custom_style .='#slider .carousel-caption{';

    $organic_farm_custom_style .='right: 15%; left: 35%';
    
$organic_farm_custom_style .='} }';

$organic_farm_custom_style .='@media screen and (max-width:991px){';

$organic_farm_custom_style .='#slider .carousel-caption{';

    $organic_farm_custom_style .='right: 15%; left: 20%';
    
$organic_farm_custom_style .='} }';

}


//colors
$color = get_theme_mod('green_farm_primary_color', '#48d475');
$color_top_bg = get_theme_mod('green_farm_top_bg_color', '#14361f');
$color_heading = get_theme_mod('green_farm_heading_color', '#14361f');
$color_footer_bg = get_theme_mod('green_farm_footer_bg', '#131313');


$organic_farm_custom_style .= ":root {";
    $organic_farm_custom_style .= "--theme-primary-color: {$color};";
    $organic_farm_custom_style .= "--theme-topbar-bg-color: {$color_top_bg};";
    $organic_farm_custom_style .= "--theme-heading-color: {$color_heading};";
    $organic_farm_custom_style .= "--theme-footer-color: {$color_footer_bg};";
$organic_farm_custom_style .= "}";

$green_farm_slider_heading_color = get_theme_mod( 'green_farm_slider_heading_color','#ffffff');
$organic_farm_custom_style .='#slider .carousel-caption h2 {';
$organic_farm_custom_style .='color: '.esc_attr($green_farm_slider_heading_color).';';
$organic_farm_custom_style .='}';

$green_farm_slider_excerpt_color = get_theme_mod( 'green_farm_slider_excerpt_color','#ffffff');
$organic_farm_custom_style .='#slider .slider-excerpt {';
$organic_farm_custom_style .='color: '.esc_attr($green_farm_slider_excerpt_color).';';
$organic_farm_custom_style .='}';