/* Ajustes sobre o basic.css do Gesior.
 *
 * O CSS original assume marcacao gerada pelo PHP dele: o titulo da caixa e o
 * texto do menu vem dentro de elementos que o layout.php monta e que nao
 * existem aqui. Estas regras cobrem so essa diferenca -- o visual (cores,
 * bordas, fundos) continua vindo do basic.css e das imagens originais.
 */

/* ---- titulo da caixa -------------------------------------------------- */
/* .BorderTitleText no original e apenas a faixa de 24px com o fundo
   repetido; o texto era escrito por dentro pelo PHP. */
.Content .BorderTitleText {
    color: #fff;
    font: bold 11px Verdana, Arial, sans-serif;
    line-height: 24px;
    padding-left: 10px;
    text-shadow: 1px 1px 1px #000;
    overflow: hidden;
}

/* ---- right artwork & pedestal ----------------------------------------- */
#RightArtwork {
    text-align: left;
    position: absolute;
    top: 0px;
    right: 24px;
    width: 132px;
    height: 0px;
    background-repeat: no-repeat;
    z-index: 90;
}
#RightArtwork #Monster {
    position: absolute;
    top: -136px;
    left: 45px;
    width: 32px;
    height: 30px;
    z-index: 95;
    cursor: pointer;
}
#RightArtwork #PedestalAndOnline {
    position: absolute;
    left: -10px;
    top: -105px;
    width: 153px;
    height: 107px;
    cursor: pointer;
}
#RightArtwork #PlayersOnline {
    font: bold 8pt Verdana, Arial, sans-serif;
    line-height: 9.5pt;
    text-align: center;
    position: absolute;
    width: 110px;
    top: -33px;
    left: 12px;
    color: #ffea55;
    cursor: pointer;
    z-index: 96;
}
#RightArtwork #PlayersOnline a {
    color: #ffea55 !important;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 1px 3px rgba(0,0,0,0.9);
    text-decoration: none;
    letter-spacing: 0.3px;
    display: block;
}
#RightArtwork #PlayersOnline a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 5px #ffea55, 1px 1px 0 #000, -1px -1px 0 #000;
    text-decoration: none;
}

/* ---- themeboxes ------------------------------------------------------- */
#ThemeboxesColumn {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 180px;
    margin-right: 15px;
    margin-left: 25px;
    text-align: center;
}
#Themeboxes {
    margin-top: 8px;
}
.ThemeboxButton:hover .Button {
    visibility: visible;
}

/* ---- loginbox --------------------------------------------------------- */
#Loginbox {
    position: relative;
    left: 5px;
    top: 8px;
    width: 175px;
    margin-bottom: 42px;
}
#Loginbox #BorderLeft {
    left: 0px;
    width: 7px;
}
#Loginbox #BorderRight {
    left: 167px;
    right: auto;
    width: 7px;
}
#Loginbox #LoginButton:hover .Button {
    visibility: visible;
}
#Loginbox #LoginstatusText_2:hover #LoginstatusText_2_1 {
    visibility: hidden;
}
#Loginbox #LoginstatusText_2:hover #LoginstatusText_2_2 {
    visibility: visible;
}
#Loginbox a {
    text-decoration: none;
    display: block;
}

/* ---- menu ------------------------------------------------------------- */
#Menu { position: relative; }

#Menu .MenuButton {
    text-decoration: none;
    background-repeat: no-repeat;
    margin: 0px !important;
    padding: 0px;
}


