/*---------------------------------------*/
/*  Template created by Tomas Sardyha    */
/*            (  Darsain  )              */
/*     (  http://www.darsain.net/  )     */
/*---------------------------------------*/


/* ------ RESET ------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: normal;
	font-style: normal;
	font-size: 12px;
	font-family: Trebuchet MS, Verdana;
  text-decoration: none;
}

body {
  color: #000;
  text-decoration: none;
  background: url('style/body_bg.jpg') no-repeat center top #f8eedd;
}

h1 {
  font-size: 30px;
	font-family: Sylfaen, Trebuchet MS, Verdana;
  color: #442b17;
}

h2 {
  font-size: 20px;
	font-family: Sylfaen, Trebuchet MS, Verdana;
  color: #442b17;
}

h3 {
  font-size: 16px;
  font-weight: bold;
	font-family: Sylfaen, Trebuchet MS, Verdana;
  color: #442b17;
}

a, a:link, a:visited {
  color: #6b1212;
  text-decoration: underline;
  outline: none;
}

a:hover { color: #f7f0e8; text-decoration: none; }

input {
  margin: 3px 0;
  padding: 2px 3px;
  color: #baaea4;
  background: url('style/input-bg.png');
  border: 0;
}

input.button {
  margin: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

/* ------ GLOBAL ------- */

.fl { float: left; }

.fr { float: right; }

.ffix {
  position: relative; clear: both;
  margin: 0; padding: 0; width: 0;
  height: 0; font-size: 0; line-height: 0;
}

.opButton {
  opacity: .70;
  filter: alpha(opacity=70);
  -moz-opacity: .70;
  cursor: pointer;
}

.opButton:hover {
  opacity: 1;
  filter: alpha(opacity=99);
  -moz-opacity: 1;
}

.pointer { cursor: pointer; }

/* ------ LAYOUT ------- */

div.mainwrapper { position: relative; width: 974px; max-width: 974px; min-width: 974px; }

