<?php

$web_graphic_designer_tp_theme_css = "";

// related post
$web_graphic_designer_related_post_mob = get_theme_mod('web_graphic_designer_related_post_mob', true);
$web_graphic_designer_related_post = get_theme_mod('web_graphic_designer_remove_related_post', true);
$web_graphic_designer_tp_theme_css .= '.related-post-block {';
if ($web_graphic_designer_related_post == false) {
    $web_graphic_designer_tp_theme_css .= 'display: none;';
}
$web_graphic_designer_tp_theme_css .= '}';
$web_graphic_designer_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($web_graphic_designer_related_post == false || $web_graphic_designer_related_post_mob == false) {
    $web_graphic_designer_tp_theme_css .= '.related-post-block { display: none; }';
}
$web_graphic_designer_tp_theme_css .= '}';


//return to header mobile				
$web_graphic_designer_return_to_header_mob = get_theme_mod('web_graphic_designer_return_to_header_mob', true);
$web_graphic_designer_return_to_header = get_theme_mod('web_graphic_designer_return_to_header', true);
$web_graphic_designer_tp_theme_css .= '.return-to-header{';
if ($web_graphic_designer_return_to_header == false) {
    $web_graphic_designer_tp_theme_css .= 'display: none;';
}
$web_graphic_designer_tp_theme_css .= '}';
$web_graphic_designer_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($web_graphic_designer_return_to_header == false || $web_graphic_designer_return_to_header_mob == false) {
    $web_graphic_designer_tp_theme_css .= '.return-to-header{ display: none; }';
}
$web_graphic_designer_tp_theme_css .= '}';

//scroll-top-alignmemt
$web_graphic_designer_scroll_position = get_theme_mod( 'web_graphic_designer_scroll_top_position','Right');
if($web_graphic_designer_scroll_position == 'Right'){
	$web_graphic_designer_tp_theme_css .='#return-to-top{';
		$web_graphic_designer_tp_theme_css .='right: 20px;';
	$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_scroll_position == 'Left'){
	$web_graphic_designer_tp_theme_css .='#return-to-top{';
		$web_graphic_designer_tp_theme_css .='left: 20px;';
	$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_scroll_position == 'Center'){
	$web_graphic_designer_tp_theme_css .='#return-to-top{';
		$web_graphic_designer_tp_theme_css .='right: 50%;left: 50%;';
	$web_graphic_designer_tp_theme_css .='}';
}


//blog description              
$web_graphic_designer_mobile_blog_description = get_theme_mod('web_graphic_designer_mobile_blog_description', true);
$web_graphic_designer_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($web_graphic_designer_mobile_blog_description == false) {
    $web_graphic_designer_tp_theme_css .= '.blog-description{ display: none; }';
}
$web_graphic_designer_tp_theme_css .= '}';

//footer bg image
$web_graphic_designer_footer_widget_image = get_theme_mod('web_graphic_designer_footer_widget_image');
if($web_graphic_designer_footer_widget_image != false){
$web_graphic_designer_tp_theme_css .='#footer{';
$web_graphic_designer_tp_theme_css .='background: url('.esc_attr($web_graphic_designer_footer_widget_image).');';
$web_graphic_designer_tp_theme_css .='}';
}

//related products
$web_graphic_designer_related_product = get_theme_mod('web_graphic_designer_related_product',true);
if($web_graphic_designer_related_product == false){
$web_graphic_designer_tp_theme_css .='.related.products{';
	$web_graphic_designer_tp_theme_css .='display: none;';
$web_graphic_designer_tp_theme_css .='}';
}


