*{
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    font-family: "Oswald", sans-serif;
}
:root {
    --background-body: #dbe1eb;
    --fundo-ficha: #ecf0f4;
    --cor-texto: #46465f;
    --cor-texto-2: #46465f;
    --texto-B-P: #1c1c1c;
    --cor-caixa: inset 2px 2px 3px rgba(14, 49, 99, 0.3);
    --cor-container: #e9ebf1;
    --cor-container-fundo: #dfe6f0; 
    --fundo-caixa: #d5d9dd;
    --line: #3e4041;
    --sombra: 
    6px 6px 12px #c8cacf,
   -6px -6px 12px #ffffff;
    --sombra-pequena:
       5px 5px 10px #c8cacf,
      -5px -5px 10px #ffffffce;
    --sombra-checkbox: 2px 2px 4px #a8a8a8,
             -2px -2px 4px #ffffff;
    --modificador-efeito: 5px 5px 10px #c8cacf, -5px -5px 8px #ffffffce,inset 2px 2px 3px rgba(14, 49, 99, 0.3), inset -2px -2px 5px #ffffff, -2px -2px 5px #ffffff;
    --nivel-efeito: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;
  }
.dark-theme {
  --background-body: #15171c;
  --fundo-ficha: #22252b;
  --cor-texto: #dddde6;
  --cor-texto-2: #868694;
  --texto-B-P: #dfe0e5;
  --cor-caixa: inset 2px 2px 3px #000000b6, inset -2px -2px 3px #40424574;
  --cor-container: #1a1c22;
  --cor-container-fundo: #121822;
  --fundo-caixa: #2a303e;
  --line: #888a9f;
  --sombra: 6px 6px 12px #101012, -6px -6px 12px #3e404382;
  --sombra-pequena: 5px 5px 10px #050509b3, -5px -5px 10px #3e40434b;
  --sombra-checkbox: 2px 2px 4px #0505099b, -2px -2px 4px #3e40434b;
  --modificador-efeito: 5px 5px 10px #111219, -5px -5px 8px #26293e32, inset 2px 2px 3px rgba(0, 0, 0, 0.6), inset -2px -2px 5px #3e404382, -2px -2px 5px #3e404382;
  --nivel-efeito: inset 2px 2px 5px #050509e2, inset -2px -2px 5px #404245af, 2px 2px 5px #0c0e11fe, -2px -2px 5px #3e4043dc;
}
/* COMEÇO DO MENU */
.menu-header {
  width: 100%;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  min-width: 1200px;
  color: var(--texto-B-P);
}

/* Layout interno do header */
.menu-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* Outros estilos permanecem */
.site-title {
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dark-mode-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* SVG pequeno e herdando cor do texto */
.dark-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: inline-block;
}
/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  cursor: pointer;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2196f3;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Dropdown */
.dropdown {
  position: relative;
  box-shadow: var(--cor-caixa);
  padding: 5px;
  border-radius: 10px;
  background-color: var(--fundo-caixa);
}

.toggle-submenu {
  display: none;
}

.dropdown-button {
  cursor: pointer;
  padding: 0.4rem 1rem;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  user-select: none;
}

.submenu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--text);
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 200px;
  z-index: 10;
}

.toggle-submenu:checked + .dropdown-button + .submenu {
  display: block;
}

.submenu button {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 4px;
  cursor: pointer;
}
.submenu button:hover {
  background: var(--fundo-caixa);
  color: #2196f3;
}

.menu-ficha-inline .icon-btn {
  opacity: 0.5;
  transition: opacity 0.2s;
}
.menu-ficha-inline:hover .icon-btn {
  opacity: 1;
}
.menu-ficha-inline .btn-ficha {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1em;
  min-width: 100px;
}
.menu-ficha-inline {
  border-bottom: 1px solid #eee;
}
/* Responsivo */
@media (max-width: 600px) {
  .site-title {
    font-size: 0.95rem;
  }

  .dropdown-button {
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
  }

  .submenu {
    min-width: 120px;
  }
}
/* FIM DO MENU */

