<?php

/**
 * @big_grid_large_image is put after @big_grid_small_images so that it will overwrite small posts style
 */

function td_css_generator() {

    $raw_css = "
    <style>

    /* @theme_color */
    .td-header-border:before,
    .td-trending-now-title,
    .td_block_mega_menu .td_mega_menu_sub_cats .cur-sub-cat,
    .td-post-category:hover,
    .td-header-style-2 .td-header-sp-logo,
    .sf-menu ul .td-menu-item > a:hover,
    .sf-menu ul .sfHover > a,
    .sf-menu ul .current-menu-ancestor > a,
    .sf-menu ul .current-category-ancestor > a,
    .sf-menu ul .current-menu-item > a,
    .td-next-prev-wrap a:hover i,
    .page-nav .current,
    .widget_calendar tfoot a:hover,
    .td-footer-container .widget_search .wpb_button:hover,
    .td-scroll-up-visible,
    .dropcap,
    .td-category a,
    input[type=\"submit\"]:hover,
    .td-post-small-box a:hover,
    .td-404-sub-sub-title a:hover,
    .td-rating-bar-wrap div,
    .td_top_authors .td-active .td-author-post-count,
    .td_top_authors .td-active .td-author-comments-count,
    .td_smart_list_3 .td-sml3-top-controls i:hover,
    .td_smart_list_3 .td-sml3-bottom-controls i:hover,
    .td-mobile-close a,
    .td_wrapper_video_playlist .td_video_controls_playlist_wrapper,
    .td-read-more a:hover,
    .td-login-wrap .btn,
    .td_display_err,
    .td-header-style-6 .td-top-menu-full,
    #bbpress-forums button:hover,
    #bbpress-forums .bbp-pagination .current,
    .bbp_widget_login .button:hover,
    .header-search-wrap .td-drop-down-search .btn:hover,
    .td-post-text-content .more-link-wrap:hover a,
    #buddypress div.item-list-tabs ul li > a span,
    #buddypress div.item-list-tabs ul li > a:hover span,
    #buddypress input[type=submit]:hover,
    #buddypress a.button:hover span,
    #buddypress div.item-list-tabs ul li.selected a span,
    #buddypress div.item-list-tabs ul li.current a span,
    #buddypress input[type=submit]:focus,
    .td-grid-style-3 .td-big-grid-post .td-module-thumb a:last-child:before,
    .td-grid-style-4 .td-big-grid-post .td-module-thumb a:last-child:before,
    .td-grid-style-5 .td-big-grid-post .td-module-thumb:after {
        background-color: @theme_color;
    }

    @media (max-width: 767px) {
        .category .td-category a.td-current-sub-category {
            background-color: @theme_color !important;
        }
    }

    .woocommerce .onsale,
    .woocommerce .woocommerce a.button:hover,
    .woocommerce-page .woocommerce .button:hover,
    .single-product .product .summary .cart .button:hover,
    .woocommerce .woocommerce .product a.button:hover,
    .woocommerce .product a.button:hover,
    .woocommerce .product #respond input#submit:hover,
    .woocommerce .checkout input#place_order:hover,
    .woocommerce .woocommerce.widget .button:hover,
    .woocommerce .woocommerce-message .button:hover,
    .woocommerce .woocommerce-error .button:hover,
    .woocommerce .woocommerce-info .button:hover,
    .woocommerce.widget .ui-slider .ui-slider-handle,
    .vc_btn-black:hover,
	.wpb_btn-black:hover,
	.item-list-tabs .feed:hover a {
    	background-color: @theme_color !important;
    }

    .top-header-menu a:hover,
    .top-header-menu .menu-item-has-children li a:hover,
    .td_module_wrap:hover .entry-title a,
    .td_mod_mega_menu:hover .entry-title a,
    .footer-email-wrap a,
    .widget a:hover,
    .td-footer-container .widget_calendar #today,
    .td-category-pulldown-filter a.td-pulldown-category-filter-link:hover,
    .td-load-more-wrap a:hover,
    .td-post-next-prev-content a:hover,
    .td-author-name a:hover,
    .td-author-url a:hover,
    .td_mod_related_posts:hover .entry-title a,
    .td-search-query,
    .top-header-menu .current-menu-item > a,
    .top-header-menu .current-menu-ancestor > a,
    .header-search-wrap .td-drop-down-search .result-msg a:hover,
    .td_top_authors .td-active .td-authors-name a,
    .td-mobile-content li a:hover,
    .post blockquote p,
    .td-post-content blockquote p,
    .page blockquote p,
    .comment-list cite a:hover,
    .comment-list cite:hover,
    .comment-list .comment-reply-link:hover,
    a,
    .white-menu #td-header-menu .sf-menu > li > a:hover,
    .white-menu #td-header-menu .sf-menu > .current-menu-ancestor > a,
    .white-menu #td-header-menu .sf-menu > .current-menu-item > a,
    .td-stack-classic-blog .td-post-text-content .more-link-wrap:hover a,
    .td_quote_on_blocks,
    #bbpress-forums .bbp-forum-freshness a:hover,
    #bbpress-forums .bbp-topic-freshness a:hover,
    #bbpress-forums .bbp-forums-list li a:hover,
    #bbpress-forums .bbp-forum-title:hover,
    #bbpress-forums .bbp-topic-permalink:hover,
    #bbpress-forums .bbp-topic-started-by a:hover,
    #bbpress-forums .bbp-topic-started-in a:hover,
    #bbpress-forums .bbp-body .super-sticky li.bbp-topic-title .bbp-topic-permalink,
    #bbpress-forums .bbp-body .sticky li.bbp-topic-title .bbp-topic-permalink,
    #bbpress-forums #subscription-toggle a:hover,
    #bbpress-forums #favorite-toggle a:hover,
    .widget_display_replies .bbp-author-name,
    .widget_display_topics .bbp-author-name,
    .td-category-siblings .td-subcat-dropdown a.td-current-sub-category,
    .td-category-siblings .td-subcat-dropdown a:hover,
    .td-pulldown-filter-display-option:hover,
    .td-pulldown-filter-display-option .td-pulldown-filter-link:hover,
    .td_normal_slide .td-wrapper-pulldown-filter .td-pulldown-filter-list a:hover,
    #buddypress ul.item-list li div.item-title a:hover,
    .td_block_13 .td-pulldown-filter-list a:hover {
        color: @theme_color;
    }

    .td-stack-classic-blog .td-post-text-content .more-link-wrap:hover a {
        outline-color: @theme_color;
    }

    .td-mega-menu .wpb_content_element li a:hover,
    .td_login_tab_focus {
        color: @theme_color !important;
    }

    .td-next-prev-wrap a:hover i,
    .page-nav .current,
    .widget_tag_cloud a:hover,
    .post .td_quote_box,
    .page .td_quote_box,
    .td-login-panel-title,
    #bbpress-forums .bbp-pagination .current {
        border-color: @theme_color;
    }

    .td_wrapper_video_playlist .td_video_currently_playing:after,
    .item-list-tabs .feed:hover {
        border-color: @theme_color !important;
    }





    /* @grid_line_color */
    .td-pb-row [class*=\"td-pb-span\"],
    .td-pb-border-top,
    .page-template-page-title-sidebar-php .td-page-content > .wpb_row:first-child,
    .td-post-sharing,
    .td-post-content,
    .td-post-next-prev,
    .author-box-wrap,
    .td-comments-title-wrap,
    .comment-list,
    .comment-respond,
    .td-post-template-5 header,
    .td-container,
    .wpb_content_element,
    .wpb_column,
    .wpb_row,
    .white-menu .td-header-style-1 .td-header-main-menu,
    .white-menu .td-header-style-2 .td-header-main-menu,
    .white-menu .td-header-style-3 .td-header-main-menu,
    .white-menu .td-header-style-4 .td-header-main-menu,
    .white-menu .td-header-style-5 .td-header-main-menu,
    .white-menu .td-header-style-6 .td-header-main-menu,
    .white-menu .td-header-style-7 .td-header-main-menu,
    .white-menu .td-header-style-8 .td-header-main-menu,
    .white-menu .td-header-style-9 .td-header-main-menu,
    .td-header-style-6 .td-header-container,
    .td-post-template-1 .td-post-content,
    .td-post-template-4 .td-post-sharing-top,
    .td-header-style-6 .td-header-header .td-make-full,
    #disqus_thread {
        border-color: @grid_line_color;
    }
    .td-top-border {
        border-color: @grid_line_color !important;
    }
    .td-container-border:after,
    .td-next-prev-separator {
    	background-color: @grid_line_color;
    }
    @media (max-width: 767px) {
    	.white-menu .td-header-main-menu {
      		border-color: @grid_line_color;
      	}
    }



    /* @top_menu_color */
    .td-header-top-menu,
    body .td-top-menu-full,
    .td-header-style-6 .td-top-menu-full {
        background-color: @top_menu_color;
    }



    .td-header-style-1 .td-header-sp-top-menu {
        padding-left: 13px;
        top: 0;
    }
    @media (min-width: 768px) and (max-width: 1023px) {
        .td-header-style-1 .td-header-sp-top-menu {
            margin-top: 0;
        }
    }
    .td-header-style-1 .td_ul_logout {
        position: relative;
        right: 7px;
    }
    .td-header-style-1 .td-header-sp-top-widget,
    .td-header-style-1 .td-top-menu-widget {
        right: 3px;
        top: 0;
    }
    @media (min-width: 768px) and (max-width: 1023px) {
        .td-header-style-1 .td-header-sp-top-widget,
        .td-header-style-1 .td-top-menu-widget {
            margin-top: 0;
        }
    }


    .td-header-style-2 .td-header-sp-top-menu {
        padding-left: 13px;
        padding-top: 0;
        padding-bottom: 0;
    }
    .td-header-style-2 .td-header-sp-top-widget {
        right: 3px;
        padding-top: 0;
        padding-bottom: 0;
    }
    .td-header-style-2 .td_ul_logout {
        position: relative;
        right: 7px;
    }

    /* @top_menu_text_color */
    .td-header-sp-top-menu .top-header-menu > li > a,
    .td-header-sp-top-menu .td-icon-logout,
    .td-header-sp-top-menu .td_data_time,
    .td-header-sp-top-menu .top-header-menu .menu-item .td_user_logd_in {
        color: @top_menu_text_color;
    }

    /* @top_menu_text_hover_color */
    .td-header-sp-top-menu .top-header-menu > li > a:hover {
        color: @top_menu_text_hover_color;
    }

    /* @top_sub_menu_text_color */
    .top-header-menu .menu-item-has-children li a {
        color: @top_sub_menu_text_color;
    }

    /* @top_sub_menu_text_hover_color */
    .top-header-menu .menu-item-has-children li a:hover {
        color: @top_sub_menu_text_hover_color;
    }

    /* @top_social_icons_color */
    .td-header-sp-top-widget .td-social-icon-wrap i {
        color: @top_social_icons_color;
    }

    /* @top_social_icons_hover_color */
    .td-header-sp-top-widget .td-social-icon-wrap i:hover {
        color: @top_social_icons_hover_color;
    }

    /* @menu_color */
    .td-header-main-menu {
        background-color: @menu_color;
    }

    /* @menu_text_color */
    .sf-menu > li > a,
    .header-search-wrap .td-icon-search,
    #td-top-mobile-toggle i {
        color: @menu_text_color;
    }

    /* @menu_border_color */
    .td-header-border:before {
        background-color: @menu_border_color;
    }

    /* @header_wrap_color */
    .td-header-row.td-header-header,
    .single_template_6 .td-header-header,
    .td-header-style-7 > .td-header-row.td-header-header,
    .td-header-style-8 .td-header-header {
        background-color: @header_wrap_color;
    }
    .td-header-style-1 .td-header-sp-ads,
    .td-header-style-3 .td-header-sp-ads {
        margin-right: 7px;
    }
    .td-header-style-1 .td-header-sp-logo,
    .td-header-style-3 .td-header-sp-logo {
        margin-left: 7px;
    }

    .td-header-style-6 .td-header-header .td-make-full {
    	border-bottom: 0px;
    }
    .td-header-style-1 .td-header-sp-top-menu,
    .td-header-style-1 .td-header-sp-top-widget {
    	top: 0px;
    }

    @media (max-height: 768px) {
        .td-header-style-6 .td-header-sp-ads {
            margin-right: 7px;
        }
        .td-header-style-6 .td-header-sp-logo {
        	margin-left: 7px;
    	}
    }

    @media (max-width: 767px) {
        .td-header-style-1 .td-header-sp-ads,
        .td-header-style-3 .td-header-sp-ads,
        .td-header-style-6 .td-header-sp-ads {
            margin-right: 0;
        }
    }

    /* @footer_color */
    .td-footer-container,
    .td-footer-container .td_module_mx3 .meta-info {
        background-color: @footer_color;
    }
    .td-footer-container .widget_calendar #today {
    	background-color: transparent;
    }

    /* @footer_text_color */
    .td-footer-container,
    .td-footer-container a,
    .td-footer-container li,
    .td-footer-container .footer-text-wrap,
    .td-footer-container .meta-info .entry-date,
    .td-footer-container .td-module-meta-info .entry-date,
    .td-footer-container .td_block_text_with_title,
    .td-footer-container .woocommerce .star-rating::before,
    .td-footer-container .widget_text p,
    .td-footer-container .widget_calendar #today
    {
        color: @footer_text_color;
    }
    .td-footer-container .td_module_mx1 .meta-info .entry-date,
    .td-footer-container .td_social_button a,
    .td-footer-container .td-post-category,
    .td-footer-container .td-post-category:hover,
    .td-footer-container .td-module-comments a {
    	color: #fff
    }
    .td-footer-container .widget_tag_cloud a {
    	border-color: @footer_text_color;
    }
    .td-footer-container .td-excerpt,
    .td-footer-container .widget_rss .rss-date,
    .td-footer-container .widget_rss cite {
    	color: @footer_text_color;
    	opacity: 0.7;
    }
    .td-footer-container .td-read-more a,
    .td-footer-container .td-read-more a:hover
    {
    	color: #fff;
    }

    /* @footer_text_hover_color */
    .td-footer-container a:hover,
    .td-footer-container .td-post-author-name a:hover,
    .td-footer-container .td_module_wrap:hover .entry-title a {
    	color: @footer_text_hover_color;
    }
    .td-footer-container .widget_tag_cloud a:hover {
    	border-color: @footer_text_hover_color;
    }
    .td-footer-container .td_module_mx1 .td-post-author-name a:hover,
    .td-footer-container .td-theme-slider .slide-meta a {
    	color: #fff
    }

    /* @footer_widget_bg_color */
	.td-footer-container .block-title > span,
    .td-footer-container .block-title > a,
    .td-footer-container .widgettitle {
    	background-color: @footer_widget_bg_color;
    }

    /* @footer_widget_text_color */
	.td-footer-container .block-title > span,
    .td-footer-container .block-title > a,
    .td-footer-container .widgettitle {
    	color: @footer_widget_text_color;
    }


    /* @footer_bottom_color */
    .td-sub-footer-container {
        background-color: @footer_bottom_color;
    }
    .td-sub-footer-container:after {
        background-color: transparent;
    }
    .td-sub-footer-container:before {
        background-color: transparent;
    }

    /* @footer_bottom_text_color */
    .td-sub-footer-container,
    .td-sub-footer-container a {
        color: @footer_bottom_text_color;
    }
    .td-sub-footer-container li a:before {
        background-color: @footer_bottom_text_color;
    }

    /* @module1_title_color */
    .td_module_1 .td-module-title a {
    	color: @module1_title_color;
    }
    /* @module2_title_color */
    .td_module_2 .td-module-title a {
    	color: @module2_title_color;
    }
    /* @module3_title_color */
    .td_module_3 .td-module-title a {
    	color: @module3_title_color;
    }
    /* @module4_title_color */
    .td_module_4 .td-module-title a {
    	color: @module4_title_color;
    }
    /* @module5_title_color */
    .td_module_5 .td-module-title a {
    	color: @module5_title_color;
    }
    /* @module6_title_color */
    .td_module_6 .td-module-title a {
    	color: @module6_title_color;
    }
    /* @module7_title_color */
    .td_module_7 .td-module-title a {
    	color: @module7_title_color;
    }
    /* @module8_title_color */
    .td_module_8 .td-module-title a {
    	color: @module8_title_color;
    }
    /* @module9_title_color */
    .td_module_9 .td-module-title a {
    	color: @module9_title_color;
    }
    /* @module10_title_color */
    .td_module_10 .td-module-title a {
    	color: @module10_title_color;
    }
    /* @module11_title_color */
    .td_module_11 .td-module-title a {
    	color: @module11_title_color;
    }
    /* @module12_title_color */
    .td_module_12 .td-module-title a {
    	color: @module12_title_color;
    }
    /* @module13_title_color */
    .td_module_13 .td-module-title a {
    	color: @module13_title_color;
    }
    /* @module14_title_color */
    .td_module_14 .td-module-title a {
    	color: @module14_title_color;
    }
    /* @module15_title_color */
    .td_module_15 .entry-title a {
    	color: @module15_title_color;
    }
    /* @module_mx2_title_color */
    .td_module_mx2 .td-module-title a {
    	color: @module_mx2_title_color;
    }
    /* @module_mx4_title_color */
    .td_module_mx4 .td-module-title a {
    	color: @module_mx4_title_color;
    }
    /* @news_ticker_title_color */
    .td_block_trending_now .entry-title a {
    	color: @news_ticker_title_color;
    }
    /* @author_name_title_color */
    .td_module_wrap .td-post-author-name a {
    	color: @author_name_title_color;
    }


    /* @post_title_color */
    .post header h1 {
    	color: @post_title_color;
    }
    /* @post_author_name_color */
    header .td-post-author-name a {
    	color: @post_author_name_color;
    }
    /* @post_content_color */
    .td-post-content,
    .td-post-content p {
    	color: @post_content_color;
    }
    /* @post_h_color */
    .td-post-content h1,
    .td-post-content h2,
    .td-post-content h3,
    .td-post-content h4,
    .td-post-content h5,
    .td-post-content h6 {
    	color: @post_h_color;
    }
    /* @post_blockquote_color */
    .post blockquote p,
    .page blockquote p {
    	color: @post_blockquote_color;
    }
    .post .td_quote_box,
    .page .td_quote_box {
        border-color: @post_blockquote_color;
    }

    /* @page_title_color */
    .td-page-header h1 {
    	color: @page_title_color;
    }
    /* @page_content_color */
    .td-page-content p,
    .td-page-content .td_block_text_with_title {
    	color: @page_content_color;
    }
    /* @page_h_color */
    .td-page-content h1,
    .td-page-content h2,
    .td-page-content h3,
    .td-page-content h4,
    .td-page-content h5,
    .td-page-content h6 {
    	color: @page_h_color;
    }












    /* ------------------------------------------------------ */
    /* @top_menu */
    .top-header-menu li a,
    .td-header-sp-top-menu .td_data_time {
        @top_menu
    }
    /* @top_sub_menu */
    .top-header-menu .menu-item-has-children li a {
    	@top_sub_menu
    }
	/* @main_menu */
    .sf-menu > .td-menu-item > a {
        @main_menu
    }
    /* @main_sub_menu */
    .sf-menu ul .td-menu-item a {
        @main_sub_menu
    }
    /* @mega_menu */
    .td_mod_mega_menu .item-details a {
        @mega_menu
    }
    /* @mega_menu_categ */
    .td_mega_menu_sub_cats .block-mega-child-cats a {
        @mega_menu_categ
    }
    /* @mobile_menu */
    .td-mobile-content #menu-main-menu > li > a {
        @mobile_menu
    }
	/* @mobile_sub_menu */
    .td-mobile-content .sub-menu a {
        @mobile_sub_menu
    }


	/* @modules_general */
	.td_module_wrap .entry-title a,
	.td-theme-slider .td-module-title a,
	.page .td-post-template-6 .td-post-header h1 {
		@modules_general
	}

	/* @news_ticker */
    .td_block_trending_now .entry-title a {
    	@news_ticker
    }
    /* @module_1 */
    .td_module_1 .td-module-title a {
    	@module_1
    }
    /* @module_2 */
    .td_module_2 .td-module-title a {
    	@module_2
    }
    /* @module_3 */
    .td_module_3 .td-module-title a {
    	@module_3
    }
    /* @module_4 */
    .td_module_4 .td-module-title a {
    	@module_4
    }
    /* @module_5 */
    .td_module_5 .td-module-title a {
    	@module_5
    }
    /* @module_6 */
    .td_module_6 .td-module-title a {
    	@module_6
    }
    /* @module_7 */
    .td_module_7 .td-module-title a {
    	@module_7
    }
    /* @module_8 */
    .td_module_8 .td-module-title a {
    	@module_8
    }
    /* @module_9 */
    .td_module_9 .td-module-title a {
    	@module_9
    }
    /* @module_10 */
    .td_module_10 .td-module-title a {
    	@module_10
    }
    /* @module_11 */
    .td_module_11 .td-module-title a {
    	@module_11
    }
    /* @module_12 */
    .td_module_12 .td-module-title a {
    	@module_12
    }
    /* @module_13 */
    .td_module_13 .td-module-title a {
    	@module_13
    }
    /* @module_14 */
    .td_module_14 .td-module-title a {
    	@module_14
    }
    /* @module_15 */
    .td_module_15 .entry-title a {
    	@module_15
    }
    /* @module_mx1 */
    .td_module_mx1 .td-module-title a {
    	@module_mx1
    }
    /* @module_mx2 */
    .td_module_mx2 .td-module-title a {
    	@module_mx2
    }
    /* @module_mx3 */
    .td_module_mx3 .td-module-title a {
    	@module_mx3
    }
    /* @module_mx4 */
    .td_module_mx4 .td-module-title a {
    	@module_mx4
    }
    /* @slider_1column */
    .td-theme-slider.iosSlider-col-3 .td-module-title a {
        @slider_1column
    }
    /* @slider_2columns */
    .td-theme-slider.iosSlider-col-2 .td-module-title a {
        @slider_2columns
    }
    /* @slider_3columns */
    .td-theme-slider.iosSlider-col-1 .td-module-title a {
        @slider_3columns
    }
    /* @homepage_post */
    .page .td-post-template-6 .td-post-header h1 {
        @homepage_post
    }

    /* @blocks_title */
    .block-title > span,
    .block-title > a,
    .widgettitle,
    .td-trending-now-title,
    .wpb_tabs li a,
    .vc_tta-container .vc_tta-color-grey.vc_tta-tabs-position-top.vc_tta-style-classic .vc_tta-tabs-container .vc_tta-tab > a,
    .td-related-title .td-related-left,
    .td-related-title .td-related-right,
    .category .entry-title span,
    .td-author-counters span,
    .woocommerce-tabs h2,
    .woocommerce .product .products h2 {
        @blocks_title
    }
    /* @blocks_author */
    .td-module-meta-info .td-post-author-name a,
    .td_module_wrap .td-post-author-name a {
        @blocks_author
    }
    /* @blocks_date */
    .td-module-meta-info .td-post-date .entry-date,
    .td_module_wrap .td-post-date .entry-date {
        @blocks_date
    }
    /* @blocks_comment */
    .td-module-meta-info .td-module-comments a,
    .td_module_wrap .td-module-comments a {
        @blocks_comment
    }
    /* @blocks_category */
    .td-big-grid-meta .td-post-category,
    .td_module_wrap .td-post-category,
    .td-module-image .td-post-category {
        @blocks_category
    }
    /* @blocks_filter */
    .td-pulldown-filter-display-option,
    a.td-pulldown-filter-link,
    .td-category-pulldown-filter a.td-pulldown-category-filter-link {
        @blocks_filter
    }
    /* @blocks_excerpt */
    .td-excerpt,
    .td-module-excerpt {
        @blocks_excerpt
    }


    /* @big_grid_general */
    .td-big-grid-post .entry-title {
        @big_grid_general
    }
    /* @big_grid_large_image */
    .td_block_big_grid .td-big-thumb .entry-title,
    .td_block_big_grid_2 .td-big-thumb .entry-title,
    .td_block_big_grid_3 .td-big-thumb .entry-title,
    .td_block_big_grid_4 .td-big-thumb .entry-title,
    .td_block_big_grid_5 .td-big-thumb .entry-title,
    .td_block_big_grid_6 .td-big-thumb .entry-title,
    .td_block_big_grid_7 .td-big-thumb .entry-title {
        @big_grid_large_image
    }
    /* @big_grid_medium_image */
    .td_block_big_grid .td-medium-thumb .entry-title,
    .td_block_big_grid_2 .td-medium-thumb .entry-title,
    .td_block_big_grid_3 .td-medium-thumb .entry-title,
    .td_block_big_grid_4 .td-medium-thumb .entry-title,
    .td_block_big_grid_5 .td-medium-thumb .entry-title,
    .td_block_big_grid_6 .td-medium-thumb .entry-title,
    .td_block_big_grid_7 .td-medium-thumb .entry-title {
        @big_grid_medium_image
    }
    /* @big_grid_smalls_image */
    .td_block_big_grid .td-small-thumb .entry-title,
    .td_block_big_grid_2 .td-small-thumb .entry-title,
    .td_block_big_grid_3 .td-small-thumb .entry-title,
    .td_block_big_grid_4 .td-small-thumb .entry-title,
    .td_block_big_grid_5 .td-small-thumb .entry-title,
    .td_block_big_grid_6 .td-small-thumb .entry-title,
    .td_block_big_grid_7 .td-small-thumb .entry-title {
        @big_grid_smalls_image
    }
    /* @big_grid_small_images */
    .td_block_big_grid .td-tiny-thumb .entry-title,
    .td_block_big_grid_2 .td-tiny-thumb .entry-title,
    .td_block_big_grid_3 .td-tiny-thumb .entry-title,
    .td_block_big_grid_4 .td-tiny-thumb .entry-title,
    .td_block_big_grid_5 .td-tiny-thumb .entry-title,
    .td_block_big_grid_6 .td-tiny-thumb .entry-title,
    .td_block_big_grid_7 .td-tiny-thumb .entry-title {
        @big_grid_small_images
    }








	/* @post_general */
	.post header .entry-title {
		@post_general
	}

	/* @post_title */
    .td-post-template-default header .entry-title {
        @post_title
    }
    /* @post_title_style1 */
    .td-post-template-1 header .entry-title {
        @post_title_style1
    }
    /* @post_title_style2 */
    .td-post-template-2 header .entry-title {
        @post_title_style2
    }
    /* @post_title_style3 */
    .td-post-template-3 header .entry-title {
        @post_title_style3
    }
    /* @post_title_style4 */
    .td-post-template-4 header .entry-title {
        @post_title_style4
    }
    /* @post_title_style5 */
    .td-post-template-5 header .entry-title {
        @post_title_style5
    }
    /* @post_title_style6 */
    .td-post-template-6 header .entry-title {
        @post_title_style6
    }
    /* @post_title_style7 */
    .td-post-template-7 header .entry-title {
        @post_title_style7
    }
    /* @post_title_style8 */
    .td-post-template-8 header .entry-title {
        @post_title_style8
    }




    /* @post_content */
    .td-post-content p,
    .td-post-content {
        @post_content
    }
    /* @post_blockquote */
    .post blockquote p,
    .page blockquote p,
    .td-post-text-content blockquote p {
        @post_blockquote
    }
    /* @post_box_quote */
    .post .td_quote_box p,
    .page .td_quote_box p {
        @post_box_quote
    }
    /* @post_pull_quote */
    .post .td_pull_quote p,
    .page .td_pull_quote p {
        @post_pull_quote
    }
    /* @post_h1 */
    .td-post-content h1 {
        @post_h1
    }
    /* @post_h2 */
    .td-post-content h2 {
        @post_h2
    }
    /* @post_h3 */
    .td-post-content h3 {
        @post_h3
    }
    /* @post_h4 */
    .td-post-content h4 {
        @post_h4
    }
    /* @post_h5 */
    .td-post-content h5 {
        @post_h5
    }
    /* @post_h6 */
    .td-post-content h6 {
        @post_h6
    }





    /* @post_category */
    .post .td-category a {
        @post_category
    }
    /* @post_author */
    .post header .td-post-author-name,
    .post header .td-post-author-name a {
        @post_author
    }
    /* @post_date */
    .post header .td-post-date .entry-date {
        @post_date
    }
    /* @post_comment */
    .post header .td-post-views span,
    .post header .td-post-comments {
        @post_comment
    }
    /* @via_source_tag */
    .post .td-post-source-tags a,
    .post .td-post-source-tags span {
        @via_source_tag
    }
    /* @post_next_prev_text */
    .post .td-post-next-prev-content span {
        @post_next_prev_text
    }
    /* @post_next_prev */
    .post .td-post-next-prev-content a {
        @post_next_prev
    }
    /* @box_author_name */
    .post .author-box-wrap .td-author-name a {
        @box_author_name
    }
    /* @box_author_url */
    .post .author-box-wrap .td-author-url a {
        @box_author_url
    }
    /* @box_author_description */
    .post .author-box-wrap .td-author-description {
        @box_author_description
    }
    /* @post_related */
    .td_block_related_posts .entry-title a {
        @post_related
    }
    /* @post_share */
    .post .td-post-share-title,
    .td-comments-title-wrap h4,
    .comment-reply-title {
        @post_share
    }
    /* @post_image_caption */
	.wp-caption-text,
	.wp-caption-dd {
		@post_image_caption
	}
    /* @post_subtitle_small */
    .td-post-template-default .td-post-sub-title,
    .td-post-template-1 .td-post-sub-title,
    .td-post-template-5 .td-post-sub-title,
    .td-post-template-7 .td-post-sub-title,
    .td-post-template-8 .td-post-sub-title {
        @post_subtitle_small
    }
    /* @post_subtitle_large */
    .td-post-template-2 .td-post-sub-title,
    .td-post-template-3 .td-post-sub-title,
    .td-post-template-4 .td-post-sub-title,
    .td-post-template-6 .td-post-sub-title {
        @post_subtitle_large
    }








	/* @page_title */
    .td-page-header h1,
    .woocommerce-page .page-title {
    	@page_title
    }
    /* @page_content */
    .td-page-content p,
    .td-page-content .td_block_text_with_title,
    .woocommerce-page .page-description > p {
    	@page_content
    }
    /* @page_h1 */
    .td-page-content h1 {
    	@page_h1
    }
    /* @page_h2 */
    .td-page-content h2 {
    	@page_h2
    }
    /* @page_h3 */
    .td-page-content h3 {
    	@page_h3
    }
    /* @page_h4 */
    .td-page-content h4 {
    	@page_h4
    }
    /* @page_h5 */
    .td-page-content h5 {
    	@page_h5
    }
    /* @page_h6 */
    .td-page-content h6 {
    	@page_h6
    }



    /* @footer_text_about */
	.footer-text-wrap {
		@footer_text_about
	}
	/* @footer_copyright_text */
	.td-sub-footer-copy {
		@footer_copyright_text
	}
	/* @footer_menu_text */
	.td-sub-footer-menu ul li a {
		@footer_menu_text
	}



    /* @category_tag */
    .category .td-category a {
    	@category_tag
    }
    /* @news_ticker_title */
    .td-trending-now-title {
    	@news_ticker_title
    }
    /* @pagination */
    .page-nav a,
    .page-nav span,
    .page-nav i {
    	@pagination
    }


    /* @dropcap */
    .dropcap {
    	@dropcap
    }
    /* @breadcrumb */
    .entry-crumbs a,
    .entry-crumbs span,
    #bbpress-forums .bbp-breadcrumb a,
    #bbpress-forums .bbp-breadcrumb .bbp-breadcrumb-current {
    	@breadcrumb
    }

    /* @default_widgets */
    .widget_archive a,
    .widget_calendar,
    .widget_categories a,
    .widget_nav_menu a,
    .widget_meta a,
    .widget_pages a,
    .widget_recent_comments a,
    .widget_recent_entries a,
    .widget_text .textwidget,
    .widget_tag_cloud a,
    .widget_search input,
    .woocommerce .product-categories a,
    .widget_display_forums a,
    .widget_display_replies a,
    .widget_display_topics a,
    .widget_display_views a,
    .widget_display_stats
     {
    	@default_widgets
    }

    /* @default_buttons */
	input[type=\"submit\"],
	.woocommerce a.button,
	.woocommerce button.button,
	.woocommerce #respond input#submit {
		@default_buttons
	}

    /* @woocommerce_products */
	.woocommerce .product a h3,
	.woocommerce .widget.woocommerce .product_list_widget a,
	.woocommerce-cart .woocommerce .product-name a {
		@woocommerce_products
	}


    /* @woocommerce_product_title */
	.woocommerce .product .summary .product_title {
		@woocommerce_product_title
	}




	/* @body_text */
    body, p {
    	@body_text
    }



    /* @bbpress_header */
    #bbpress-forums .bbp-header .bbp-forums,
    #bbpress-forums .bbp-header .bbp-topics,
    #bbpress-forums .bbp-header {
    	@bbpress_header
    }
    /* @bbpress_titles */
    #bbpress-forums .hentry .bbp-forum-title,
    #bbpress-forums .hentry .bbp-topic-permalink {
    	@bbpress_titles
    }
    /* @bbpress_subcategories */
    #bbpress-forums .bbp-forums-list li {
    	@bbpress_subcategories
    }
    /* @bbpress_description */
    #bbpress-forums .bbp-forum-info .bbp-forum-content {
    	@bbpress_description
    }
    /* @bbpress_author */
    #bbpress-forums div.bbp-forum-author a.bbp-author-name,
    #bbpress-forums div.bbp-topic-author a.bbp-author-name,
    #bbpress-forums div.bbp-reply-author a.bbp-author-name,
    #bbpress-forums div.bbp-search-author a.bbp-author-name,
    #bbpress-forums .bbp-forum-freshness .bbp-author-name,
    #bbpress-forums .bbp-topic-freshness a:last-child {
    	@bbpress_author
    }
    /* @bbpress_replies */
    #bbpress-forums .hentry .bbp-topic-content p,
    #bbpress-forums .hentry .bbp-reply-content p {
    	@bbpress_replies
    }
    /* @bbpress_notices */
    #bbpress-forums div.bbp-template-notice p {
    	@bbpress_notices
    }
    /* @bbpress_pagination */
    #bbpress-forums .bbp-pagination-count,
    #bbpress-forums .page-numbers {
    	@bbpress_pagination
    }
    /* @bbpress_topic */
    #bbpress-forums .bbp-topic-started-by,
    #bbpress-forums .bbp-topic-started-by a,
    #bbpress-forums .bbp-topic-started-in,
    #bbpress-forums .bbp-topic-started-in a {
    	@bbpress_topic
    }





    /* ------------------------------------------------------ */
    /* @style_1_block_background_color */
    body .td-block-color-style-1,
    .td-block-color-style-1.td_block_13 .meta-info {
        background-color: @style_1_block_background_color;
    }
    /* @style_1_block_drop_down_background_color */
    body .td-block-color-style-1 .td-pulldown-filter-display-option,
    body .td-block-color-style-1 .td-pulldown-filter-list {
        background-color: @style_1_block_drop_down_background_color_ie8;
        background-color: @style_1_block_drop_down_background_color;
    }
    /* @style_1_block_drop_down_border_color */
    body .td-block-color-style-1 .td-pulldown-filter-display-option,
    body .td-block-color-style-1 .td-pulldown-filter-list {
        border-color: @style_1_block_drop_down_border_color;
    }
    /* @style_1_block_drop_down_text_color */
    body .td-block-color-style-1 .td-pulldown-filter-display-option,
    body .td-block-color-style-1 .td-pulldown-filter-display-option .td-icon-menu-down,
    body .td-block-color-style-1 .td-pulldown-filter-link {
        color: @style_1_block_drop_down_text_color !important;
    }
    /* @style_1_block_module_post_title_color */
    body .td-block-color-style-1 .td-module-title a ,
    body .td-block-color-style-1 i {
        color: @style_1_block_module_post_title_color;
    }
    /* @style_1_block_module_post_excerpt_color */
    body .td-block-color-style-1 .td-excerpt {
        color: @style_1_block_module_post_excerpt_color;
    }
    /* @style_1_block_module_post_author_color */
    body .td-block-color-style-1 .td-post-author-name a,
    body .td-block-color-style-1 .td-post-author-name span {
        color: @style_1_block_module_post_author_color;
    }
    /* @style_1_block_module_post_date_color */
    body .td-block-color-style-1 .td-module-date {
        color: @style_1_block_module_post_date_color;
    }
    /* @style_1_block_module_post_comments_box_background_color */
    body .td-block-color-style-1 .td-module-comments{
        background-color: @style_1_block_module_post_comments_box_background_color;
    }
    .td-block-color-style-1 .td-next-prev-wrap a:hover i {
    	background-color: @style_1_block_module_post_comments_box_background_color;
    	border-color: @style_1_block_module_post_comments_box_background_color;
    }
    /* @style_1_block_module_post_comments_box_background_color_after */
    body .td-block-color-style-1 .td-module-comments a:after{
        border-color: hsl(@style_1_block_module_post_comments_box_background_color_after, 50%, 35%) transparent transparent transparent;
    }
    /* @style_1_block_module_post_comments_color */
    body .td-block-color-style-1 .td-module-comments a {
        color: @style_1_block_module_post_comments_color;
    }
     /* @style_1_block_module_post_divider_color */
    body .td-block-color-style-1 .item-details,
    body .td-block-color-style-1 .td_module_5 {
        border-bottom-color: @style_1_block_module_post_divider_color;
    }
    /* @style_1_block_navigation_background_color */
    body .td-block-color-style-1 .td-next-prev-wrap .td-icon-font {
        background-color: @style_1_block_navigation_background_color;
    }
    /* @style_1_block_navigation_text_color */
    body .td-block-color-style-1 .td-icon-font,
    body .td-block-color-style-1 .td_ajax_load_more {
    	border-color: @style_1_block_navigation_text_color;
        color: @style_1_block_navigation_text_color;
    }
     /* @style_1_block_hover_style */
    .td-block-color-style-1 .td_module_wrap:hover .entry-title a,
    body .td-block-color-style-1 .td-pulldown-filter-display-option:hover,
    body .td-block-color-style-1 .td-pulldown-filter-display-option .td-pulldown-filter-link:hover,
    body .td-block-color-style-1 .td_ajax_load_more:hover,
    body .td-block-color-style-1 .td_ajax_load_more:hover i {
        color: @style_1_block_hover_style !important;
     }
    .td-block-color-style-1 .td-next-prev-wrap a:hover i {
        background-color: @style_1_block_hover_style !important;
        border-color: @style_1_block_hover_style !important;
    }
    .td-block-color-style-1 .td-next-prev-wrap a:hover i {
	  color: #ffffff !important;
	}


	/* ------------------------------------------------------ */
    /* @style_2_block_background_color */
    body .td-block-color-style-2,
    .td-block-color-style-2.td_block_13 .meta-info {
        background-color: @style_2_block_background_color;
    }
    /* @style_2_block_drop_down_background_color */
    body .td-block-color-style-2 .td-pulldown-filter-display-option,
    body .td-block-color-style-2 .td-pulldown-filter-list {
        background-color: @style_2_block_drop_down_background_color_ie8;
        background-color: @style_2_block_drop_down_background_color;
    }
    /* @style_2_block_drop_down_border_color */
    body .td-block-color-style-2 .td-pulldown-filter-display-option,
    body .td-block-color-style-2 .td-pulldown-filter-list {
        border-color: @style_2_block_drop_down_border_color;
    }
    /* @style_2_block_drop_down_text_color */
    body .td-block-color-style-2 .td-pulldown-filter-display-option,
    body .td-block-color-style-2 .td-pulldown-filter-display-option .td-icon-menu-down,
    body .td-block-color-style-2 .td-pulldown-filter-link {
        color: @style_2_block_drop_down_text_color;
    }
    /* @style_2_block_module_post_title_color */
    body .td-block-color-style-2 .td-module-title a,
    body .td-block-color-style-2 i {
        color: @style_2_block_module_post_title_color;
    }
    /* @style_2_block_module_post_excerpt_color */
    body .td-block-color-style-2 .td-excerpt {
        color: @style_2_block_module_post_excerpt_color;
    }
    /* @style_2_block_module_post_author_color */
    body .td-block-color-style-2 .td-post-author-name a,
    body .td-block-color-style-2 .td-post-author-name span {
        color: @style_2_block_module_post_author_color;
    }
    /* @style_2_block_module_post_date_color */
    body .td-block-color-style-2 .td-module-date {
        color: @style_2_block_module_post_date_color;
    }
    /* @style_2_block_module_post_comments_box_background_color */
    body .td-block-color-style-2 .td-module-comments{
        background-color: @style_2_block_module_post_comments_box_background_color;
    }
    .td-block-color-style-2 .td-next-prev-wrap a:hover i {
    	background-color: @style_2_block_module_post_comments_box_background_color;
    	border-color: @style_2_block_module_post_comments_box_background_color;
    }
    /* @style_2_block_module_post_comments_box_background_color_after */
    body .td-block-color-style-2 .td-module-comments a:after{
        border-color: hsl(@style_2_block_module_post_comments_box_background_color_after, 50%, 35%) transparent transparent transparent;
    }
    /* @style_2_block_module_post_comments_color */
    body .td-block-color-style-2 .td-module-comments a {
        color: @style_2_block_module_post_comments_color;
    }
     /* @style_2_block_module_post_divider_color */
    body .td-block-color-style-2 .item-details,
    body .td-block-color-style-2 .td_module_5 {
        border-bottom-color: @style_2_block_module_post_divider_color;
    }
    /* @style_2_block_navigation_background_color */
    body .td-block-color-style-2 .td-next-prev-wrap .td-icon-font {
        background-color: @style_2_block_navigation_background_color;
    }
    /* @style_2_block_navigation_text_color */
    body .td-block-color-style-2 .td-icon-font,
    body .td-block-color-style-2 .td_ajax_load_more {
    	border-color: @style_2_block_navigation_text_color;
        color: @style_2_block_navigation_text_color;
    }
     /* @style_2_block_hover_style */
    .td-block-color-style-2 .td_module_wrap:hover .entry-title a,
    body .td-block-color-style-2 .td-pulldown-filter-display-option:hover,
    body .td-block-color-style-2 .td-pulldown-filter-display-option .td-pulldown-filter-link:hover,
    body .td-block-color-style-2 .td_ajax_load_more:hover,
    body .td-block-color-style-2 .td_ajax_load_more:hover i {
        color: @style_2_block_hover_style !important;
     }
    .td-block-color-style-2 .td-next-prev-wrap a:hover i {
        background-color: @style_2_block_hover_style !important;
        border-color: @style_2_block_hover_style !important;
    }
    .td-block-color-style-2 .td-next-prev-wrap a:hover i {
	  color: #ffffff !important;
	}


	/* ------------------------------------------------------ */
    /* @style_3_block_background_color */
    body .td-block-color-style-3,
    .td-block-color-style-3.td_block_13 .meta-info {
        background-color: @style_3_block_background_color;
    }
    /* @style_3_block_drop_down_background_color */
    body .td-block-color-style-3 .td-pulldown-filter-display-option,
    body .td-block-color-style-3 .td-pulldown-filter-list {
        background-color: @style_3_block_drop_down_background_color_ie8;
        background-color: @style_3_block_drop_down_background_color;
    }
    /* @style_3_block_drop_down_border_color */
    body .td-block-color-style-3 .td-pulldown-filter-display-option,
    body .td-block-color-style-3 .td-pulldown-filter-list {
        border-color: @style_3_block_drop_down_border_color;
    }
    /* @style_3_block_drop_down_text_color */
    body .td-block-color-style-3 .td-pulldown-filter-display-option,
    body .td-block-color-style-3 .td-pulldown-filter-display-option .td-icon-menu-down,
    body .td-block-color-style-3 .td-pulldown-filter-link {
        color: @style_3_block_drop_down_text_color;
    }
    /* @style_3_block_module_post_title_color */
    body .td-block-color-style-3 .td-module-title a,
    body .td-block-color-style-3 i {
        color: @style_3_block_module_post_title_color;
    }
    /* @style_3_block_module_post_excerpt_color */
    body .td-block-color-style-3 .td-excerpt {
        color: @style_3_block_module_post_excerpt_color;
    }
    /* @style_3_block_module_post_author_color */
    body .td-block-color-style-3 .td-post-author-name a,
    body .td-block-color-style-3 .td-post-author-name span {
        color: @style_3_block_module_post_author_color;
    }
    /* @style_3_block_module_post_date_color */
    body .td-block-color-style-3 .td-module-date {
        color: @style_3_block_module_post_date_color;
    }
    /* @style_3_block_module_post_comments_box_background_color */
    body .td-block-color-style-3 .td-module-comments{
        background-color: @style_3_block_module_post_comments_box_background_color;
    }
    .td-block-color-style-3 .td-next-prev-wrap a:hover i {
    	background-color: @style_3_block_module_post_comments_box_background_color;
    	border-color: @style_3_block_module_post_comments_box_background_color;
    }
    /* @style_3_block_module_post_comments_box_background_color_after */
    body .td-block-color-style-3 .td-module-comments a:after{
        border-color: hsl(@style_3_block_module_post_comments_box_background_color_after, 50%, 35%) transparent transparent transparent;
    }
    /* @style_3_block_module_post_comments_color */
    body .td-block-color-style-3 .td-module-comments a {
        color: @style_3_block_module_post_comments_color;
    }
     /* @style_3_block_module_post_divider_color */
    body .td-block-color-style-3 .item-details,
    body .td-block-color-style-3 .td_module_5 {
        border-bottom-color: @style_3_block_module_post_divider_color;
    }
    /* @style_3_block_navigation_background_color */
    body .td-block-color-style-3 .td-next-prev-wrap .td-icon-font {
        background-color: @style_3_block_navigation_background_color;
    }
    /* @style_3_block_navigation_text_color */
    body .td-block-color-style-3 .td-icon-font,
    body .td-block-color-style-3 .td_ajax_load_more {
    	border-color: @style_3_block_navigation_text_color;
        color: @style_3_block_navigation_text_color;
    }
     /* @style_3_block_hover_style */
    .td-block-color-style-3 .td_module_wrap:hover .entry-title a,
    body .td-block-color-style-3 .td-pulldown-filter-display-option:hover,
    body .td-block-color-style-3 .td-pulldown-filter-display-option .td-pulldown-filter-link:hover,
    body .td-block-color-style-3 .td_ajax_load_more:hover,
    body .td-block-color-style-3 .td_ajax_load_more:hover i {
        color: @style_3_block_hover_style !important;
     }
    .td-block-color-style-3 .td-next-prev-wrap a:hover i {
        background-color: @style_3_block_hover_style !important;
        border-color: @style_3_block_hover_style !important;
    }
    .td-block-color-style-3 .td-next-prev-wrap a:hover i {
	  color: #ffffff !important;
	}



	/* ------------------------------------------------------ */
    /* @style_4_block_background_color */
    body .td-block-color-style-4,
    .td-block-color-style-4.td_block_13 .meta-info {
        background-color: @style_4_block_background_color;
    }
    /* @style_4_block_drop_down_background_color */
    body .td-block-color-style-4 .td-pulldown-filter-display-option,
    body .td-block-color-style-4 .td-pulldown-filter-list {
        background-color: @style_4_block_drop_down_background_color_ie8;
        background-color: @style_4_block_drop_down_background_color;
    }
    /* @style_4_block_drop_down_border_color */
    body .td-block-color-style-4 .td-pulldown-filter-display-option,
    body .td-block-color-style-4 .td-pulldown-filter-list {
        border-color: @style_4_block_drop_down_border_color;
    }
    /* @style_4_block_drop_down_text_color */
    body .td-block-color-style-4 .td-pulldown-filter-display-option,
    body .td-block-color-style-4 .td-pulldown-filter-display-option .td-icon-menu-down,
    body .td-block-color-style-4 .td-pulldown-filter-link {
        color: @style_4_block_drop_down_text_color;
    }
    /* @style_4_block_module_post_title_color */
    body .td-block-color-style-4 .td-module-title a,
    body .td-block-color-style-4 i {
        color: @style_4_block_module_post_title_color;
    }
    /* @style_4_block_module_post_excerpt_color */
    body .td-block-color-style-4 .td-excerpt {
        color: @style_4_block_module_post_excerpt_color;
    }
    /* @style_4_block_module_post_author_color */
    body .td-block-color-style-4 .td-post-author-name a,
    body .td-block-color-style-4 .td-post-author-name span {
        color: @style_4_block_module_post_author_color;
    }
    /* @style_4_block_module_post_date_color */
    body .td-block-color-style-4 .td-module-date {
        color: @style_4_block_module_post_date_color;
    }
    /* @style_4_block_module_post_comments_box_background_color */
    body .td-block-color-style-4 .td-module-comments {
        background-color: @style_4_block_module_post_comments_box_background_color;
    }
    .td-block-color-style-4 .td-next-prev-wrap a:hover i {
    	background-color: @style_4_block_module_post_comments_box_background_color;
    	border-color: @style_4_block_module_post_comments_box_background_color;
    }
    /* @style_4_block_module_post_comments_box_background_color_after */
    body .td-block-color-style-4 .td-module-comments a:after {
        border-color: hsl(@style_4_block_module_post_comments_box_background_color_after, 50%, 35%) transparent transparent transparent;
    }
    /* @style_4_block_module_post_comments_color */
    body .td-block-color-style-4 .td-module-comments a {
        color: @style_4_block_module_post_comments_color;
    }
     /* @style_4_block_module_post_divider_color */
    body .td-block-color-style-4 .item-details,
    body .td-block-color-style-4 .td_module_5 {
        border-bottom-color: @style_4_block_module_post_divider_color;
    }
    /* @style_4_block_navigation_background_color */
    body .td-block-color-style-4 .td-next-prev-wrap .td-icon-font {
        background-color: @style_4_block_navigation_background_color;
    }
    /* @style_4_block_navigation_text_color */
    body .td-block-color-style-4 .td-icon-font,
    body .td-block-color-style-4 .td_ajax_load_more {
    	border-color: @style_4_block_navigation_text_color;
        color: @style_4_block_navigation_text_color;
    }
     /* @style_4_block_hover_style */
    .td-block-color-style-4 .td_module_wrap:hover .entry-title a,
    body .td-block-color-style-4 .td-pulldown-filter-display-option:hover,
    body .td-block-color-style-4 .td-pulldown-filter-display-option .td-pulldown-filter-link:hover,
    body .td-block-color-style-4 .td_ajax_load_more:hover,
    body .td-block-color-style-4 .td_ajax_load_more:hover i {
        color: @style_4_block_hover_style !important;
     }
    .td-block-color-style-4 .td-next-prev-wrap a:hover i {
        background-color: @style_4_block_hover_style !important;
        border-color: @style_4_block_hover_style !important;
    }
    .td-block-color-style-4 .td-next-prev-wrap a:hover i {
	  color: #ffffff !important;
	}




	/* ------------------------------------------------------ */
    /* @style_5_block_background_color */
    body .td-block-color-style-5,
    .td-block-color-style-5.td_block_13 .meta-info {
        background-color: @style_5_block_background_color;
    }
    /* @style_5_block_drop_down_background_color */
    body .td-block-color-style-5 .td-pulldown-filter-display-option,
    body .td-block-color-style-5 .td-pulldown-filter-list {
        background-color: @style_5_block_drop_down_background_color_ie8;
        background-color: @style_5_block_drop_down_background_color;
    }
    /* @style_5_block_drop_down_border_color */
    body .td-block-color-style-5 .td-pulldown-filter-display-option,
    body .td-block-color-style-5 .td-pulldown-filter-list {
        border-color: @style_5_block_drop_down_border_color;
    }
    /* @style_5_block_drop_down_text_color */
    body .td-block-color-style-5 .td-pulldown-filter-display-option,
    body .td-block-color-style-5 .td-pulldown-filter-display-option .td-icon-menu-down,
    body .td-block-color-style-5 .td-pulldown-filter-link {
        color: @style_5_block_drop_down_text_color;
    }
    /* @style_5_block_module_post_title_color */
    body .td-block-color-style-5 .td-module-title a,
    body .td-block-color-style-5 i {
        color: @style_5_block_module_post_title_color;
    }
    /* @style_5_block_module_post_excerpt_color */
    body .td-block-color-style-5 .td-excerpt {
        color: @style_5_block_module_post_excerpt_color;
    }
    /* @style_5_block_module_post_author_color */
    body .td-block-color-style-5 .td-post-author-name a,
    body .td-block-color-style-5 .td-post-author-name span {
        color: @style_5_block_module_post_author_color;
    }
    /* @style_5_block_module_post_date_color */
    body .td-block-color-style-5 .td-module-date {
        color: @style_5_block_module_post_date_color;
    }
    /* @style_5_block_module_post_comments_box_background_color */
    body .td-block-color-style-5 .td-module-comments {
        background-color: @style_5_block_module_post_comments_box_background_color;
    }
    .td-block-color-style-5 .td-next-prev-wrap a:hover i {
    	background-color: @style_5_block_module_post_comments_box_background_color;
    	border-color: @style_5_block_module_post_comments_box_background_color;
    }
    /* @style_5_block_module_post_comments_box_background_color_after */
    body .td-block-color-style-5 .td-module-comments a:after {
        border-color: hsl(@style_5_block_module_post_comments_box_background_color_after, 50%, 35%) transparent transparent transparent;
    }
    /* @style_5_block_module_post_comments_color */
    body .td-block-color-style-5 .td-module-comments a {
        color: @style_5_block_module_post_comments_color;
    }
     /* @style_5_block_module_post_divider_color */
    body .td-block-color-style-5 .item-details,
    body .td-block-color-style-5 .td_module_5 {
        border-bottom-color: @style_5_block_module_post_divider_color;
    }
    /* @style_5_block_navigation_background_color */
    body .td-block-color-style-5 .td-next-prev-wrap .td-icon-font {
        background-color: @style_5_block_navigation_background_color;
    }
    /* @style_5_block_navigation_text_color */
    body .td-block-color-style-5 .td-icon-font,
    body .td-block-color-style-5 .td_ajax_load_more {
    	border-color: @style_5_block_navigation_text_color;
        color: @style_5_block_navigation_text_color;
    }
     /* @style_5_block_hover_style */
    .td-block-color-style-5 .td_module_wrap:hover .entry-title a,
    body .td-block-color-style-5 .td-pulldown-filter-display-option:hover,
    body .td-block-color-style-5 .td-pulldown-filter-display-option .td-pulldown-filter-link:hover,
    body .td-block-color-style-5 .td_ajax_load_more:hover,
    body .td-block-color-style-5 .td_ajax_load_more:hover i {
        color: @style_5_block_hover_style !important;
     }
    .td-block-color-style-5 .td-next-prev-wrap a:hover i {
        background-color: @style_5_block_hover_style !important;
        border-color: @style_5_block_hover_style !important;
    }
    .td-block-color-style-5 .td-next-prev-wrap a:hover i {
	  color: #ffffff !important;
	}



	/* ------------------------------------------------------ */
    /* @style_6_block_background_color */
    body .td-block-color-style-6,
    .td-block-color-style-6.td_block_13 .meta-info {
        background-color: @style_6_block_background_color;
    }
    /* @style_6_block_drop_down_background_color */
    body .td-block-color-style-6 .td-pulldown-filter-display-option,
    body .td-block-color-style-6 .td-pulldown-filter-list {
        background-color: @style_6_block_drop_down_background_color_ie8;
        background-color: @style_6_block_drop_down_background_color;
    }
    /* @style_6_block_drop_down_border_color */
    body .td-block-color-style-6 .td-pulldown-filter-display-option,
    body .td-block-color-style-6 .td-pulldown-filter-list {
        border-color: @style_6_block_drop_down_border_color;
    }
    /* @style_6_block_drop_down_text_color */
    body .td-block-color-style-6 .td-pulldown-filter-display-option,
    body .td-block-color-style-6 .td-pulldown-filter-display-option .td-icon-menu-down,
    body .td-block-color-style-6 .td-pulldown-filter-link {
        color: @style_6_block_drop_down_text_color;
    }
    /* @style_6_block_module_post_title_color */
    body .td-block-color-style-6 .td-module-title a,
    body .td-block-color-style-6 i {
        color: @style_6_block_module_post_title_color;
    }
    /* @style_6_block_module_post_excerpt_color */
    body .td-block-color-style-6 .td-excerpt {
        color: @style_6_block_module_post_excerpt_color;
    }
    /* @style_6_block_module_post_author_color */
    body .td-block-color-style-6 .td-post-author-name a,
    body .td-block-color-style-6 .td-post-author-name span {
        color: @style_6_block_module_post_author_color;
    }
    /* @style_6_block_module_post_date_color */
    body .td-block-color-style-6 .td-module-date {
        color: @style_6_block_module_post_date_color;
    }
    /* @style_6_block_module_post_comments_box_background_color */
    body .td-block-color-style-6 .td-module-comments {
        background-color: @style_6_block_module_post_comments_box_background_color;
    }
    .td-block-color-style-6 .td-next-prev-wrap a:hover i {
    	background-color: @style_6_block_module_post_comments_box_background_color;
    	border-color: @style_6_block_module_post_comments_box_background_color;
    }
    /* @style_6_block_module_post_comments_box_background_color_after */
    body .td-block-color-style-6 .td-module-comments a:after {
        border-color: hsl(@style_6_block_module_post_comments_box_background_color_after, 50%, 35%) transparent transparent transparent;
    }
    /* @style_6_block_module_post_comments_color */
    body .td-block-color-style-6 .td-module-comments a {
        color: @style_6_block_module_post_comments_color;
    }
     /* @style_6_block_module_post_divider_color */
    body .td-block-color-style-6 .item-details,
    body .td-block-color-style-6 .td_module_5 {
        border-bottom-color: @style_6_block_module_post_divider_color;
    }
    /* @style_6_block_navigation_background_color */
    body .td-block-color-style-6 .td-next-prev-wrap .td-icon-font {
        background-color: @style_6_block_navigation_background_color;
    }
    /* @style_6_block_navigation_text_color */
    body .td-block-color-style-6 .td-icon-font,
    body .td-block-color-style-6 .td_ajax_load_more {
    	border-color: @style_6_block_navigation_text_color;
        color: @style_6_block_navigation_text_color;
    }
     /* @style_6_block_hover_style */
    .td-block-color-style-6 .td_module_wrap:hover .entry-title a,
    body .td-block-color-style-6 .td-pulldown-filter-display-option:hover,
    body .td-block-color-style-6 .td-pulldown-filter-display-option .td-pulldown-filter-link:hover,
    body .td-block-color-style-6 .td_ajax_load_more:hover,
    body .td-block-color-style-6 .td_ajax_load_more:hover i {
        color: @style_6_block_hover_style !important;
     }
    .td-block-color-style-6 .td-next-prev-wrap a:hover i {
        background-color: @style_6_block_hover_style !important;
        border-color: @style_6_block_hover_style !important;
    }
    .td-block-color-style-6 .td-next-prev-wrap a:hover i {
	  color: #ffffff !important;
	}


	/* @main-menu-height */
	.td-main-menu-logo img,
	.sf-menu > .td-menu-item > a > img {
		max-height: @main-menu-height;
	}
	.td-main-menu-logo {
		height: @main-menu-height;
	}
	.td-header-menu-wrap {
		min-height: inherit;
	}


    </style>
    ";



    $td_css_compiler = new td_css_compiler($raw_css);
    //the template directory uri
    $td_css_compiler->load_setting_raw('get_template_directory_uri', get_template_directory_uri());


    //get $typography array from db and added to generated css
    $td_typography_array = td_fonts::td_get_typography_sections_from_db();
    if(is_array($td_typography_array) and !empty($td_typography_array)) {

        foreach ($td_typography_array as $section_id => $section_css_array) {
            $td_css_compiler->load_setting_array(array($section_id => $section_css_array));
        }
    }

	// read line-height for the main-menu to align the logo in menu
	$td_menu_height = td_util::get_option('td_fonts');
	if (!empty($td_menu_height['main_menu']['line_height'])) {
		$td_css_compiler->load_setting_raw('main-menu-height', $td_menu_height['main_menu']['line_height']);
	}


    //load the user settings
    // general
    $td_css_compiler->load_setting('theme_color');
    $td_css_compiler->load_setting('grid_line_color');


    // header ---------
    $td_css_compiler->load_setting('top_menu_color');
    $td_css_compiler->load_setting('top_menu_text_color');
    $td_css_compiler->load_setting('top_menu_text_hover_color');
	$td_css_compiler->load_setting('top_sub_menu_text_color');
	$td_css_compiler->load_setting('top_sub_menu_text_hover_color');
    $td_css_compiler->load_setting('top_social_icons_color');
    $td_css_compiler->load_setting('top_social_icons_hover_color');
    $td_css_compiler->load_setting('menu_color');
    $td_css_compiler->load_setting('menu_text_color');
	$td_css_compiler->load_setting('menu_border_color');
    $td_css_compiler->load_setting('header_wrap_color');

    // footer ---------
    $td_css_compiler->load_setting('footer_color');
    $td_css_compiler->load_setting('footer_text_color');
    $td_css_compiler->load_setting('footer_text_hover_color');
    $td_css_compiler->load_setting('footer_widget_bg_color');
    $td_css_compiler->load_setting('footer_widget_text_color');
    $td_css_compiler->load_setting('footer_text_hover_color');
    $td_css_compiler->load_setting('footer_bottom_color');
    $td_css_compiler->load_setting('footer_bottom_text_color');

	// posts
	$td_css_compiler->load_setting('post_title_color');
	$td_css_compiler->load_setting('post_author_name_color');
	$td_css_compiler->load_setting('post_content_color');
	$td_css_compiler->load_setting('post_h_color');
	$td_css_compiler->load_setting('post_blockquote_color');

	// pages
	$td_css_compiler->load_setting('page_title_color');
	$td_css_compiler->load_setting('page_content_color');
	$td_css_compiler->load_setting('page_h_color');


	// modules and blocks
	$td_css_compiler->load_setting('module1_title_color');
	$td_css_compiler->load_setting('module2_title_color');
	$td_css_compiler->load_setting('module3_title_color');
	$td_css_compiler->load_setting('module4_title_color');
	$td_css_compiler->load_setting('module5_title_color');
	$td_css_compiler->load_setting('module6_title_color');
	$td_css_compiler->load_setting('module7_title_color');
	$td_css_compiler->load_setting('module8_title_color');
	$td_css_compiler->load_setting('module9_title_color');
	$td_css_compiler->load_setting('module10_title_color');
	$td_css_compiler->load_setting('module11_title_color');
	$td_css_compiler->load_setting('module12_title_color');
	$td_css_compiler->load_setting('module13_title_color');
	$td_css_compiler->load_setting('module14_title_color');
	$td_css_compiler->load_setting('module15_title_color');
	$td_css_compiler->load_setting('module_mx2_title_color');
	$td_css_compiler->load_setting('module_mx4_title_color');
	$td_css_compiler->load_setting('news_ticker_title_color');
	$td_css_compiler->load_setting('author_name_title_color');




    //load the selection color
    $tds_theme_color = td_util::get_option('tds_theme_color');
    if (!empty($tds_theme_color)) {
        //the select
        $td_css_compiler->load_setting_raw('select_color', td_util::adjustBrightness($tds_theme_color, 50));

        //the sliders text
        $td_css_compiler->load_setting_raw('slider_text', td_util::hex2rgba($tds_theme_color, 0.7));
    }


    /**
     * add td_fonts_css_buffer from database into the source of the page
     * td_fonts_css_buffer : used to store the css generated for custom font files in the database
     */
    $td_fonts_css_buffer = td_fonts::td_add_fonts_css_buffer();

    /* add block styles */
    $td_block_styles = td_util::get_option('td_block_styles');

    //check if we have something set by the user
    if(!empty($td_block_styles)) {
        foreach($td_block_styles as $style_name => $array_style_options) {
            foreach($array_style_options as $option_key => $option_val){
                if(!empty($td_block_styles[$style_name][$option_key])) {

                    $option_name_generator = str_replace('tds_', $style_name . '_', $option_key);

                    switch ($option_key) {
                        case 'tds_block_drop_down_background_color':
                            $td_css_compiler->load_setting_raw($option_name_generator, td_util::hex2rgba($td_block_styles[$style_name][$option_key], 0.95));
                            $td_css_compiler->load_setting_raw($option_name_generator . '_ie8' , $td_block_styles[$style_name][$option_key]);
                            break;

                        case 'tds_block_module_post_comments_box_background_color':
                            $td_css_compiler->load_setting_raw($option_name_generator , $td_block_styles[$style_name][$option_key]);

                            //converting hex color to rgb
                            $rgb_color = td_util::html2rgb($td_block_styles[$style_name][$option_key]);

                            //converting rgb to hsl
                            $hsl_color = td_util::rgb2Hsl($rgb_color[0], $rgb_color[1], $rgb_color[2]);

                            //this is a hack for HLS color: red is 0 in HLS and no output is generated
                            if(intval($hsl_color[0] == 0)) {
                                $hsl_color[0] = 1;
                            }

                            $td_css_compiler->load_setting_raw($option_name_generator . '_after' , $hsl_color[0]);
                            break;

                        default:
                            $td_css_compiler->load_setting_raw($option_name_generator, $td_block_styles[$style_name][$option_key]);
                    }
                }
            }
        }
    }


    //return the style
    return $td_fonts_css_buffer . $td_css_compiler->compile_css();
}


