<?php

$resort_vacation_custom_css = "";

$resort_vacation_primary_color = get_theme_mod('resort_vacation_primary_color');

/*------------------ Primary Global Color -----------*/

if ($resort_vacation_primary_color) {
  $resort_vacation_custom_css .= ':root {';
  $resort_vacation_custom_css .= '--primary-color: ' . esc_attr($resort_vacation_primary_color) . ' !important;';
  $resort_vacation_custom_css .= '} ';
}

/*-------------------- Container Width-------------------*/

$resort_vacation_theme_width = get_theme_mod( 'resort_vacation_theme_width','full-width');

if($resort_vacation_theme_width == 'full-width'){
$resort_vacation_custom_css .='body{';
	$resort_vacation_custom_css .='max-width: 100% !important;';
$resort_vacation_custom_css .='}';
$resort_vacation_custom_css .='.sticky-head{';
$resort_vacation_custom_css .='left: 0;';
$resort_vacation_custom_css .='}';
}else if($resort_vacation_theme_width == 'container'){
$resort_vacation_custom_css .='body{';
	$resort_vacation_custom_css .='width: 80% !important; padding-right: 15px; padding-left: 15px;  margin-right: auto !important; margin-left: auto !important;';
$resort_vacation_custom_css .='}';
$resort_vacation_custom_css .='.sticky-head{';
$resort_vacation_custom_css .='left: 0;';
$resort_vacation_custom_css .='}';
}else if($resort_vacation_theme_width == 'container-fluid'){
$resort_vacation_custom_css .='body{';
	$resort_vacation_custom_css .='width: 95% !important;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$resort_vacation_custom_css .='}';
$resort_vacation_custom_css .='.sticky-head{';
$resort_vacation_custom_css .='left: 0;';
$resort_vacation_custom_css .='}';
}

/*-------------------- Single Post Alignment-------------------*/

$resort_vacation_single_post_align = get_theme_mod( 'resort_vacation_single_post_align','left-align');

if($resort_vacation_single_post_align == 'left-align'){
$resort_vacation_custom_css .='body:not(.hide-post-meta) .post{';
	$resort_vacation_custom_css .='text-align: left';
$resort_vacation_custom_css .='}';
}else if($resort_vacation_single_post_align == 'right-align'){
$resort_vacation_custom_css .='body:not(.hide-post-meta) .post{';
	$resort_vacation_custom_css .='text-align: right';
$resort_vacation_custom_css .='}';
}else if($resort_vacation_single_post_align == 'center-align'){
$resort_vacation_custom_css .='body:not(.hide-post-meta) .post{';
	$resort_vacation_custom_css .='text-align: center';
$resort_vacation_custom_css .='}';
}

/*-------------------- Scroll Top Alignment-------------------*/

$resort_vacation_scroll_top_alignment = get_theme_mod( 'resort_vacation_scroll_top_alignment','right-align');

if($resort_vacation_scroll_top_alignment == 'right-align'){
$resort_vacation_custom_css .='#button{';
	$resort_vacation_custom_css .='right: 5%;';
$resort_vacation_custom_css .='}';
}else if($resort_vacation_scroll_top_alignment == 'center-align'){
$resort_vacation_custom_css .='#button{';
	$resort_vacation_custom_css .='right:0; left:0; margin: 0 auto;';
$resort_vacation_custom_css .='}';
}else if($resort_vacation_scroll_top_alignment == 'left-align'){
$resort_vacation_custom_css .='#button{';
	$resort_vacation_custom_css .='left: 5%;';
$resort_vacation_custom_css .='}';
}

/*-------------------- Archive Page Pagination Alignment-------------------*/

$resort_vacation_archive_pagination_alignment = get_theme_mod( 'resort_vacation_archive_pagination_alignment','left-align');

if($resort_vacation_archive_pagination_alignment == 'right-align'){
$resort_vacation_custom_css .='.pagination{';
	$resort_vacation_custom_css .='justify-content: end;';
$resort_vacation_custom_css .='}';
}else if($resort_vacation_archive_pagination_alignment == 'center-align'){
$resort_vacation_custom_css .='.pagination{';
	$resort_vacation_custom_css .='justify-content: center;';
$resort_vacation_custom_css .='}';
}else if($resort_vacation_archive_pagination_alignment == 'left-align'){
$resort_vacation_custom_css .='.pagination{';
	$resort_vacation_custom_css .='justify-content: start;';
$resort_vacation_custom_css .='}';
}