body{
    background-color: var(--background-body);
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}
.wrapper {
    width: 100vw;
    height: 100vh;
}
.texto-center{
  text-align: center;
}
.background, .background-2{
    width: 1200px;
    height: auto;
    background-color: var(--fundo-ficha);
    border-radius: 18px;
    margin: 0 auto;
    padding: 20px;
}
.background-2{
  margin-top: 20px;
}
.header{
    display: flex; /* coloca os elementos lado a lado */
    gap: 20px; /* espaço entre os elementos (opcional) */
    margin: 0px 40px 20px;
    padding: 20px;
    background-color: var(--cor-container-fundo);
    border-radius: 10px;
    box-shadow: var(--sombra);
}
.container01 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    min-width: 40%;
}
.container01 h3,
.container02 h3,
.container03 h3,
.container04 h3 {
    color: var(--cor-texto);
    font-size: 12px;
    font-weight: 400;
}
.nome-container{
    grid-column: span 2 / span 2;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}

.caixa-texto{
    border: none;
    outline: none;
    border-radius: 15px;
    padding: 1em;
    width: 100%;
    height: 15px;
    background-color: var(--fundo-caixa);
    box-shadow: var(--cor-caixa);
    transition: 300ms ease-in-out;
}
#nv-texto{
    border-radius: 50%;
    font-size: 16px;
    width: 50px;
    height: 50px;
}
.antecede-container {
    grid-row-start: 2;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.classe-container{
    grid-row-start: 2;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.especie-container{
    grid-row-start: 3;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.subclasse-container{
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.container02{
    text-align: center;
    align-self: center;
    max-width: 100px;
    background-color: var(--cor-container);
    padding: 20px 15px;
    border-radius: 30px;
    box-shadow:  var(--sombra-pequena);
    border: 2px solid #edf4f7;
    box-shadow: var(--nivel-efeito);
}
#xp-texto{
    width: 60px;
    height: 25px;
    font-size: 10px;
    text-align: center;
}
.container03{
    text-align: center;
    align-self: center;
    max-width: 100px;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena);
}
#ca-texto{
    margin-top: 10px;
    margin-bottom: 5px;
    width: 100%;
    height: 100%;
    padding: 5%;
    font-size: 30px;
    text-align: center;
}
.checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}

.checkbox input {
  display: none;
}

.checkbox .checkmark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #2277cc 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}

.checkbox .checkmark::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}

.checkbox input:checked + .checkmark {
  background-color: #2277cc;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #2277cc 0px 0px 0px 2px inset, #2277cc 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox input:checked + .checkmark::after {
  background-color: white;
}

.checkbox .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}
.container04{
    text-align: center;
    align-self: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 8px;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena);
}
.conteudo-vida{
    display: flex;
    flex-direction: row;
    gap: 5px;
}
#vida-texto{
    margin-top: 10px;
    margin-bottom: 5px;
    width: 55px;
    height: auto;
    padding: 2px;
    font-size: 30px;
    text-align: center;
}
.temp-container, .max-container{
  width: 50px;
}
#title{
    text-align: center;
    justify-self: center;
    margin-bottom: 10px;
}
.dado-de-vida{
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    grid-row: span 2 / span 2;
}
#gasto-texto{
    margin-top: 10px;
    width: 50%;
}
#max2-texto{
    width: 50%;
}
.salva-guarda{
    grid-row: span 2 / span 2;
}
.checks-sg{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 8px;
}
#sucess{
    margin-top: 10px;
    width: 50%;
}
#falha{
    width: 50%;
}
/* TESTES DE SUCESSO */
.checkbox-sg1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg1 input {
  display: none;
}
.checkbox-sg1 .checkmark-sg1 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #22cc66 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg1 .checkmark-sg1::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg1 input:checked + .checkmark-sg1 {
  background-color: #22cc66;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #22cc66 0px 0px 0px 2px inset, #22cc66 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg1 input:checked + .checkmark-sg1::after {
  background-color: white;
}
.checkbox-sg1 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-sg2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg2 input {
  display: none;
}
.checkbox-sg2 .checkmark-sg2 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #22cc66 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg2 .checkmark-sg2::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg2 input:checked + .checkmark-sg2 {
  background-color: #22cc66;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #22cc66 0px 0px 0px 2px inset, #22cc66 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg2 input:checked + .checkmark-sg2::after {
  background-color: white;
}
.checkbox-sg2 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-sg3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg3 input {
  display: none;
}
.checkbox-sg3 .checkmark-sg3 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #22cc66 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg3 .checkmark-sg3::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg3 input:checked + .checkmark-sg3 {
  background-color: #22cc66;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #22cc66 0px 0px 0px 2px inset, #22cc66 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg3 input:checked + .checkmark-sg3::after {
  background-color: white;
}
.checkbox-sg3 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}
/* TESTES DE FALHA */
.checkbox-sg-f1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg-f1 input {
  display: none;
}
.checkbox-sg-f1 .checkmark-sg-f1 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #cc2222 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg-f1 .checkmark-sg-f1::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg-f1 input:checked + .checkmark-sg-f1 {
  background-color: #cc2222;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #cc2222 0px 0px 0px 2px inset, #cc2222 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg-f1 input:checked + .checkmark-sg-f1::after {
  background-color: white;
}
.checkbox-sg-f1 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-sg-f2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg-f2 input {
  display: none;
}
.checkbox-sg-f2 .checkmark-sg-f2 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #cc2222 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg-f2 .checkmark-sg-f2::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg-f2 input:checked + .checkmark-sg-f2 {
  background-color: #cc2222;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #cc2222 0px 0px 0px 2px inset, #cc2222 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg-f2 input:checked + .checkmark-sg-f2::after {
  background-color: white;
}
.checkbox-sg-f2 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-sg-f3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg-f3 input {
  display: none;
}
.checkbox-sg-f3 .checkmark-sg-f3 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #cc2222 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg-f3 .checkmark-sg-f3::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg-f3 input:checked + .checkmark-sg-f3 {
  background-color: #cc2222;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #cc2222 0px 0px 0px 2px inset, #cc2222 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg-f3 input:checked + .checkmark-sg-f3::after {
  background-color: white;
}
.checkbox-sg-f3 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}
/* FIM DO HEADER */

