a, img { border: 0; }

a
{
  font: 13px Verdana;
  color: #0033CC;
  text-decoration: underline;
}
a:hover
{
  color: #EDEDED;
  text-decoration: none;
}

body
{
  background: url("/tavern/images/bg/all.jpg") repeat #A5865B;
  margin: 0;
  padding: 0;
}

.top-box
{
	display: flex;
  margin: 20px 8px;
}
.top-box > a
{
  font: 16px Verdana;
  color: #FFE384;
}
.top-box > a > img
{
  width: 277px;
  height: 205px;
}
.top-box > span
{
	flex-grow: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

/*
#top
{
  text-align: center;
  margin: 29px 8px 5px 8px;
  height: 205px;
}
*/

.top { margin: 3px 0; }

/*
#logo
{
  text-decoration: none;
  float: left;
  font: 16px Verdana;
  color: #FFE384;
}
#logo img
{
  float: left;
  width: 277px;
  height: 205px;
}

#logo_text
{
  width: 234px;
  font: 40px Verdana;
  position: relative;
  top: 75px;
  color: #FFE384;
  text-decoration: none;
}
#logo_text:hover { text-decoration: underline; }

.rules
{
  margin-top: 38px;
  float: right;
}
.rules img
{
  width: 129px;
  height: 120px;
}
*/

.menu
{
	background-image: url("https://heroesportal.net/tavern/images/bg/messages.jpg");
	background-color: #CEB78E;
	border: 2px ridge #444;
	border-width: 2px 0;
}
.menu ul
{
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu li { position: relative; }
.menu li > ul
{
	position: absolute;
	display: none;
	min-width: 100%;
	border: 2px ridge #444;
	white-space: nowrap;
	z-index: 10;
}
.menu li:hover > ul { display: block; }
.menu li > ul > li { padding: 0 10px; }
.menu > ul
{
	display: flex;
	justify-content: flex-end;
	height: 24px;
	line-height: 24px;
	text-align: center;
}
.menu > ul > li { flex-grow: 1; }
.menu > ul > li li
{
	height: 24px;
	line-height: 24px;
}
.menu > ul > li > ul > li
{
	height: 20px;
	line-height: 20px;
	border: 2px ridge transparent;
	border-width: 2px 0;
}
.menu > ul > li:hover,
.menu > ul > li > ul
{
	background-image: url("https://heroesportal.net/tavern/images/bg/forum.jpg");
	background-color: #B99F7B;
}
.menu > ul > li > ul > li:last-child { border-bottom: 0; }
.menu > ul > li > ul > li:hover,
.menu > ul > li:nth-last-child(n+3) > ul > li > ul li:first-child:before,
.menu > ul > li:nth-last-child(-n+2) > ul > li > ul li:first-child:after,
.menu > ul > li > ul > li > ul
{
	background-image: url("https://heroesportal.net/tavern/images/bg/messages.jpg");
	background-color: #CEB78E;
	border-color: #444;
}
.menu > ul > li > ul
{
	margin: 0 -2px;
	border-top: 0;
}
.menu > ul > li:last-child > ul
{
	right: 2px;
	border-right: 0;
}
.menu > ul > li > ul > li > ul { top: -2px; }
.menu > ul > li:nth-last-child(n+3) > ul > li > ul { left: 100%; }
.menu > ul > li:nth-last-child(-n+2) > ul > li > ul { right: 100%; }
.menu > ul > li:nth-last-child(n+3) > ul > li > ul li:first-child:before,
.menu > ul > li:nth-last-child(-n+2) > ul > li > ul li:first-child:after
{
	position: absolute;
	content: "";
	top: -2px;
	bottom: 2px;
	width: 2px;
	border: 2px ridge #444;
	border-width: 2px 0;
	z-index: 11;
}
.menu > ul > li:nth-last-child(n+3) > ul > li > ul li:first-child:before { left: -2px; }
.menu > ul > li:nth-last-child(-n+2) > ul > li > ul li:first-child:after { right: -2px; }
.menu a,
.menu span
{
	font: 14px Verdana;
	color: #000;
	text-decoration: none;
	cursor: default;
}
.menu a:hover
{
	text-decoration: underline;
	cursor: pointer;
}

#menu{ text-align: center; }
#menu a
{
  text-decoration: none;
  display: inline-block;
}
#menu a:hover { text-decoration: underline; }
#menu a+a { margin-left: 28px; }
#menu span
{
  background: url("/tavern/images/icons.gif") no-repeat;
  width: 12px;
  height: 13px;
  display: block;
  margin: 2px 0 0 -14px;
  position: absolute;
}
#menu #members { background-position: -12px 0; }
#menu #user { background-position: -24px 0; }
#menu #search { background-position: -36px 0; }
#menu #registration { background-position: -48px 0; }
#menu #messages { background-position: -60px 0; }
#menu #login { background-position: -72px 0; }

.center { text-align: center; }

#bottom { text-align: center; }

#adv_bottom
{
  background: url("/tavern/images/bg/forum.jpg");
  border: 2px solid #000;
}

.w100p { width: 100%; }

#fixed
{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
}
#fixed.hide { width: auto; }

#top_menu
{
  background: url("/tavern/images/bg/messages.jpg") #CEB78E;
  border: 2px ridge #444;
}
#top_menu ul
{
  margin: 0;
  padding: 0;
  list-style: none;
  background: url("/tavern/images/bg/messages.jpg") #CEB78E;
}

.hide #items { display: none; }

#items a, #items span
{
  display: block;
  color: #000;
  font: 12px Verdana;
  text-decoration: none;
  padding: 2px 3px;
}
#items > li li span
{
  font-weight: bold;
  font-style: italic;
}
#items a:hover { text-decoration: underline; }
#items > li
{
  float: left;
  list-style: none;
}
#items > li+li { margin-left: 4%; }
#items ul
{
  position: absolute;
  display: none;
}
#items .show ul
{
  display: block;
  border: 2px ridge #444;
}

#pbutton
{
  float: left;
  width: 11px;
  height: 15px;
  cursor: pointer;
  background: url("/tavern/images/sh.gif") no-repeat;
  font: 10px Verdana;
  color: #FFF;
}
.hide #pbutton { background-position: -11px 0; }

.clear { clear: both; }

#ApproveLayout p{
	width: 468px;
	padding: 20px 0;
	margin: 0 auto;
	font-size: 20px;
	background: url("/tavern/images/bg/messages.jpg") #CEB78E;
}
#ApproveLayout a
{
  font: 14px Verdana;
  color: #783818;
  text-decoration: none;
}
#ApproveLayout a:hover
{
  text-decoration: underline;
}

.fb-like {
	background: url('/tavern/images/bg/forum.jpg') #CEB78E;
	margin-left: 10px;
	float: left;
}

.social-groups
{
	float: left;
	padding-top: 4px;
}
.social-groups > *
{
	display: inline-block;
	vertical-align: top;
}
.social-groups span
{
	line-height: 20px;
	font-size: 12px;
}
.social-groups a
{
	border-radius: 3px;
	height: 16px;
	padding: 2px;
}
.social-groups a::before
{
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url("/img/share-buttons.png");
	background-repeat: no-repeat;
}
.social-groups a.vk
{
	background-color: #4B77A2;
	border-color: #5780A8 #000 #3D6189 #000;
}
.social-groups a.fb
{
	background-color: #3E5E9C;
	border-color: #4A68A3 #000 #334D83 #000;
}
.social-groups a.fb::before { background-position: -16px 0; }
.social-groups a.tw
{
	background-color: #0AE;
	border-color: #1BE #000 #09D #000;
}
.social-groups a.tw::before { background-position: -32px 0; }
.social-groups a.tg::before { background-position: -80px 0; }

.adsens_tb
{
	width: 320px;
	height: 100px;
	margin: 0 auto;
}
@media(min-width: 500px)
{
	.adsens_tb
	{
		width: 468px;
		height: 60px;
	}
}
@media(min-width: 800px)
{
	.adsens_tb
	{
		width: 728px;
		height: 90px;
	}
}