<?php

    $electronics_equipment_theme_css= "";

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

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

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

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

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

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

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

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

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

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

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

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

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

    $electronics_equipment_nav_menu_font_weight = get_theme_mod( 'electronics_equipment_nav_menu_font_weight',400);
    if($electronics_equipment_menu_font_size != ''){
        $electronics_equipment_theme_css .='.main-navigation .menu > li > a{';
            $electronics_equipment_theme_css .='font-weight: '.esc_attr($electronics_equipment_nav_menu_font_weight).';';
        $electronics_equipment_theme_css .='}';
    }

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

    $electronics_equipment_first_color = get_theme_mod('electronics_equipment_first_color');

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

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

    $electronics_equipment_heading_color = get_theme_mod('electronics_equipment_heading_color');
    $electronics_equipment_heading_font_family = get_theme_mod('electronics_equipment_heading_font_family');
    $electronics_equipment_heading_font_size = get_theme_mod('electronics_equipment_heading_font_size');
    if($electronics_equipment_heading_color != false || $electronics_equipment_heading_font_family != false || $electronics_equipment_heading_font_size != false){
        $electronics_equipment_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{';
            $electronics_equipment_theme_css .='color: '.esc_attr($electronics_equipment_heading_color).'!important; 
            font-family: '.esc_attr($electronics_equipment_heading_font_family).'!important;
            font-size: '.esc_attr($electronics_equipment_heading_font_size).'px !important;';
        $electronics_equipment_theme_css .='}';
    }

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

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

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

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