body {
	font-family: Arial, sans-serif;
	background-color: var(--background-color);
	color: var(--text-color);
}

header {
	width: 100%;
	padding: 0;
	text-align: center;
	font-size: 20px;
	color: var(--text-color);
}

h1 {
	margin: 0.3em;
	color: var(--text-color);
}

#content {
	width: 80%;
	margin: auto;
	padding-top: 50px;
}

#timeline {
	display: flex;
	flex-direction: column;
	position: relative;
}

.timeline-item {
	padding: 10px 40px;
	margin: -5px 0;
	border-radius: 5px;
	position: relative;
	background-color: var(--card-background-color);
	width: 45%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-item:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.timeline-item:nth-child(odd) {
	left: 45%;
	transform: translateX(-100%);
	text-align: right;
}

.timeline-item:nth-child(odd):hover {
	transform: translateX(-100%) scale(1.05);
}

.timeline-item:nth-child(even) {
	left: 55%;
}

.timeline-item:nth-child(even) .year {
	font-weight: bold;
	font-size: 1.2em;
	background: var(--year-background-color);
	color: var(--year-text-color);
	padding: 5px 10px;
	border-radius: 5px;
	position: absolute;
	top: -10px;
	left: 30px;
}

.timeline-item:nth-child(even) .eventType {
	font-weight: bold;
	font-size: 1em;
	background: var(--event-type-background-color);
	color: var(--event-type-text-color);
	padding: 5px 10px;
	border-radius: 5px;
	position: absolute;
	top: -10px;
	right: 30px;
}

.timeline-item:nth-child(odd) .year {
	font-weight: bold;
	font-size: 1.2em;
	background: var(--year-background-color);
	color: var(--year-text-color);
	padding: 5px 10px;
	border-radius: 5px;
	position: absolute;
	top: -10px;
	right: 30px;
}

.timeline-item:nth-child(odd) .eventType {
	font-weight: bold;
	font-size: 1em;
	background: var(--event-type-background-color);
	color: var(--event-type-text-color);
	padding: 5px 10px;
	border-radius: 5px;
	position: absolute;
	top: -10px;
	left: 30px;
}

.timeline-item .content {
	margin-top: 20px;
}

.timeline-item .content p {
	margin: 10px 0;
}

.timeline-item .content .event-type {
	font-weight: bold;
}

.timeline-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--line-color);
	transform: translateX(-50%);
}

.timeline-connector {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 2px;
	background: var(--line-color);
	transform: translateX(-50%);
}

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

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

/* Light Theme */
@media (prefers-color-scheme: light) {
	:root {
		--background-color: #f4f4f4;
		--text-color: #000;
		--card-background-color: #fff;
		--year-background-color: #333;
		--year-text-color: #fff;
		--event-type-background-color: #333;
		--event-type-text-color: #fff;
		--line-color: #ddd;
	}
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
	:root {
		--background-color: #2c2c2c;
		--text-color: #d4d4d4;
		--card-background-color: #444;
		--year-background-color: #333;
		--year-text-color: #d4d4d4;
		--event-type-background-color: #333;
		--event-type-text-color: #d4d4d4;
		--line-color: #555;
	}
}