//body layout//
$web_graphic_designer_theme_lay = get_theme_mod( 'web_graphic_designer_tp_body_layout_settings','Full');
if($web_graphic_designer_theme_lay == 'Container'){
$web_graphic_designer_tp_theme_css .='body{';
 $web_graphic_designer_tp_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
$web_graphic_designer_tp_theme_css .='}';
$web_graphic_designer_tp_theme_css .='@media screen and (max-width:575px){';
$web_graphic_designer_tp_theme_css .='body{';
		$web_graphic_designer_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left: 0px';
$web_graphic_designer_tp_theme_css .='} }';
$web_graphic_designer_tp_theme_css .='.scrolled{';
	$web_graphic_designer_tp_theme_css .='width: auto; left:0; right:0;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_theme_lay == 'Container Fluid'){
$web_graphic_designer_tp_theme_css .='body{';
	$web_graphic_designer_tp_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$web_graphic_designer_tp_theme_css .='}';
$web_graphic_designer_tp_theme_css .='@media screen and (max-width:575px){';
$web_graphic_designer_tp_theme_css .='body{';
	$web_graphic_designer_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
	$web_graphic_designer_tp_theme_css .='} }';
$web_graphic_designer_tp_theme_css .='.scrolled{';
	$web_graphic_designer_tp_theme_css .='width: auto; left:0; right:0;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_theme_lay == 'Full'){
$web_graphic_designer_tp_theme_css .='body{';
	$web_graphic_designer_tp_theme_css .='max-width: 100%;';
$web_graphic_designer_tp_theme_css .='}';
}


// site title font size option	
$web_graphic_designer_site_title_font_size = get_theme_mod('web_graphic_designer_site_title_font_size', 30);{
$web_graphic_designer_tp_theme_css .='.logo h1 a, .logo p a{';
$web_graphic_designer_tp_theme_css .='font-size: '.esc_attr($web_graphic_designer_site_title_font_size).'px;';
	$web_graphic_designer_tp_theme_css .='}';
}

// tagline font size option
$web_graphic_designer_site_tagline_font_size = get_theme_mod('web_graphic_designer_site_tagline_font_size', 15);{
$web_graphic_designer_tp_theme_css .='.logo p{';
$web_graphic_designer_tp_theme_css .='font-size: '.esc_attr($web_graphic_designer_site_tagline_font_size).'px;';
	$web_graphic_designer_tp_theme_css .='}';
}

