body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
}

#biografia {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

#biografia-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#biografia p:first-of-type {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-indent: 20px;
}

#curriculum p:first-of-type {
    text-indent: 20px;
}

#biografia h1 {
    color: #333;
    margin-left: 3rem;
    font-size: 36px;
}

#biografia p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.highlight {
    max-width: 250px;
    border-radius: 8px;
}

main {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

p {
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

/*Timeline*/
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: rgba(51, 51, 51, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    transition: all 0.3s ease-in-out;
}

.timeline-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timeline-item .timeline-content {
    position: relative;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    width: 45%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    transform: translateX(0);
}

.timeline-item:nth-child(even) .timeline-content {
    left: 100%;
    transform: translateX(-100%);
}

.timeline-item:hover .timeline-content {
    background-color: #e0e0e0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: -7px;
    background-color: #fff;
    border: 3px solid #333;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s, border-color 0.3s;
}

.timeline-item:nth-child(even)::before {
    left: -7px;
}

.timeline-item:hover::before {
    background-color: #333;
    border-color: #333;
}

.timeline-img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.timeline-img:hover {
    transform: scale(1.02);
}

/*materias*/
#materias {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#materias h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.materia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.materia {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.materia:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.materia a {
    display: block;
    font-size: 18px;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 10px;
}

.materia a:hover {
    text-decoration: underline;
}

.materia-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Media Queries para ajustar a linha central na versão mobile */
@media (max-width: 768px) {
    .timeline-item .timeline-content {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(even) .timeline-content {
        left: 50%;
        transform: translateX(-50%);
    }

    #biografia h1 {
        font-size: 36px;
    }

    .highlight {
        max-width: 180px;
    }

    /* Remove a linha central na versão mobile */
    .timeline::after {
        display: none;
    }
}

@media (max-width: 550px) {
    #biografia h1 {
        font-size: 32px;
    }

    .highlight {
        max-width: 120px;
    }
}

@media (max-width: 430px) {
    #biografia h1 {
        font-size: 28px;
    }

    .highlight {
        max-width: 100px;
    }
}