/* Fundo */
body {
  background: rgba(255, 248, 220, 0.9); /* pergaminho claro */
  background-size: cover;
  height: 100vh;
  margin: 0;
  padding-top: 80px;  /* Altura da TitleBar */
  padding-bottom: 60px; /* Altura do Footer */
  box-sizing: border-box;
}

.sh-pointer{
  cursor: pointer;
}

.sh-sidebar {
  background-color: #f5deb3; /* wheat, cor de pergaminho */
}

.sh-main {
  background-color: #fffaf0; /* floral white, mais suave */
  padding: 20px;
}

.sh-telaLivre {
  min-height: calc(100vh - 140px); /* Altura da tela menos titlebar e footer */
  height: calc(100vh - 140px);
  box-sizing: border-box;
  z-index:3;
  width: 100%;
  overflow-y: auto;
}

/* Container do formulário */
.sh-container {
  background: rgba(255, 248, 220, 0.9); /* pergaminho claro */
  border: 3px solid #5c3a1e;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

/* Título */
.sh-container h2 {
  font-family: 'Cinzel', serif;
  color: #5c3a1e;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Textos Épicos */
.p-epico {
  font-family: 'Cinzel', serif;
  color: #5c3a1e;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Inputs épicos */
.input-epico {
  width: 100%;
  padding: 12px;
  border: 2px solid #b87b33;
  border-radius: 6px;
  background: #fffdf5;
  font-family: 'Montserrat', serif;
  font-size: 1.2em;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.2s ease-in-out;
}
.input-epico:focus {
  border-color: #d8a75f;
  outline: none;
  box-shadow: 0 0 8px #d8a75f;
}

/* Botão épico */
.botao-epico {
  background: linear-gradient(to bottom, #d8a75f, #b87b33);
  border: 3px solid #5c3a1e;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #f1d3a4,
              inset 0 0 0 6px #d8a75f,
              0 4px 8px rgba(0,0,0,0.5);
  color: #1e0f00;
  font-family: 'Cinzel', serif;
  font-size: 1.2em;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  margin-top: 15px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.botao-epico:hover {
  transform: scale(1.05);
  background: linear-gradient(to bottom, #e8b76f, #c88b43);
}

/* Botão de perigo */
.botao-perigo {
  background: linear-gradient(to bottom, #d9534f, #a94442);
  border: 3px solid #5c1e1e;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #f4b4b4,
              inset 0 0 0 6px #d9534f,
              0 4px 8px rgba(0,0,0,0.5);
  color: #fff5f5;
  font-family: 'Cinzel', serif;
  font-size: 1.2em;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  margin-top: 15px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.botao-perigo:hover {
  transform: scale(1.05);
  background: linear-gradient(to bottom, #e85c58, #b94d48);
}

/* Para Ocultar e Mostrar telas, usando FLEX no lugar de BLOCK e controlando direto pelas classes */
.tela {
  display: none;
}
.tela.ativa {
  display: flex; /* ou block, dependendo do inline/data-display */
}

/*Styles para os módulos de criação do personagem */
.modulo {
  margin-bottom: 15px;
  border: 2px solid #5c3a1e;
  border-radius: 8px;
  overflow: hidden;
}

.modulo-header {
  background: linear-gradient(to right, #d8a75f, #b87b33);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
  color: #1e0f00;
  cursor: pointer;
}

.modulo-header i {
  transition: transform 0.2s;
}

.modulo-content {
  display: none;
  padding: 10px;
  background: rgba(255, 248, 220, 0.95);
}
.modulo-content.ativo {
  display: block;
}

/* Container danger (fundo da modal) */
.danger-container {
  background: rgba(255, 230, 230, 0.95); /* tom avermelhado claro */
  border: 3px solid #5c1e1e;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(92, 30, 30, 0.8);
}

/* Header danger */
.danger-header {
  background: linear-gradient(to right, #d9534f, #a94442);
  color: #fff5f5;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px;
}

/* Modal para mensagem de sucesso */
#successModal .sucess-modal-content {
  background: #f6fff6; /* verde bem clarinho */
  box-shadow: 0 0 15px rgba(0, 128, 0, 0.4);
}
#successModal h3 {
  font-size: 22px;
  font-weight: bold;
}
#successModal p {
  color: #064d06;
}

/* Menu */
/* Itens do menu lateral */
.menu-item {
  display: block;
  padding: 12px 16px;
  margin: 6px 0;
  background: #fffdf5;
  border: 2px solid #b87b33;
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 1.05em;
  color: #1e0f00;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.menu-item:hover {
  background: linear-gradient(to right, #d8a75f, #b87b33);
  color: #fff;
  transform: scale(1.03);
}

/* Item de perigo */
.menu-item-danger {
  display: block;
  padding: 12px 16px;
  margin: 6px 0;
  background: linear-gradient(to bottom, #d9534f, #a94442);
  border: 2px solid #5c1e1e;
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 1.05em;
  color: #fff5f5;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.menu-item-danger:hover {
  transform: scale(1.03);
  background: linear-gradient(to bottom, #e85c58, #b94d48);
}

/*Ajustes de Correção do Sidebar (menu)*/
/* Correção de layout do menu lateral em dispositivos móveis */
@media (max-width: 768px) {
  #menuLateral {
    position: fixed !important;
    top: 80px;
    left: 0;
    width: 85% !important;
    height: calc(100vh - 140px);
    overflow-y: auto;
    display: none;
    background: #f5deb3;
    box-shadow: 4px 0 10px rgba(0,0,0,0.4);
  }

  /* Força cada item do menu a se manter em bloco e com espaçamento */
  #menuLateral .menu-item,
  #menuLateral .menu-item-danger {
    display: block !important;
    width: 100%;
    margin: 8px 0 !important;
  }

  /* Evita compressão do texto e quebra de layout */
  #menuLateral .menu-item i,
  #menuLateral .menu-item-danger i {
    margin-right: 6px;
  }

  /* Centraliza o título e mantém espaçamento visual */
  #menuLateral h3 {
    text-align: center;
    font-size: 1.3em;
  }
}

.ponto-cidade {
  position: absolute;
  width: 12px;
  height: 12px;
  background: gold;
  border: 2px solid #654321;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ponto-cidade:hover {
  transform: translate(-50%, -50%) scale(1.4);
}

/* ==== Fonte para a tela História ==== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:wght@400;600&display=swap');

#historiaConteudo h2 {
  margin-bottom: 20px;
}

.modulo-header:hover {
  filter: brightness(1.05);
}

.modulo-content {
  display: none;
  border-radius: 0 0 8px 8px;
  margin-top: 4px;
}

.modulo.open .modulo-content {
  display: block;
}
