/*
Theme Name: MK Kitchen
Theme URI: http://kitchen.bmat.pl
Author: Mateusz Brakoniecki
Author URI: http://bmat.pl
Description: Theme dedicated for bmat kitchen blog
Version: 1.0
License: commercial
Text Domain: bmatkitchen
*/

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Lato', sans-serif;
}

a {
	text-decoration: none;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=search] {
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	
	border-radius: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
}

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
	color: #666;
	opacity: 1;
}

:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
	color: #666;
	opacity: 1;
}

::-moz-placeholder { /* Mozilla Firefox 19+ */
	color: #666;
	opacity: 1;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
	color: #666;
	opacity: 1;
}

:placeholder-shown { /* Standard (https://drafts.csswg.org/selectors-4/#placeholder) */
	color: #666;
	opacity: 1;
}

.clear {
	clear: both;
}

#container {
	position: relative;
	background: #eeefe9;
	width: 100%;
	height: 100%;
	border-top: 3px solid #222222;
}

.pagewidth {
	width: 90%;
	max-width: 1140px;
	margin: auto;
}

header h1 a {
	color: #d6533c;
}

section.content {
	background: #f8f8f8;
}

h1.pagetitle {
	font-size: 32px;
	font-weight: 300;
}

#home_heading {
	background: url('images/food_bg.jpg');
	background-size: cover;
	background-position: center center;
	height: 500px;
	padding-top: 250px;
}

#home_heading .search_form {
	position: relative;
	display: table;
	margin: auto;
	text-align: center;
}

#home_heading .search_form .input {
	background: rgba(255, 255, 255, 0.5);
	border: none;
	color: #666;
	width: 100%;
	height: 40px;
	padding: 10px 40px 10px 20px;
	font-size: 18px;
	font-weight: 100;
	
	-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	-o-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#home_heading .search_form .submit {
	position: absolute;
	background: none;
	border: none;
	color: #d6533c;
	width: 30px;
	height: 30px;
	right: 10px;
	top: 5px;
	font-size: 18px;
}

#home_heading .random {
	display: table;
	background: #d6533c;
	color: #fff;
	margin: 20px auto;
	padding: 10px 25px;
	
	-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	-o-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#home_heading .random:hover {
	background: #da6550;
}

#home_heading .random i {
	padding-right: 5px;
}

#home_content {
	padding: 50px 2%;
}

#home_content article {
	width: 24%;
	margin-left: 1.33%;
	padding-bottom: 20px;
	float: left;
}

#home_content article:nth-of-type(4n-3) {
	margin-left: 0;
	clear: both;
}

#home_content article .image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

#home_content article .image img {
	position: absolute;
	left: -999px;
	right: -999px;
	margin: auto;
	width: auto;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
}

#home_content article h3 {
	font-size: 18px;
	font-weight: 400;
	text-align: center;
}

.single #home_heading,
.page #home_heading,
.search #home_heading {
	height: 200px;
	padding-top: 90px;
}

.single #content article,
.page #content article {
	padding: 50px 20px;
}

.single #content article .image,
.page #content article .image {
	position: relative;
	height: 500px;
	overflow: hidden;
}

.single #content article .image img,
.page #content article .image img {
	position: absolute;
	top: -999px;
	bottom: -999px;
	left: -999px;
	right: -999px;
	max-width: 150%;
	min-width: 100%;
	min-height: 100%;
	height: auto;
	margin: auto;
}

.single #content article h1,
.page #content article h1 {
	margin-bottom: 10px;
	font-size: 32px;
	font-weight: 300;
}

.single #content article .categories,
.page #content article .categories {
	margin-bottom: 50px;
}

.single #content article .categories .type,
.single #content article .categories .cost,
.single #content article .categories .time,
.page #content article .categories .type,
.page #content article .categories .cost,
.page #content article .categories .time {
	color: #d6533c;
	font-size: 14px;
	margin: 0 15px 0 5px;
	float: left;
}

.single #content article i,
.page #content article i {
	color: #000;
	padding-right: 5px;
}

.single #content article .tags,
.page #content article .tags {
	margin: 50px 5px;
}

.single #content article .tags a,
.page #content article .tags a {
	color: #d6533c;
}

.pagination {
	text-align: center;
}

.pagination .page-numbers {
	display: inline-block;
	background: #d6533c;
	color: #fff;
	height: 40px;
	line-height: 40px;
	padding: 0 15px;
}

.pagination .page-numbers:hover {
	background: #da6550;
}

.pagination .page-numbers.current {
	background: #222222;
}

@media (max-width: 1000px) {
	#home_heading {
		height: 300px;
		padding-top: 150px;
	}
	
	#home_content article {
		width: 49%;
	}
	
	#home_content article:nth-of-type(2n-1) {
		margin-left: 0;
		clear: both;
	}
}

@media (max-width: 480px) {
	#home_heading {
		height: 250px;
		padding-top: 100px;
	}
	
	#home_content {
		padding: 50px 5%;
	}
	
	#home_content article {
		width: 100%;
		margin-left: 0;
		float: none;
	}
	
	h1.pagetitle,
	.single #content article h1,
	.page #content article h1 {
		text-align: center;
	}
	
	.single #content article .image,
	.page #content article .image {
		height: 300px;
	}
	
	.single #content article .categories,
	.page #content article .categories {
		margin: 30px 0;
	}
	
	.single #content article .categories .type,
	.single #content article .categories .cost,
	.single #content article .categories .time,
	.page #content article .categories .type,
	.page #content article .categories .cost,
	.page #content article .categories .time {
		display: table;
		margin: 10px auto;
		float: none;
	}
}