<?php

    $restaurant_cafeteria_theme_css= "";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    
    $restaurant_cafeteria_global_color = get_theme_mod('restaurant_cafeteria_global_color');

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

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

    $restaurant_cafeteria_heading_color = get_theme_mod('restaurant_cafeteria_heading_color');
    $restaurant_cafeteria_heading_font_family = get_theme_mod('restaurant_cafeteria_heading_font_family');
    $restaurant_cafeteria_heading_font_size = get_theme_mod('restaurant_cafeteria_heading_font_size');
    if($restaurant_cafeteria_heading_color != false || $restaurant_cafeteria_heading_font_family != false || $restaurant_cafeteria_heading_font_size != false){
        $restaurant_cafeteria_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, .slider-inner-box h2, #top-slider .slider-inner-box h2, #top-slider h3.short-heading, h3.image-heading, .about-image h4.image-heading, h5.tick-box, .article-box h3.entry-title, h4.main-heading, .ser-content h4 a, #colophon h5, .sidebar h5{';
            $restaurant_cafeteria_theme_css .='color: '.esc_attr($restaurant_cafeteria_heading_color).'!important; 
            font-family: '.esc_attr($restaurant_cafeteria_heading_font_family).'!important;
            font-size: '.esc_attr($restaurant_cafeteria_heading_font_size).'px !important;';
        $restaurant_cafeteria_theme_css .='}';
    }

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

    /*---------------- Logo CSS ----------------------*/
    $restaurant_cafeteria_logo_title_font_size = get_theme_mod( 'restaurant_cafeteria_logo_title_font_size');
    $restaurant_cafeteria_logo_tagline_font_size = get_theme_mod( 'restaurant_cafeteria_logo_tagline_font_size');
    if( $restaurant_cafeteria_logo_title_font_size != '') {
        $restaurant_cafeteria_theme_css .='#masthead .navbar-brand a{';
            $restaurant_cafeteria_theme_css .='font-size: '. $restaurant_cafeteria_logo_title_font_size. 'px;';
        $restaurant_cafeteria_theme_css .='}';
    }
    if( $restaurant_cafeteria_logo_tagline_font_size != '') {
        $restaurant_cafeteria_theme_css .='#masthead .navbar-brand p{';
            $restaurant_cafeteria_theme_css .='font-size: '. $restaurant_cafeteria_logo_tagline_font_size. 'px;';
        $restaurant_cafeteria_theme_css .='}';
    }

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

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

    /*------------------ Slider CSS -------------------*/
    $restaurant_cafeteria_slider_opacity_setting = get_theme_mod( 'restaurant_cafeteria_slider_opacity_setting',true);
    $restaurant_cafeteria_image_opacity_color = get_theme_mod( 'restaurant_cafeteria_image_opacity_color');
    $restaurant_cafeteria_slider_opacity = get_theme_mod( 'restaurant_cafeteria_slider_opacity');
    if( $restaurant_cafeteria_slider_opacity_setting != false) {
        $restaurant_cafeteria_theme_css .='#top-slider .slider-image img{';
            $restaurant_cafeteria_theme_css .='opacity: '. $restaurant_cafeteria_slider_opacity. ';';
        $restaurant_cafeteria_theme_css .='}';
        if( $restaurant_cafeteria_image_opacity_color != '') {
            $restaurant_cafeteria_theme_css .='#top-slider .slider-image {';
                $restaurant_cafeteria_theme_css .='background-color: '. $restaurant_cafeteria_image_opacity_color. ';';
            $restaurant_cafeteria_theme_css .='}';
        }
    } else {
        $restaurant_cafeteria_theme_css .='#top-slider .slider-image img{';
            $restaurant_cafeteria_theme_css .='opacity: 1;';
        $restaurant_cafeteria_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

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

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

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

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