<?php

    $indoor_sports_zone_theme_css= "";

    /*--------------------------- Scroll to top positions -------------------*/

    $indoor_sports_zone_scroll_position = get_theme_mod( 'indoor_sports_zone_scroll_top_position','Right');
    if($indoor_sports_zone_scroll_position == 'Right'){
        $indoor_sports_zone_theme_css .='#button{';
            $indoor_sports_zone_theme_css .='right: 20px;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_scroll_position == 'Left'){
        $indoor_sports_zone_theme_css .='#button{';
            $indoor_sports_zone_theme_css .='left: 20px;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_scroll_position == 'Center'){
        $indoor_sports_zone_theme_css .='#button{';
            $indoor_sports_zone_theme_css .='right: 50%;left: 50%;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Single Post Page Image Box Shadow -------------------*/

    $indoor_sports_zone_single_post_page_image_box_shadow = get_theme_mod('indoor_sports_zone_single_post_page_image_box_shadow',0);
    if($indoor_sports_zone_single_post_page_image_box_shadow != false){
        $indoor_sports_zone_theme_css .='.single-post .entry-header img{';
            $indoor_sports_zone_theme_css .='box-shadow: '.esc_attr($indoor_sports_zone_single_post_page_image_box_shadow).'px '.esc_attr($indoor_sports_zone_single_post_page_image_box_shadow).'px '.esc_attr($indoor_sports_zone_single_post_page_image_box_shadow).'px #cccccc;';
        $indoor_sports_zone_theme_css .='}';
    }

     /*--------------------------- Single Post Page Image Border Radius -------------------*/

    $indoor_sports_zone_single_post_page_image_border_radius = get_theme_mod('indoor_sports_zone_single_post_page_image_border_radius', 0);
    if($indoor_sports_zone_single_post_page_image_border_radius != false){
        $indoor_sports_zone_theme_css .='.single-post .entry-header img{';
            $indoor_sports_zone_theme_css .='border-radius: '.esc_attr($indoor_sports_zone_single_post_page_image_border_radius).'px;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Footer background image -------------------*/

    $indoor_sports_zone_footer_bg_image = get_theme_mod('indoor_sports_zone_footer_bg_image');
    if($indoor_sports_zone_footer_bg_image != false){
        $indoor_sports_zone_theme_css .='#colophon{';
            $indoor_sports_zone_theme_css .='background: url('.esc_attr($indoor_sports_zone_footer_bg_image).')!important;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Footer Background Image Position -------------------*/

    $indoor_sports_zone_footer_bg_image_position = get_theme_mod( 'indoor_sports_zone_footer_bg_image_position','scroll');
    if($indoor_sports_zone_footer_bg_image_position == 'fixed'){
        $indoor_sports_zone_theme_css .='#colophon{';
            $indoor_sports_zone_theme_css .='background-attachment: fixed !important; background-position: center !important;';
        $indoor_sports_zone_theme_css .='}';
    }elseif ($indoor_sports_zone_footer_bg_image_position == 'scroll'){
        $indoor_sports_zone_theme_css .='#colophon{';
            $indoor_sports_zone_theme_css .='background-attachment: scroll !important; background-position: center !important;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Footer Widget Heading Alignment -------------------*/

    $indoor_sports_zone_footer_widget_heading_alignment = get_theme_mod( 'indoor_sports_zone_footer_widget_heading_alignment','Left');
    if($indoor_sports_zone_footer_widget_heading_alignment == 'Left'){
        $indoor_sports_zone_theme_css .='#colophon h5, h5.footer-column-widget-title{';
        $indoor_sports_zone_theme_css .='text-align: left;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_footer_widget_heading_alignment == 'Center'){
        $indoor_sports_zone_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $indoor_sports_zone_theme_css .='text-align: center;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_footer_widget_heading_alignment == 'Right'){
        $indoor_sports_zone_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $indoor_sports_zone_theme_css .='text-align: right;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Footer Widget Content Alignment -------------------*/

    $indoor_sports_zone_footer_widget_content_alignment = get_theme_mod( 'indoor_sports_zone_footer_widget_content_alignment','Left');
    if($indoor_sports_zone_footer_widget_content_alignment == 'Left'){
        $indoor_sports_zone_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
        $indoor_sports_zone_theme_css .='text-align: left;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_footer_widget_content_alignment == 'Center'){
        $indoor_sports_zone_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $indoor_sports_zone_theme_css .='text-align: center;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_footer_widget_content_alignment == 'Right'){
        $indoor_sports_zone_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $indoor_sports_zone_theme_css .='text-align: right;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Copyright Content Alignment -------------------*/

    $indoor_sports_zone_copyright_content_alignment = get_theme_mod( 'indoor_sports_zone_copyright_content_alignment','Center');
    if($indoor_sports_zone_copyright_content_alignment == 'Left'){
        $indoor_sports_zone_theme_css .='.footer-menu-left{';
        $indoor_sports_zone_theme_css .='text-align: left;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_copyright_content_alignment == 'Center'){
        $indoor_sports_zone_theme_css .='.footer-menu-left{';
            $indoor_sports_zone_theme_css .='text-align: center;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_copyright_content_alignment == 'Right'){
        $indoor_sports_zone_theme_css .='.footer-menu-left{';
            $indoor_sports_zone_theme_css .='text-align: right;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*---------------------------Width Layout -------------------*/

    $indoor_sports_zone_width_option = get_theme_mod( 'indoor_sports_zone_width_option','Full Width');
    if($indoor_sports_zone_width_option == 'Boxed Width'){
        $indoor_sports_zone_theme_css .='body{';
            $indoor_sports_zone_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
        $indoor_sports_zone_theme_css .='}';
        $indoor_sports_zone_theme_css .='.scrollup i{';
            $indoor_sports_zone_theme_css .='right: 100px;';
        $indoor_sports_zone_theme_css .='}';
        $indoor_sports_zone_theme_css .='.page-template-custom-home-page .home-page-header{';
            $indoor_sports_zone_theme_css .='padding: 0px 40px 0 10px;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_width_option == 'Wide Width'){
        $indoor_sports_zone_theme_css .='body{';
            $indoor_sports_zone_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
        $indoor_sports_zone_theme_css .='}';
        $indoor_sports_zone_theme_css .='.scrollup i{';
            $indoor_sports_zone_theme_css .='right: 30px;';
        $indoor_sports_zone_theme_css .='}';
    }else if($indoor_sports_zone_width_option == 'Full Width'){
        $indoor_sports_zone_theme_css .='body{';
            $indoor_sports_zone_theme_css .='max-width: 100%;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*------------------ Nav Menus -------------------*/

    $indoor_sports_zone_nav_menu = get_theme_mod( 'indoor_sports_zone_nav_menu_text_transform','Capitalize');
    if($indoor_sports_zone_nav_menu == 'Capitalize'){
        $indoor_sports_zone_theme_css .='.main-navigation .menu > li > a{';
            $indoor_sports_zone_theme_css .='text-transform:Capitalize;';
        $indoor_sports_zone_theme_css .='}';
    }
    if($indoor_sports_zone_nav_menu == 'Lowercase'){
        $indoor_sports_zone_theme_css .='.main-navigation .menu > li > a{';
            $indoor_sports_zone_theme_css .='text-transform:Lowercase;';
        $indoor_sports_zone_theme_css .='}';
    }
    if($indoor_sports_zone_nav_menu == 'Uppercase'){
        $indoor_sports_zone_theme_css .='.main-navigation .menu > li > a{';
            $indoor_sports_zone_theme_css .='text-transform:Uppercase;';
        $indoor_sports_zone_theme_css .='}';
    }

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

    $indoor_sports_zone_global_color = get_theme_mod('indoor_sports_zone_global_color');

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

     /*-------------------- Heading typography -------------------*/

    $indoor_sports_zone_heading_color = get_theme_mod('indoor_sports_zone_heading_color');
    $indoor_sports_zone_heading_font_family = get_theme_mod('indoor_sports_zone_heading_font_family');
    $indoor_sports_zone_heading_font_size = get_theme_mod('indoor_sports_zone_heading_font_size');
    if($indoor_sports_zone_heading_color != false || $indoor_sports_zone_heading_font_family != false || $indoor_sports_zone_heading_font_size != false){
        $indoor_sports_zone_theme_css .='h1, h2, h3, h4, h5, h6, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, #latest_post h2, h2.woocommerce-loop-product__title, #colophon h5, .sidebar h5, .article-box h3.entry-title, .slider-inner-box h2, #top-slider .slider-inner-box h2, #top-slider .slider-inner-box h3, h2.wp-block-heading a, .featured h3.main-heading, .featured h4.main-heading, h5.slider-short, h5.box-title, h5.main-title, h5.class-title, h5.service-title, h6.box-short{';
            $indoor_sports_zone_theme_css .='color: '.esc_attr($indoor_sports_zone_heading_color).'!important; 
            font-family: '.esc_attr($indoor_sports_zone_heading_font_family).'!important;
            font-size: '.esc_attr($indoor_sports_zone_heading_font_size).'px !important;';
        $indoor_sports_zone_theme_css .='}';
    }

    $indoor_sports_zone_paragraph_color = get_theme_mod('indoor_sports_zone_paragraph_color');
    $indoor_sports_zone_paragraph_font_family = get_theme_mod('indoor_sports_zone_paragraph_font_family');
    $indoor_sports_zone_paragraph_font_size = get_theme_mod('indoor_sports_zone_paragraph_font_size');
    if($indoor_sports_zone_paragraph_color != false || $indoor_sports_zone_paragraph_font_family != false || $indoor_sports_zone_paragraph_font_size != false){
        $indoor_sports_zone_theme_css .='p, p.site-title, span, .article-box p, ul, li{';
            $indoor_sports_zone_theme_css .='color: '.esc_attr($indoor_sports_zone_paragraph_color).'!important; 
            font-family: '.esc_attr($indoor_sports_zone_paragraph_font_family).'!important;
            font-size: '.esc_attr($indoor_sports_zone_paragraph_font_size).'px !important;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/
    $indoor_sports_zone_slider_opacity_setting = get_theme_mod( 'indoor_sports_zone_slider_opacity_setting',true);
    $indoor_sports_zone_image_opacity_color = get_theme_mod( 'indoor_sports_zone_image_opacity_color');
    $indoor_sports_zone_slider_opacity = get_theme_mod( 'indoor_sports_zone_slider_opacity');
    if( $indoor_sports_zone_slider_opacity_setting != false) {
        $indoor_sports_zone_theme_css .='#slider .slide-image img{';
            $indoor_sports_zone_theme_css .='opacity: '. $indoor_sports_zone_slider_opacity. ';';
        $indoor_sports_zone_theme_css .='}';
        if( $indoor_sports_zone_image_opacity_color != '') {
            $indoor_sports_zone_theme_css .='#slider .slide-image{';
                $indoor_sports_zone_theme_css .='background-color: '. $indoor_sports_zone_image_opacity_color. ';';
            $indoor_sports_zone_theme_css .='}';
        }
    } else {
        $indoor_sports_zone_theme_css .='#slider .slide-image img{';
            $indoor_sports_zone_theme_css .='opacity: 1;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*------------------ Footer CSS -------------------*/
    $indoor_sports_zone_footer_bg_color = get_theme_mod( 'indoor_sports_zone_footer_bg_color');
    if($indoor_sports_zone_footer_bg_color != '' ){
        $indoor_sports_zone_theme_css .='#colophon {';
            $indoor_sports_zone_theme_css .='background-color: '.esc_attr($indoor_sports_zone_footer_bg_color).'; ';
        $indoor_sports_zone_theme_css .='}';
    }

    $indoor_sports_zone_footer_content_color = get_theme_mod( 'indoor_sports_zone_footer_content_color');
    if($indoor_sports_zone_footer_content_color != ''){
        $indoor_sports_zone_theme_css .='#colophon, #colophon a, #colophon h5, #colophon .widget #wp-calendar caption {';
            $indoor_sports_zone_theme_css .='color: '.esc_attr($indoor_sports_zone_footer_content_color).';';
        $indoor_sports_zone_theme_css .='}';
    }

    /*------------------ Copyright CSS -------------------*/
    $indoor_sports_zone_copyright_text_color = get_theme_mod( 'indoor_sports_zone_copyright_text_color');
    if($indoor_sports_zone_copyright_text_color != ''){
        $indoor_sports_zone_theme_css .='#colophon .site-info a, #colophon .site-info span {';
            $indoor_sports_zone_theme_css .='color: '.esc_attr($indoor_sports_zone_copyright_text_color).';';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Featured Image Border Radius -------------------*/

    $indoor_sports_zone_post_page_image_border_radius = get_theme_mod('indoor_sports_zone_post_page_image_border_radius', 0);
    if($indoor_sports_zone_post_page_image_border_radius != false){
        $indoor_sports_zone_theme_css .='.article-box img{';
            $indoor_sports_zone_theme_css .='border-radius: '.esc_attr($indoor_sports_zone_post_page_image_border_radius).'px;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Post Page Image Box Shadow -------------------*/

    $indoor_sports_zone_post_page_image_box_shadow = get_theme_mod('indoor_sports_zone_post_page_image_box_shadow',0);
    if($indoor_sports_zone_post_page_image_box_shadow != false){
        $indoor_sports_zone_theme_css .='.article-box img{';
            $indoor_sports_zone_theme_css .='box-shadow: '.esc_attr($indoor_sports_zone_post_page_image_box_shadow).'px '.esc_attr($indoor_sports_zone_post_page_image_box_shadow).'px '.esc_attr($indoor_sports_zone_post_page_image_box_shadow).'px #cccccc;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*---------------- Single post Settings ------------------*/

    $indoor_sports_zone_single_post_navigation_show_hide = get_theme_mod('indoor_sports_zone_single_post_navigation_show_hide',true);
    if($indoor_sports_zone_single_post_navigation_show_hide != true){
        $indoor_sports_zone_theme_css .='.nav-links{';
            $indoor_sports_zone_theme_css .='display: none;';
        $indoor_sports_zone_theme_css .='}';
    }

    /*--------------------------- Single Post Page Image Box Shadow -------------------*/

    $indoor_sports_zone_single_post_page_image_box_shadow = get_theme_mod('indoor_sports_zone_single_post_page_image_box_shadow',0);
    if($indoor_sports_zone_single_post_page_image_box_shadow != false){
        $indoor_sports_zone_theme_css .='.single-post .entry-header img{';
            $indoor_sports_zone_theme_css .='box-shadow: '.esc_attr($indoor_sports_zone_single_post_page_image_box_shadow).'px '.esc_attr($indoor_sports_zone_single_post_page_image_box_shadow).'px '.esc_attr($indoor_sports_zone_single_post_page_image_box_shadow).'px #cccccc;';
        $indoor_sports_zone_theme_css .='}';
    }

     /*--------------------------- Single Post Page Image Border Radius -------------------*/

    $indoor_sports_zone_single_post_page_image_border_radius = get_theme_mod('indoor_sports_zone_single_post_page_image_border_radius', 0);
    if($indoor_sports_zone_single_post_page_image_border_radius != false){
        $indoor_sports_zone_theme_css .='.single-post .entry-header img{';
            $indoor_sports_zone_theme_css .='border-radius: '.esc_attr($indoor_sports_zone_single_post_page_image_border_radius).'px;';
        $indoor_sports_zone_theme_css .='}';
    }