<?php

$holiday_vacation_tp_theme_css = '';

//theme-color
$holiday_vacation_tp_color_option = get_theme_mod('holiday_vacation_tp_color_option');

// 1st color
$holiday_vacation_tp_color_option = get_theme_mod('holiday_vacation_tp_color_option', '#F0955E');
if ($holiday_vacation_tp_color_option) {
	$holiday_vacation_tp_theme_css .= ':root {';
	$holiday_vacation_tp_theme_css .= '--color-primary1: ' . esc_attr($holiday_vacation_tp_color_option) . ';';
	$holiday_vacation_tp_theme_css .= '}';
}

//preloader

$holiday_vacation_tp_preloader_color1_option = get_theme_mod('holiday_vacation_tp_preloader_color1_option');
$holiday_vacation_tp_preloader_color2_option = get_theme_mod('holiday_vacation_tp_preloader_color2_option');
$holiday_vacation_tp_preloader_bg_color_option = get_theme_mod('holiday_vacation_tp_preloader_bg_color_option');

if($holiday_vacation_tp_preloader_color1_option != false){
$holiday_vacation_tp_theme_css .='.center1{';
	$holiday_vacation_tp_theme_css .='border-color: '.esc_attr($holiday_vacation_tp_preloader_color1_option).' !important;';
$holiday_vacation_tp_theme_css .='}';
}
if($holiday_vacation_tp_preloader_color1_option != false){
$holiday_vacation_tp_theme_css .='.center1 .ring::before{';
	$holiday_vacation_tp_theme_css .='background: '.esc_attr($holiday_vacation_tp_preloader_color1_option).' !important;';
$holiday_vacation_tp_theme_css .='}';
}
if($holiday_vacation_tp_preloader_color2_option != false){
$holiday_vacation_tp_theme_css .='.center2{';
	$holiday_vacation_tp_theme_css .='border-color: '.esc_attr($holiday_vacation_tp_preloader_color2_option).' !important;';
$holiday_vacation_tp_theme_css .='}';
}
if($holiday_vacation_tp_preloader_color2_option != false){
$holiday_vacation_tp_theme_css .='.center2 .ring::before{';
	$holiday_vacation_tp_theme_css .='background: '.esc_attr($holiday_vacation_tp_preloader_color2_option).' !important;';
$holiday_vacation_tp_theme_css .='}';
}
if($holiday_vacation_tp_preloader_bg_color_option != false){
$holiday_vacation_tp_theme_css .='.loader{';
	$holiday_vacation_tp_theme_css .='background: '.esc_attr($holiday_vacation_tp_preloader_bg_color_option).';';
$holiday_vacation_tp_theme_css .='}';
}

// footer-bg-color
$holiday_vacation_tp_footer_bg_color_option = get_theme_mod('holiday_vacation_tp_footer_bg_color_option');

if($holiday_vacation_tp_footer_bg_color_option != false){
$holiday_vacation_tp_theme_css .='#footer{';
	$holiday_vacation_tp_theme_css .='background: '.esc_attr($holiday_vacation_tp_footer_bg_color_option).' !important;';
$holiday_vacation_tp_theme_css .='}';
}

// logo tagline color
$holiday_vacation_site_tagline_color = get_theme_mod('holiday_vacation_site_tagline_color');

if($holiday_vacation_site_tagline_color != false){
$holiday_vacation_tp_theme_css .='.logo h1 a, .logo p.site-title a{';
$holiday_vacation_tp_theme_css .='color: '.esc_attr($holiday_vacation_site_tagline_color).';';
$holiday_vacation_tp_theme_css .='}';
}

$holiday_vacation_logo_tagline_color = get_theme_mod('holiday_vacation_logo_tagline_color');
if($holiday_vacation_logo_tagline_color != false){
$holiday_vacation_tp_theme_css .='p.site-description{';
$holiday_vacation_tp_theme_css .='color: '.esc_attr($holiday_vacation_logo_tagline_color).';';
$holiday_vacation_tp_theme_css .='}';
}

// footer widget title color
$holiday_vacation_footer_widget_title_color = get_theme_mod('holiday_vacation_footer_widget_title_color');
if($holiday_vacation_footer_widget_title_color != false){
$holiday_vacation_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
$holiday_vacation_tp_theme_css .='color: '.esc_attr($holiday_vacation_footer_widget_title_color).';';
$holiday_vacation_tp_theme_css .='}';
}

// copyright text color
$holiday_vacation_footer_copyright_text_color = get_theme_mod('holiday_vacation_footer_copyright_text_color');
if($holiday_vacation_footer_copyright_text_color != false){
$holiday_vacation_tp_theme_css .='#footer .site-info p, #footer .site-info a {';
$holiday_vacation_tp_theme_css .='color: '.esc_attr($holiday_vacation_footer_copyright_text_color).';';
$holiday_vacation_tp_theme_css .='}';
}

// header image title color
$holiday_vacation_header_image_title_text_color = get_theme_mod('holiday_vacation_header_image_title_text_color');
if($holiday_vacation_header_image_title_text_color != false){
$holiday_vacation_tp_theme_css .='.box-text h2{';
$holiday_vacation_tp_theme_css .='color: '.esc_attr($holiday_vacation_header_image_title_text_color).';';
$holiday_vacation_tp_theme_css .='}';
}

// menu color
$holiday_vacation_menu_color = get_theme_mod('holiday_vacation_menu_color');
if($holiday_vacation_menu_color != false){
$holiday_vacation_tp_theme_css .='.main-navigation a{';
$holiday_vacation_tp_theme_css .='color: '.esc_attr($holiday_vacation_menu_color).';';
$holiday_vacation_tp_theme_css .='}';
}

//Footer Font Weight
$holiday_vacation_footer_copyright_title_font_weight = get_theme_mod( 'holiday_vacation_footer_copyright_title_font_weight','');
if($holiday_vacation_footer_copyright_title_font_weight == '100'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 100;';
$holiday_vacation_tp_theme_css .='}';
}else if($holiday_vacation_footer_copyright_title_font_weight == '200'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 200;';
$holiday_vacation_tp_theme_css .='}';
}else if($holiday_vacation_footer_copyright_title_font_weight == '300'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 300;';
$holiday_vacation_tp_theme_css .='}';
}else if($holiday_vacation_footer_copyright_title_font_weight == '400'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 400;';
$holiday_vacation_tp_theme_css .='}';
}else if($holiday_vacation_footer_copyright_title_font_weight == '500'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 500;';
$holiday_vacation_tp_theme_css .='}';
}else if($holiday_vacation_footer_copyright_title_font_weight == '600'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 600;';
$holiday_vacation_tp_theme_css .='}';
}else if($holiday_vacation_footer_copyright_title_font_weight == '700'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 700;';
$holiday_vacation_tp_theme_css .='}';
}else if($holiday_vacation_footer_copyright_title_font_weight == '800'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 800;';
$holiday_vacation_tp_theme_css .='}';
}else if($holiday_vacation_footer_copyright_title_font_weight == '900'){
$holiday_vacation_tp_theme_css .='#footer .site-info p {';
    $holiday_vacation_tp_theme_css .='font-weight: 900;';
$holiday_vacation_tp_theme_css .='}';
}