/*
Theme Name: "Bloggy" Theme by REwebsitePro
Theme URI: http://www.rewebsitepro.com
Author: REwebsitePro / David Benavides
Author URI: http://www.rewebsitepro.com
Description: A Real Estate Theme by David Benavides.
Version: 1.0
License: All Rights Reserved
Text Domain: demo_textdomain
*/

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Alex+Brush);
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css);

#debug {
	position: fixed;
	top: 100px;
	right: 10px;
	z-index: 1000;
	color: #333;
	text-shadow: 0 0 2px #000;
	display: none;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	margin: 0;
	padding: 0;
	font-family: 'Open Sans';
	font-size: 16px;
	color: #333;
}

.page-margin {
	position: relative;
	width: 1170px;
	max-width: 100%;
	margin: auto;
}

#page-no-footer {
	position: relative;
}

/* header */

#header {
	position: relative;
	top: 0px;
	left: 0px;
	height: auto;
	width: 100%;
	max-width: 100%;
	padding: 10px 0;
	z-index: 2;
	background: #fff;
}
.home #header {
	border-bottom: none;
}
#header .page-margin {
	min-height: 65px;
}
#header .table {
	width: 100%;
}
#header .cell {
	vertical-align: middle;	
}
.logolink {
	height: auto;
	max-height: 100%;
	padding: 0 ;
	display: block;
	float: left;
}
.logotextlink {
	font-size: 50px;
	line-height: 100%;
	font-family: 'Alex Brush';
	color: #000;
}
img.logo { 
	display: inline-block;
	position: relative;
	height: auto;
	max-height: 100px;
	width: auto;
	z-index: 1;
}

#rewp_site_search_toggle {
	cursor: pointer;
}
#rewp_site_search_div {
	clear: both;
	text-align: center;
	background: #fff;
	padding: 5px;	
	display: none;
}
#rewp_site_search_div input[type="text"]{
	padding: 5px;
	font-size: 14px;
	width: 320px;
	max-width: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: solid 1px #ccc;
	background: #fff;
	vertical-align: middle;
}
#rewp_site_search_div input[type="submit"]{
	padding: 5px;
	font-size: 14px;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: none;
	background: #11afb8;
	color: #fff;
	vertical-align: middle;
}

/* home page */

.flex_item {
	position: relative;
	float: left;
	width: calc( 25% - 20px );
	height: 210px;
	margin: 10px;
	padding: 0px;
	background-color: #f9f9f9;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
	cursor: pointer;
}
.flex_item.float_left {
	float: left;	
}
.flex_item.float_right {
	float: right;	
}
.flex_item.tall2 {
	height: calc( 460px - 40px );	
}
.flex_item.wide2 {
	width: calc( 50% - 20px );	
}
.flex_item.wide3 {
	width: calc( 75% - 20px );	
}

/* regular title */

.flex_item .titlebg {
	position: absolute;
	top: auto;
	bottom: 10px;
	left: 10px;
	right: 10px;
	padding: 10px 10px 10px 10px;
	text-align: center;
	background: rgb(40, 146, 208);
	z-index: 1; 
	border-radius: 2px;
	font-size: 22px;
	opacity: .95;
	-webkit-transition: all ease-out 200ms;
	transition: all ease-out 200ms;
}
.flex_item .titlebg .title {
	display: inline-block;
	color: #fff;
}

.flex_item:hover .titlebg { /* change to full */
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	opacity: 1;
}
.flex_item:hover .titlebg .title { /* change to full */
	display: block;
	position: absolute;
	top: 50%;
	left: 0px;
	width: 100%;
	transform: translate( 0%, -50%)
}

/* full title */

.flex_item .titlebg.full {
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	padding: 10px;
	opacity: 1;
}

.flex_item .titlebg.full .title {
	display: block;
	position: absolute;
	top: 50%;
	left: 0px;
	width: 100%;
	transform: translate( 0%, -50%)
}

.flex_item:hover .titlebg.full { /* switch to regular */
	top: auto;
	bottom: 10px;
	left: 10px;
	right: 10px;
	padding: 10px 10px 10px 10px;
	opacity: 0.95;
}
.flex_item:hover .titlebg.full .title { /* switch to regular */
	position: relative;
	top: auto;
	left: auto;
	transform: none;
}

/* icon bg */

.flex_item .iconbg {
	content: '';
	position: absolute;
	height: 20px;
	width: 55px;
	top: -20px;
	left: 50%;
	margin-left: -25px;
	overflow: hidden;
}
.flex_item .iconbg:before {
	display: block;
	position: absolute;
	content: '';
	width: 55px;
	height: 55px;
	background: rgb(40, 146, 208);
	border-radius: 50%;
}

/* home tile image backgrounds */

