/* Estilo geral da página de dossiê */
body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #fdfae6; /* Cor de papel antigo */
    color: #4b4b4b;
    line-height: 1.8;
    background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 100% 20px; /* Adiciona linhas de caderno no fundo */
}

/* Estilo do cabeçalho */
header {
    background-color: #6b5c54;
    color: #fff;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-bottom: 5px solid #4a3e36;
}

header h1 {
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav a {
    color: #f5e9d9;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

nav a:hover {
    color: #fff;
}

/* Container principal com visual de documento */
.container {
    padding: 2.5rem;
    max-width: 900px;
    margin: 3rem auto;
    background-color: #fefefd;
    border: 1px solid #d4c2a5;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Efeito de "fita" ou "grampo" no canto */
.container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 10px;
    background-color: #a0a0a0;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    transform: rotate(5deg);
}

/* Títulos do dossiê */
h2, h3 {
    font-family: 'Times New Roman', serif;
    color: #333;
    border-bottom: 2px dashed #7d6b5e;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h2 {
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
}

h3 {
    font-size: 1.5em;
    font-style: italic;
    border-bottom: none;
}

/* Estilo para os cartões de suspeitos */
.suspect-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #fff;
    border: 1px solid #d4c2a5;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.suspect-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 2rem;
    border: 4px solid #7d6b5e;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.suspect-card h3 {
    margin-top: 0;
    color: #4b4b4b;
    border-bottom: 2px dashed #7d6b5e;
    padding-bottom: 0.5rem;
}

/* Estilo para os cartões de pistas */
.clue-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background-color: #f5f5e8;
    border: 1px solid #d4c2a5;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.clue-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-right: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px;
    background-color: #fff;
}

.clue-card h3 {
    margin: 0 0 0.5rem;
    color: #4a5c6a;
    border-bottom: 1px solid #a4c6e2;
    padding-bottom: 0.2rem;
}

.clue-card p {
    margin: 0;
    font-size: 0.9em;
}

/* Estilo para os cartões de depoimento */
.depoimento-card {
    background-color: #fff;
    border: 1px dashed #7d6b5e;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 5px;
}

.depoimento-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    font-style: normal;
    text-transform: uppercase;
    border-bottom: 1px solid #7d6b5e;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Estilo da Linha do Tempo */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #d4c2a5;
    margin-left: -1px;
}

.timeline li {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-point {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 120px;
    padding: 5px;
    background-color: #7d6b5e;
    color: #fff;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    z-index: 10;
}

.timeline-content {
    background-color: #fefefd;
    border: 1px solid #d4c2a5;
    padding: 1.5rem;
    margin-left: 55%;
    position: relative;
    border-radius: 5px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline li:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
}

.timeline-content h3 {
    margin-top: 0;
    border-bottom: 1px dashed #7d6b5e;
    padding-bottom: 0.5rem;
}

/* Estilo para as seções de análise da conclusão */
.analysis-section {
    background-color: #fefefd;
    border: 1px solid #d4c2a5;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.analysis-section h3 {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #4a5c6a;
    border-bottom: 2px dashed #a4c6e2;
    padding-bottom: 0.5rem;
}

.analysis-final-text {
    text-align: center;
    font-style: italic;
    color: #4b4b4b;
    font-size: 1.1em;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    /* Ajustes para o cabeçalho e container */
    header {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    h2 {
        font-size: 1.5em;
    }

    /* Cartões de suspeitos e pistas */
    .suspect-card, .clue-card {
        flex-direction: column; /* Empilha a imagem e o texto */
        align-items: center;
        text-align: center;
    }

    .suspect-card img {
        margin: 0 0 1rem 0;
    }

    .clue-card img {
        margin: 0 0 1rem 0;
    }
    
    /* Linha do tempo */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-point {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-content, .timeline li:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
}
