<?php 

	$vivah_royal_wedding_custom_style = '';

	// Logo Size
	$vivah_royal_wedding_logo_top_padding = get_theme_mod('vivah_royal_wedding_logo_top_padding');
	$vivah_royal_wedding_logo_bottom_padding = get_theme_mod('vivah_royal_wedding_logo_bottom_padding');
	$vivah_royal_wedding_logo_left_padding = get_theme_mod('vivah_royal_wedding_logo_left_padding');
	$vivah_royal_wedding_logo_right_padding = get_theme_mod('vivah_royal_wedding_logo_right_padding');

	if( $vivah_royal_wedding_logo_top_padding != '' || $vivah_royal_wedding_logo_bottom_padding != '' || $vivah_royal_wedding_logo_left_padding != '' || $vivah_royal_wedding_logo_right_padding != ''){
		$vivah_royal_wedding_custom_style .=' .logo {';
			$vivah_royal_wedding_custom_style .=' padding-top: '.esc_attr($vivah_royal_wedding_logo_top_padding).'px; padding-bottom: '.esc_attr($vivah_royal_wedding_logo_bottom_padding).'px; padding-left: '.esc_attr($vivah_royal_wedding_logo_left_padding).'px; padding-right: '.esc_attr($vivah_royal_wedding_logo_right_padding).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_logo_size = get_theme_mod('vivah_royal_wedding_logo_size');
	if( $vivah_royal_wedding_logo_size != '' ) {
		if($vivah_royal_wedding_logo_size >= 0 && $vivah_royal_wedding_logo_size <= 100) {
			$calculated_width = $vivah_royal_wedding_logo_size * 3.5;
			$vivah_royal_wedding_custom_style .= ' .custom-logo-link img {';
			$vivah_royal_wedding_custom_style .= ' width: ' . esc_attr($calculated_width) . 'px;';
			$vivah_royal_wedding_custom_style .= ' }';
		}
	}

	// service section padding
	$vivah_royal_wedding_brider_groom_section_padding = get_theme_mod('vivah_royal_wedding_brider_groom_section_padding');

	if( $vivah_royal_wedding_brider_groom_section_padding != ''){
		$vivah_royal_wedding_custom_style .=' #bride-groom {';
			$vivah_royal_wedding_custom_style .=' padding-top: '.esc_attr($vivah_royal_wedding_brider_groom_section_padding).'px; padding-bottom: '.esc_attr($vivah_royal_wedding_brider_groom_section_padding).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	// Site Title Font Size
	$vivah_royal_wedding_site_title_font_size = get_theme_mod('vivah_royal_wedding_site_title_font_size');
	if( $vivah_royal_wedding_site_title_font_size != ''){
		$vivah_royal_wedding_custom_style .=' .logo h1.site-title, .logo p.site-title {';
			$vivah_royal_wedding_custom_style .=' font-size: '.esc_attr($vivah_royal_wedding_site_title_font_size).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	// Site Tagline Font Size
	$vivah_royal_wedding_site_tagline_font_size = get_theme_mod('vivah_royal_wedding_site_tagline_font_size');
	if( $vivah_royal_wedding_site_tagline_font_size != ''){
		$vivah_royal_wedding_custom_style .=' .logo p.site-description {';
			$vivah_royal_wedding_custom_style .=' font-size: '.esc_attr($vivah_royal_wedding_site_tagline_font_size).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_show_banner = get_theme_mod('vivah_royal_wedding_show_banner',false);
	if( $vivah_royal_wedding_show_banner == true){
		$vivah_royal_wedding_custom_style .=' .page-template-custom-home-page #inner-pages-header {';
			$vivah_royal_wedding_custom_style .=' display:none;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	// Copyright padding
	$vivah_royal_wedding_copyright_padding = get_theme_mod('vivah_royal_wedding_copyright_padding');

	if( $vivah_royal_wedding_copyright_padding != ''){
		$vivah_royal_wedding_custom_style .=' .site-info {';
			$vivah_royal_wedding_custom_style .=' padding-top: '.esc_attr($vivah_royal_wedding_copyright_padding).'px; padding-bottom: '.esc_attr($vivah_royal_wedding_copyright_padding).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	//Header color
	$vivah_royal_wedding_header_menu_color = get_theme_mod('vivah_royal_wedding_header_menu_color');
	if ( $vivah_royal_wedding_header_menu_color != '') {
		$vivah_royal_wedding_custom_style .=' .nav-menu a{';
			$vivah_royal_wedding_custom_style .=' color:'.esc_attr($vivah_royal_wedding_header_menu_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_headerbg_color = get_theme_mod('vivah_royal_wedding_headerbg_color');
	if ( $vivah_royal_wedding_headerbg_color != '') {
		$vivah_royal_wedding_custom_style .=' .page-template-custom-home-page #header{';
			$vivah_royal_wedding_custom_style .=' background-color:'.esc_attr($vivah_royal_wedding_headerbg_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	//Menu animation
	$vivah_royal_wedding_dropdown_anim = get_theme_mod('vivah_royal_wedding_dropdown_anim');

	if ( $vivah_royal_wedding_dropdown_anim != '') {
		$vivah_royal_wedding_custom_style .=' .nav-menu ul ul {';
			$vivah_royal_wedding_custom_style .=' animation:'.esc_attr($vivah_royal_wedding_dropdown_anim).' 1s ease;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	//slider color
	$vivah_royal_wedding_slider_title_font_size = get_theme_mod('vivah_royal_wedding_slider_title_font_size');

	if( $vivah_royal_wedding_slider_title_font_size != ''){
		$vivah_royal_wedding_custom_style .=' .box-content h1 {';
			$vivah_royal_wedding_custom_style .=' font-size: '.esc_attr($vivah_royal_wedding_slider_title_font_size).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_slider_color = get_theme_mod('vivah_royal_wedding_slider_color');

	if ( $vivah_royal_wedding_slider_color != '') {
		$vivah_royal_wedding_custom_style .=' .box-content h1 a{';
			$vivah_royal_wedding_custom_style .=' color:'.esc_attr($vivah_royal_wedding_slider_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_sliderbdr_color = get_theme_mod('vivah_royal_wedding_sliderbdr_color');

	if ( $vivah_royal_wedding_sliderbdr_color != '') {
		$vivah_royal_wedding_custom_style .=' .box-content h1{';
			$vivah_royal_wedding_custom_style .=' border-color:'.esc_attr($vivah_royal_wedding_sliderbdr_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_sliderbg_color = get_theme_mod('vivah_royal_wedding_sliderbg_color');

	if ( $vivah_royal_wedding_sliderbg_color != '') {
		$vivah_royal_wedding_custom_style .=' .box-contentbg {';
			$vivah_royal_wedding_custom_style .=' background-color:'.esc_attr($vivah_royal_wedding_sliderbg_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	//Service color
	$vivah_royal_wedding_servicebg_color = get_theme_mod('vivah_royal_wedding_servicebg_color');

	if ( $vivah_royal_wedding_servicebg_color != '') {
		$vivah_royal_wedding_custom_style .=' #bride-groom {';
			$vivah_royal_wedding_custom_style .=' background-color:'.esc_attr($vivah_royal_wedding_servicebg_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_brider_groom_section_title_font_size = get_theme_mod('vivah_royal_wedding_brider_groom_section_title_font_size');

	if( $vivah_royal_wedding_brider_groom_section_title_font_size != ''){
		$vivah_royal_wedding_custom_style .=' #bride-groom h2{';
			$vivah_royal_wedding_custom_style .=' font-size: '.esc_attr($vivah_royal_wedding_brider_groom_section_title_font_size).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_brider_groom_post_title_font_size = get_theme_mod('vivah_royal_wedding_brider_groom_post_title_font_size');

	if( $vivah_royal_wedding_brider_groom_post_title_font_size != ''){
		$vivah_royal_wedding_custom_style .=' #bride-groom .content h3 a{';
			$vivah_royal_wedding_custom_style .=' font-size: '.esc_attr($vivah_royal_wedding_brider_groom_post_title_font_size).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_brider_groom_section_text_font_size = get_theme_mod('vivah_royal_wedding_brider_groom_section_text_font_size');

	if( $vivah_royal_wedding_brider_groom_section_text_font_size != ''){
		$vivah_royal_wedding_custom_style .=' #bride-groom .content p{';
			$vivah_royal_wedding_custom_style .=' font-size: '.esc_attr($vivah_royal_wedding_brider_groom_section_text_font_size).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_img_hight = get_theme_mod('vivah_royal_wedding_img_hight');

	if( $vivah_royal_wedding_img_hight != ''){
		$vivah_royal_wedding_custom_style .=' .service-image img {';
			$vivah_royal_wedding_custom_style .=' width: '.esc_attr($vivah_royal_wedding_img_hight).'px; height: '.esc_attr($vivah_royal_wedding_img_hight).'px;';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_service_color = get_theme_mod('vivah_royal_wedding_service_color');

	if ( $vivah_royal_wedding_service_color != '') {
		$vivah_royal_wedding_custom_style .=' #bride-groom h2 {';
			$vivah_royal_wedding_custom_style .=' color:'.esc_attr($vivah_royal_wedding_service_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_service_imgbdr_color = get_theme_mod('vivah_royal_wedding_service_imgbdr_color');

	if ( $vivah_royal_wedding_service_imgbdr_color != '') {
		$vivah_royal_wedding_custom_style .=' .service-image img{';
			$vivah_royal_wedding_custom_style .=' border-color:'.esc_attr($vivah_royal_wedding_service_imgbdr_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_servicetitle_color = get_theme_mod('vivah_royal_wedding_servicetitle_color');

	if ( $vivah_royal_wedding_servicetitle_color != '') {
		$vivah_royal_wedding_custom_style .=' #bride-groom .content h3 a {';
			$vivah_royal_wedding_custom_style .=' color:'.esc_attr($vivah_royal_wedding_servicetitle_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_servicetext_color = get_theme_mod('vivah_royal_wedding_servicetext_color');

	if ( $vivah_royal_wedding_servicetext_color != '') {
		$vivah_royal_wedding_custom_style .=' #bride-groom .content p {';
			$vivah_royal_wedding_custom_style .=' color:'.esc_attr($vivah_royal_wedding_servicetext_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	//copyright color
	$vivah_royal_wedding_copyright_color = get_theme_mod('vivah_royal_wedding_copyright_color');

	if ( $vivah_royal_wedding_copyright_color != '') {
		$vivah_royal_wedding_custom_style .=' .site-info p a {';
			$vivah_royal_wedding_custom_style .=' color:'.esc_attr($vivah_royal_wedding_copyright_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}

	$vivah_royal_wedding_copyrightbg_color = get_theme_mod('vivah_royal_wedding_copyrightbg_color');

	if ( $vivah_royal_wedding_copyrightbg_color != '') {
		$vivah_royal_wedding_custom_style .=' .copyright {';
			$vivah_royal_wedding_custom_style .=' background-color:'.esc_attr($vivah_royal_wedding_copyrightbg_color).';';
		$vivah_royal_wedding_custom_style .=' }';
	}