/*-------------------- Scroll Top Responsive-------------------*/

$resort_vacation_resp_scroll_top = get_theme_mod( 'resort_vacation_resp_scroll_top',true);
if($resort_vacation_resp_scroll_top == true && get_theme_mod( 'resort_vacation_scroll_to_top',true) != true){
	$resort_vacation_custom_css .='#button.show{';
		$resort_vacation_custom_css .='visibility:hidden !important;';
	$resort_vacation_custom_css .='} ';
}
if($resort_vacation_resp_scroll_top == true){
	$resort_vacation_custom_css .='@media screen and (max-width:575px) {';
	$resort_vacation_custom_css .='#button.show{';
		$resort_vacation_custom_css .='visibility:visible !important;';
	$resort_vacation_custom_css .='} }';
}else if($resort_vacation_resp_scroll_top == false){
	$resort_vacation_custom_css .='@media screen and (max-width:575px){';
	$resort_vacation_custom_css .='#button.show{';
		$resort_vacation_custom_css .='visibility:hidden !important;';
	$resort_vacation_custom_css .='} }';
}

/*-------------------- Preloader Responsive-------------------*/

	$resort_vacation_resp_loader = get_theme_mod('resort_vacation_resp_loader',false);
	if($resort_vacation_resp_loader == true && get_theme_mod('resort_vacation_preloader_setting',false) == false){
		$resort_vacation_custom_css .='@media screen and (min-width:575px){
			.preloader{';
			$resort_vacation_custom_css .='display:none !important;';
		$resort_vacation_custom_css .='} }';
	}

	if($resort_vacation_resp_loader == false){
		$resort_vacation_custom_css .='@media screen and (max-width:575px){
			.preloader{';
			$resort_vacation_custom_css .='display:none !important;';
		$resort_vacation_custom_css .='} }';
	}


// Scroll to top button shape 

$resort_vacation_scroll_border_radius = get_theme_mod( 'resort_vacation_scroll_to_top_radius','curved-box');
if($resort_vacation_scroll_border_radius == 'box'){
	$resort_vacation_custom_css .='#button{';
		$resort_vacation_custom_css .='border-radius: 0px;';
	$resort_vacation_custom_css .='}';
}else if($resort_vacation_scroll_border_radius == 'curved-box'){
	$resort_vacation_custom_css .='#button{';
		$resort_vacation_custom_css .='border-radius: 4px;';
	$resort_vacation_custom_css .='}';
}
else if($resort_vacation_scroll_border_radius == 'circle'){
	$resort_vacation_custom_css .='#button{';
		$resort_vacation_custom_css .='border-radius: 50%;';
	$resort_vacation_custom_css .='}';
}

// Footer Background Image Attachment 

$resort_vacation_footer_attachment = get_theme_mod( 'resort_vacation_background_attachment','scroll');
if($resort_vacation_footer_attachment == 'fixed'){
	$resort_vacation_custom_css .='.site-footer{';
		$resort_vacation_custom_css .='background-attachment: fixed;';
	$resort_vacation_custom_css .='}';
}elseif ($resort_vacation_footer_attachment == 'scroll'){
	$resort_vacation_custom_css .='.site-footer{';
		$resort_vacation_custom_css .='background-attachment: scroll;';
	$resort_vacation_custom_css .='}';
}

// Menu Hover Style	

$resort_vacation_menus_item = get_theme_mod( 'resort_vacation_menus_style','None');
if($resort_vacation_menus_item == 'None'){
	$resort_vacation_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$resort_vacation_custom_css .='';
	$resort_vacation_custom_css .='}';
}else if($resort_vacation_menus_item == 'Zoom In'){
	$resort_vacation_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
	$resort_vacation_custom_css .= 'transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
	$resort_vacation_custom_css .= '}';
	
	$resort_vacation_custom_css .= '.main-navigation ul ul li a:hover {';
	$resort_vacation_custom_css .= 'margin-left: 20px;';
	$resort_vacation_custom_css .= '}';
}	