<?php

    $holiday_travel_cruise_theme_css= "";

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

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

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

    $holiday_travel_cruise_nav_menu = get_theme_mod( 'holiday_travel_cruise_nav_menu_text_transform','Capitalize');
    if($holiday_travel_cruise_nav_menu == 'Capitalize'){
        $holiday_travel_cruise_theme_css .='.site-navigation .primary-menu > li a{';
            $holiday_travel_cruise_theme_css .='text-transform:Capitalize;';
        $holiday_travel_cruise_theme_css .='}';
    }
    if($holiday_travel_cruise_nav_menu == 'Lowercase'){
        $holiday_travel_cruise_theme_css .='.site-navigation .primary-menu > li a{';
            $holiday_travel_cruise_theme_css .='text-transform:Lowercase;';
        $holiday_travel_cruise_theme_css .='}';
    }
    if($holiday_travel_cruise_nav_menu == 'Uppercase'){
        $holiday_travel_cruise_theme_css .='.site-navigation .primary-menu > li a{';
            $holiday_travel_cruise_theme_css .='text-transform:Uppercase;';
        $holiday_travel_cruise_theme_css .='}';
    }

    $holiday_travel_cruise_menu_font_size = get_theme_mod( 'holiday_travel_cruise_menu_font_size');
    if($holiday_travel_cruise_menu_font_size != ''){
        $holiday_travel_cruise_theme_css .='.site-navigation .primary-menu > li a{';
            $holiday_travel_cruise_theme_css .='font-size: '.esc_attr($holiday_travel_cruise_menu_font_size).'px;';
        $holiday_travel_cruise_theme_css .='}';
    }

    $holiday_travel_cruise_nav_menu_font_weight = get_theme_mod( 'holiday_travel_cruise_nav_menu_font_weight',400);
    if($holiday_travel_cruise_menu_font_size != ''){
        $holiday_travel_cruise_theme_css .='.site-navigation .primary-menu > li a{';
            $holiday_travel_cruise_theme_css .='font-weight: '.esc_attr($holiday_travel_cruise_nav_menu_font_weight).';';
        $holiday_travel_cruise_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

    $holiday_travel_cruise_first_color = get_theme_mod('holiday_travel_cruise_first_color');

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

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

    $holiday_travel_cruise_heading_color = get_theme_mod('holiday_travel_cruise_heading_color');
    $holiday_travel_cruise_heading_font_family = get_theme_mod('holiday_travel_cruise_heading_font_family');
    $holiday_travel_cruise_heading_font_size = get_theme_mod('holiday_travel_cruise_heading_font_size');
    if($holiday_travel_cruise_heading_color != false || $holiday_travel_cruise_heading_font_family != false || $holiday_travel_cruise_heading_font_size != false){
        $holiday_travel_cruise_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{';
            $holiday_travel_cruise_theme_css .='color: '.esc_attr($holiday_travel_cruise_heading_color).'!important; 
            font-family: '.esc_attr($holiday_travel_cruise_heading_font_family).'!important;
            font-size: '.esc_attr($holiday_travel_cruise_heading_font_size).'px !important;';
        $holiday_travel_cruise_theme_css .='}';
    }

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

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