/* Castle2d - padrao das caixas internas (08/10/2026). Para desfazer, remova a linha deste arquivo no template.php. */

#content [bgcolor="#f1e0c6" i],
#content [style*="background: #f1e0c6" i],
#content [style*="background:#f1e0c6" i],
#content [style*="background-color: #f1e0c6" i],
#content [style*="background-color:#f1e0c6" i],
#content [bgcolor="#eeddb9" i],
#content [style*="background: #eeddb9" i],
#content [style*="background:#eeddb9" i],
#content [style*="background-color: #eeddb9" i],
#content [style*="background-color:#eeddb9" i],
#content [bgcolor="#fcecd3" i],
#content [style*="background: #fcecd3" i],
#content [style*="background:#fcecd3" i],
#content [style*="background-color: #fcecd3" i],
#content [style*="background-color:#fcecd3" i],
#content [bgcolor="#f1e0c5" i],
#content [style*="background: #f1e0c5" i],
#content [style*="background:#f1e0c5" i],
#content [style*="background-color: #f1e0c5" i],
#content [style*="background-color:#f1e0c5" i] {
  background-color: #cbb286 !important;
}

#content [bgcolor="#d4c0a1" i],
#content [style*="background: #d4c0a1" i],
#content [style*="background:#d4c0a1" i],
#content [style*="background-color: #d4c0a1" i],
#content [style*="background-color:#d4c0a1" i],
#content [bgcolor="#d5c0a1" i],
#content [style*="background: #d5c0a1" i],
#content [style*="background:#d5c0a1" i],
#content [style*="background-color: #d5c0a1" i],
#content [style*="background-color:#d5c0a1" i] {
  background-color: #ba9f71 !important;
}

#content [bgcolor="#505050" i],
#content [style*="background: #505050" i],
#content [style*="background:#505050" i],
#content [style*="background-color: #505050" i],
#content [style*="background-color:#505050" i],
#content [bgcolor="#555658" i],
#content [style*="background: #555658" i],
#content [style*="background:#555658" i],
#content [style*="background-color: #555658" i],
#content [style*="background-color:#555658" i] {
  background-color: #3a2a1a !important;
}

#content table[style*="width: 900px"],
#content table[style*="width: 87.8471%"],
#content table.MsoNormalTable {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#content table[style*="box-shadow"] {
  box-shadow: none !important;
}

/* linha separadora do fim da pagina (feita para o pergaminho claro) */
#main img[src*="line_body.gif"] {
  display: none !important;
}

/* contornos claros escritos dentro das paginas */
#content [style*="#faf0d7" i] {
  border-color: #8f7650 !important;
}

/* moldura decorativa nos titulos simples, igual a dos titulos do MyAAC */

#content td[bgcolor="#505050" i],
#content th[bgcolor="#505050" i],
#content tr[bgcolor="#505050" i] > td,
#content tr[bgcolor="#505050" i] > th,
#content td[style*="background: #505050" i],
#content td[style*="background:#505050" i],
#content td[style*="background-color: #505050" i],
#content td[style*="background-color:#505050" i],
#content td[bgcolor="#555658" i],
#content th[bgcolor="#555658" i],
#content tr[bgcolor="#555658" i] > td,
#content tr[bgcolor="#555658" i] > th,
#content td[style*="background: #555658" i],
#content td[style*="background:#555658" i],
#content td[style*="background-color: #555658" i],
#content td[style*="background-color:#555658" i] {
  background-image: url(../images/content/table-headline-border.gif), url(../images/content/table-headline-border.gif) !important;
  background-repeat: repeat-x, repeat-x !important;
  background-position: left top, left bottom !important;
  background-color: #3a2a1a !important;
  padding: 6px 8px !important;
}

#content td[bgcolor="#505050" i]:first-child,
#content th[bgcolor="#505050" i]:first-child,
#content tr[bgcolor="#505050" i] > td:first-child,
#content tr[bgcolor="#505050" i] > th:first-child,
#content td[style*="background: #505050" i]:first-child,
#content td[style*="background:#505050" i]:first-child,
#content td[style*="background-color: #505050" i]:first-child,
#content td[style*="background-color:#505050" i]:first-child,
#content td[bgcolor="#555658" i]:first-child,
#content th[bgcolor="#555658" i]:first-child,
#content tr[bgcolor="#555658" i] > td:first-child,
#content tr[bgcolor="#555658" i] > th:first-child,
#content td[style*="background: #555658" i]:first-child,
#content td[style*="background:#555658" i]:first-child,
#content td[style*="background-color: #555658" i]:first-child,
#content td[style*="background-color:#555658" i]:first-child {
  background-image: url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-vertical.gif), url(../images/content/table-headline-border.gif), url(../images/content/table-headline-border.gif) !important;
  background-repeat: no-repeat, no-repeat, repeat-y, repeat-x, repeat-x !important;
  background-position: left top, left bottom, left top, left top, left bottom !important;
}

