.site {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	width: 100%;
	padding: 0;
	position: relative;
}

.main-content {
	width: 100%;
}
.site-main {
	margin: 20px 0 0;
}


header {
	position: relative;
}
header .header {
	background: #ffffff;
	border-bottom: 8px solid #ce3f3f;
}


/** HEADER LOGO **/

header .header .site-title a {
	display: block;
	height: 100%;
	margin: 10px 0;
}
header .header .site-title a .logo {
	display: block;
	width: 270px;
	height: 25px;
	margin: 0 auto;
	background: url('/wp-content/themes/megaconnard2/images/logo_static.png');
	background-size: 270px 25px;
}
header .header .site-title a:hover .logo {
	background: url('/wp-content/themes/megaconnard2/images/logo_anim.gif');
	background-size: 270px 25px;
}


/** HEADER NAVIGATION **/

.search-toggle,
.primary-navigation {
	z-index: 2;
	width: 100%;
	height: auto;
	position: relative;
}

header .button.resp {
	position: relative;
	display: inline-block;
	overflow: hidden;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	width: 50px;
	height: 50px;

	background: #4e4e4e;
	border-radius: 0;
	cursor: pointer;
	text-align: center;
	line-height: 50px;
}
header .button.resp:before {
	font-size: 30px;
}

header .search-toggle .button.resp {
	float: right;
}

header .search-toggle.active .button.resp,
header .primary-navigation.toggled-on .button.resp {
	background: #ce3f3f;
}

header .search-toggle .search-box-wrapper,
header .primary-navigation .categories {
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
}
header .search-toggle.active .search-box-wrapper,
header .primary-navigation.toggled-on .categories {
	background: #ce3f3f;
	display: block;
}

header .primary-navigation .path > .handdrawn path {
	fill: #ce3f3f;
	stroke: #ce3f3f;
	stroke-width: '3px';
}

header .primary-navigation .categories li a > .handdrawn path {
	fill: #ce3f3f;
	stroke: #ffffff;
	stroke-width: 3px;
	transition: fill .3s;
}
header .primary-navigation .categories li a:hover > .handdrawn path,
header .primary-navigation .categories li a.active > .handdrawn path {
	fill: #ffffff;
}

header .primary-navigation .path {
	position: relative;
	width: 100%;
	min-height: 50px;
	padding: 0 10px 5px;
	margin: -5px 0 0 -10px;
}
header .primary-navigation .categories li {
	display: inline-block;
	margin: 10px 5px 5px;
}
header .primary-navigation .categories li ul {
	display: none;
}
header .primary-navigation .categories li a {
	font-family: 'SpecialElite';
	display: inline-block;
	height: 35px;
	line-height: 35px;
	padding: 0 15px;
	color: #ffffff;
	text-transform: lowercase;
	transition: color .3s;
}
header .primary-navigation .categories li a:hover,
header .primary-navigation .categories li a.active {
	color: #ce3f3f;
}


/** HEADER SEARCH **/

header .search-toggle .search-box-wrapper {
	max-width: 320px;
	height: 60px;
	padding: 5px 10px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
}
header .search-toggle .search-box {
	position: relative;
	height: 50px;
	width: 300px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	background-color: transparent;
}
header .search-toggle .search-box > .handdrawn path {
	stroke: #4e4e4e;
	stroke-width: 3;
}
header .search-toggle .search-box:before {
	content: '\f002';
	font-family: 'FontAwesome';
	font-size: 30px;
	position: absolute;
	display: block;
	top: 3px;
	left: 10px;
	width: 44px;
	height: 44px;
	color: #4e4e4e;
	line-height: 44px;
	text-align: center;
}
header .search-toggle .search-box-wrapper form {
	height: 100%;
	width: 100%;
	padding: 5px 5px 5px 60px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
}
header .search-toggle .search-box-wrapper .search-submit {
	display: none;
}
header .search-toggle .search-box-wrapper .search-field {
	border: 0;
	height: 100%;
	width: 100%;
	background: none;
	padding: 0 10px 0 0;
}


/** HEADER LAST ARTICLE **/

header .last-article {
	width: 100%;
	margin-bottom: 5px;
}

header .last-article .title,
header .last-article .cat {
	display: inline-block;
	vertical-align: middle;
	color: #ffffff;
	font-family: 'SpecialElite';
	padding: 0 15px;
	width: auto;
	height: 35px;
	line-height: 35px;
	margin: 0 5px;
}
header .last-article .title > .handdrawn path {
	fill: #4e4e4e;
	stroke: #4e4e4e;
	stroke-width: 3;
}
header .last-article .cat > .handdrawn path {
	fill: #ce3f3f;
	stroke: #ce3f3f;
	stroke-width: 3;
	transition: fill .3s, stroke .3s;
}
header .last-article .cat:hover > .handdrawn path {
	fill: #00778d;
	stroke: #00778d;
}
header .last-article .cat:nth-of-type(2) {
	height: 30px;
	line-height: 30px;
	opacity: .8;
}
header p.archive-title {
	display: inline-block;
	vertical-align: middle;
	margin-left: 20px;
	line-height: 35px;
}

