/*css rule below affects everything, please be specific on the aligning rule*/
/*.avia_textblock  {text-align:center;}*/

/*
to appease the commented rule above, 
below applies to specific pages I saw where the rule is/should apply, 
kindly add if I missed something, thank you - RL */
.entry-content .av_one_third.first .avia_textblock,
.page-id-37 .av_one_third.first .avia_textblock  {text-align:center;}

.main_menu ul.menu li.buynow a {color:#009f3c !important}

.av-special-heading h4 {width:100%; text-align:center;}
.av-special-heading h3 {height:40px;}
.iconbox_top .iconbox_content {
 min-height:215px;

}
.avia_textblock.social-block,
.fb-like-container{position: relative; display: block; width: 100%;}
.avia_textblock .fb_iframe_widget{width: 95px!important; top: 0;overflow: hidden; right: 0; height: 22px;margin-right: 0;display: block;}
.entry-content h4 {color: #4786d3;}

#socket .copyright{max-width: 600px;}
.iconbox .iconbox_content .iconbox_content_title {
    border: medium none;
    clear: none;
    color: #4786D3;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0 0 16px;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-transform: uppercase;
}

.av-special-heading h4 {
	color:#4786D3;
	
}

#gform_wrapper_2{max-width: 480px;}
#gform_wrapper_2 form div.validation_error{border: 0!important;padding: 0!important; font-weight: 400; font-size: 1em; font-style: italic;}
#gform_wrapper_2 form li{width: 99%!important; max-width: 100%;}
#gform_wrapper_2 li input:not([type=submit]),
#gform_wrapper_2 li textarea{width: 94%!important;}
#gform_wrapper_2.gform_wrapper form li.gfield.gfield_error, 
#gform_wrapper_2.gform_wrapper form li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning,
#gform_wrapper_2.gform_wrapper form li.gfield.gfield_error.gfield_contains_required{padding-left: 0!important; border: 0!important; background: transparent!important;}

#gform_1 .input-text, #gform_1 input[type="text"], #gform_1 input[type="input"], #gform_1 input[type="password"], #gform_1 input[type="email"], #top input[type="number"], #gform_1 input[type="url"], #gform_1 input[type="tel"], #gform_1 input[type="search"], #gform_1 textarea, #gform_1 select {
	margin-bottom:0 !important;
}

#gform_1 span{
	margin-bottom:20px;
}

#footer .widgettitle {
	color:#4786d3;
	text-align:center;
	width:100%;
	font-size:17px;
	margin-top:0;
}

#footer .textwidget h4{
	text-align:center;
	color:#4786d3;

}

#footer .textwidget p{
	text-align:center;
	margin:0.85em 0;
	color:#666666;
	
}

#scroll-top-link {display:none;} /*hide default*/


#scroll-top-link{ 
	background: url('../images/arrow_up.png') 0 0 no-repeat !important;
	border:none !important;
	color:#4786d3 !important; 
	right:10 !important;
	font-size: 0px !important; 
}

#footer.container_wrap_footer .widget { margin:0;}

.flex_column a.alignnone {overflow:hidden !important;} 

body.archive div.av_one_third a.slide-image,  body.page-id-28 div.av_one_third a.slide-image {height:142px; overflow:hidden;}

/* Have fun adding your style here :) - PS: At all times this file should contain a comment or a rule, otherwise opera might act buggy :( */

br.clear{width: 100%; display: inherit; clear: both;position: relative; margin-top: -1px; height: 1px;}
br.clear:after{content: "";}
@media only screen and (min-width: 1400px) {
	/*#rev_slider_1_1_wrapper,
	#rev_slider_1_1{max-height: 600px!important; height: 400px!important;}
	#rev_slider_1_1 .slotholder .slot{display: none;}*/
}
@media only screen and (min-width: 1600px) {
	/*#rev_slider_1_1_wrapper,
	#rev_slider_1_1{max-height: 600px!important; height: 530px!important;}
	#rev_slider_1_1 .slotholder .slot{display: none;}*/
}
.gform_wrapper ul li.gfield{float: none;}
#homepage-main-slider .container{width: 100%; max-width: 1600px;}
#homepage-main-slider .container .large_white_QStext{text-align: left;}
#layer_slider_1{width: 100%; display: none; max-width: 1600px;}
#header_meta{display: none !important;}
/* General Custom CSS */

.avia-slideshow-dots, .avia-slideshow-arrows a:before {
	display: none;
}

