<?php
	
$adventure_travelling_tp_theme_css = '';


$adventure_travelling_tp_color_option = get_theme_mod('adventure_travelling_tp_color_option');

// 1st color
$adventure_travelling_tp_color_option = get_theme_mod('adventure_travelling_tp_color_option', '#d85726');
if ($adventure_travelling_tp_color_option) {
	$adventure_travelling_tp_theme_css .= ':root {';
	$adventure_travelling_tp_theme_css .= '--color-primary1: ' . esc_attr($adventure_travelling_tp_color_option) . ';';
	$adventure_travelling_tp_theme_css .= '}';
}

// preloader
$adventure_travelling_tp_preloader_color1_option = get_theme_mod('adventure_travelling_tp_preloader_color1_option');

if($adventure_travelling_tp_preloader_color1_option != false){
$adventure_travelling_tp_theme_css .='.center1{';
	$adventure_travelling_tp_theme_css .='border-color: '.esc_attr($adventure_travelling_tp_preloader_color1_option).' !important;';
$adventure_travelling_tp_theme_css .='}';
}
if($adventure_travelling_tp_preloader_color1_option != false){
$adventure_travelling_tp_theme_css .='.center1 .ring::before{';
	$adventure_travelling_tp_theme_css .='background: '.esc_attr($adventure_travelling_tp_preloader_color1_option).' !important;';
$adventure_travelling_tp_theme_css .='}';
}

$adventure_travelling_tp_preloader_color2_option = get_theme_mod('adventure_travelling_tp_preloader_color2_option');

if($adventure_travelling_tp_preloader_color2_option != false){
$adventure_travelling_tp_theme_css .='.center2{';
	$adventure_travelling_tp_theme_css .='border-color: '.esc_attr($adventure_travelling_tp_preloader_color2_option).' !important;';
$adventure_travelling_tp_theme_css .='}';
}
if($adventure_travelling_tp_preloader_color2_option != false){
$adventure_travelling_tp_theme_css .='.center2 .ring::before{';
	$adventure_travelling_tp_theme_css .='background: '.esc_attr($adventure_travelling_tp_preloader_color2_option).' !important;';
$adventure_travelling_tp_theme_css .='}';
}

$adventure_travelling_tp_preloader_bg_color_option = get_theme_mod('adventure_travelling_tp_preloader_bg_color_option');

if($adventure_travelling_tp_preloader_bg_color_option != false){
$adventure_travelling_tp_theme_css .='.loader{';
	$adventure_travelling_tp_theme_css .='background: '.esc_attr($adventure_travelling_tp_preloader_bg_color_option).';';
$adventure_travelling_tp_theme_css .='}';
}

$adventure_travelling_tp_footer_bg_color_option = get_theme_mod('adventure_travelling_tp_footer_bg_color_option');


if($adventure_travelling_tp_footer_bg_color_option != false){
$adventure_travelling_tp_theme_css .='#footer{';
	$adventure_travelling_tp_theme_css .='background: '.esc_attr($adventure_travelling_tp_footer_bg_color_option).';';
$adventure_travelling_tp_theme_css .='}';
}
$adventure_travelling_footer_widget_image = get_theme_mod('adventure_travelling_footer_widget_image');
	if($adventure_travelling_footer_widget_image != false){
		$adventure_travelling_tp_theme_css .='#footer{';
			$adventure_travelling_tp_theme_css .='background: url('.esc_attr($adventure_travelling_footer_widget_image).');';
		$adventure_travelling_tp_theme_css .='}';
	}

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

   // Slider Height
$travel_vlogger_slider_img_height      = get_theme_mod( 'travel_vlogger_slider_img_height' );
$travel_vlogger_slider_img_height_resp = get_theme_mod( 'adventure_travelling_slider_img_height_responsive' );

// Desktop height
$adventure_travelling_tp_theme_css .= '@media screen and (min-width: 768px) {';
$adventure_travelling_tp_theme_css .= '#slider-post .slider-inner-box img, #slider-post {';

if ( $travel_vlogger_slider_img_height ) {
    $height_value = is_numeric( $travel_vlogger_slider_img_height ) ? $travel_vlogger_slider_img_height . 'px' : $travel_vlogger_slider_img_height;
    $adventure_travelling_tp_theme_css .= 'height: ' . esc_attr( $height_value ) . ';';
}

$adventure_travelling_tp_theme_css .= 'width: 100%; object-fit: cover;';
$adventure_travelling_tp_theme_css .= '}';
$adventure_travelling_tp_theme_css .= '}';

// Mobile height
$adventure_travelling_tp_theme_css .= '@media screen and (max-width: 767px) {';
$adventure_travelling_tp_theme_css .= '#slider-post .slider-inner-box img, #slider-post {';

if ( $travel_vlogger_slider_img_height_resp ) {
    $height_resp_value = is_numeric( $travel_vlogger_slider_img_height_resp ) ? $travel_vlogger_slider_img_height_resp . 'px' : $travel_vlogger_slider_img_height_resp;
    $adventure_travelling_tp_theme_css .= 'height: ' . esc_attr( $height_resp_value ) . ';';
}

$adventure_travelling_tp_theme_css .= 'width: 100%; object-fit: cover;';
$adventure_travelling_tp_theme_css .= '}';
$adventure_travelling_tp_theme_css .= '}';

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

// About Section ANimation
$travel_vlogger_offer_show_animation = get_theme_mod( 'travel_vlogger_offer_show_animation', true );
if ( $travel_vlogger_offer_show_animation ) {
    $adventure_travelling_tp_theme_css .= '#travel-offer { animation: bounceInDown 3s; animation-fill-mode: both; }';
}