header .last-article .social-links {
	display: inline-block;
	float: right;
	margin: 0;
	padding: 0;
}
header .last-article .social-links li {
	display: inline-block;
}
header .last-article .social-links li a {
	text-align: center;
	color: #ffffff;
	display: block;
	width: 35px;
	height: 35px;
	line-height: 35px;
}
header .last-article .social-links li a > .handdrawn path {
	fill: #ce3f3f;
	stroke: #ce3f3f;
	stroke-width: 3;
	transition: fill .3s, stroke .3s;
}
header .last-article .social-links li a:hover > .handdrawn path {
	fill: #00778d;
	stroke: #00778d;
}


/** MEDIA QUERIES **/

@media screen and (min-width: 830px) {

	header .header {
		height: 100px;
		border: none;
	}

	header .header .site-title a {
		display: inline-block;
		margin: 37px 0 0 20px;
	}
	header .header .site-title a .logo {
		width: 270px;
		height: 25px;
		background-size: 270px 25px;
	}
	header .header .site-title a:hover .logo {
		background-size: 270px 25px;
	}

	header .search-toggle {
		position: absolute;
		display: block;
		right: 20px;
		top: 25px;
		width: 300px;
		height: 50px;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
	}
	header .search-toggle .button.resp,
	header .primary-navigation .button.resp {
		display: none;
	}
	header .search-toggle .search-box-wrapper,
	header .primary-navigation .categories {
		display: block;
		position: relative;
	}
	header .primary-navigation .path {
		width: 100%;
	}
	header .primary-navigation .categories {
		width: 2000px;
	}
	header .search-toggle.active .search-box-wrapper,
	header .primary-navigation.toggled-on .categories {
		background: inherit;
	}
	header .search-toggle .search-box-wrapper {
		position: relative;
		width: 300px;
		height: 50px;
		padding: 0;
	}
}

@media screen and (min-width: 920px) {
	header .header .site-title a {
		display: inline-block;
		margin: 35px 0 0 45px;
	}
	header .header .site-title a .logo {
		width: 324px;
		height: 30px;
		background-size: 324px 30px;
	}
	header .header .site-title a:hover .logo {
		background-size: 324px 30px;
	}
}

@media screen and (min-width: 1020px) {
	header .header .site-title a {
		display: inline-block;
		margin: 30px 0 0 45px;
	}
	header .header .site-title a .logo {
		width: 432px;
		height: 40px;
		background-size: 432px 40px;
	}
	header .header .site-title a:hover .logo {
		background-size: 432px 40px;
	}
}

@media screen and (min-width: 1150px) {
	header .header .site-title a {
		display: inline-block;
		margin: 25px 0 0 45px;
	}
	header .header .site-title a .logo {
		width: 541px;
		height: 51px;
		background-size: 541px 51px;
	}
	header .header .site-title a:hover .logo {
		background-size: 541px 51px;
	}
}

@media screen and (min-width: 830px) and (max-width: 1020px) {
	header .last-article .title {
		margin-left: 20px;
	}
	header .last-article .social-links {
		margin-right: 20px;
	}
}

@media screen and (max-width: 830px) {
	.site {
		float: left;
		width: 100%;
		overflow: hidden;
	}
	header {
		display: inline-block;
		float: left;
		width: 100%;
	}

	header .header {
		height: 50px;
		display: inline-block;
		float: left;
		width: 100%;
		position: relative;
		/*z-index: 10;*/
	}

	.site-main {
		display: inline-block;
		float: left;
		margin: 0;
		padding: 0;
		width: 100%;
	}

	header .last-article {
		display: none;
	}

	header .search-toggle, .primary-navigation {
		position: absolute;
		display: block;
		top: 0;
		left: 0;
	}

	header .search-toggle .button {
		cursor: pointer;
		z-index: 30;
	}
	header .search-toggle .button > .handdrawn path {
		fill: transparent;
		stroke: transparent;
	}
	header .search-toggle .search-box-wrapper {
		top: 50px;
	}
	header .search-toggle .search-box-wrapper .search-field {
		background: #ffffff;
	}

	header .primary-navigation {
		width: calc(100% - 50px);
	}
	header .primary-navigation .path {
		display: none;
		margin: 0;
		background: #ce3f3f;
		overflow: auto;
		height: auto;
	}
	header .primary-navigation .path ul {
		position: relative;
	}
	header .primary-navigation .path li {
		margin: 5px;
		display: inline-block;
		float: left;
	}
	header .primary-navigation .path li a {
		background: #ffffff;
		display: inline-block;
		float: left;
		color: #ce3f3f;
	}

	header .primary-navigation.toggled-on .path {
		display: block;
	}

	header .header .site-title {
		text-align: center;
	}
	header .header .site-title a {
		position: relative;
		z-index: 100;
		display: inline-block;
	}

	footer.site-footer {
		display: inline-block;
		float: left;
		width: 100%;
	}

	li.relative-post {
		width: 100%!important;
		margin: 0;
	}
	.relative-post-title {
		font-size: 12px;
	}
}

@media screen and (max-width: 400px) {
	header .header .site-title a {
		margin-top: 15px;
	}
	header .header .site-title a .logo {
		background-size: 200px 20px;
		width: 200px;
		height: 20px;
	}header .header .site-title a:hover .logo {
		background-size: 200px 20px;
		width: 200px;
		height: 20px;
	}
}


