/* Timeline wrapper spacing and left padding */
.timeline-wrapper {
    display: flex;
    justify-content: center; /* center horizontally */
    gap: 100px; /* space between timeline and labels */
}

h1.timeline-title {
    text-align: center; /* centers the text */
    margin-bottom: 20px; /* optional spacing from timeline */
}

/* Timeline container */
.timeline-container {
    position: relative;
    width: 160px; /* widened for bars */
}

.timeline-line {
    position: absolute;
    left: 60px;
    top: 0;
    width: 4px;
    background: #555;
    height: 2100px;
}

.month-label {
    position: absolute;
    left: -20px;
    font-size: 12px;
    color: #333;
}

.event-bar {
    position: absolute;
    width: 20px;
    border-radius: 3px;
}

.event-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 400px;
}

.year-section {
    border-left: 2px solid #ccc;
    padding-left: 15px;
    margin-bottom: 15px;
    position: relative;
}

.year-label {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 8px;
}

.event-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
    padding-left: 5px;
}

.event-description {
    font-size: 14px;
    color: #555;
    margin-left: 8px;
    margin-bottom: 8px;
}

.event-bar {
    position: absolute;
    cursor: pointer;
}

.event-bar:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    background: #570000;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}