.logo-container {
  display: flex;
  justify-content: center;  /* Centraliza horizontalmente */
  align-items: center;      /* Centraliza verticalmente */
}
.logo{
  position: relative;
  align-self: center;
  align-items: center;
  justify-content: center;
  height: auto;
}
/* INICIO DO CONTEUDO DO MEIO DA FICHA */
.conteudo-meio {
  display: flex;
  gap: 8px;
  margin: 20px 40px 10px;
}
.conteudo-meio h3{
    color: var(--cor-texto);
    font-size: 12px;
    font-weight: 400;
}
.coluna-direita{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* INICIO DO ATRIBUTOS */
.atributos {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px 20px;
    text-align: center;
    align-self: center;
    background-color: var(--cor-container-fundo);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra);
    width: 400px;
    height: 1018px;
}
.proficiencia, .forca, .destreza, .constituicao, .inteligencia, .sabedoria, .carisma, .inspiracao{
  background-color: var(--cor-container);
  padding: 10px;
  border-radius: 10px;
  box-shadow:  var(--sombra-pequena)
}
.proficiencia h3, .inspiracao h3{
    margin-bottom: 10px; 
    border-bottom: 1px solid var(--line);
}
.inspiracao{
  border-radius: 5px 5px 40px 40px;
}
.proficiencia{
  height: 100px;
}
#prof, #att-for, #att-dez, #att-con, #att-int, #att-sab, #att-car{
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 28px;
  padding: 5px;
}
#prof{
  width: 50px;
  height: 50px;
}
#att-for, #att-dez, #att-con, #att-int, #att-sab, #att-car{
    box-shadow: var(--modificador-efeito);
    border: 1px solid #f9f9f9;
}

