*  {
	margin: 0;
	padding: 0;
}

html, body {
	min-height: 100%;
}

body {
	max-width: 1000px;
	border-left: 1px solid #eee;
	border-right: 1px solid #eee;
	margin: 0px auto;
	box-sizing: border-box;
}

a:hover , input[type="submit"] {
	cursor: pointer;
}

header nav {
	width: 70%;
}

header {
	border-bottom: 1px solid #eee;
	height: 40px;
}

header:after, .content:after {
	content: '';
	display: table;
	clear: both;
}

.menu {
	width: 100%;
	display: table;
	float: left;
	list-style: none;
}

.menu li {
	display: table-cell;
	text-align: center;
}

.menu li a {
	display: block;
	padding: 10px 0px;
	background: #eee;
	text-decoration: none;
	color: #aaa;
	transition: 0.5s ease-in-out;
}

.menu li a:hover {
	background: #fff;
	color: #000;
}

.search input {
	outline: none;
}

.search {
	width: 30%;
	height: 100%;
	float: right;
	position: relative;
	overflow: hidden;
}

.stext {
	text-align: center;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	background: #eee;
	border: none;
	border-left: 1px solid #aaa;
	transition: 1s ease-in-out;
}

.stext:focus {
	background: #fff;
	padding: 0px 80px 0px 10px;
	text-align: left;
	border-left: 1px solid #eee;
}

.ss {
	width: 70px;
	height: 100%;
	border: none;
	border-left: 1px solid #eee;
	position: absolute;
	background: #eee;
	top: 0px;
	right: -70px;
	transition: 1s ease-in-out;
}

.stext:focus ~ .ss {
	right: 0px;
}

.content {
	padding: 10px;
	box-sizing: border-box;
}


.num li {
	margin-left: 16px;
}

.num p {
	padding-left: 20px;
}

.porodi {
	text-align: center;
	list-style: none;
}

.porodi li {
	width: 32%;
	margin-right: 2%;
	margin-bottom: 1%;
	display: inline-block;
	position: relative;
}

.porodi li:nth-child(3n), .porodi li:last-child {
	margin: 0;
}

.porodi li img {
	width: 314px;
	height: 314px;
}

.porodi li:hover > .more {
	opacity: 1;
}

.more {
	opacity: 0;
	z-index: 1;
	transition: 0.5s ease-in-out;
}

.more *{
	display: block;
	width: 100%;
}

.more  h3, .more a{
	position: absolute;
}

.more h3 {
	top: 0px;
	padding: 10px 0px;
	text-align: center;
	color: #fff;
	background: rgba(0,0,0,0.4);
}

.more a {
	padding: 10px 0px;
	background: rgba(0,0,0,0.4);
	bottom: 4px;
	text-decoration: underline;
	color: #fff;
	text-align: center;
}

.more a:hover {
	text-decoration: none;
}

.img {
	float: left;
	margin-right: 20px;
	list-style: none;
}

.img li img  {
	width: 300px;
}

.back {
	color: #aaa;
}

.back:hover {
	text-decoration: none;
}

footer {
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	padding: 10px;
}

footer a {
	float: right;
	color: #aaa;
}

footer a:hover {
	text-decoration: none;
}