<?php

    $adventure_tourism_theme_css= "";

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

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

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

    $adventure_tourism_nav_menu = get_theme_mod( 'adventure_tourism_nav_menu_text_transform','Capitalize');
    if($adventure_tourism_nav_menu == 'Capitalize'){
        $adventure_tourism_theme_css .='.main-navigation .menu li a{';
            $adventure_tourism_theme_css .='text-transform:Capitalize;';
        $adventure_tourism_theme_css .='}';
    }
    if($adventure_tourism_nav_menu == 'Lowercase'){
        $adventure_tourism_theme_css .='.main-navigation .menu li a{';
            $adventure_tourism_theme_css .='text-transform:Lowercase;';
        $adventure_tourism_theme_css .='}';
    }
    if($adventure_tourism_nav_menu == 'Uppercase'){
        $adventure_tourism_theme_css .='.main-navigation .menu li a{';
            $adventure_tourism_theme_css .='text-transform:Uppercase;';
        $adventure_tourism_theme_css .='}';
    }

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

    $adventure_tourism_nav_menu_font_weight = get_theme_mod( 'adventure_tourism_nav_menu_font_weight',400);
    if($adventure_tourism_menu_font_size != ''){
        $adventure_tourism_theme_css .='.main-navigation .menu li a{';
            $adventure_tourism_theme_css .='font-weight: '.esc_attr($adventure_tourism_nav_menu_font_weight).';';
        $adventure_tourism_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

    $adventure_tourism_global_color = get_theme_mod('adventure_tourism_global_color');

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

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

    $adventure_tourism_heading_color = get_theme_mod('adventure_tourism_heading_color');
    $adventure_tourism_heading_font_family = get_theme_mod('adventure_tourism_heading_font_family');
    $adventure_tourism_heading_font_size = get_theme_mod('adventure_tourism_heading_font_size');
    if($adventure_tourism_heading_color != false || $adventure_tourism_heading_font_family != false || $adventure_tourism_heading_font_size != false){
        $adventure_tourism_theme_css .='h1, h2, h3, h4, h5, h6, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, #latest_post h2, h2.woocommerce-loop-product__title, #top-slider .slider-inner-box h3, .featured h3.main-heading, .article-box h3.entry-title, .featured h4.main-heading, #colophon h5, .sidebar h5{';
            $adventure_tourism_theme_css .='color: '.esc_attr($adventure_tourism_heading_color).'!important; 
            font-family: '.esc_attr($adventure_tourism_heading_font_family).'!important;
            font-size: '.esc_attr($adventure_tourism_heading_font_size).'px !important;';
        $adventure_tourism_theme_css .='}';
    }

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

    /*---------------- Logo CSS ----------------------*/
    $adventure_tourism_logo_title_font_size = get_theme_mod( 'adventure_tourism_logo_title_font_size');
    $adventure_tourism_logo_tagline_font_size = get_theme_mod( 'adventure_tourism_logo_tagline_font_size');
    if( $adventure_tourism_logo_title_font_size != '') {
        $adventure_tourism_theme_css .='#masthead .navbar-brand a{';
            $adventure_tourism_theme_css .='font-size: '. $adventure_tourism_logo_title_font_size. 'px;';
        $adventure_tourism_theme_css .='}';
    }
    if( $adventure_tourism_logo_tagline_font_size != '') {
        $adventure_tourism_theme_css .='#masthead .navbar-brand p{';
            $adventure_tourism_theme_css .='font-size: '. $adventure_tourism_logo_tagline_font_size. 'px;';
        $adventure_tourism_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

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