.MenuInfo {
    margin-top: 10px;
    padding: 6px 8px;
    color: #C9A961;
    font: 11px Verdana, Arial, sans-serif;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid #3a3a2a;
}
.MenuInfo a { color: #fff; }

/* ---- tabelas ---------------------------------------------------------- */
table.Table { width: 100%; border-collapse: collapse; margin: 6px 0; }
table.Table th {
    background: #5a2800;
    color: #fff;
    text-align: left;
    padding: 3px 6px;
    font: bold 11px Verdana, Arial, sans-serif;
}
table.Table td {
    padding: 2px 6px;
    font: 11px Verdana, Arial, sans-serif;
    border-bottom: 1px solid #d9c9a8;
}
table.Table tr.Odd td { background: #f1e0c6; }
table.Table tr.Even td { background: #faf0d7; }

/* ---- conteudo --------------------------------------------------------- */
.BoxContent { font: 11px Verdana, Arial, sans-serif; color: #4a3520; padding: 8px 10px; }
.BoxContent p { margin: 6px 0; }
.BoxContent a { color: #5a2800; }

.Online { color: #0a7a0a; font-weight: bold; }
.Offline { color: #888; }
.Gm { color: #8B0000; font-weight: bold; }
.Erro { color: #a01010; font-weight: bold; }
.Ok { color: #0a7a0a; font-weight: bold; }
.Active { font-weight: bold; text-decoration: underline; }

input[type=text], input[type=password] {
    border: 1px solid #8a7a5a; padding: 2px 5px;
    font: 11px Verdana; background: #fff;
}
input[type=submit] {
    background: #5a2800; color: #fff; border: 2px outset #8a6a40;
    padding: 2px 12px; font: bold 10px Verdana; cursor: pointer;
}

#Footer { color: #b0a080; padding: 10px 0; }

/* Os assets do Gesior so trazem a barra verde. As outras cores do tibia.com
   (azul e vermelha) sao obtidas girando a matiz da mesma imagem. */
/* A barra original e verde (matiz ~120deg): +120 leva a azul, +240 a vermelho. */
.Titulo-blue { filter: hue-rotate(120deg); }
.Titulo-red  { filter: hue-rotate(240deg); }

/* O rodape ficava ilegivel sobre a arte de fundo. */
#Footer {
    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    margin-top: 8px;
    color: #cfc0a0;
}

/* ---- menu agrupado (tibia.com) ---------------------------------------- */
/* O basic.css posiciona .MenuButton e .Submenu, mas o icone e o rotulo eram
   colocados pelo PHP do Gesior. Estas regras refinam a interatividade. */
#Menu .MenuButton {
    margin: 0px !important;
    padding: 0px;
    height: 32px;
    width: 170px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
#Menu .MenuButton:hover {
    background-image: url(/static/gesior/menu/button-background-over.gif) !important;
}
#Menu .Extend {
    position: absolute;
    top: 20px;
    right: -2px;
    height: 12px;
    width: 12px;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 10;
}
#Menu .MenuIcon  { position: absolute; top: 8px; left: 10px; pointer-events: none; }
#Menu .MenuLabel { position: absolute; top: 10px; left: 36px; pointer-events: none; }
#Menu .Submenu {
    position: relative;
    margin: 0 5px;
    background-color: #0D2E2B;
    width: 160px;
    overflow: hidden;
    transition: max-height 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in-out;
}
#Menu .Submenu a { display: block; font: 11px Verdana, Arial, sans-serif; }
#Menu .Submenuitem {
    position: relative;
    margin: 0px;
    padding: 0px;
}
#Menu .SubmenuitemLabel { line-height: 15px; }
#Menu .Submenuitem .LeftChain {
    position: absolute;
    top: 0px;
    left: -5px;
    height: 100% !important;
    width: 7px;
    background-repeat: repeat-y;
    z-index: 5;
    pointer-events: none;
}
#Menu .Submenuitem .RightChain {
    position: absolute;
    top: 0px;
    right: -5px;
    height: 100% !important;
    width: 7px;
    background-repeat: repeat-y;
    z-index: 5;
    pointer-events: none;
}

/* ---- botao de alternar visibilidade de senha e conta ---- */
.toggle-pw {
    font: bold 10px Verdana, Arial, sans-serif;
    color: #5a2800 !important;
    text-decoration: none;
    margin-left: 6px;
    cursor: pointer;
}
.toggle-pw:hover {
    text-decoration: underline !important;
}
