<?php

    $water_delivery_services_theme_css= "";

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

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

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

    $water_delivery_services_nav_menu = get_theme_mod( 'water_delivery_services_nav_menu_text_transform','Capitalize');
    if($water_delivery_services_nav_menu == 'Capitalize'){
        $water_delivery_services_theme_css .='.main-navigation .menu li a{';
            $water_delivery_services_theme_css .='text-transform:Capitalize;';
        $water_delivery_services_theme_css .='}';
    }
    if($water_delivery_services_nav_menu == 'Lowercase'){
        $water_delivery_services_theme_css .='.main-navigation .menu li a{';
            $water_delivery_services_theme_css .='text-transform:Lowercase;';
        $water_delivery_services_theme_css .='}';
    }
    if($water_delivery_services_nav_menu == 'Uppercase'){
        $water_delivery_services_theme_css .='.main-navigation .menu li a{';
            $water_delivery_services_theme_css .='text-transform:Uppercase;';
        $water_delivery_services_theme_css .='}';
    }

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

    $water_delivery_services_nav_menu_font_weight = get_theme_mod( 'water_delivery_services_nav_menu_font_weight',400);
    if($water_delivery_services_menu_font_size != ''){
        $water_delivery_services_theme_css .='.main-navigation .menu li a{';
            $water_delivery_services_theme_css .='font-weight: '.esc_attr($water_delivery_services_nav_menu_font_weight).';';
        $water_delivery_services_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

    $water_delivery_services_first_color = get_theme_mod('water_delivery_services_first_color');

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

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

    $water_delivery_services_heading_color = get_theme_mod('water_delivery_services_heading_color');
    $water_delivery_services_heading_font_family = get_theme_mod('water_delivery_services_heading_font_family');
    $water_delivery_services_heading_font_size = get_theme_mod('water_delivery_services_heading_font_size');
    if($water_delivery_services_heading_color != false || $water_delivery_services_heading_font_family != false || $water_delivery_services_heading_font_size != false){
        $water_delivery_services_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, #top-slider .slider-inner-box h3, .featured h3.main-heading, .article-box h3.entry-title, .featured h4.main-heading, .ser-content h4 a, #colophon h5, .sidebar h5{';
            $water_delivery_services_theme_css .='color: '.esc_attr($water_delivery_services_heading_color).'!important; 
            font-family: '.esc_attr($water_delivery_services_heading_font_family).'!important;
            font-size: '.esc_attr($water_delivery_services_heading_font_size).'px !important;';
        $water_delivery_services_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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