<?php

    $cinematic_videos_theme_css= "";

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

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

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

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

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

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

    /*--------------------------- Footer background image -------------------*/

    $cinematic_videos_footer_bg_image = get_theme_mod('cinematic_videos_footer_bg_image');
    if($cinematic_videos_footer_bg_image != false){
        $cinematic_videos_theme_css .='#colophon{';
            $cinematic_videos_theme_css .='background: url('.esc_attr($cinematic_videos_footer_bg_image).')!important;';
        $cinematic_videos_theme_css .='}';
    }

    /*--------------------------- Footer Background Image Position -------------------*/

    $cinematic_videos_footer_bg_image_position = get_theme_mod( 'cinematic_videos_footer_bg_image_position','scroll');
    if($cinematic_videos_footer_bg_image_position == 'fixed'){
        $cinematic_videos_theme_css .='#colophon{';
            $cinematic_videos_theme_css .='background-attachment: fixed !important; background-position: center !important;';
        $cinematic_videos_theme_css .='}';
    }elseif ($cinematic_videos_footer_bg_image_position == 'scroll'){
        $cinematic_videos_theme_css .='#colophon{';
            $cinematic_videos_theme_css .='background-attachment: scroll !important; background-position: center !important;';
        $cinematic_videos_theme_css .='}';
    }

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

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

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

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

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

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

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

    $cinematic_videos_heading_color = get_theme_mod('cinematic_videos_heading_color');
    $cinematic_videos_heading_font_family = get_theme_mod('cinematic_videos_heading_font_family');
    $cinematic_videos_heading_font_size = get_theme_mod('cinematic_videos_heading_font_size');
    if($cinematic_videos_heading_color != false || $cinematic_videos_heading_font_family != false || $cinematic_videos_heading_font_size != false){
        $cinematic_videos_theme_css .='h1, h2, h3, h4, h5, h6, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, #latest_post h2, h2.woocommerce-loop-product__title, #colophon h5, .sidebar h5, .article-box h3.entry-title, .slider-inner-box h2, #top-slider .slider-inner-box h2, #top-slider .slider-inner-box h3, section#page-content h2.wp-block-heading, h3.counter-heading, .heading-main h3.image-heading, h3.main-text, .about-image h4.image-heading, h4.image-heading, h5.tick-box{';
            $cinematic_videos_theme_css .='color: '.esc_attr($cinematic_videos_heading_color).'!important; 
            font-family: '.esc_attr($cinematic_videos_heading_font_family).'!important;
            font-size: '.esc_attr($cinematic_videos_heading_font_size).'px !important;';
        $cinematic_videos_theme_css .='}';
    }

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

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

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

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

    $cinematic_videos_nav_menu_font_weight = get_theme_mod( 'cinematic_videos_nav_menu_font_weight',500);
    if($cinematic_videos_menu_font_size != ''){
        $cinematic_videos_theme_css .='.main-navigation .menu > li > a{';
            $cinematic_videos_theme_css .='font-weight: '.esc_attr($cinematic_videos_nav_menu_font_weight).';';
        $cinematic_videos_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/

    $cinematic_videos_slider_content_layout = get_theme_mod( 'cinematic_videos_slider_content_layout','Left');
    if($cinematic_videos_slider_content_layout == 'Left'){
        $cinematic_videos_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $cinematic_videos_theme_css .='text-align : left;';
        $cinematic_videos_theme_css .='}';
    }
    if($cinematic_videos_slider_content_layout == 'Center'){
        $cinematic_videos_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $cinematic_videos_theme_css .='text-align : center;';
        $cinematic_videos_theme_css .='}';
    }
    if($cinematic_videos_slider_content_layout == 'Right'){
        $cinematic_videos_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $cinematic_videos_theme_css .='text-align : right;';
        $cinematic_videos_theme_css .='}';
    }

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

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

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

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

    $cinematic_videos_first_color = get_theme_mod('cinematic_videos_first_color');

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

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

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

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

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

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

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

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

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

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

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