//menu font size
$web_graphic_designer_menu_font_size = get_theme_mod('web_graphic_designer_menu_font_size', 15);{
$web_graphic_designer_tp_theme_css .='.main-navigation a, .main-navigation li.page_item_has_children:after,
.main-navigation li.menu-item-has-children:after{';
	$web_graphic_designer_tp_theme_css .='font-size: '.esc_attr($web_graphic_designer_menu_font_size).'px;';
$web_graphic_designer_tp_theme_css .='}';
}

// menu text transform
$web_graphic_designer_menu_text_tranform = get_theme_mod( 'web_graphic_designer_menu_text_tranform','Uppercase');
if($web_graphic_designer_menu_text_tranform == 'Uppercase'){
$web_graphic_designer_tp_theme_css .='.main-navigation a {';
	$web_graphic_designer_tp_theme_css .='text-transform: uppercase;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_text_tranform == 'Lowercase'){
$web_graphic_designer_tp_theme_css .='.main-navigation a {';
	$web_graphic_designer_tp_theme_css .='text-transform: lowercase;';
$web_graphic_designer_tp_theme_css .='}';
}
else if($web_graphic_designer_menu_text_tranform == 'Capitalize'){
$web_graphic_designer_tp_theme_css .='.main-navigation a {';
	$web_graphic_designer_tp_theme_css .='text-transform: capitalize;';
$web_graphic_designer_tp_theme_css .='}';
}

//sale position
$web_graphic_designer_scroll_position = get_theme_mod( 'web_graphic_designer_sale_tag_position','right');
if($web_graphic_designer_scroll_position == 'right'){
$web_graphic_designer_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $web_graphic_designer_tp_theme_css .='right: 25px !important;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_scroll_position == 'left'){
$web_graphic_designer_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $web_graphic_designer_tp_theme_css .='left: 25px !important;';
$web_graphic_designer_tp_theme_css .='}';
}

//Font Weight
$web_graphic_designer_menu_font_weight = get_theme_mod( 'web_graphic_designer_menu_font_weight','400');
if($web_graphic_designer_menu_font_weight == '100'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 100;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_font_weight == '200'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 200;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_font_weight == '300'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 300;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_font_weight == '400'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 400;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_font_weight == '500'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 500;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_font_weight == '600'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 600;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_font_weight == '700'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 700;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_font_weight == '800'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 800;';
$web_graphic_designer_tp_theme_css .='}';
}else if($web_graphic_designer_menu_font_weight == '900'){
$web_graphic_designer_tp_theme_css .='.main-navigation a{';
    $web_graphic_designer_tp_theme_css .='font-weight: 900;';
$web_graphic_designer_tp_theme_css .='}';
}

/*------------- Blog Page------------------*/
$web_graphic_designer_post_image_round = get_theme_mod('web_graphic_designer_post_image_round', 0);
if($web_graphic_designer_post_image_round != false){
	$web_graphic_designer_tp_theme_css .='.blog .box-image img{';
		$web_graphic_designer_tp_theme_css .='border-radius: '.esc_attr($web_graphic_designer_post_image_round).'px;';
	$web_graphic_designer_tp_theme_css .='}';
}

$web_graphic_designer_post_image_width = get_theme_mod('web_graphic_designer_post_image_width', '');
if($web_graphic_designer_post_image_width != false){
	$web_graphic_designer_tp_theme_css .='.blog .box-image img{';
		$web_graphic_designer_tp_theme_css .='Width: '.esc_attr($web_graphic_designer_post_image_width).'px;';
	$web_graphic_designer_tp_theme_css .='}';
}

$web_graphic_designer_post_image_length = get_theme_mod('web_graphic_designer_post_image_length', '');
if($web_graphic_designer_post_image_length != false){
	$web_graphic_designer_tp_theme_css .='.blog .box-image img{';
		$web_graphic_designer_tp_theme_css .='height: '.esc_attr($web_graphic_designer_post_image_length).'px;';
	$web_graphic_designer_tp_theme_css .='}';
}

// footer widget title font size
	$web_graphic_designer_footer_widget_title_font_size = get_theme_mod('web_graphic_designer_footer_widget_title_font_size', '');{
	$web_graphic_designer_tp_theme_css .='#footer h3{';
		$web_graphic_designer_tp_theme_css .='font-size: '.esc_attr($web_graphic_designer_footer_widget_title_font_size).'px;';
	$web_graphic_designer_tp_theme_css .='}';
	}

	// Copyright text font size
	$web_graphic_designer_footer_copyright_font_size = get_theme_mod('web_graphic_designer_footer_copyright_font_size', '');{
	$web_graphic_designer_tp_theme_css .='#footer .site-info p{';
		$web_graphic_designer_tp_theme_css .='font-size: '.esc_attr($web_graphic_designer_footer_copyright_font_size).'px;';
	$web_graphic_designer_tp_theme_css .='}';
	}

	// copyright padding
	$web_graphic_designer_footer_copyright_top_bottom_padding = get_theme_mod('web_graphic_designer_footer_copyright_top_bottom_padding', '');
	if ($web_graphic_designer_footer_copyright_top_bottom_padding !== '') { 
	    $web_graphic_designer_tp_theme_css .= '.site-info {';
	    $web_graphic_designer_tp_theme_css .= 'padding-top: ' . esc_attr($web_graphic_designer_footer_copyright_top_bottom_padding) . 'px;';
	    $web_graphic_designer_tp_theme_css .= 'padding-bottom: ' . esc_attr($web_graphic_designer_footer_copyright_top_bottom_padding) . 'px;';
	    $web_graphic_designer_tp_theme_css .= '}';
	}

	// copyright position
	$web_graphic_designer_copyright_text_position = get_theme_mod( 'web_graphic_designer_copyright_text_position','Center');
	if($web_graphic_designer_copyright_text_position == 'Center'){
	$web_graphic_designer_tp_theme_css .='#footer .site-info p{';
	$web_graphic_designer_tp_theme_css .='text-align:center;';
	$web_graphic_designer_tp_theme_css .='}';
	}else if($web_graphic_designer_copyright_text_position == 'Left'){
	$web_graphic_designer_tp_theme_css .='#footer .site-info p{';
	$web_graphic_designer_tp_theme_css .='text-align:left;';
	$web_graphic_designer_tp_theme_css .='}';
	}else if($web_graphic_designer_copyright_text_position == 'Right'){
	$web_graphic_designer_tp_theme_css .='#footer .site-info p{';
	$web_graphic_designer_tp_theme_css .='text-align:right;';
	$web_graphic_designer_tp_theme_css .='}';
	}

// Header Image title font size
$web_graphic_designer_header_image_title_font_size = get_theme_mod('web_graphic_designer_header_image_title_font_size', '32');{
$web_graphic_designer_tp_theme_css .='.box-text h2{';
    $web_graphic_designer_tp_theme_css .='font-size: '.esc_attr($web_graphic_designer_header_image_title_font_size).'px;';
$web_graphic_designer_tp_theme_css .='}';
}

/*--------------------------- banner image Opacity -------------------*/
    $web_graphic_designer_theme_lay = get_theme_mod( 'web_graphic_designer_header_banner_opacity_color','0.5');
        if($web_graphic_designer_theme_lay == '0'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.1'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.1';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.2'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.2';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.3'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.3';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.4'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.4';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.5'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.5';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.6'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.6';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.7'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.7';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.8'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.8';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '0.9'){
            $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
                $web_graphic_designer_tp_theme_css .='opacity:0.9';
            $web_graphic_designer_tp_theme_css .='}';
        }else if($web_graphic_designer_theme_lay == '1'){
            $web_graphic_designer_tp_theme_css .='#slider img{';
                $web_graphic_designer_tp_theme_css .='opacity:1';
            $web_graphic_designer_tp_theme_css .='}';
        }

    $web_graphic_designer_header_banner_image_overlay = get_theme_mod('web_graphic_designer_header_banner_image_overlay', true);
    if($web_graphic_designer_header_banner_image_overlay == false){
        $web_graphic_designer_tp_theme_css .='.single-page-img, .featured-image{';
            $web_graphic_designer_tp_theme_css .='opacity:1;';
        $web_graphic_designer_tp_theme_css .='}';
    }

    $web_graphic_designer_header_banner_image_ooverlay_color = get_theme_mod('web_graphic_designer_header_banner_image_ooverlay_color', true);
    if($web_graphic_designer_header_banner_image_ooverlay_color != false){
        $web_graphic_designer_tp_theme_css .='.box-image-page{';
            $web_graphic_designer_tp_theme_css .='background-color: '.esc_attr($web_graphic_designer_header_banner_image_ooverlay_color).';';
        $web_graphic_designer_tp_theme_css .='}';
    }

    
    // Slider Height
    $web_graphic_designer_slider_img_height      = get_theme_mod('web_graphic_designer_slider_img_height');
    $web_graphic_designer_slider_img_height_resp = get_theme_mod('web_graphic_designer_slider_img_height_responsive');

    // Desktop height
    $web_graphic_designer_tp_theme_css .= '@media screen and (min-width: 768px) {';
    $web_graphic_designer_tp_theme_css .= '#slider img {';
    if ( $web_graphic_designer_slider_img_height ) {
        $web_graphic_designer_tp_theme_css .= 'height: ' . esc_attr( $web_graphic_designer_slider_img_height ) . ';';
    }
    $web_graphic_designer_tp_theme_css .= 'width: 100%; object-fit: cover;';
    $web_graphic_designer_tp_theme_css .= '}';
    $web_graphic_designer_tp_theme_css .= '}';

    // Mobile height
    $web_graphic_designer_tp_theme_css .= '@media screen and (max-width: 767px) {';
    $web_graphic_designer_tp_theme_css .= '#slider img {';
    if ( $web_graphic_designer_slider_img_height_resp ) {
        $web_graphic_designer_tp_theme_css .= 'height: ' . esc_attr( $web_graphic_designer_slider_img_height_resp ) . ' !important;';
    }
    $web_graphic_designer_tp_theme_css .= 'width: 100%; object-fit: cover;';
    $web_graphic_designer_tp_theme_css .= '}';
    $web_graphic_designer_tp_theme_css .= '}';
