<?php

$author_writer_tp_theme_css = "";

//body layout//

$author_writer_theme_lay = get_theme_mod( 'author_writer_tp_body_layout_settings','Full');
if($author_writer_theme_lay == 'Container'){
$author_writer_tp_theme_css .='body{';
	$author_writer_tp_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
$author_writer_tp_theme_css .='}';
$author_writer_tp_theme_css .='.page-template-front-page .menubar{';
	$author_writer_tp_theme_css .='position: static;';
$author_writer_tp_theme_css .='}';
$author_writer_tp_theme_css .='.scrolled{';
	$author_writer_tp_theme_css .='width: auto; left:0; right:0;';
$author_writer_tp_theme_css .='}';
$author_writer_tp_theme_css .='@media screen and (max-width:575px){';
$author_writer_tp_theme_css .='body{';
    $author_writer_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
$author_writer_tp_theme_css .='} }';

}else if($author_writer_theme_lay == 'Container Fluid'){
$author_writer_tp_theme_css .='body{';
$author_writer_tp_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$author_writer_tp_theme_css .='}';
$author_writer_tp_theme_css .='.page-template-front-page .menubar{';
$author_writer_tp_theme_css .='width: 99%';
$author_writer_tp_theme_css .='}';
$author_writer_tp_theme_css .='.scrolled{';
	$author_writer_tp_theme_css .='width: auto; left:0; right:0;';
$author_writer_tp_theme_css .='}';
$author_writer_tp_theme_css .='.scrolled{';
	$author_writer_tp_theme_css .='width: auto; left:0; right:0;';
$author_writer_tp_theme_css .='}';
$author_writer_tp_theme_css .='@media screen and (max-width:575px){';
$author_writer_tp_theme_css .='body{';
    $author_writer_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
$author_writer_tp_theme_css .='} }';

}else if($author_writer_theme_lay == 'Full'){
$author_writer_tp_theme_css .='body{';
	$author_writer_tp_theme_css .='max-width: 100%;';
$author_writer_tp_theme_css .='}';
}

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


//Social icon Font size
$author_writer_social_icon_fontsize = get_theme_mod('author_writer_social_icon_fontsize');
$author_writer_tp_theme_css .='.media-links a i{';
	$author_writer_tp_theme_css .='font-size: '.esc_attr($author_writer_social_icon_fontsize).'px;';
$author_writer_tp_theme_css .='}';

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

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

// related post
$author_writer_related_post_mob = get_theme_mod('author_writer_related_post_mob', true);
$author_writer_related_post = get_theme_mod('author_writer_remove_related_post', true);
$author_writer_tp_theme_css .= '.related-post-block {';
if ($author_writer_related_post == false) {
    $author_writer_tp_theme_css .= 'display: none;';
}
$author_writer_tp_theme_css .= '}';
$author_writer_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($author_writer_related_post == false || $author_writer_related_post_mob == false) {
    $author_writer_tp_theme_css .= '.related-post-block { display: none; }';
}
$author_writer_tp_theme_css .= '}';

// slider btn
$author_writer_slider_buttom_mob = get_theme_mod('author_writer_slider_buttom_mob', true);
$author_writer_slider_button = get_theme_mod('author_writer_slider_button', true);
$author_writer_tp_theme_css .= '#slider .more-btn {';
if ($author_writer_slider_button == false) {
    $author_writer_tp_theme_css .= 'display: none;';
}
$author_writer_tp_theme_css .= '}';
$author_writer_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($author_writer_slider_button == false || $author_writer_slider_buttom_mob == false) {
    $author_writer_tp_theme_css .= '#slider .more-btn { display: none; }';
}
$author_writer_tp_theme_css .= '}';

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

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

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

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

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

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

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

$author_writer_woocommerce_sale_font_size = get_theme_mod('author_writer_woocommerce_sale_font_size');
if($author_writer_woocommerce_sale_font_size != false){
    $author_writer_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $author_writer_tp_theme_css .='font-size: '.esc_attr($author_writer_woocommerce_sale_font_size).'px;';
    $author_writer_tp_theme_css .='}';
}

$author_writer_woocommerce_sale_padding_top_bottom = get_theme_mod('author_writer_woocommerce_sale_padding_top_bottom');
if($author_writer_woocommerce_sale_padding_top_bottom != false){
    $author_writer_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $author_writer_tp_theme_css .='padding-top: '.esc_attr($author_writer_woocommerce_sale_padding_top_bottom).'px; padding-bottom: '.esc_attr($author_writer_woocommerce_sale_padding_top_bottom).'px;';
    $author_writer_tp_theme_css .='}';
}

$author_writer_woocommerce_sale_padding_left_right = get_theme_mod('author_writer_woocommerce_sale_padding_left_right');
if($author_writer_woocommerce_sale_padding_left_right != false){
    $author_writer_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $author_writer_tp_theme_css .='padding-left: '.esc_attr($author_writer_woocommerce_sale_padding_left_right).'px !Important; padding-right: '.esc_attr($author_writer_woocommerce_sale_padding_left_right).'px !important;';
    $author_writer_tp_theme_css .='}';
}

