/* Basic Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	--bg: #222;
	--track: #444;
	--date: #888;
}


@font-face {
	font-family: "Datefont";
	src: url("../Fonts/Changa_One/ChangaOne-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "PTSans";
	src: url("../Fonts/PT_Sans/PTSans-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Roboto";
	src: url("../Fonts/Roboto/Roboto-Regular.ttf") format("truetype");
}


body {
	font-family: PTSans, Arial, sans-serif;
	background-color: var(--bg);
	color: #333;
	line-height: 1.6rem;
}

.timeline-container {
	display: flex;
	overflow-x: scroll; /* Horizontal scrolling */
	padding: 0;
	gap: 1rem;
	width: 100%;
	scroll-behavior: smooth;
	/* Hide the scrollbar in some browsers */
	-ms-overflow-style: none;
	scrollbar-width: none;
	margin-top: -2rem;
}

.timeline-container::-webkit-scrollbar {
	display: none; /* Hide scrollbar in Webkit browsers */
}

.timeline-entry {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 300px; /* Max width of each entry on desktop */
	min-width: 300px; /* Min width if content is smaller */
	position: relative;
	text-align: left;
	height: fit-content;
	flex-shrink: 0;
}

.timeline-entry .entry-date {
	font-size: 1.7rem;
	color: var(--date);
	text-align: center;
	font-family: "Datefont", sans-serif;
	transform: translateY(-0.05rem);
}

.timeline-entry .entry-content {
	position: relative;
	/*display: flex;*/
	/*flex-direction: column;*/
	/*justify-content: center;*/
	border: 1px solid #ddd;
	border-radius: 10px;
	background-color: #fff;
	padding: 15px;
	margin-top: 2rem;
	width: 100%;
}

.timeline-entry .entry-headline {
	font-size: 1.6rem;
	color: #222;
	margin-bottom: 10px;
}

.timeline-entry .entry-text {
	font-size: 1rem;
	color: #555;
	line-height: 1.6;
	margin-bottom: 1rem;
	margin-top: 1rem;
}

.timeline-entry .entry-image {
	margin-top: 1rem;
}

.timeline-entry .entry-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.timeline-entry .entry-image figcaption {
	font-size: 0.8rem;
	line-height: normal;
	color: #777;
	margin-top: 5px;
}

.timeline-entry {
	p, ul, ol {
		margin-bottom: 0.5rem;
	}

	p {
		font-size: 0.9rem;
	}

	ul {
		font-size: 0.9rem;
		margin-left: 1rem;
	}
}

.like-button {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 24px;
}

.heart {
	color: #999;
	transition: color 0.3s ease, transform 0.2s ease;
}

.like-button.liked .heart {
	color: red;
	transform: scale(1.2);
}

.like-count {
	font-size: 0.8rem;
	color: #999;
	vertical-align: text-bottom;
}

.like-count.liked {
	color: red;
}


/* Responsiveness for mobile */
@media (max-width: 768px) {
	.timeline-container {
		flex-direction: column; /* Stack entries vertically on mobile */
		overflow-x: visible; /* Disable horizontal scrolling */
	}

	.timeline-entry {
		width: 100%; /* Full width on mobile */
		max-width: 100%;
		min-width: 100%;
		margin-bottom: 1rem;
	}

	.timeline-entry::before {
		left: 10px; /* Central line looks better on mobile */
		top: 1rem; /* Adjust vertical position */
		height: auto;
		width: 100%;
	}
}


.bike-track {
	position: relative; /* or fixed */
	height: 2.2rem;
	background-image: url("bike-track.svg");
	background-repeat: repeat-x;
	background-size: auto 100%;
	z-index: -100;
	margin-top: 2rem;
}