a.logo_link, a.logo_link:link, a.logo_link:visited {
  position: absolute;
  width: 315px;
  height: 180px;
  left: 80px;
  top: 65px;
  text-decoration: none;
  outline: none;
}
a.logo_link:hover { color: #f7f0e8; text-decoration: none; }


/* ------ Main Menu ------- */

div.main_menu { position: absolute; top: 303px; left: 35px; }

div.main_menu a, div.main_menu a:link, div.main_menu a:visited {
  display: block;
  float: left;
  width: 180px; max-width: 180px; min-width: 180px;
  height: 55px; max-height: 55px; min-height: 55px;
  text-decoration: none;
  outline: none;
  background-repeat: no-repeat;
  background-position: center bottom;
}
div.main_menu a:hover { background-position: center top; }

div.main_menu a.home { background-image: url('style/button_home.png') }
div.main_menu a.serverinfo { background-image: url('style/button_serverinfo.png') }
div.main_menu a.connect { background-image: url('style/button_connect.png') }
div.main_menu a.forum { background-image: url('style/button_top.png') }
div.main_menu a.contact { background-image: url('style/button_media.png') }



/* ------ Content wrapper ------- */

div.contwrapper-top {
  width: 974px; max-width: 974px; min-width: 974px;
  height: 385px;
  background: url('style/contwrapper-top.png') no-repeat center bottom;
}

div.contwrapper-bottom {
  height: 40px; max-height: 40px; min-height: 40px;
  background: url('style/contwrapper-bottom.png') no-repeat center top;
}

div.contwrapper {
  padding: 0 37px 0 60px;
  background: url('style/contwrapper-bg.png') repeat-y center top;
}



/* ------ Side menu ------- */

div.side_menu {
  float: right;
  margin-top: -8px;
  width: 198px; max-width: 198px; min-width: 198px;
  text-align: center;
}


div.side_menu div.buttons a, div.side_menu div.buttons a:link, div.side_menu div.buttons a:visited {
  display: block;
  margin: -1px 0;
  background: url('style/side_button.png') no-repeat center top;
  color: #1e1207;
  font-weight: bold;
  line-height: 34px;
  text-decoration: none;
  outline: none;
}
div.side_menu div.buttons a:hover { color: #d1c1b3; background-position: center bottom; }


div.side_menu div.box-serverstatus {
  margin: 0 10px;
  height: 16px; max-height: 16px; min-height: 16px;
  background: url('style/box-serverstatus.png') no-repeat left bottom;
  line-height: 0;
}
div.side_menu div.box-login {
  margin: 0 10px;
  height: 16px; max-height: 16px; min-height: 16px;
  background: url('style/box-login.png') no-repeat left bottom;
  line-height: 0;
}
div.side_menu div.box-usercp {
  margin: 0 10px;
  height: 16px; max-height: 16px; min-height: 16px;
  background: url('style/box-usercp.png') no-repeat left bottom;
  line-height: 0;
}

div.side_menu div.box {
  margin: 0 10px 10px 10px;
  *margin: -4px 10px 10px 10px;
  padding: 3px 5px 8px 5px;
  background: url('style/box.png') no-repeat left bottom;
  color: #baaea4;
}


/* ------ Content ------- */

div.content {
  float: left;
  width: 660px; max-width: 660px; min-width: 660px;
  text-align: justify;
}





























/* ------ Footer ------- */

div.footer {
  height: 80px; max-height: 80px; min-height: 80px;
  background: url('style/footer.png') no-repeat center top;
  text-align: center;
  color: #7d7c7c;
  line-height: 60px;
  vertical-align: middle;
  text-shadow: #000 1px 1px 0;
}

div.footer a { color: #ababab; }
div.footer a:hover { color: #fff; }



/* ------ Page layout helpers (account / forms) ------- */

div.content h1 {
  margin: 4px 0 4px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #c0a98c;
}

div.content h2 {
  margin: 0 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #d3c2a8;
}

div.content p { margin: 0 0 10px 0; line-height: 18px; }

div.content .sec { margin-top: 26px; text-align: left; }

div.content .hint {
  margin: 10px 0 0 0;
  color: #6d5a44;
  font-style: italic;
  line-height: 17px;
}

div.content .err { color: #8c2b2b; font-weight: bold; }

div.content .notice {
  margin: 0 0 12px 0;
  padding: 7px 10px;
  border: 1px solid #8c2b2b;
  background: rgba(255,255,255,.35);
  color: #8c2b2b;
  font-weight: bold;
}


/* ------ Definition rows (Nickname / E-mail / ...) ------- */

table.info { width: 100%; border-collapse: collapse; text-align: left; }

table.info th {
  width: 130px;
  padding: 5px 10px 5px 0;
  color: #6d5a44;
  font-weight: normal;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

table.info td {
  padding: 5px 0;
  color: #2f2115;
  vertical-align: top;
}

table.info tr + tr th, table.info tr + tr td { border-top: 1px solid #dacdb6; }


/* ------ Forms ------- */

table.formgrid { border-collapse: collapse; text-align: left; }

table.formgrid th {
  padding: 4px 12px 4px 0;
  color: #6d5a44;
  font-weight: normal;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

table.formgrid td { padding: 4px 0; vertical-align: middle; }

table.formgrid td.msg { padding-left: 10px; color: #8c2b2b; }

table.formgrid input[type=text],
table.formgrid input[type=password] {
  width: 220px;
  padding: 4px 6px;
  color: #e8dccb;
}

input.btn {
  margin-top: 6px;
  padding: 5px 20px;
  border: 1px solid #3a2411;
  background: #5b3d21;
  color: #f0e4d2;
  font-weight: bold;
  font-family: Sylfaen, Trebuchet MS, Verdana;
  font-size: 13px;
  cursor: pointer;
}

input.btn:hover { background: #74502c; color: #fff; }


/* ------ Game account cards ------- */

div.acct {
  margin: 0 0 12px 0;
  padding: 10px 14px 12px 14px;
  border: 1px solid #c8b394;
  background: rgba(255,255,255,.30);
}

div.acct .acct-head {
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #dacdb6;
}

div.acct .acct-head b {
  color: #442b17;
  font-weight: bold;
  font-family: Sylfaen, Trebuchet MS, Verdana;
  font-size: 15px;
}

div.acct .acct-head span.server { margin-left: 6px; color: #7b6a55; }

div.acct .empty { margin: 0; color: #6d5a44; font-style: italic; }

table.chars { width: 100%; border-collapse: collapse; text-align: left; }

table.chars th {
  padding: 4px 10px 6px 0;
  border-bottom: 1px solid #c8b394;
  color: #6d5a44;
  font-weight: bold;
  text-align: left;
}

table.chars td {
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid #e3d8c4;
  color: #2f2115;
}

table.chars tr:last-child td { border-bottom: 0; }

table.chars td.name { font-weight: bold; color: #442b17; }

span.online {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #7ea05f;
  background: rgba(126,160,95,.20);
  color: #3f6b2b;
  font-size: 11px;
}

div.content .actions {
  margin: 22px 0 4px 0;
  padding-top: 12px;
  border-top: 1px solid #d3c2a8;
}


/* ------ Character page ------- */

div.content .crumbs { margin: 6px 0 0 0; }
div.content .dim { color: #7b6a55; }

div.content h2 span.count {
  margin-left: 8px;
  color: #7b6a55;
  font-family: Trebuchet MS, Verdana;
  font-size: 12px;
}

div.content h1 span.online {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid #7ea05f;
  background: rgba(126,160,95,.20);
  color: #3f6b2b;
  font-family: Trebuchet MS, Verdana;
  font-size: 11px;
  vertical-align: middle;
}

div.cols { width: 100%; }
div.cols table.info { float: left; width: 49%; }
div.cols table.info + table.info { float: right; }
div.cols:after { content: ''; display: block; clear: both; }
div.cols table.info th { width: 92px; }


/* item tiles */

.tile {
  position: relative;
  width: 32px; height: 32px;
  border: 1px solid #8a7659;
  background: #1b140c;
  cursor: default;
}

.tile img { display: block; width: 32px; height: 32px; }

.tile-empty { border: 1px dashed #b9a686; background: rgba(0,0,0,.06); }

.tile-noicon {
  display: block;
  color: #8a7659;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
}

.tile-amount {
  position: absolute; right: 0; bottom: 0;
  padding: 0 2px;
  background: rgba(0,0,0,.75);
  color: #ffe9b0;
  font-size: 10px;
  line-height: 11px;
}

.tile-ench {
  position: absolute; left: 0; top: 0;
  padding: 0 2px;
  background: rgba(0,0,0,.75);
  color: #7fd0ff;
  font-size: 10px;
  line-height: 11px;
}

div.grid { margin: 0; }
div.grid:after { content: ''; display: block; clear: both; }

div.grid div.cell {
  float: left;
  margin: 0 5px 5px 0;
  padding: 2px;
  border: 1px solid transparent;
}

div.grid div.cell-eq { border-color: #c9a227; background: rgba(201,162,39,.12); }


/* paperdoll */

div.paperdoll:after { content: ''; display: block; clear: both; }

div.doll-slot {
  float: left;
  width: 76px;
  margin: 0 8px 10px 0;
  text-align: center;
}

div.doll-slot .tile { margin: 0 auto; }

div.doll-slot span.doll-label {
  display: block;
  margin-top: 3px;
  color: #6d5a44;
  font-size: 11px;
  line-height: 13px;
}


/* tooltip */

#itemtip {
  display: none;
  position: fixed;
  z-index: 50;
  width: 250px;
  padding: 8px 10px;
  border: 1px solid #8a7659;
  background: #17110a;
  color: #cfc0a8;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
}

#itemtip b.tip-name { display: block; color: #f0dfbb; font-weight: bold; font-size: 13px; }
#itemtip b.tip-ench { color: #7fd0ff; }

#itemtip span.tip-sub {
  display: block;
  margin-top: 1px;
  color: #8a7659;
  font-size: 11px;
}

#itemtip table.tip-stats {
  width: 100%;
  margin-top: 7px;
  border-top: 1px solid #3a2e1e;
  border-collapse: collapse;
}

#itemtip table.tip-stats th {
  padding: 2px 8px 2px 0;
  color: #8a7659;
  font-weight: normal;
  text-align: left;
  white-space: nowrap;
}

#itemtip table.tip-stats td { padding: 2px 0; color: #e0d2b8; text-align: right; }

#itemtip p.tip-desc {
  margin: 7px 0 0 0;
  padding-top: 6px;
  border-top: 1px solid #3a2e1e;
  color: #a8977c;
  font-size: 11px;
  line-height: 15px;
}







/* ------ Admin panel ------- */

span.gmflag {
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid #8c2b2b;
  background: rgba(140,43,43,.14);
  color: #8c2b2b;
  font-size: 11px;
}

span.eqflag {
  margin-left: 5px;
  padding: 0 5px;
  border: 1px solid #c9a227;
  background: rgba(201,162,39,.16);
  color: #8a6c10;
  font-size: 11px;
}

form.adminsearch { margin: 0 0 14px 0; }

form.adminsearch input[type=text] {
  padding: 4px 6px;
  color: #e8dccb;
  vertical-align: middle;
}

form.adminsearch select {
  margin: 0 4px;
  padding: 3px;
  border: 1px solid #a8977c;
  background: #efe6d6;
  color: #2f2115;
  vertical-align: middle;
}

form.adminsearch input.btn { margin: 0 0 0 4px; padding: 4px 14px; vertical-align: middle; }

a.clearsearch { margin-left: 8px; font-size: 11px; }

table.adminlist td, table.adminlog td { padding: 5px 8px 5px 0; vertical-align: top; }
table.adminlog td, table.adminlog th { font-size: 11px; }

p.pager { margin: 10px 0 0 0; }
p.pager a { margin: 0 10px; }


/* ------ Item lookup ------- */

div.lookup { margin: 0 0 14px 0; }

div.lookup input[type=text] {
  padding: 5px 7px;
  color: #e8dccb;
  vertical-align: middle;
}

div.lookup span.dim { margin-left: 8px; font-size: 11px; }

div.icombo {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

div.icombo input[type=text] { width: 320px; box-sizing: border-box; }

div.iresults {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  width: 460px;
  max-height: 320px;
  margin-top: 2px;
  overflow-y: auto;
  border: 1px solid #8a7659;
  background: #f4ecdd;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  text-align: left;
}

div.iresults:empty { display: none !important; }

div.iresults div.inone { padding: 8px 10px; color: #7b6a55; font-style: italic; }

div.irow {
  padding: 3px 6px;
  border-bottom: 1px solid #e3d8c4;
  cursor: pointer;
  line-height: 32px;
}

div.irow:last-child { border-bottom: 0; }
div.irow:hover,
div.irow.on { background: rgba(201,162,39,.28); }

div.irow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

div.irow img {
  width: 32px; height: 32px;
  margin-right: 8px;
  border: 1px solid #8a7659;
  background: #1b140c;
  vertical-align: middle;
}

div.irow span.inoicon {
  display: inline-block;
  width: 32px; height: 32px;
  margin-right: 8px;
  border: 1px solid #8a7659;
  background: #1b140c;
  color: #8a7659;
  line-height: 32px;
  text-align: center;
  vertical-align: middle;
}

div.irow span.iname { color: #442b17; font-weight: bold; }
div.irow span.imeta { margin-left: 8px; color: #7b6a55; font-size: 11px; }

form.addform span.picked { color: #442b17; font-weight: bold; font-style: normal; }


/* ------ Editable item tables ------- */

table.itemedit { width: 100%; border-collapse: collapse; text-align: left; }

table.itemedit th {
  padding: 4px 8px 6px 0;
  border-bottom: 1px solid #c8b394;
  color: #6d5a44;
  font-weight: bold;
  text-align: left;
}

table.itemedit td {
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid #e3d8c4;
  color: #2f2115;
  vertical-align: middle;
}

table.itemedit tr.row-eq td { background: rgba(201,162,39,.10); }

table.itemedit td.ic { width: 36px; padding-right: 6px; }
table.itemedit td.ic .tile { margin: 2px 0; }
table.itemedit td.nm { font-weight: bold; color: #442b17; line-height: 15px; }
table.itemedit td.nm span.dim { font-weight: normal; font-size: 11px; }
table.itemedit td.ed { width: 150px; white-space: nowrap; }
table.itemedit td.ac { width: 130px; white-space: nowrap; }

table.itemedit form { display: inline; }

input.num {
  padding: 3px 4px;
  color: #e8dccb;
  text-align: right;
  vertical-align: middle;
}

input.btn.btn-s {
  margin: 0 0 0 3px;
  padding: 3px 7px;
  font-size: 11px;
  vertical-align: middle;
}

input.btn.btn-del { border-color: #4a1b1b; background: #7a2b2b; }
input.btn.btn-del:hover { background: #9c3a3a; }


/* ------ Account actions ------- */

table.acctactions { width: 100%; border-collapse: collapse; }
table.acctactions td { width: 50%; padding: 10px 10px 0 0; vertical-align: top; }
table.acctactions p.hint { margin-top: 5px; font-size: 11px; line-height: 15px; }

table.acctactions input[type=password] {
  display: block;
  width: 160px;
  padding: 4px 6px;
  color: #e8dccb;
}

pre.rawreply {
  max-height: 200px;
  margin: 8px 0 0 0;
  padding: 8px 10px;
  overflow: auto;
  border: 1px solid #8a7659;
  background: #17110a;
  color: #cfc0a8;
  font-family: Consolas, Courier New, monospace;
  font-size: 11px;
  line-height: 15px;
  white-space: pre-wrap;
  word-break: break-all;
}

textarea.console {
  padding: 8px 10px;
  border: 1px solid #8a7659;
  background: #17110a;
  color: #cfc0a8;
  font-family: Consolas, Courier New, monospace;
  font-size: 12px;
  line-height: 16px;
}

div.content code {
  font-family: Consolas, Courier New, monospace;
  font-size: 11px;
  color: #5b3d21;
}


/* ------ Top list ------- */

div.toplist { margin-top: 10px; text-align: left; }

div.toplist .tl-tabs { margin: 0 0 14px 0; }
div.toplist .tl-tabs a, div.toplist .tl-tabs a:link, div.toplist .tl-tabs a:visited {
  display: inline-block;
  margin: 0 3px 5px 0;
  padding: 4px 10px;
  border: 1px solid #c8b394;
  background: rgba(255,255,255,.30);
  color: #442b17;
  font-weight: bold;
  text-decoration: none;
}
div.toplist .tl-tabs a:hover { background: #74502c; color: #fff; }
div.toplist .tl-tabs a.on { border-color: #3a2411; background: #5b3d21; color: #f0e4d2; }

table.toptable th.rk, table.toptable td.rk { width: 24px; color: #7b6a55; }
table.toptable th.num, table.toptable td.num { text-align: right; padding-right: 4px; white-space: nowrap; }
table.toptable td.num b { font-weight: bold; color: #442b17; }