.single-post .avia-post-format-image img {
  max-height:250px;
  width:auto;
  display:inline;

}
.single-post .avia-post-format-image {text-align:center;}
.single-post .post-loop-1 .big-preview {padding:0; margin:0;}
.slp_result_table_tags{display: none;}
.slp_result_address{text-transform: uppercase;}
div.results_entry span.slp_result_hours,div.results_entry span.slp_result_country,div.results_entry span.slp_result_phone,div.results_entry span.slp_result_fax{display: none!important;}
div#sl_div div#address_search div.search_item{float: left; margin-right: 10px;}
#top input[type="text"]{padding: 9px 6px; }
.search_item{width: 370px;}
#addy_in_radius{float: left;}
#addy_in_address{width: auto;}
#radius_in_submit{padding-left: 0!important; float: right; margin-top: 22px!important;}
.page-id-37 .fb_iframe_widget{top: 0;}
.page-id-37 .toggler{color: #4786d3; font-weight: bold; font-size: 16px;}
.page-id-37 .toggler:hover{text-decoration: underline;}
.avia-content-slider .slide-image img{margin: 0 auto;}
body.page-id-28 div.av_one_third a.slide-image{border: none!important;}

#socket {height:50px; overflow:hidden;}
.sub_menu_socket #menu-footer-menu01 li a:hover {color:#fff !important; text-decoration:underline;}

.avia-gallery-1 img{border-style: none!important;}
.toggler span.toggle_icon{width: 15px!important;}
/*
Desktop Styles
================================================== */
/* Note: Add new css to the media query below that you want to only effect the desktop view of your site */
#top .main_color #addy_in_radius{}
#top .main_color select#radiusSelect{}
#top .main_color select#radiusSelect option{max-width: 220px;background: #ffeeb2;}
#top .main_color select{ -webkit-appearance:none;-moz-appearance:none;appearance: none;text-indent: 0.01px;text-overflow: '';}
#top .main_color select::-ms-expand {display: none;}


@media only screen and (max-width: 1024px) {
	.avia_textblock.social-block img,
	.fb-like-container img{margin-right: 5px!important;}
}
@media only screen and (max-width: 990px) {
	#header_main .container{width: 910px; max-width: 100%;}
}
@media only screen and (max-width: 840px) {
	.main_menu ul:first-child > li > a{font-size: 14px;}
}
@media only screen and (min-width: 768px) and (max-width: 1024px){

}
@media only screen and (max-width: 1024px) and  (min-width: 767px) {
	body.single .content .entry-content { padding-right:10px; padding-left:30px;}
	/*.dd_outer {left:16px !important;}*/
	.sidebar .inner_sidebar { margin-left:10px;}
	body.archive div.av_one_third a.slide-image, body.page-id-28 div.av_one_third a.slide-image {height:94px;}
}

@media only screen and (max-width: 768px) and  (min-width: 767px) {
	body.single .content .entry-content { padding-right:10px; padding-left:40px;}
	/*.dd_outer {left:25px !important;}*/
}

@media only screen and (max-width: 768px) {
	#top #wrap_all .avia-gallery-1 .avia-gallery-thumb a {width:47% !important;}
	/*.home .fb_iframe_widget{top: -20px;}*/
	.fb_iframe_widget{position: relative;}
}
@media only screen and (min-width: 768px) {
	/*#top #wrap_all .avia-gallery-1 .avia-gallery-thumb a {width:47% !important;}*/
	/*.home .fb_iframe_widget{top: -20px;}*/
	/*.fb_iframe_widget{position: relative;display: none!important;}*/
}

@media only screen and (max-width: 767px) {
  /* Add your Mobile Styles here */
  #scroll-top-link {display:block;}
  #scroll-top-link{ 
		background: url('../images/arrow_up.png') 0 0 no-repeat !important;
		border:none !important;
		color:#4786d3 !important; 
		right:10 !important;
		font-size: 0px !important; 
	}
	#header_main .main_menu{display: none;}
	
	#socket {height:100px;}
	.menu-footer-menu01-container {width:110%; margin:25px 0 0 0;}
	.post-entry-1078 .entry-content img.alignright { float:none;}
	.responsive #top .avia-content-slider-odd .slide-entry.first {width:auto;}
	.responsive #top .avia-content-slider-odd .slide-entry.first a.slide-image {width:250px; height:auto;}
	
}
@media only screen and (max-width: 640px) {
	.fb_iframe_widget{position: absolute;}
}
@media only screen and (max-width: 480px) { /*iphone landscape*/
  .dd_outer {display:none;}
  div#sl_div div#map{max-height: 200px;}
}
@media only screen and (max-width: 420px) {
  #socket .sub_menu_socket {width:335px;}
  .menu-footer-menu01-container {width:110%; margin:15px 0 0 -25px;}
}

@media only screen and (max-width: 375px) { /*ihnone portrait*/
	#socket .sub_menu_socket {width:auto;}
	#top #wrap_all .avia-gallery-1 .avia-gallery-thumb a {width:100% !important;}
	#top div .avia-builder-el-28.avia-gallery a:first-child img {left:10%;}
	body.archive div.av_one_third a.slide-image, body.page-id-28 div.av_one_third a.slide-image {height:92px;}
	
	#addy_in_address > input, div#sl_div div#address_search div.search_item{
		width:100% !important;
	}
	#addy_in_radius > select{
		width:90% !important;
	}
	div#sl_div div#address_search label{
		text-align:left;
	}
	.home .fb_iframe_widget{
		top: 0 !important;
	}
	div.results_row_right_column{
		width: 50% !important ;
	}
	div#sl_div div#map{
		width:100% !important;
	}
	
	#scroll-top-link{ 
		background: url('../images/arrow_up.png') 0 0 no-repeat !important;
		border:none !important;
		color:#4786d3 !important; 
		right:10 !important;
		font-size: 0px !important; 
	}
}
@media only screen and (max-width: 320px) {
	#gform_wrapper_2 form li{width: 99%!important; max-width: 100%;}
	#gform_wrapper_2 li input:not([type=submit]),
	#gform_fields_2 li#field_2_4 input, 
	#gform_fields_2 li#field_2_2 input, 
	#gform_fields_2 li, #gform_fields_2 li input, 
	.gform_wrapper .ginput_complex .ginput_left, 
	.gform_wrapper .ginput_complex .ginput_right
	#gform_wrapper_2 li textarea{width: 94%!important;}
}
@media only screen and (max-width: 360px) {
	.fb_iframe_widget{position: relative;}
}

@media only screen and (max-width: 300px) {
  #socket .sub_menu_socket {display:none;}
}