<?php

$multipurpose_sports_club_tp_theme_css = '';

$multipurpose_sports_club_theme_lay = get_theme_mod( 'multipurpose_sports_club_tp_body_layout_settings','Full');
if($multipurpose_sports_club_theme_lay == 'Container'){
$multipurpose_sports_club_tp_theme_css .='body{';
$multipurpose_sports_club_tp_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
$multipurpose_sports_club_tp_theme_css .='}';
$multipurpose_sports_club_tp_theme_css .='@media screen and (max-width:575px){';
$multipurpose_sports_club_tp_theme_css .='body{';
	$multipurpose_sports_club_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left: 0px';
$multipurpose_sports_club_tp_theme_css .='} }';
$multipurpose_sports_club_tp_theme_css .='.scrolled{';
$multipurpose_sports_club_tp_theme_css .='width: auto; left:0; right:0;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_theme_lay == 'Container Fluid'){
$multipurpose_sports_club_tp_theme_css .='body{';
$multipurpose_sports_club_tp_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$multipurpose_sports_club_tp_theme_css .='}';
$multipurpose_sports_club_tp_theme_css .='@media screen and (max-width:575px){';
$multipurpose_sports_club_tp_theme_css .='body{';
	$multipurpose_sports_club_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
$multipurpose_sports_club_tp_theme_css .='} }';
$multipurpose_sports_club_tp_theme_css .='.scrolled{';
$multipurpose_sports_club_tp_theme_css .='width: auto; left:0; right:0;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_theme_lay == 'Full'){
$multipurpose_sports_club_tp_theme_css .='body{';
$multipurpose_sports_club_tp_theme_css .='max-width: 100%;';
$multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_scroll_position = get_theme_mod( 'multipurpose_sports_club_scroll_top_position','Right');
if($multipurpose_sports_club_scroll_position == 'Right'){
$multipurpose_sports_club_tp_theme_css .='#return-to-top{';
$multipurpose_sports_club_tp_theme_css .='right: 20px;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_scroll_position == 'Left'){
$multipurpose_sports_club_tp_theme_css .='#return-to-top{';
$multipurpose_sports_club_tp_theme_css .='left: 20px;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_scroll_position == 'Center'){
$multipurpose_sports_club_tp_theme_css .='#return-to-top{';
$multipurpose_sports_club_tp_theme_css .='right: 50%;left: 50%;';
$multipurpose_sports_club_tp_theme_css .='}';
}

// related post
$multipurpose_sports_club_related_post_mob = get_theme_mod('multipurpose_sports_club_related_post_mob', true);
$multipurpose_sports_club_related_post = get_theme_mod('multipurpose_sports_club_remove_related_post', true);
$multipurpose_sports_club_tp_theme_css .= '.related-post-block {';
if ($multipurpose_sports_club_related_post == false) {
    $multipurpose_sports_club_tp_theme_css .= 'display: none;';
}
$multipurpose_sports_club_tp_theme_css .= '}';
$multipurpose_sports_club_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($multipurpose_sports_club_related_post == false || $multipurpose_sports_club_related_post_mob == false) {
    $multipurpose_sports_club_tp_theme_css .= '.related-post-block { display: none; }';
}
$multipurpose_sports_club_tp_theme_css .= '}';

// slider btn
$multipurpose_sports_club_slider_buttom_mob = get_theme_mod('multipurpose_sports_club_slider_buttom_mob', true);
$multipurpose_sports_club_slider_button = get_theme_mod('multipurpose_sports_club_slider_button', true);
$multipurpose_sports_club_tp_theme_css .= '#main-slider .more-btn {';
if ($multipurpose_sports_club_slider_button == false) {
    $multipurpose_sports_club_tp_theme_css .= 'display: none;';
}
$multipurpose_sports_club_tp_theme_css .= '}';
$multipurpose_sports_club_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($multipurpose_sports_club_slider_button == false || $multipurpose_sports_club_slider_buttom_mob == false) {
    $multipurpose_sports_club_tp_theme_css .= '#main-slider .more-btn { display: none; }';
}
$multipurpose_sports_club_tp_theme_css .= '}';

//return to header mobile               
$multipurpose_sports_club_return_to_header_mob = get_theme_mod('multipurpose_sports_club_return_to_header_mob', true);
$multipurpose_sports_club_return_to_header = get_theme_mod('multipurpose_sports_club_return_to_header', true);
$multipurpose_sports_club_tp_theme_css .= '.return-to-header{';
if ($multipurpose_sports_club_return_to_header == false) {
    $multipurpose_sports_club_tp_theme_css .= 'display: none;';
}
$multipurpose_sports_club_tp_theme_css .= '}';
$multipurpose_sports_club_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($multipurpose_sports_club_return_to_header == false || $multipurpose_sports_club_return_to_header_mob == false) {
    $multipurpose_sports_club_tp_theme_css .= '.return-to-header{ display: none; }';
}
$multipurpose_sports_club_tp_theme_css .= '}';

//blog description              
$multipurpose_sports_club_mobile_blog_description = get_theme_mod('multipurpose_sports_club_mobile_blog_description', true);
$multipurpose_sports_club_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($multipurpose_sports_club_mobile_blog_description == false) {
    $multipurpose_sports_club_tp_theme_css .= '.blog-description{ display: none; }';
}
$multipurpose_sports_club_tp_theme_css .= '}';


$multipurpose_sports_club_footer_widget_image = get_theme_mod('multipurpose_sports_club_footer_widget_image');
if($multipurpose_sports_club_footer_widget_image != false){
$multipurpose_sports_club_tp_theme_css .='#footer{';
$multipurpose_sports_club_tp_theme_css .='background: url('.esc_attr($multipurpose_sports_club_footer_widget_image).');';
$multipurpose_sports_club_tp_theme_css .='}';
}

// site title and tagline font size option
$multipurpose_sports_club_site_title_font_size = get_theme_mod('multipurpose_sports_club_site_title_font_size', ''); {
$multipurpose_sports_club_tp_theme_css .='.logo h1 a, .logo p a{';
$multipurpose_sports_club_tp_theme_css .='font-size: '.esc_attr($multipurpose_sports_club_site_title_font_size).'px !important;';
$multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_site_tagline_font_size = get_theme_mod('multipurpose_sports_club_site_tagline_font_size', '');{
$multipurpose_sports_club_tp_theme_css .='.logo p{';
$multipurpose_sports_club_tp_theme_css .='font-size: '.esc_attr($multipurpose_sports_club_site_tagline_font_size).'px;';
$multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_related_product = get_theme_mod('multipurpose_sports_club_related_product',true);
if($multipurpose_sports_club_related_product == false){
$multipurpose_sports_club_tp_theme_css .='.related.products{';
	$multipurpose_sports_club_tp_theme_css .='display: none;';
$multipurpose_sports_club_tp_theme_css .='}';
}

//menu font size
$multipurpose_sports_club_menu_font_size = get_theme_mod('multipurpose_sports_club_menu_font_size', '');{
$multipurpose_sports_club_tp_theme_css .='.main-navigation a, .main-navigation li.page_item_has_children:after, .main-navigation li.menu-item-has-children:after{';
	$multipurpose_sports_club_tp_theme_css .='font-size: '.esc_attr($multipurpose_sports_club_menu_font_size).'px;';
$multipurpose_sports_club_tp_theme_css .='}';
}

// menu text transform
$multipurpose_sports_club_menu_text_tranform = get_theme_mod( 'multipurpose_sports_club_menu_text_tranform','');
if($multipurpose_sports_club_menu_text_tranform == 'Uppercase'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a {';
	$multipurpose_sports_club_tp_theme_css .='text-transform: uppercase;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_text_tranform == 'Lowercase'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a {';
	$multipurpose_sports_club_tp_theme_css .='text-transform: lowercase;';
$multipurpose_sports_club_tp_theme_css .='}';
}
else if($multipurpose_sports_club_menu_text_tranform == 'Capitalize'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a {';
	$multipurpose_sports_club_tp_theme_css .='text-transform: capitalize;';
$multipurpose_sports_club_tp_theme_css .='}';
}

//sale position
$multipurpose_sports_club_scroll_position = get_theme_mod( 'multipurpose_sports_club_sale_tag_position','right');
if($multipurpose_sports_club_scroll_position == 'right'){
$multipurpose_sports_club_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $multipurpose_sports_club_tp_theme_css .='right: 25px !important;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_scroll_position == 'left'){
$multipurpose_sports_club_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $multipurpose_sports_club_tp_theme_css .='left: 25px !important; right: auto !important;';
$multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_woocommerce_sale_font_size = get_theme_mod('multipurpose_sports_club_woocommerce_sale_font_size');
if($multipurpose_sports_club_woocommerce_sale_font_size != false){
    $multipurpose_sports_club_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $multipurpose_sports_club_tp_theme_css .='font-size: '.esc_attr($multipurpose_sports_club_woocommerce_sale_font_size).'px;';
    $multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_woocommerce_sale_padding_top_bottom = get_theme_mod('multipurpose_sports_club_woocommerce_sale_padding_top_bottom');
if($multipurpose_sports_club_woocommerce_sale_padding_top_bottom != false){
    $multipurpose_sports_club_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $multipurpose_sports_club_tp_theme_css .='padding-top: '.esc_attr($multipurpose_sports_club_woocommerce_sale_padding_top_bottom).'px; padding-bottom: '.esc_attr($multipurpose_sports_club_woocommerce_sale_padding_top_bottom).'px;';
    $multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_woocommerce_sale_padding_left_right = get_theme_mod('multipurpose_sports_club_woocommerce_sale_padding_left_right');
if($multipurpose_sports_club_woocommerce_sale_padding_left_right != false){
    $multipurpose_sports_club_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $multipurpose_sports_club_tp_theme_css .='padding-left: '.esc_attr($multipurpose_sports_club_woocommerce_sale_padding_left_right).'px !Important; padding-right: '.esc_attr($multipurpose_sports_club_woocommerce_sale_padding_left_right).'px !important;';
    $multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_woocommerce_sale_border_radius = get_theme_mod('multipurpose_sports_club_woocommerce_sale_border_radius', 100);
if($multipurpose_sports_club_woocommerce_sale_border_radius != false){
    $multipurpose_sports_club_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $multipurpose_sports_club_tp_theme_css .='border-radius: '.esc_attr($multipurpose_sports_club_woocommerce_sale_border_radius).'% !important;';
    $multipurpose_sports_club_tp_theme_css .='}';
}

//Font Weight
$multipurpose_sports_club_menu_font_weight = get_theme_mod( 'multipurpose_sports_club_menu_font_weight','');
if($multipurpose_sports_club_menu_font_weight == '100'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 100;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_font_weight == '200'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 200;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_font_weight == '300'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 300;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_font_weight == '400'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 400;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_font_weight == '500'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 500;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_font_weight == '600'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 600;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_font_weight == '700'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 700;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_font_weight == '800'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 800;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_menu_font_weight == '900'){
$multipurpose_sports_club_tp_theme_css .='.main-navigation a{';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 900;';
$multipurpose_sports_club_tp_theme_css .='}';
}

/*------------- Blog Page------------------*/
$multipurpose_sports_club_post_image_round = get_theme_mod('multipurpose_sports_club_post_image_round', 0);
if($multipurpose_sports_club_post_image_round != false){
    $multipurpose_sports_club_tp_theme_css .='.blog .box-image img{';
        $multipurpose_sports_club_tp_theme_css .='border-radius: '.esc_attr($multipurpose_sports_club_post_image_round).'px;';
    $multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_post_image_width = get_theme_mod('multipurpose_sports_club_post_image_width', '');
if($multipurpose_sports_club_post_image_width != false){
    $multipurpose_sports_club_tp_theme_css .='.blog .box-image img{';
        $multipurpose_sports_club_tp_theme_css .='Width: '.esc_attr($multipurpose_sports_club_post_image_width).'px;';
    $multipurpose_sports_club_tp_theme_css .='}';
}

$multipurpose_sports_club_post_image_length = get_theme_mod('multipurpose_sports_club_post_image_length', '');
if($multipurpose_sports_club_post_image_length != false){
    $multipurpose_sports_club_tp_theme_css .='.blog .box-image img{';
        $multipurpose_sports_club_tp_theme_css .='height: '.esc_attr($multipurpose_sports_club_post_image_length).'px;';
    $multipurpose_sports_club_tp_theme_css .='}';
}

// footer widget title font size
$multipurpose_sports_club_footer_widget_title_font_size = get_theme_mod('multipurpose_sports_club_footer_widget_title_font_size', '');{
$multipurpose_sports_club_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
    $multipurpose_sports_club_tp_theme_css .='font-size: '.esc_attr($multipurpose_sports_club_footer_widget_title_font_size).'px;';
$multipurpose_sports_club_tp_theme_css .='}';
}

// Copyright text font size
$multipurpose_sports_club_footer_copyright_font_size = get_theme_mod('multipurpose_sports_club_footer_copyright_font_size', '');{
$multipurpose_sports_club_tp_theme_css .='#footer .site-info p{';
    $multipurpose_sports_club_tp_theme_css .='font-size: '.esc_attr($multipurpose_sports_club_footer_copyright_font_size).'px;';
$multipurpose_sports_club_tp_theme_css .='}';
}

// copyright padding
$multipurpose_sports_club_footer_copyright_top_bottom_padding = get_theme_mod('multipurpose_sports_club_footer_copyright_top_bottom_padding', '');
if ($multipurpose_sports_club_footer_copyright_top_bottom_padding !== '') { 
    $multipurpose_sports_club_tp_theme_css .= '.site-info {';
    $multipurpose_sports_club_tp_theme_css .= 'padding-top: ' . esc_attr($multipurpose_sports_club_footer_copyright_top_bottom_padding) . 'px;';
    $multipurpose_sports_club_tp_theme_css .= 'padding-bottom: ' . esc_attr($multipurpose_sports_club_footer_copyright_top_bottom_padding) . 'px;';
    $multipurpose_sports_club_tp_theme_css .= '}';
}

// copyright position
$multipurpose_sports_club_copyright_text_position = get_theme_mod( 'multipurpose_sports_club_copyright_text_position','Center');
if($multipurpose_sports_club_copyright_text_position == 'Center'){
$multipurpose_sports_club_tp_theme_css .='#footer .site-info p{';
$multipurpose_sports_club_tp_theme_css .='text-align:center;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_copyright_text_position == 'Left'){
$multipurpose_sports_club_tp_theme_css .='#footer .site-info p{';
$multipurpose_sports_club_tp_theme_css .='text-align:left;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_copyright_text_position == 'Right'){
$multipurpose_sports_club_tp_theme_css .='#footer .site-info p{';
$multipurpose_sports_club_tp_theme_css .='text-align:right;';
$multipurpose_sports_club_tp_theme_css .='}';
}

// Header Image title font size
$multipurpose_sports_club_header_image_title_font_size = get_theme_mod('multipurpose_sports_club_header_image_title_font_size', '40');{
$multipurpose_sports_club_tp_theme_css .='.box-text h2{';
    $multipurpose_sports_club_tp_theme_css .='font-size: '.esc_attr($multipurpose_sports_club_header_image_title_font_size).'px;';
$multipurpose_sports_club_tp_theme_css .='}';
}

/*--------------------------- banner image Opacity -------------------*/
    $multipurpose_sports_club_theme_lay = get_theme_mod( 'multipurpose_sports_club_header_banner_opacity_color','0.5');
        if($multipurpose_sports_club_theme_lay == '0'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.1'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.1';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.2'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.2';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.3'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.3';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.4'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.4';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.5'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.5';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.6'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.6';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.7'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.7';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.8'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.8';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '0.9'){
            $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
                $multipurpose_sports_club_tp_theme_css .='opacity:0.9';
            $multipurpose_sports_club_tp_theme_css .='}';
        }else if($multipurpose_sports_club_theme_lay == '1'){
            $multipurpose_sports_club_tp_theme_css .='#main-slider img{';
                $multipurpose_sports_club_tp_theme_css .='opacity:1';
            $multipurpose_sports_club_tp_theme_css .='}';
        }

    $multipurpose_sports_club_header_banner_image_overlay = get_theme_mod('multipurpose_sports_club_header_banner_image_overlay', true);
    if($multipurpose_sports_club_header_banner_image_overlay == false){
        $multipurpose_sports_club_tp_theme_css .='.single-page-img, .featured-image{';
            $multipurpose_sports_club_tp_theme_css .='opacity:1;';
        $multipurpose_sports_club_tp_theme_css .='}';
    }

    $multipurpose_sports_club_header_banner_image_ooverlay_color = get_theme_mod('multipurpose_sports_club_header_banner_image_ooverlay_color', true);
    if($multipurpose_sports_club_header_banner_image_ooverlay_color != false){
        $multipurpose_sports_club_tp_theme_css .='.box-image-page{';
            $multipurpose_sports_club_tp_theme_css .='background-color: '.esc_attr($multipurpose_sports_club_header_banner_image_ooverlay_color).';';
        $multipurpose_sports_club_tp_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/
    $multipurpose_sports_club_slider_opacity_setting = get_theme_mod('multipurpose_sports_club_slider_opacity_setting', true);
    $multipurpose_sports_club_image_opacity_color    = get_theme_mod('multipurpose_sports_club_image_opacity_color', '');
    $multipurpose_sports_club_slider_opacity         = get_theme_mod('multipurpose_sports_club_slider_opacity', '0.5');

    if ($multipurpose_sports_club_slider_opacity_setting) {
        // Apply opacity value to slider image
        if ($multipurpose_sports_club_slider_opacity !== '') {
            $multipurpose_sports_club_tp_theme_css .= '#slider img {';
            $multipurpose_sports_club_tp_theme_css .= 'opacity: ' . esc_attr($multipurpose_sports_club_slider_opacity) . ';';
            $multipurpose_sports_club_tp_theme_css .= '}';
        }

        // Apply background color to slider if defined
        if ($multipurpose_sports_club_image_opacity_color !== '') {
            $multipurpose_sports_club_tp_theme_css .= '#slider {';
            $multipurpose_sports_club_tp_theme_css .= 'background-color: ' . esc_attr($multipurpose_sports_club_image_opacity_color) . ';';
            $multipurpose_sports_club_tp_theme_css .= '}';
        }
    } else {
        // If setting is disabled, force full opacity
        $multipurpose_sports_club_tp_theme_css .= '#slider img {';
        $multipurpose_sports_club_tp_theme_css .= 'opacity: 0.5;';
        $multipurpose_sports_club_tp_theme_css .= '}';
    }

    /*---------------------------Slider Height ------------*/
    $multipurpose_sports_club_slider_img_height       = get_theme_mod('multipurpose_sports_club_slider_img_height');
    $multipurpose_sports_club_slider_img_height_resp  = get_theme_mod('multipurpose_sports_club_slider_img_height_responsive');

    if ( $multipurpose_sports_club_slider_img_height ) {
        $multipurpose_sports_club_tp_theme_css .= '#slider img, #slider {';
        $multipurpose_sports_club_tp_theme_css .= 'height: ' . esc_attr( $multipurpose_sports_club_slider_img_height ) . ';';
        $multipurpose_sports_club_tp_theme_css .= '}';
    }

    if ( $multipurpose_sports_club_slider_img_height_resp ) {
        $multipurpose_sports_club_tp_theme_css .= '@media only screen and (max-width: 767px) {';
        $multipurpose_sports_club_tp_theme_css .= '#slider img, #slider {';
        $multipurpose_sports_club_tp_theme_css .= 'height: ' . esc_attr( $multipurpose_sports_club_slider_img_height_resp ) . ';';
        $multipurpose_sports_club_tp_theme_css .= '}';
        $multipurpose_sports_club_tp_theme_css .= '}';
    }


    // header
    $multipurpose_sports_club_slider_arrows = get_theme_mod('multipurpose_sports_club_slider_arrows', true);
    if($multipurpose_sports_club_slider_arrows == false){
    $multipurpose_sports_club_tp_theme_css .='.page-template-front-page .headerbox{';
        $multipurpose_sports_club_tp_theme_css .='position:static;background:#000; padding-bottom:20px;';
    $multipurpose_sports_club_tp_theme_css .='}';
    }

// footer widget letter case
$multipurpose_sports_club_footer_widget_title_text_tranform = get_theme_mod( 'multipurpose_sports_club_footer_widget_title_text_tranform','');
if($multipurpose_sports_club_footer_widget_title_text_tranform == 'Uppercase'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='text-transform: uppercase;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_text_tranform == 'Lowercase'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='text-transform: lowercase;';
$multipurpose_sports_club_tp_theme_css .='}';
}
else if($multipurpose_sports_club_footer_widget_title_text_tranform == 'Capitalize'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='text-transform: capitalize;';
$multipurpose_sports_club_tp_theme_css .='}';
}

//Footer Font Weight
$multipurpose_sports_club_footer_widget_title_font_weight = get_theme_mod( 'multipurpose_sports_club_footer_widget_title_font_weight','');
if($multipurpose_sports_club_footer_widget_title_font_weight == '100'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 100;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_font_weight == '200'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 200;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_font_weight == '300'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 300;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_font_weight == '400'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 400;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_font_weight == '500'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 500;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_font_weight == '600'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 600;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_font_weight == '700'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 700;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_font_weight == '800'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 800;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_font_weight == '900'){
$multipurpose_sports_club_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $multipurpose_sports_club_tp_theme_css .='font-weight: 900;';
$multipurpose_sports_club_tp_theme_css .='}';
}

// footer widget position
$multipurpose_sports_club_footer_widget_title_position = get_theme_mod( 'multipurpose_sports_club_footer_widget_title_position','');
if($multipurpose_sports_club_footer_widget_title_position == 'Right'){
$multipurpose_sports_club_tp_theme_css .='#footer aside.widget-area{';
$multipurpose_sports_club_tp_theme_css .='text-align: right;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_position == 'Left'){
$multipurpose_sports_club_tp_theme_css .='#footer aside.widget-area{';
$multipurpose_sports_club_tp_theme_css .='text-align: left;';
$multipurpose_sports_club_tp_theme_css .='}';
}else if($multipurpose_sports_club_footer_widget_title_position == 'Center'){
$multipurpose_sports_club_tp_theme_css .='#footer aside.widget-area{';
$multipurpose_sports_club_tp_theme_css .='text-align: center;';
$multipurpose_sports_club_tp_theme_css .='}';
}

// Slider animation
$multipurpose_sports_club_slider_sec_animation = get_theme_mod( 'multipurpose_sports_club_slider_sec_animation', true );
if ( $multipurpose_sports_club_slider_sec_animation ) {
    $multipurpose_sports_club_tp_theme_css .= '#slider { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// About Section ANimation
$multipurpose_sports_club_about_sec_animation = get_theme_mod( 'multipurpose_sports_club_about_sec_animation', true );
if ( $multipurpose_sports_club_about_sec_animation ) {
    $multipurpose_sports_club_tp_theme_css .= '#product-section { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// footer Section ANimation
$multipurpose_sports_club_footer_animation = get_theme_mod( 'multipurpose_sports_club_footer_animation', true );
if ( $multipurpose_sports_club_footer_animation ) {
    $multipurpose_sports_club_tp_theme_css .= '#footer { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// Output the complete CSS
if ( ! empty( $multipurpose_sports_club_tp_theme_css ) ) {
    echo '<style id="multipurpose-sports-club-dynamic-css">' . $multipurpose_sports_club_tp_theme_css . '</style>';
}
?>