#mod-for, #mod-dez, #mod-con, #mod-int, #mod-sab, #mod-car{
  border-radius: 4px;
  padding: 2px;
  width: 40px;
  height: 40px;
  font-size: 20px;
}
.cont-att{
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  gap: 5px;
  margin-top: 10px;
}
.caixa-do-mod{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.checkbox-ih {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-ih input {
  display: none;
}
.checkbox-ih .checkmark-ih {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #24e7d7 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-ih .checkmark-ih::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-ih input:checked + .checkmark-ih {
  background-color: #24e7d7;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #24e7d7 0px 0px 0px 2px inset, #24e7d7 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-ih input:checked + .checkmark-ih::after {
  background-color: white;
}
.checkbox-ih .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

/* CAIXA DE SELEÇÃO DOS ATRIBUTOS */ 
.check-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.check-container {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}
.checkbox-att {
  background-color: transparent;
  padding: 6px;
  border-radius: 4px;
  border: rgb(146, 147, 148) solid 2px;
  box-shadow: var(--sombra);
  outline: none;
}
.check-container input:checked ~ .checkbox-att {
  background-color: transparent;
}
.checkbox-att:after {
  content: "";
  position: absolute;
  display: none;
}
.check-container input:checked ~ .checkbox-att:after {
  display: block;
}
.check-container .checkbox-att:after {
  left: 0.32em;
  top: 0.14em;
  width: 0.25em;
  height: 0.5em;
  border: solid var(--cor-texto);
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
}
/* fim da CAIXA DE SELEÇÃO DOS ATRIBUTOS */ 
.salvaguarda-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 8px;
  height: 40px;
  border-bottom: 1px ridge var(--line);
  border-top: 1px ridge var(--line);
  border-radius: 6px;
}
.pericias-container{
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding-left: 8px;
}
.caixa-texto-pericias{
    border: none;
    outline: none;
    text-align: center;
    border-radius: 8px;
    padding: 4px;
    width: 30px;
    height: 25px;
    background-color: var(--fundo-caixa);
    box-shadow: var(--cor-caixa);
    transition: 300ms ease-in-out;
}
/* FIM DO CONTAINER DO ATRIBUTOS */

/* COMEÇO DOS DETALHES */
.detalhes{
    background-color: var(--cor-container-fundo);
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
    padding: 10px;
    width: 100%;
    height: 100px;
    border-radius: 10px;
    box-shadow:  var(--sombra)
}
.detalhes h3{
    margin-bottom: 10px; 
    border-bottom: 1px solid var(--line);
}
#iniciativa, #deslocamento, #percepção{
  width: 50%;
  height: 50%;
  text-align: center;
}
#tamanho{
  width: 70%;
  height: 50%;
  text-align: center;
}
.iniciativa, .deslocamento, .tamanho, .percept-pass {
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
/* FIM DOS DETALHES */

/* INICIO DAS ARMAS E ATAQUE */
.armas {
    background-color: var(--cor-container-fundo);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow:  var(--sombra)
}
.arma-container{
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena);
    text-align: center;
}
.arma-container h3{
    margin-bottom: 10px; 
}
.nomes-armas{
  display: flex;
  gap: 150px;
}
.conteudo-armas{
  display: flex;
  gap: 10px;
  border-radius: 10px;
  box-shadow: var(--cor-caixa);
  width: 100%;
  height: 100%;
  padding: 10px;
}
.armas-caixas h3{
  margin-bottom: 0;
}
.armas-caixas{
  display: flex;
  text-align: start;
  flex-direction: column;
  gap: 10px;
}
#armas-caixa-nome{
  width: 180px;
}
#armas1, #armas-1a, #armas-1b, #armas-1c, #armas-1d, #armas-1e{
  width: 180px;
}
#armas-2{
  width: 60px;
  text-align: center;
}
#armas-2a, #armas-2b, #armas-2c, #armas-2d, #armas-2e{
  text-align: center;
}
#armas-3{
  width: 120px;
}
#armas-4{
  width: 220px;
} 
/* FIM DAS ARMAS E ATAQUE */

/* INICIO DAS SKILLS */
.caracteristicas {
    text-align: center;
    align-self: center;
    background-color: var(--cor-container-fundo);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow:  var(--sombra)
}
.skill-container{
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena);
    text-align: center;
}
.skill-container h3{
  margin-bottom: 10px;
}
.alinhamento-container{
  display: flex;
  gap: 8px;
}
.conteudo-skills{
  border-radius: 10px;
  background-color: var(--fundo-caixa);
  box-shadow: var(--cor-caixa);
  width: 100%;
  height: 497px;
  padding: 10px;
  display: inline-block;
  vertical-align: top;
}
.coluna-cards {
  height: 100%; /* altura máxima visível */
  overflow-y: auto; /* scroll vertical */
  overflow-x: hidden;
}
.coluna-cards::-webkit-scrollbar {
  width: 8px;
}
.coluna-cards::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}
.coluna-cards::-webkit-scrollbar-thumb:hover {
  background: #888;
}
.card {
  width: 100%;
  min-height: 60px;
  background-color: var(--cor-container);
  box-shadow: var(--cor-caixa);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 5px;
  position: relative;
  display: flex;
  font-size: 14px;
  color: var(--texto-B-P);
  text-align: start;
  outline: none;
  white-space: pre-wrap;
}

