/* historia.css - Estilo simples e bonito para a página de História de Marie Curie */
/* Sem Flexbox, sem Grid, sem Media Queries - harmonia com todo o site */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página - tom acolhedor e clássico */
body {
    background: #fef9e8;  /* pergaminho claro */
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #2c3e2f;
    line-height: 1.6;
    padding: 20px;
}

/* Cabeçalho - mesma identidade visual */
header {
    background-color: #3b2b1f;
    color: #f9e7c2;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 24px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e3c9a0;
}

header h1 {
    font-size: 3.2em;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #2a1f14;
}

header p {
    font-size: 1.2em;
    font-style: italic;
    color: #ffe0b5;
}

/* Navegação */
nav ul {
    list-style: none;
    margin-top: 20px;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #f9e7c2;
    background-color: #5e3e2b;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    transition: all 0.2s ease;
    border: 1px solid #cbad7a;
}

nav ul li a:hover {
    background-color: #8b5a3c;
    color: white;
    border-color: #ffdd99;
}

/* Área principal - centralizada com elegância */
main {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px 35px;
    border-radius: 36px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecd9b4;
}

/* Cada seção */
section {
    margin-bottom: 45px;
    border-bottom: 1px dashed #ddd0b6;
    padding-bottom: 30px;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Títulos principais (h2) */
h2 {
    color: #6b3e1c;
    font-size: 1.9em;
    margin-bottom: 25px;
    border-left: 8px solid #c49a6c;
    padding-left: 20px;
}

/* Subtítulos que representam os anos (h3) */
h3 {
    color: #9b5e2c;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Estilo especial para o primeiro h3 (1867) */
section:first-child h3:first-of-type {
    margin-top: 0;
}

/* Parágrafos */
p {
    margin-bottom: 16px;
    text-align: justify;
}

/* Imagem - flutuando à direita para dar charme à linha do tempo */
img {
    float: right;
    margin-left: 25px;
    margin-bottom: 20px;
    margin-top: 10px;
    border-radius: 50%;  /* imagem circular para destacar retrato */
    border: 4px solid #e2c7a3;
    box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.1);
    width: 160px;
    height: 160px;
    object-fit: cover;
    background-color: #f5ede0;
}

/* Limpa a flutuação após a imagem para os próximos h3 */
section:first-child::after {
    content: "";
    display: table;
    clear: both;
}

/* Destaque para o ano nos h3 - adicionando um pequeno marcador */
h3::before {
    content: "✨ ";
    font-size: 0.9em;
    opacity: 0.7;
}

/* Link de voltar ao início */
section:last-child a {
    color: #9b5e2c;
    text-decoration: none;
    font-weight: bold;
    background-color: #fff0e0;
    padding: 8px 22px;
    border-radius: 40px;
    display: inline-block;
    margin-top: 15px;
    border: 1px solid #e2c294;
    transition: background 0.2s;
}

section:last-child a:hover {
    background-color: #e7cfb0;
    text-decoration: underline;
}

/* Estilo especial para a última seção (Inspiração) */
section:last-child {
    background-color: #fefaf3;
    padding: 20px 25px;
    border-radius: 32px;
    margin-top: 10px;
}

section:last-child h2 {
    margin-top: 0;
}

/* Rodapé - mesmo estilo das outras páginas */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 10px;
    background-color: #e8dac0;
    color: #3e2a1f;
    border-radius: 48px 48px 24px 24px;
    font-size: 0.85em;
    border-top: 1px solid #cfb587;
}

/* Pequenos ajustes para manter a fluidez da leitura */
main p:last-child {
    margin-bottom: 0;
}

/* Efeito suave para transições */
a {
    transition: all 0.2s ease;
}

/* Adiciona um toque de delicadeza aos parágrafos da última seção */
section:last-child p {
    font-size: 1.05em;
    line-height: 1.7;
}