/* --- PREMIACOES.CSS --- */

html {
    height: 100%;
    overflow-y: scroll !important;
}

body {
    min-height: 100%;
    height: auto !important;
    overflow-x: hidden;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* SEÇÃO PRINCIPAL */
.pdf-section {
    padding: 40px 0 80px;
    width: 100%;
    /* O SEGREDO DO CENTRO: */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza tudo horizontalmente */
}

/* Ajuste do Container interno para garantir o centro */
.pdf-section .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Força TUDO dentro do container para o meio */
    width: 100%;
}

/* Títulos */
.page-title {
    color: var(--theme-color);
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%; /* Garante que o texto use a linha toda para se centralizar */
}

.page-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    padding: 0 20px;
    /* Centraliza o bloco do texto se ele for menor que a tela */
    margin-left: auto; 
    margin-right: auto;
}

/* CONTAINER DO PDF */
#pdf-viewer-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza as imagens */
    gap: 30px;
    
    width: 95%;
    max-width: 1000px;
    margin: 0 auto; /* Margem automática para garantir o centro */
}

/* AS PÁGINAS */
.pdf-page-canvas {
    width: 100% !important;
    height: auto !important;
    background-color: #fff;
    border: 8px solid #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: block;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .page-title { 
        font-size: 1.6em; 
    }
    
    .page-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    #pdf-viewer-container {
        gap: 20px;
        width: 100%; /* No celular usa 100% da largura disponível no container */
        padding: 0 10px; /* Pequeno respiro nas bordas */
        box-sizing: border-box;
    }
    
    .pdf-page-canvas {
        border-width: 4px;
    }
}

/* LOADER */
.loading-spinner {
    border: 5px solid #e0e0e0;
    border-top: 5px solid var(--theme-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-text {
    text-align: center;
    color: #777;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
}