$author_writer_woocommerce_sale_border_radius = get_theme_mod('author_writer_woocommerce_sale_border_radius', 100);
if($author_writer_woocommerce_sale_border_radius != false){
    $author_writer_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $author_writer_tp_theme_css .='border-radius: '.esc_attr($author_writer_woocommerce_sale_border_radius).'% !important;';
    $author_writer_tp_theme_css .='}';
}

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


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

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

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

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

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

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

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

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


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

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

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

    
    /*------------------ Slider CSS -------------------*/
    $author_writer_slider_opacity_setting = get_theme_mod('author_writer_slider_opacity_setting', true);
    $author_writer_image_opacity_color    = get_theme_mod('author_writer_image_opacity_color', '');
    $author_writer_slider_opacity         = get_theme_mod('author_writer_slider_opacity', '1');

    if ($author_writer_slider_opacity_setting) {
        // Apply opacity value to slider image
        if ($author_writer_slider_opacity !== '') {
            $author_writer_tp_theme_css .= '#slider img {';
            $author_writer_tp_theme_css .= 'opacity: ' . esc_attr($author_writer_slider_opacity) . ';';
            $author_writer_tp_theme_css .= '}';
        }

        // Apply background color to slider if defined
        if ($author_writer_image_opacity_color !== '') {
            $author_writer_tp_theme_css .= '#slider {';
            $author_writer_tp_theme_css .= 'background-color: ' . esc_attr($author_writer_image_opacity_color) . ';';
            $author_writer_tp_theme_css .= '}';
        }
    } else {
        // If setting is disabled, force full opacity
        $author_writer_tp_theme_css .= '#slider img {';
        $author_writer_tp_theme_css .= 'opacity: 1;';
        $author_writer_tp_theme_css .= '}';
    }

    // Slider Height
    $author_writer_slider_img_height      = get_theme_mod('author_writer_slider_img_height');
    $author_writer_slider_img_height_resp = get_theme_mod('author_writer_slider_img_height_responsive');

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

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

    
    //First Cap ( Blog Post )
    $author_writer_show_first_caps = get_theme_mod('author_writer_show_first_caps', 'false');
    if($author_writer_show_first_caps == 'true' ){
    $author_writer_tp_theme_css .='.blog .page-box p:nth-of-type(1)::first-letter{';
    $author_writer_tp_theme_css .=' font-size: 55px; font-weight: 600;';
    $author_writer_tp_theme_css .=' margin-right: 6px;';
    $author_writer_tp_theme_css .=' line-height: 1;';
    $author_writer_tp_theme_css .='}';
    }elseif($author_writer_show_first_caps == 'false' ){
    $author_writer_tp_theme_css .='.blog .page-box p:nth-of-type(1)::first-letter {';
    $author_writer_tp_theme_css .='display: none;';
    $author_writer_tp_theme_css .='}';
    }

    // Menu hover effect
    $author_writer_menus_item = get_theme_mod( 'author_writer_menus_item_style','None');
    if($author_writer_menus_item == 'None'){
        $author_writer_tp_theme_css .='.main-navigation a:hover{';
            $author_writer_tp_theme_css .='';
        $author_writer_tp_theme_css .='}';
    }else if($author_writer_menus_item == 'Zoom In'){
        $author_writer_tp_theme_css .='.main-navigation a:hover{';
            $author_writer_tp_theme_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
        $author_writer_tp_theme_css .='}';
    }

    
// footer widget letter case
$author_writer_footer_widget_title_text_tranform = get_theme_mod( 'author_writer_footer_widget_title_text_tranform','');
if($author_writer_footer_widget_title_text_tranform == 'Uppercase'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='text-transform: uppercase;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_text_tranform == 'Lowercase'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='text-transform: lowercase;';
$author_writer_tp_theme_css .='}';
}
else if($author_writer_footer_widget_title_text_tranform == 'Capitalize'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='text-transform: capitalize;';
$author_writer_tp_theme_css .='}';
}

//Footer Font Weight
$author_writer_footer_widget_title_font_weight = get_theme_mod( 'author_writer_footer_widget_title_font_weight','');
if($author_writer_footer_widget_title_font_weight == '100'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 100;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_font_weight == '200'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 200;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_font_weight == '300'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 300;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_font_weight == '400'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 400;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_font_weight == '500'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 500;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_font_weight == '600'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 600;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_font_weight == '700'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 700;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_font_weight == '800'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 800;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_font_weight == '900'){
$author_writer_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $author_writer_tp_theme_css .='font-weight: 900;';
$author_writer_tp_theme_css .='}';
}

// footer widget position
$author_writer_footer_widget_title_position = get_theme_mod( 'author_writer_footer_widget_title_position','');
if($author_writer_footer_widget_title_position == 'Right'){
$author_writer_tp_theme_css .='#footer aside.widget{';
$author_writer_tp_theme_css .='text-align: right;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_position == 'Left'){
$author_writer_tp_theme_css .='#footer aside.widget{';
$author_writer_tp_theme_css .='text-align: left;';
$author_writer_tp_theme_css .='}';
}else if($author_writer_footer_widget_title_position == 'Center'){
$author_writer_tp_theme_css .='#footer aside.widget{';
$author_writer_tp_theme_css .='text-align: center;';
$author_writer_tp_theme_css .='}';
}

// Slider animation
$author_writer_slider_sec_animation = get_theme_mod( 'author_writer_slider_sec_animation', true );
if ( $author_writer_slider_sec_animation ) {
    $author_writer_tp_theme_css .= '#slider { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// About Section ANimation
$author_writer_about_sec_animation = get_theme_mod( 'author_writer_about_sec_animation', true );
if ( $author_writer_about_sec_animation ) {
    $author_writer_tp_theme_css .= '#product { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// footer Section ANimation
$author_writer_footer_animation = get_theme_mod( 'author_writer_footer_animation', true );
if ( $author_writer_footer_animation ) {
    $author_writer_tp_theme_css .= '#footer { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// Output the complete CSS
if ( ! empty( $author_writer_tp_theme_css ) ) {
    echo '<style id="author-writer-dynamic-css">' . $author_writer_tp_theme_css . '</style>';
}
?>