#bg  {
	padding-top: 1px;
	margin-top: -1px;
	width: 100%;
	height: auto !important;
	min-height: 100%;
	position: relative;
	font-size: .8em;
}

#header_wrap {
	float: left;
	width: 33%;
}

#header_border {
	padding: 10px;
	margin: 0 0 0 10px;
	border-style: dotted;
	border-width: 1px;
	border-color: #ef4345;
	border-radius: 12px;
}

#header {
	width: 100%;
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	height: 400px;
	margin: 0 auto;
}

#header_content {
	width: 100%;
	display: inline-block;
	text-align: center;
}

#header_content img {
	max-width: 100%;
}


/* CONTENT */

#content_wrap {
	margin: 0 0 0 33%;
}

#content_border {
	margin: 10px;
	padding: 10px;
	border-style: dotted;
	border-width: 1px;
	border-color: #ef4345;
	border-radius: 12px;
}

#content {
	padding: 10px;
	height: auto;
	background: #fff;
	border-radius: 10px;
}

@media all and (max-width: 1050px) {
	#bg { position: relative; }
	#header_wrap { float: none; width: auto; }
	#header_border { margin: 0 10px; }
	#header { height: auto; }
	#content_wrap { margin: 0; }
}

@media only screen and (max-width : 480px) {
	/* Smartphone view: 3 tile */
}
@media only screen and (max-width : 650px) and (min-width : 481px) {
	/* Tablet view: 4 tiles */
}
@media only screen and (max-width : 1050px) and (min-width : 651px) {
	/* Small desktop / ipad view: 5 tiles */
}