#content td[bgcolor="#505050" i]:last-child,
#content th[bgcolor="#505050" i]:last-child,
#content tr[bgcolor="#505050" i] > td:last-child,
#content tr[bgcolor="#505050" i] > th:last-child,
#content td[style*="background: #505050" i]:last-child,
#content td[style*="background:#505050" i]:last-child,
#content td[style*="background-color: #505050" i]:last-child,
#content td[style*="background-color:#505050" i]:last-child,
#content td[bgcolor="#555658" i]:last-child,
#content th[bgcolor="#555658" i]:last-child,
#content tr[bgcolor="#555658" i] > td:last-child,
#content tr[bgcolor="#555658" i] > th:last-child,
#content td[style*="background: #555658" i]:last-child,
#content td[style*="background:#555658" i]:last-child,
#content td[style*="background-color: #555658" i]:last-child,
#content td[style*="background-color:#555658" i]:last-child {
  background-image: url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-vertical.gif), url(../images/content/table-headline-border.gif), url(../images/content/table-headline-border.gif) !important;
  background-repeat: no-repeat, no-repeat, repeat-y, repeat-x, repeat-x !important;
  background-position: right top, right bottom, right top, left top, left bottom !important;
}

#content td[bgcolor="#505050" i]:first-child:last-child,
#content th[bgcolor="#505050" i]:first-child:last-child,
#content tr[bgcolor="#505050" i] > td:first-child:last-child,
#content tr[bgcolor="#505050" i] > th:first-child:last-child,
#content td[style*="background: #505050" i]:first-child:last-child,
#content td[style*="background:#505050" i]:first-child:last-child,
#content td[style*="background-color: #505050" i]:first-child:last-child,
#content td[style*="background-color:#505050" i]:first-child:last-child,
#content td[bgcolor="#555658" i]:first-child:last-child,
#content th[bgcolor="#555658" i]:first-child:last-child,
#content tr[bgcolor="#555658" i] > td:first-child:last-child,
#content tr[bgcolor="#555658" i] > th:first-child:last-child,
#content td[style*="background: #555658" i]:first-child:last-child,
#content td[style*="background:#555658" i]:first-child:last-child,
#content td[style*="background-color: #555658" i]:first-child:last-child,
#content td[style*="background-color:#555658" i]:first-child:last-child {
  background-image: url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-vertical.gif), url(../images/content/box-frame-vertical.gif), url(../images/content/table-headline-border.gif), url(../images/content/table-headline-border.gif) !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-y, repeat-y, repeat-x, repeat-x !important;
  background-position: left top, left bottom, right top, right bottom, left top, right top, left top, left bottom !important;
}

/* rotulos sobre fundo escuro (Name, Sex na criacao de personagem) */
.LabelH,
.LabelH td {
  color: #ffffff !important;
}

/* menu lateral de My Account */
#content .vertical-menu a {
  background-color: #cbb286 !important;
  border: 1px solid #8f7650;
  border-bottom: 0;
}
#content .vertical-menu a:last-child {
  border-bottom: 1px solid #8f7650;
}
#content .vertical-menu a:hover,
#content .vertical-menu a.active {
  background-color: #ba9f71 !important;
}

/* moldura nos rotulos escuros (linha de colunas do Highscores, Name e Sex na criacao de personagem) */

#content tr.LabelH > td,
#content tr.LabelH > th,
#content td.LabelH,
#content th.LabelH {
  background-image: url(../images/content/table-headline-border.gif), url(../images/content/table-headline-border.gif) !important;
  background-repeat: repeat-x, repeat-x !important;
  background-position: left top, left bottom !important;
  background-color: #3a2a1a !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

#content tr.LabelH > td:first-child,
#content tr.LabelH > th:first-child,
#content td.LabelH:first-child,
#content th.LabelH:first-child {
  background-image: url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-vertical.gif), url(../images/content/table-headline-border.gif), url(../images/content/table-headline-border.gif) !important;
  background-repeat: no-repeat, no-repeat, repeat-y, repeat-x, repeat-x !important;
  background-position: left top, left bottom, left top, left top, left bottom !important;
}

#content tr.LabelH > td:last-child,
#content tr.LabelH > th:last-child,
#content td.LabelH:last-child,
#content th.LabelH:last-child {
  background-image: url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-vertical.gif), url(../images/content/table-headline-border.gif), url(../images/content/table-headline-border.gif) !important;
  background-repeat: no-repeat, no-repeat, repeat-y, repeat-x, repeat-x !important;
  background-position: right top, right bottom, right top, left top, left bottom !important;
}

#content tr.LabelH > td:first-child:last-child,
#content tr.LabelH > th:first-child:last-child,
#content td.LabelH:first-child:last-child,
#content th.LabelH:first-child:last-child {
  background-image: url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-edge.gif), url(../images/content/box-frame-vertical.gif), url(../images/content/box-frame-vertical.gif), url(../images/content/table-headline-border.gif), url(../images/content/table-headline-border.gif) !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-y, repeat-y, repeat-x, repeat-x !important;
  background-position: left top, left bottom, right top, right bottom, left top, right top, left top, left bottom !important;
}

/* listas com linha de colunas escura (Highscores): tons alternados, borda fina e altura normal */
#content tr.LabelH ~ tr,
#content tr.LabelH ~ tr > td {
  height: auto !important;
}
#content tr.LabelH ~ tr > td {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  border: 1px solid #8f7650;
}
#content tr.LabelH ~ tr:nth-child(even) > td {
  background-color: #cbb286;
}
#content tr.LabelH ~ tr:nth-child(odd) > td {
  background-color: #ba9f71;
}