.drag-handle {
  width: 30px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: grab;
  flex-shrink: 0;
  align-self: center;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle::before {
  content: "⋮⋮";
  font-size: 24px;
  line-height: 1;
  color: #646464;
}

.card-content {
  flex: 1;
  white-space: pre-wrap;
  outline: none;
}
.coluna--highlight{
  background-color: #c3daf1;
  border: 1px solid #2277cc;
}

.add-card-btn {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  background-color: var(--cor-container);
  border: 1px dashed #999;
  border-radius: 6px;
  color: var(--texto-B-P);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-card-btn:hover {
  background-color: #d0d0d0;
}
/* FIM DAS SKILLS */

/* INICIO DO CONTEUDO DE BAIXO DA PRIMEIRA PARTE */
.conteudo-baixo{
  display: flex;
  gap: 8px;
  margin: 0px 40px;
}
.conteudo-baixo h3{
    color: var(--cor-texto);
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}
.treinamento-container, .tracos-talentos-container{
    display: flex;
    gap: 10px; 
    padding: 10px;
    background-color: var(--cor-container-fundo);
    border-radius: 10px;
    box-shadow: var(--sombra);
}
.treinamento-container{
  width: 400px;
}
.tracos-talentos-container{
  width: 672px;
}
.tracos-content, .talentos-content, .treinamento-content{
    background-color: var(--cor-container);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.tracos-talentos-container h3, .title-treinamento{
    margin-bottom: 5px; 
    border-bottom: 1px solid var(--line);
}
#tracos, #talentos{
  width: 100%;
  height: 92%;
  resize: none;
}

.armaduras{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
#title-secundario{
  max-width: 100px;
  font-size: 8px;
  text-align: start;
}
#title-terciario{
  text-align: start;
}
/* INICIO DAS CHECKBOXS DA PROFICIENCIA */
.checkbox-prof {
  display: flex;
  align-items: center;
  margin: 5px;
  cursor: pointer;
}
.checkbox-prof input {
  display: none;
}
.checkmark-prof {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 4px;
  background-color: #ffffff2b;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6), inset 0 0 0 24px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}
.checkmark-prof::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: #e3e3e3;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
input:checked + .checkmark-prof {
  background-color: #2277cc;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6), inset 0 0 0 24px #2277cc;
}
input:checked + .checkmark-prof::after {
  background-color: white;
}
/* FIM DAS CHECKBOXS DA PROFICIENCIA */
#armas-prof, #ferramentas-prof{
  height: 100px;
  resize: none;
}

/* COMEÇO DA SEGUNDA PAGINA */
.pagina-2{
  display: flex;
  margin: 0 40px;
  gap: 10px;
}
.pagina-2 h3, .circulos-grid label, .cabecalho{
    color: var(--cor-texto);
    font-size: 12px;
    font-weight: 400;
}
.cabecalho-pg-2, .magias, .aparencia, .historia, .idiomas, .equipamento, .moedas{
  display: flex;
  align-items: center;
  gap: 10px; 
  padding: 10px;
  background-color: var(--cor-container-fundo);
  border-radius: 10px;
  box-shadow: var(--sombra);
  height: 100%;
}
.aparencia, .historia, .idioma, .equipamento, .moedas{
  width: 330px;
}
.pg-2-coluna-esquerda, .pg-2-coluna-direita{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conjuracao-content, .espacos-mg-content, .magias-content, .aparencia-content, .historia-content, .idioma-content, .equipamento-content, .moedas-content{
    background-color: var(--cor-container);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.aparencia-content, .historia-content, .idioma-content, .equipamento-content, .moedas-content{
  height: 100%;
}
.caixa-selecao {
    width: 100%;
    height: 38px;
    padding: 2px;
    border-radius: 5px;
    background-color: transparent;
    border: 1px solid #ccc;
    color: var(--cor-texto-2);
    box-shadow: var(--cor-caixa);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
}
.selecao-conjuracao{
  text-align: center;
  margin-bottom: 10px; 
  border-bottom: 1px solid var(--line);
}
.resultado-conjuracao{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.resultado-conjuracao input{
  width: 60px;
  height: 40px;
  padding: 5px;
  font-size: 20px;
}
.resultado-conjuracao div{
  display: flex;
  gap: 8px;
  align-items: center;
}
.title-espacos-mg, .aparencia-title, .magias-title, .historia-title, .idioma-title, .equipamento-title, .moeda-title{
  text-align: center;
  margin-bottom: 10px; 
  border-bottom: 1px solid var(--line);
}
/* INICIO DO ESPAÇOS DE MAGIAS */
.forma-content{
  display: flex;
  gap: 10px;
  border-radius: 10px;
  box-shadow: var(--cor-caixa);
  width: 100%;
  height: 100%;
  padding: 10px;
}
.circulos-grid {
  display: flex;
  gap: 10px;
}
.coluna {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cabecalho {
  display: flex;
  gap: 30px;
  justify-content: center;
}
#cabecalho2{
  padding-left: 5px;
  gap: 16px;
}
#cabecalho3{
  gap: 16px;
  padding-left: 30px;
}
.linha {
  display: flex;
  align-items: center;
  gap: 5px;
}
.linha label{
  width: 34px;
}
.box{
  width: 40px;
}
.quadrados-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
/* INICIO DOS CHECKS DE MAGIAS */
.check-container-mg {
  display: inline-block;
  position: relative;
  cursor: pointer;
  user-select: none;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 16px;
}
.check-container-mg input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkbox-mg {
  width: 18px;
  height: 18px;
  background-color: transparent;
  border-radius: 4px;
  border: 2px solid rgb(146, 147, 148);
  box-shadow: var(--sombra-checkbox);
  position: relative;
  display: block;
}
.checkbox-mg::after {
  content: "";
  position: absolute;
  display: none;
  left: 30%;
  top: 15%;
  width: 25%;
  height: 50%;
  border: solid var(--cor-texto);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-container-mg input:checked ~ .checkbox-mg::after {
  display: block;
}
/* FIM DOS CHECKS DE MAGIAS */

/* INICIO DAS MAGIAS PREPARADAS */
.grid {
	display: grid;
  gap: 5px;
}
.grid-template-columns-4 {
	grid-template-columns: 35px auto 90px 80px auto auto;
}
.item{
  align-self: center;
}
.item input{
  border-radius: 5px;
}
.item-checks{
  display:flex;
  justify-content: space-around;
  align-items: center;
  color: var(--cor-texto);
  font-size: 12px;
  font-weight: 400;
}
.primeira-coluna{
  width: 50px;
}
.caixa-larga{
  width: 180px;
}

/* FIM DAS MAGIAS PREPARADAS */

/* INICIO DOS ITENS DA COLUNA DIREITA */

/* INICIO DOS APARENCIAS */
.content{
  display: none;
}
.content.show{
  display: flex;
}
.botoes-tab{
  display: flex;
}
.tab-button{
  width: 100%;
  font-size: 12px;
  border: 1px solid rgb(146, 147, 148);
  background-color: transparent;
  color: var(--cor-texto);
  cursor: pointer;
  transition: background-color 0,3s ease;
}
.tab-button.active{
  background-color: var(--cor-container-fundo);
}
.tab-button:hover{
  background-color: var(--cor-container-fundo);
}
#aparencia-descricao{
  border-radius: 0px 0px 15px 15px;
  height: 250px;
  resize: none;
}
.imagem-container{
    border: none;
    outline: none;
    border-radius: 0px 0px 15px 15px;
    padding: 5px;
    width: 100%;
    height: 250px;
    background-color: var(--fundo-caixa);
    box-shadow: var(--cor-caixa);
}

/* INICIO DOS CODIGO DE IMAGEM */
.upload-area {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #aaa;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  margin: auto;
  background-color: #f9f9f940;
  transition: border-color 0.3s ease;
}

.upload-area:hover {
  border-color: #555;
}

#fileInput {
  display: none;
}

.placeholder {
  width: 100%;
  height: 100%;
  color: var(--texto-B-P);
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.358);
  color: white;
  border: none;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: rgba(255,0,0,0.7);
}
/* FIM DO APARECIAS */

#historia{
  height: 71%;
  resize: none;
}
#equipamento{
  height: 50%;
  resize: none;
}
.itens-magicos-container{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.itens-magicos-container h3{
  margin: 5px 0;
}
.i-m-content{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* INICIO DOS IDIOMAS */
#idioma{
  height: 40px;
}

.grid-moedas{
  grid-template-columns: repeat(5, 1fr) ;
  text-align: center;
  gap: 10px;
}
.custom-form{
  text-align: center;
  height: 30px;
  padding: 2px;
  border-radius: 4px 4px 15px 15px;
}
.moedas{
  height: 150px;
}

.uploadarea{
  margin-top: 20px;
  cursor:pointer;
  padding:8px;
  color: var(--cor-texto);
  background:#eeeeee00;
  border-radius:4px;
  border: 1px solid var(--cor-texto);
}
