<?php

    $ambulance_paramedics_theme_css= "";

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

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

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

    $ambulance_paramedics_nav_menu = get_theme_mod( 'ambulance_paramedics_nav_menu_text_transform','Capitalize');
    if($ambulance_paramedics_nav_menu == 'Capitalize'){
        $ambulance_paramedics_theme_css .='.site-navigation .primary-menu > li a{';
            $ambulance_paramedics_theme_css .='text-transform:Capitalize;';
        $ambulance_paramedics_theme_css .='}';
    }
    if($ambulance_paramedics_nav_menu == 'Lowercase'){
        $ambulance_paramedics_theme_css .='.site-navigation .primary-menu > li a{';
            $ambulance_paramedics_theme_css .='text-transform:Lowercase;';
        $ambulance_paramedics_theme_css .='}';
    }
    if($ambulance_paramedics_nav_menu == 'Uppercase'){
        $ambulance_paramedics_theme_css .='.site-navigation .primary-menu > li a{';
            $ambulance_paramedics_theme_css .='text-transform:Uppercase;';
        $ambulance_paramedics_theme_css .='}';
    }

    $ambulance_paramedics_menu_font_size = get_theme_mod( 'ambulance_paramedics_menu_font_size');
    if($ambulance_paramedics_menu_font_size != ''){
        $ambulance_paramedics_theme_css .='.site-navigation .primary-menu > li a{';
            $ambulance_paramedics_theme_css .='font-size: '.esc_attr($ambulance_paramedics_menu_font_size).'px;';
        $ambulance_paramedics_theme_css .='}';
    }

    $ambulance_paramedics_nav_menu_font_weight = get_theme_mod( 'ambulance_paramedics_nav_menu_font_weight',400);
    if($ambulance_paramedics_menu_font_size != ''){
        $ambulance_paramedics_theme_css .='.site-navigation .primary-menu > li a{';
            $ambulance_paramedics_theme_css .='font-weight: '.esc_attr($ambulance_paramedics_nav_menu_font_weight).';';
        $ambulance_paramedics_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

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

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

    $ambulance_paramedics_global_color = get_theme_mod('ambulance_paramedics_global_color');

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

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

    $ambulance_paramedics_heading_color = get_theme_mod('ambulance_paramedics_heading_color');
    $ambulance_paramedics_heading_font_family = get_theme_mod('ambulance_paramedics_heading_font_family');
    $ambulance_paramedics_heading_font_size = get_theme_mod('ambulance_paramedics_heading_font_size');
    if($ambulance_paramedics_heading_color != false || $ambulance_paramedics_heading_font_family != false || $ambulance_paramedics_heading_font_size != false){
        $ambulance_paramedics_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, #colophon h5, .sidebar h5{';
            $ambulance_paramedics_theme_css .='color: '.esc_attr($ambulance_paramedics_heading_color).'!important; 
            font-family: '.esc_attr($ambulance_paramedics_heading_font_family).'!important;
            font-size: '.esc_attr($ambulance_paramedics_heading_font_size).'px !important;';
        $ambulance_paramedics_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

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

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

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