.header {
  background-color: #f8f9fa;
}

#nav-header {
  font-family: "Anton", sans-serif;
}

#personagembackground{
  background: url('../images/Estandarte.png') no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  background-image: 100vh;
}

.clareiravazia{
  font-family: "Anton", sans-serif;
  color: white;
}

.characters-title {
            font-family: 'Anton', sans-serif;
            color: white;
            text-align: center;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
.characters-table {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        
.characters-table th {
            font-family: Arial, Helvetica, sans-serif;
            font-weight: bold;
            background-color: #f8f9fa;
            color: #333;
            
            border-bottom: 2px solid #dee2e6;
        }
        
.characters-table td {
            vertical-align: middle;
            font-family: Arial, sans-serif;
            color: #333;
        }
        
.table-responsive {
            border-radius: 10px;
        }
        
        /* Make table rows clickable */
.clickable-row {
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
.clickable-row:hover {
            background-color: rgba(0, 123, 255, 0.1);
        }
        
.characters-table tbody tr {
            border-bottom: 1px solid #dee2e6;
        }
        
.characters-table tbody tr:last-child {
            border-bottom: none;
        }
        
        /* Adjust button styling to match your theme */
.btn-secondary {
            font-family: Arial, sans-serif;
            background-color: #6c757d;
            border-color: #6c757d;
        }
        
.btn-secondary:hover {
            background-color: #5a6268;
            border-color: #545b62;
        }


/* ===== Personagens: character cards ===== */
.camp {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px 48px;
}

.camp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.camp .characters-title {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    margin: 0;
    text-align: left;
}

.camp-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 3px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.camp-new:hover { background: #111; color: #fff; }

.camp-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.camp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 4px solid #111;
    border-radius: 22px;
    background: #fff;
    color: #111;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.camp-card:hover,
.camp-card:focus-visible {
    color: #111;
    transform: translateY(-4px);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
}

.camp-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #e9e7e1;
    border-bottom: 3px solid #111;
}

.camp-thumb { overflow: hidden; }

.camp-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.camp-capitulo { z-index: 1; }

.camp-initial {
    font-family: 'Anton', sans-serif;
    font-size: 4.5rem;
    color: #b9b5aa;
}

.camp-capitulo {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 10px;
    border: 2px solid #111;
    border-radius: 999px;
    background: #d4a017;
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.04em;
}

.camp-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
}

.camp-name {
    font-family: 'Anton', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.camp-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
}

.camp-caminho { font-weight: 700; }
.camp-caminho img { width: 22px; height: 22px; object-fit: contain; }
.camp .muted { color: #6b6b6b; }

.camp-energy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.camp-energy-track {
    flex: 1;
    height: 10px;
    border: 2px solid #111;
    border-radius: 999px;
    overflow: hidden;
}

.camp-energy-track span {
    display: block;
    height: 100%;
    background: #d4a017;
}

.camp-energy-num {
    font-family: 'Anton', sans-serif;
    font-size: 0.95rem;
}

.camp-empty {
    margin-top: 18vh;
    text-align: center;
    color: #fff;
    font-family: 'Anton', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.camp-empty h1 { font-size: clamp(3rem, 12vw, 7rem); }
.camp-empty p { font-size: clamp(1.2rem, 4vw, 2rem); }

@media (max-width: 575.98px) {
    .camp { padding: 4px 10px 32px; }
    .camp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .camp-card { border-width: 3px; border-radius: 18px; }
    .camp-body { padding: 10px 10px 12px; }
    .camp-name { font-size: 1.2rem; }
    .camp-line { font-size: 0.8rem; }
    .camp-initial { font-size: 3rem; }
    .camp-capitulo { top: 6px; left: 6px; font-size: 0.8rem; padding: 0 8px; }
}

/* A card with buttons under it (mesa page): the buttons sit in the card's bottom strip */
.camp-grid > .camp-tile { display: flex; flex-direction: column; }
.camp-tile .camp-card { flex: 1; }
.camp-tile.has-actions .camp-card {
    border-bottom-width: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.camp-tile.has-actions .camp-card:hover,
.camp-tile.has-actions .camp-card:focus-visible { transform: none; box-shadow: none; text-decoration: underline; }
.camp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px 12px;
    border: 4px solid #111;
    border-top: 2px solid #ddd;
    border-radius: 0 0 22px 22px;
    background: #fff;
}
.camp-actions form { margin: 0; }
.camp-tile .tag {
    display: inline-block;
    padding: 1px 10px;
    border: 2px solid #111;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Live Energia on the mesa page uses the same bar */
.camp-energy-track .energy-fill-small {
    display: block;
    height: 100%;
    background: #d4a017;
    border-radius: 0;
    transition: width 0.3s ease;
}
.camp-energy-track .energy-fill-small.low { background: #e8590c; }
.camp-energy-track .energy-fill-small.critical { background: #c0262d; }
.camp-energy.energy-updated { animation: energy-flash 0.5s ease; }
@keyframes energy-flash { 50% { transform: scale(1.04); } }

@media (max-width: 575.98px) {
    .camp-tile.has-actions .camp-card { border-width: 3px 3px 0; border-radius: 18px 18px 0 0; }
    .camp-actions { border-width: 3px; border-top-width: 2px; border-radius: 0 0 18px 18px; padding: 6px 10px 10px; }
}
