/* Search Filter for Tables */
.search-filter-container {
    flex-grow: 1;
    min-width: 250px;
}

.search-filter-container input {
    width: 100%;
    max-width: 400px; /* Limit width on larger screens */
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: block; /* To apply margin auto if needed */
}

.search-filter-container input:focus {
    outline: 2px solid var(--secondary-color);
    border-color: var(--secondary-color);
}


/* Custom Tooltip */
.custom-tooltip {
    position: fixed;
    display: none;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    z-index: 1001;
    pointer-events: none;
    white-space: pre-wrap; /* To respect newlines in the tooltip data */
    line-height: 1.4;
}
/* Infobox (Right Column) */
.infobox {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.infobox-image {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 5px;
}

.infobox-item-image {
    max-width: 64px;
    max-height: 64px;
    image-rendering: pixelated; /* Melhora a visualização de pixel art */
}

.infobox-title {
    text-align: center;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.infobox-data table {
    width: 100%;
    border-collapse: collapse;
}

.infobox-data th, .infobox-data td {
    padding: 0.4rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

.infobox-data th {
    font-weight: bold;
    width: 40%;
}

.infobox-data tr:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.infobox-data td code {
    background-color: #e0e0e0;
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 90%;
    border-radius: 3px;
    font-family: monospace;
}

/* Tabs System */
.tabs-container {
    margin-top: 1rem;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-link {
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
   
    color: var(--secondary-color);
    position: relative;
    bottom: -2px; /* To align with the container border */
    border-bottom: 2px solid transparent;
}

.tab-link:hover {
    color: var(--primary-color);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Item List for Shop */
.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}



.item-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--background-color);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    width: 130px;
    height: 130px;
    position: relative;
}


.item-entry img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    
}

.item-entry .item-name {
    
    
    font-size: 14px;
}

.item-entry .item-price {
    font-size: 0.9rem;
    color: #666;
    position: absolute;
    bottom: 5px;
}

/* Shop Table .item-icon */
.shop-table {
  /*   width: 65%; */
    width: 100%; 
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 600px;
}

.shop-table th, .shop-table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.shop-table thead {
    background-color: var(--header-footer-bg);
}

.shop-table th {
    font-weight: bold;
}

.shop-table .item-image-cell img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    display: block;
}

.shop-table .item-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    vertical-align: middle;
}

.shop-table .item-image-cell ico {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    display: block;
}

.shop-table .item-image-cell {
    width: 64px; /* Give a fixed width for the image column */
}

.shop-table tbody tr {
    cursor: help;
    transition: background-color 0.2s;
}

.shop-table tbody tr:hover {
    background-color: #f0f0f5;
}



.shop-table th[data-sortable] {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Space for arrow */
}

.shop-table th[data-sortable]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.3;
}

.shop-table th[data-sortable].sort-asc::after {
    border-bottom: 5px solid var(--text-color);
    opacity: 1;
}

.shop-table th[data-sortable].sort-desc::after {
    border-top: 5px solid var(--text-color);
    opacity: 1;
}






/* 222          */
/* Shop Table */
.shop-table2 {
     /*   width: 65%; */
    width: 100%; 
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 600px;
}

.shop-table2 .item-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    vertical-align: middle;
}

.shop-table2 th, .shop-table2 td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.shop-table2 thead {
    background-color: var(--header-footer-bg);
}

.shop-table2 th {
    font-weight: bold;
}

.shop-table2 .item-image-cell img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    display: block;
}

.shop-table2 .item-image-cell {
    width: 64px; /* Give a fixed width for the image column */
}

.shop-table2 tbody tr {
    cursor: help;
    transition: background-color 0.2s;
}

.shop-table2 tbody tr:hover {
    background-color: #f0f0f5;
}



.shop-table2 th[data-sortable] {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Space for arrow */
}

.shop-table2 th[data-sortable]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.3;
}

.shop-table2 th[data-sortable].sort-asc::after {
    border-bottom: 5px solid var(--text-color);
    opacity: 1;
}

.shop-table2 th[data-sortable].sort-desc::after {
    border-top: 5px solid var(--text-color);
    opacity: 1;
}



/* 3333         */
/* Shop Table */
.shop-table3 {
     /*   width: 65%; */
    width: 100%; 
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.shop-table3 .item-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    vertical-align: middle;
}
.shop-table3 th, .shop-table3 td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.shop-table3 thead {
    background-color: var(--header-footer-bg);
}

