nav ul {
	display: block;
	text-align: center;
}

nav li {
	display: inline-block;
}

nav li a {
	padding: 15px 15px;
	display: block;
	font-family: "Arimo", sans-serif;
	color: white;
	/* color: inherit; */
	/* cursor: url(../img/maskicon.png), auto; */
}

#top-menu {
	background: url(../img/border-horizontal_black.png);
	background-size: auto 3px;
	background-color: #243338;
	background-position: bottom center;
	background-repeat: repeat-x;
}

@media only screen and (max-width: 550px) {

	#top-menu ul,
	#top-menu li,
	#foot-menu ul,
	#foot-menu li {
		display: block;
		width: 100%;
	}

	#top-menu li a,
	#foot-menu li a {
		padding: 5px 15px;
	}
}

#main-menu {
	background: url(../img/brush-blood.gif);
	background-size: 100% 100%;
	transition: all 0.3s ease-in-out;
}

/* itt a vizsgálat mutatja meg a wp hozzáadott classait, az kell, amelyiknek van gyereke, a nyil a css triangle css tricksből jön  */
.menu-item-has-children {
	position: relative;
}

.menu-item-has-children::after {
	position: absolute;
	top: 50%;
	margin-top: -3px;
	right: 0;
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 7px solid #fff;
}

/* 769 felett érvényes menübeáll almenük rejtve */
@media only screen and (min-width: 769px) {


	#main-menu ul li {
		position: relative;
	}

	#main-menu ul li ul {
		display: block;
		position: absolute;
		z-index: 2;
		text-align: left;
		overflow: hidden;
		opacity: 0;
		top: 30px;
		transition: all 0.3s ease-in-out;
	}

	#main-menu ul li ul li {
		background: #8a0707;
		display: block;
	}

	#main-menu ul li ul li a {
		white-space: nowrap;
		padding: 10px 15px;
	}

	#main-menu ul li:hover ul {
		top: 40px;
		opacity: 1;
	}

	#main-menu ul li ul::after {
		content: "";
		width: 100%;
		height: 50px;
		display: block;
		background: url(../img/paint-drop_blood.gif) bottom left no-repeat;
		background-size: auto 140%;
	}

	#main-menu ul {
		display: block !important;
	}
}

/* 769 alatt érvényes menübeáll  az egész menü lefele rendeződik */

@media only screen and (max-width: 768px) {
	#hamburger {
		display: block;
		width: 100%;
		height: 40px;
		background: url(../img/brush-blood.gif);
		background-size: 100% 100%;
		position: relative;
		vertical-align: middle;
		text-align: center;
		line-height: 40px;
		cursor: pointer;
	}

	#hamburger::before {
		content: "MENU";
		display: inline-block;
		vertical-align: middle;
		text-transform: uppercase;
		font-weight: bold;
		color: #fff;
	}

	#hamburger::after {
		content: "";
		width: 18px;
		height: 16px;
		display: inline-block;
		vertical-align: middle;
		margin-left: 10px;
		border-top: double 6px #fff;
		border-bottom: double 6px #fff;
		transition: all 0.3s ease-in-out;
	}

	.hambi-open {
		background-size: 100% 150% !important;
	}

	.hambi-open::after {
		height: 0 !important;
		border-top: solid 2px #fff !important;
		border-bottom: solid 2px #fff !important;
	}

	.menu-item-has-children::after {
		content: none;
		/*kiütjük, túl kicsi lenne kattintási területnek*/
	}

	.open-sub {
		display: block;
		position: absolute;
		width: 30px;
		height: 30px;
		top: 0;
		right: 0;
		cursor: pointer;
		z-index: 5;
	}

	.open-sub::before {
		position: absolute;
		top: 50%;
		margin-top: -3px;
		margin-left: -4px;
		left: 50%;
		content: "";
		display: block;
		width: 0;
		height: 0;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 7px solid #fff;
	}

	.sub-open::before {
		border-left: none !important;
		border-right: none !important;
		border-top: 2px solid #fff !important;
		width: 15px;
		right: 15px;
	}

	#main-menu {
		background: none;
	}

	#main-menu ul,
	#main-menu li {
		display: block;
		width: 100%;
		background: #8a0707;
	}

	#main-menu li a {
		padding: 5px 15px;
		background: #8a0707;
	}

	#main-menu ul {
		display: none;
	}

	#main-menu ul li ul {
		display: none;
	}
}