<?php

    $kitchen_interior_design_theme_css= "";

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

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

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

    $kitchen_interior_design_first_color = get_theme_mod('kitchen_interior_design_first_color');

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

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

    $kitchen_interior_design_heading_color = get_theme_mod('kitchen_interior_design_heading_color');
    $kitchen_interior_design_heading_font_family = get_theme_mod('kitchen_interior_design_heading_font_family');
    $kitchen_interior_design_heading_font_size = get_theme_mod('kitchen_interior_design_heading_font_size');
    if($kitchen_interior_design_heading_color != false || $kitchen_interior_design_heading_font_family != false || $kitchen_interior_design_heading_font_size != false){
        $kitchen_interior_design_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, .featured h3.main-heading, .featured h4.main-heading, .ser-content h4, #top-slider .slider-inner-box h5.main-heading{';
            $kitchen_interior_design_theme_css .='color: '.esc_attr($kitchen_interior_design_heading_color).'!important; 
            font-family: '.esc_attr($kitchen_interior_design_heading_font_family).'!important;
            font-size: '.esc_attr($kitchen_interior_design_heading_font_size).'px !important;';
        $kitchen_interior_design_theme_css .='}';
    }

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

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

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

    $kitchen_interior_design_menu_font_size = get_theme_mod( 'kitchen_interior_design_menu_font_size');
    if($kitchen_interior_design_menu_font_size != ''){
        $kitchen_interior_design_theme_css .='.main-navigation .menu > li > a{';
            $kitchen_interior_design_theme_css .='font-size: '.esc_attr($kitchen_interior_design_menu_font_size).'px;';
        $kitchen_interior_design_theme_css .='}';
    }

    $kitchen_interior_design_nav_menu_font_weight = get_theme_mod( 'kitchen_interior_design_nav_menu_font_weight',500);
    if($kitchen_interior_design_menu_font_size != ''){
        $kitchen_interior_design_theme_css .='.main-navigation .menu > li > a{';
            $kitchen_interior_design_theme_css .='font-weight: '.esc_attr($kitchen_interior_design_nav_menu_font_weight).';';
        $kitchen_interior_design_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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