:root {
    --azul-1: #2B545E;
    --azul-2: #386D7B;
    --azul-3: #40868C;
    --azul-4: #52ABB3;
}


body {
    margin: 0;
    padding-top: 70px; /* Compensa a altura da navbar fixa */
    position: relative;
    background-color: #E4E4D7;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("img/bg/backpaper.png"); /* Verifique o caminho da imagem */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    /*opacity: 0.5;*/
    z-index: -1;
}

.bg-void {
    --bs-bg-opacity: 1;
    background: var(--azul-4);
}

.premium-icon {
    position: absolute;
    z-index: 1;
}

.premium-crown-icon {
    width: 20px;
    height: 20px;
}

.container {
    background-color: #202428;
    color: #ffffff;
    font-size: 10px;
    padding: 10px;
    margin-top: 20px;
    border-radius: 10px;
    overflow-x: auto; /* Permite rolagem horizontal para tabelas grandes */
}

.logo {
    width: 20%;
    max-width: 150px;
    margin: auto;
    display: block;
    margin-top: 20px;
}

.select_chars {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgb(94, 128, 165);
    background: linear-gradient(180deg, rgba(94, 128, 165, 1) 0%, rgba(57, 77, 99, 1) 100%);
    border-radius: 5px;
    padding-left: 20px;
    padding-right: 10px;
    margin-left: 30px;
    margin-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.detalhes_char {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgb(94, 128, 165);
    background: linear-gradient(180deg, rgba(94, 128, 165, 1) 0%, rgba(57, 77, 99, 1) 100%);
    border-radius: 5px;
    padding-left: 20px;
    padding-right: 10px;
    margin-left: 19px;
    margin-right: 19px;
    height: 100%;
}
.select_chars_head_bar {
    height: 25px;
    background-image: url('img/bg/backheaderpaper_personagem.png'); /* seu arquivo */
    ackground-repeat: repeat-x;      /* repete apenas no eixo X */
    background-position: top center;  /* opcional: alinha no topo */
    background-size: auto 100%;       /* faz a altura do tile acompanhar o elemento */
    margin-left: 30px;
    margin-right: 30px;
}

.select_chars_void {
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--azul-4);
    background: linear-gradient(180deg, var(--azul-4) 0%, var(--azul-3) 100%);
    border-radius: 0px 0px 5px 5px;
    padding-left: 20px;
    padding-right: 10px;
    margin-left: 30px;
    margin-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.detalhes_char_void {
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--azul-4);
    background: linear-gradient(180deg, var(--azul-4) 0%, var(--azul-3) 100%);
    border-radius: 5px;
    padding-left: 20px;
    padding-right: 10px;
    margin-left: 19px;
    margin-right: 19px;
    height: 100%;
}

.title_char {
    display: flex; 
}

.itens_char {
    display: flex; 
    flex-wrap: wrap;
}

.nav-link-char {
    background-color: #084375;
    color: white;
    border: 1px solid #4682B4; 
    border-radius: 4px;
    margin-right: 5px;
    padding: 8px 16px; 
}

.nav-link-char:hover {
    background-color: #A9B9D4; 
    color: white;
}

.nav-link-char.active {    
    background-color: #B0C4DE;
    color: black; 
    border: 1px solid #4682B4;
    font-weight: bold;
}

.box_item {
    background: rgb(94, 128, 165);
    border-radius: 5px;
    padding: 10px 10px 45px 10px;
    margin: 0px 5px 5px 0px;
    -webkit-box-shadow: 10px 10px 13px -10px rgba(0,0,0,1);
    -moz-box-shadow: 10px 10px 13px -10px rgba(0,0,0,1);
    box-shadow: 10px 10px 13px -10px rgba(0,0,0,1);
}

.box_item_void {
    background: var(--azul-3);
    border-radius: 5px;
    padding: 6px 6px 45px 6px;
    margin: 0px 5px 5px 0px;
    box-shadow: 10px 10px 13px -10px rgba(0,0,0,1);
}
.box_item_void_block {
    background: var(--azul-3);
    border-radius: 5px;
    padding: 6px 6px 45px 6px;
    margin: 0px 5px 5px 0px;
    box-shadow: 10px 10px 13px -10px rgba(0,0,0,1);
}

.centralizar {
    margin-left: 5px;
    margin-right: 5px;
}

.box_missao {
    background: var(--azul-3);
    padding: 10px 10px 25px 10px;
}