.flex_item:nth-child(1) { /* about me */
	background-image: url(http://server.rewebsite.pro/justknock/images/home-tile-about.jpg);
	background-position: center;
	background-size: contain;
}
.flex_item:nth-child(3) { /* find your dream home */
	background-image: url(http://server.rewebsite.pro/justknock/images/home-tile-property-search.jpg);
}
.flex_item:nth-child(2) { /* neighborhoods */
	background-image: url(http://server.rewebsite.pro/justknock/images/home-tile-neighborhoods.jpg);
}
.flex_item:nth-child(4) { /* moving checklist (tall) */
	background-image: url(http://server.rewebsite.pro/justknock/images/home-tile-moving-dashboard.png);
}
.flex_item:nth-child(9) { /* top stories */
	background-image: url(http://server.rewebsite.pro/justknock/images/home-tile-market-news.jpg);
}
.flex_item:nth-child(15) { /* moving quotes */
	background-image: url(http://server.rewebsite.pro/justknock/images/home-tile-personalized-moving-quote.png);
}


/* content */

#content {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 0;
	z-index: 1;
}
#content .page-margin {
	background: rgba( 255, 255, 255, 0.9 );	
	padding: 10px 10px;
	border-radius: 2px;
}
.home #content .page-margin {
	padding: 10px 10px;
}

/* search page */
.ds_search_results_row {
	display: block;
	clear: both;	
	padding-bottom: 45px;
}
.ds_search_result_community_img {
	width: 320px;
	float: left;
	margin: 0 10px 10px 0;	
}

/* responsive grid */

/*
.grid:after {
	content: "";
	display: table;
	clear: both;
}
.grid-cell {
	float: left;
	width: calc(33.3% - 13.33px);
	margin: 0 10px 20px 10px;
}
.grid-cell:nth-child(3n+1){
	margin-left: 0;
}
.grid-cell:nth-child(3n) {
	margin-right: 0;
}
*/

/* sidebar */

.sidebar_widget {
	padding: 10px;
	margin: 10px 0;
	background: #f9f9f9;	
}


/* fix for Dizzle cells */

.service_cont {
	overflow-wrap: break-word;
	word-wrap: break-word;
	-ms-word-break: break-all;
	word-break: break-all;
	word-break: break-word;
	overflow-x: hidden;
}


/* footer */

#footer {
	position: relative;
	width: 100%;
	max-width: 100%;
}
#footer .page-margin {
	padding: 10px;
	background: #fff;	
}
.home #footer .page-margin {
	padding: 10px 20px;
	background: #fff;	
}

#ds_footer_table {
	width: 100%;
}
#ds_footer_table .cell {
	vertical-align: top;	
}
#ds_footer_table > .cell:nth-child(1){
	width: 75%;	
}
#ds_sm_footer_icons {
	width: 100%;	
	margin: 10px 0;
}
#ds_sm_footer_icons .cell {
	padding: 5px 15px 5px 0;
}
#ds_sm_footer_icons i {
	cursor: pointer;
	font-size: 20px;
}

#lower_footer {
	padding-bottom: 50px;
	font-size: 12px;
	font-weight: bold;
	color: #333;
	text-shadow: 0 0 5px #fff;	
}
#rewp_logo {
	float: right;
	margin: 0 0 10px 10px;
}

/* theme mods */

#home_hero {
	position: relative;
	height: 60vh;
	background-image: url(images/home-hero.jpg);	
	background-size: cover;
	background-position: right center;
	background-repeat: no-repeat;
}

/* idx search bar */

.idx_search_bar {
	position: absolute;
	left: 50%;
	margin-left: -400px;
	bottom: 15%;
	background: rgba(255,255,255,0.8);	
}
@media screen and (max-width: 800px){	
	.idx_search_bar {
		position: relative;
		left: auto;
		margin-left: 0;
		bottom: auto;
	}
}

@media screen and (max-width: 1000px){	
	#header .logolink {
		padding: 10px;
	}
	#lower_footer {
		padding: 5px 10px 50px 10px;
	}	
}
@media screen and (max-width: 830px){
	
	#rewp_top_links {
		clear: both;	
	}
		
}
@media screen and (max-width: 600px){	
	
	/* flex */
	
	.flex_item .titlebg {
		font-size: 16px;	
		padding: 5px;
	}
	
	/* footer */
	
	#ds_footer_table, #ds_footer_table .row, #ds_footer_table .cell {
		display: block;
	}
	#ds_footer_table .cell {
		width: 100%;	
		padding: 0 0 20px 0;
	}
	#ds_footer_table .cell:nth-child(2){
		text-align: center;
	}
	
	/* sm footer icons */
	
	#ds_sm_footer_icons, #ds_sm_footer_icons .row {
		display: block;
	}
	#ds_sm_footer_icons .cell {
		padding: 15px;
		display: inline-block;
		width: auto;
	}
	#ds_footer_table .cell:nth-child(1){
		width: auto;
	}

	#lower_footer {
		padding: 5px 10px 50px 10px;
		text-align: center;
	}	
	#lower_footer #rewp_logo {
		float: none;
		text-align: center;
		clear: both;
	}
	
	/* grid */
	/*
	.grid-cell, .grid-cell:nth-child(3n+1), .grid-cell:nth-child(3n) {
		float: left;
		width: calc(50% - 10px);
		margin: 0 10px 20px 10px;
	}
	
	.grid-cell:nth-child(2n+1){
		margin-left: 0;
	}
	.grid-cell:nth-child(2n) {
		margin-right: 0;
	}
	*/
}
@media screen and (max-width: 568px){	
	
	/* flex */
	
	.flex_item .title {
		font-size: 14px;	
		line-height: normal;
	}

}
@media screen and (max-width: 480px){	

	.flex_item.square {
		width: calc( 50% - 20px );
	}
	.flex_item.tall2 {
		width: calc( 50% - 20px );
	}
	.flex_item.wide2 {
		width: calc( 100% - 20px );	
	}
	.flex_item.wide3 {
		width: calc( 100% - 20px );	
	}
	
	
}
@media screen and (max-width: 320px){	
	
	#rewp_site_search_div input[type="submit"]{
		margin: 10px 0;
	}

}

/* max width responsive youtube embeds */

.embed-container { 
	position: relative; 
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	height: auto;
} 
 
.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}