/* ============================= */
/* ESTILOS EXCLUSIVOS DA PÁGINA HISTÓRIA */
/* ============================= */

/* --- 1. SEÇÃO DE CONTEÚDO --- */
.content-section {
    line-height: 1.6;
    font-size: 1.0rem;
    color: var(--text-leitura-p); /* Mantido tom específico de leitura */
}

.content-section p {
    margin-bottom: 18px;
}

/* --- 2. CAIXAS DE DESTAQUE --- */
.highlight-box {
    background: var(--bg-highlight);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-red);
    margin: 20px 0;
    font-size: 1rem;
}

/* --- 3. BOTÃO DE VOLTAR --- */
.btn-voltar {
    display: block;
    margin-top: 25px;
    padding: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-top: 1px solid var(--border-main);
    transition: color 0.2s;
}

.btn-voltar:hover {
    color: var(--accent-red);
}

/* Container principal do visualizador */
#mg-hist-viewer {
    display: none;
    position: fixed;
    z-index: 10000; /* Garante que fique acima de tudo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Quando o visualizador está ativo */
#mg-hist-viewer.mg-hist-active {
    display: flex;
    opacity: 1;
}

/* A imagem expandida */
#mg-hist-viewer img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mg-hist-viewer.mg-hist-active img {
    transform: scale(1);
}

/* Botão de fechar customizado */
.mg-hist-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    z-index: 10001;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}