.center-items {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-grey {
      filter: grayscale(100%);
    }

.img_char {
    margin-right: 0px;
    width: 60px;
    margin-bottom: 3px;
}

.img-container {
    position: relative;
    display: inline-block;
}

.img-personagem {
    width: 80px;
    height: 80px;
    object-fit: cover; /* Garante que a imagem mantenha proporção e preencha */
    border-radius: 8px; /* opcional, só para suavizar bordas */
}

@media (max-width: 768px) {
    .img-personagem {
        width: 60px;
        height: 60px;
    }
}

.char-image {
    max-width: 100%;
    transition: opacity 0.3s ease;
}

.char-image:hover {
    opacity: 0;
}

.char-image-clicked {
    opacity: 1;
    border: 3px solid #E39E0A;
    border-radius: 10px;
}

.img-container:hover .clicked {
    display: none;
}

.container-login {
    display: flex;
    width: 100%;
    height: 100vh; 
    margin: 0;
    padding: 0; 
    align-items: center; 
    justify-content: center; 
}

.left-side {
    width: 66.66%;
    background-color: rgba(41, 70, 108, 0.7);
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.left-side iframe {
    flex-grow: 1;
    max-width: 80%;
    margin-top: 20px;
}

.right-side {
    width: 33.33%;
    background-color: rgba(41, 70, 108, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.right-side .logo {
    width: 20%;
    max-width: 150px;
    margin-bottom: 20px;
}

.right-side .form-group label {
    color: #ffffff;
    font-weight: bold;
}

.login-form {
    width: 100%;
    max-width: 300px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.btn {
    width: 100%;
    padding: 10px;
}

.btn-action {
    width: 50px;
}

.btn-login {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .left-side {
        margin-top: 200px;
        width: 100%;
    }
    .right-side {
        width: 100%;
    }
    .container {
        padding: 5px; 
    }
    .table-cat-itens {
        width: 100%;
    }

    .img_char {
        margin-right: -5px;
        width: 55px;
        margin-bottom: 3px;
    }
    .select_chars {
        padding-top: 10px;
        padding-bottom: 10px;
        background: rgb(94,128,165);
        background: linear-gradient(180deg, rgba(94,128,165,1) 0%, rgba(57,77,99,1) 100%);
        border-radius: 5px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .detalhes_char {
        margin-left: 5px;
        margin: 5px;
    }
}

.form-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    color: black;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.form-popup-content {
    background: rgb(94, 128, 165);
    border-radius: 15px;
    margin: 15% auto;
    padding: 20px;
    border: 3px double turquoise; /* Borda dupla azul turquesa */
    width: 80%;
    max-width: 600px;
    position: relative;
    color: #ffffff;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.6); /* Sombra interna */
}


.form-popup-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.table-cat-itens {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px; 
    background-color: transparent !important;
    color: #ffffff; 
    --bs-table-bg: transparent !important; 
}

.table-cat-itens tr {
    display: table-row; 
}

.table-cat-itens th, .table-cat-itens td {
    color: #ffffff !important;
    border: none !important; 
    padding: 10px;
    background-color: var(--azul-4); 
}

.table-cat-itens tbody tr td:first-child {
    border-top-left-radius: 5px; 
    border-bottom-left-radius: 5px;
}

.table-cat-itens tbody tr td:last-child {
    border-top-right-radius: 5px; 
    border-bottom-right-radius: 5px;
}

.table-cat-itens th {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.img-thumbnail {
    background-color: transparent;
    border: 0px;
    max-width: 70px;
}

.dropdown-toggle {
    padding: 0px;
}

.navbar {
    margin-bottom: 20px;
}

.navbar-brand img {
    width: 100%;
    max-width: 150px;
    margin: auto;
    display: block;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
}

.center-button {
    text-align: center;
}

.btn-registrar {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
}

.btn-registrar:hover {
    background-color: #0056b3;
}

.termos-e-condicoes {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    height: 150px;
    overflow-y: auto;
    border-radius: 5px;
}

.termos-texto {
    margin-bottom: 10px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* Estilos para o modal de edição do personagem */
#editarPersonagemModal .form-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#editarPersonagemModal .row {
    display: flex; /* Alinha os elementos lado a lado */
    justify-content: center; /* Centraliza as colunas dentro do modal */
    align-items: flex-start; /* Alinha as colunas no topo */
    width: 100%; /* Garante que a row ocupe toda a largura */
    margin: 10px 0; /* Adiciona margem para espaçamento */
}

#editarPersonagemModal .col-left {
    /*flex: 1; /* Garante que a coluna ocupe o espaço necessário */
    text-align: center;
    padding-right: 20px; /* Espaço entre as colunas */
}

#editarPersonagemModal .col-right {
    /*flex: 2; /* Garante que a coluna da direita ocupe mais espaço */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px; /* Espaço entre as colunas */
}

#editarPersonagemModal .form-control {
    width: 100%; /* Garante que o campo ocupe toda a largura da coluna direita */
    height: 30px;
    font-size: 10px;
}

#editarPersonagemModal h5 {
    margin: 10px 0; /* Adiciona um pouco de espaço acima e abaixo do título */
}

/* Estilo adicional para o botão */
.btn-edit {
    padding: 2px 8px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    min-width: unset;
}