.shop-table3 th {
    font-weight: bold;
}

.shop-table3 .item-image-cell img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    display: block;
}

.shop-table3 .item-image-cell {
    width: 64px; /* Give a fixed width for the image column */
}

.shop-table3 tbody tr {
    cursor: help;
    transition: background-color 0.2s;
}

.shop-table3 tbody tr:hover {
    background-color: #f0f0f5;
}



.shop-table3 th[data-sortable] {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Space for arrow */
}

.shop-table3 th[data-sortable]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.3;
}

.shop-table3 th[data-sortable].sort-asc::after {
    border-bottom: 5px solid var(--text-color);
    opacity: 1;
}

.shop-table3 th[data-sortable].sort-desc::after {
    border-top: 5px solid var(--text-color);
    opacity: 1;
}



/* 4444         */
/* Shop Table */
.shop-table4 {
     /*   width: 65%; */
    width: 100%; 
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.shop-table4 .item-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    vertical-align: middle;
}

.shop-table4 th, .shop-table4 td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.shop-table4 thead {
    background-color: var(--header-footer-bg);
}

.shop-table4 th {
    font-weight: bold;
}

.shop-table4 .item-image-cell img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    display: block;
}

.shop-table4 .item-image-cell {
    width: 64px; /* Give a fixed width for the image column */
}

.shop-table4 tbody tr {
    cursor: help;
    transition: background-color 0.2s;
}

.shop-table4 tbody tr:hover {
    background-color: #f0f0f5;
}



.shop-table4 th[data-sortable] {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Space for arrow */
}

.shop-table4 th[data-sortable]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.3;
}

.shop-table4 th[data-sortable].sort-asc::after {
    border-bottom: 5px solid var(--text-color);
    opacity: 1;
}

.shop-table4 th[data-sortable].sort-desc::after {
    border-top: 5px solid var(--text-color);
    opacity: 1;
}

.article-header .subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Mission Steps Section */
.mission-steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mission-step {
    background-color: var(--background-color);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.mission-step-dialogue blockquote {
    border-left: 3px solid #ccc;
    padding-left: 1rem;
    margin-left: 0.5rem;
    margin-top: 0.5rem;
    font-style: italic;
    color: #444;
    
}

.mission-step-dialogue p {
    margin-top: 10px;
    color: #2a3a7d;
    
}

.mission-step-item {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--surface-color);
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.mission-step-item img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

/* Reward Section */
.reward-box {
    background-color: #e6f3ff; /* Um azul bem claro */
    border: 2px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    max-width: 70%;
}

.reward-box strong {
    color: var(--primary-color);
}

/* Reward Section */
.reward-box2 {
    background-color: #e6f9ec; /* Verde bem claro */
    border: 2px solid #4CAF50; /* Verde médio, símbolo de sucesso */
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    
    color: #2e7d32; /* Verde escuro para o texto */
}

.reward-box2 strong {
    color: #1b5e20; /* Verde mais intenso para destaque */
}


/* Image Gallery for Modals */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-thumbnail {
    width: 100%;
    height: auto;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
/*    max-height: 80vh; */
    animation: zoomIn 0.3s;
}

.modal-caption {
    margin: 20px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
}


.modal-close2 {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close2:hover,
.modal-close2:focus {
    color: #bbb;
    text-decoration: none;
}

.news-image {
    max-width: 100%;
    margin: 15px 0;
    text-align: center;
}

.news-image img {
    width: 100%;
    height: auto;
    max-width: 600px; /* limita o tamanho máximo */
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.news-image figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}




@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}


@media (max-width: 768px) {
    
     .news-image img {
        max-width: 100%;
        border-radius: 5px;
    }

    .news-image figcaption {
        font-size: 0.8rem;
    }
 
  .infobox {
        float: none;
        width: 100%;
        margin-left: 0;
    }
    
    .item-list {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 1rem 0;
    }
    
    .item-entry {
    width: 100px;
    height: 130px;
}
.shop-table {
    width: 100%;
    
}
.shop-table2 {
    width: 100%;
    
}

.shop-table3 {
    width: 100%;
    
}

.shop-table4 {
    width: 100%;
    
}

       .search-filter-container {
        width: 100%;
    }

    .search-filter-container input {
        max-width: none;
    }
    
    .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Reward Section */
.reward-box {
    background-color: #e6f3ff; /* Um azul bem claro */
    border: 2px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
   
}
    

    
}
