/* Geocities-style CSS */
body {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	background: white;
	min-height: 100vh;
}

.header {
	background: black;
	color: white;
	text-align: center;
	padding: 20px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.header h1 {
	margin: 0;
	font-size: 28px;
	text-shadow: 3px 3px 0px #000;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-10px); }
	60% { transform: translateY(-5px); }
}

marquee {
	background: white;
	color: black;
	font-weight: bold;
	padding: 5px;
	margin-top: 10px;
	border: 2px dashed black;
}

#nodeCanvas {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: auto;
	background: white;
}

.node {
	position: absolute;
	background: white;
	border: 3px solid black;
	border-radius: 15px;
	padding: 15px;
	min-width: 120px;
	max-width: 200px;
	cursor: pointer;
	box-shadow: 
		0 8px 16px rgba(0,0,0,0.3),
		inset 0 1px 0 rgba(255,255,255,0.3);
	transition: all 0.3s ease;
	font-weight: bold;
	color: black;
	z-index: 10; /* Ensure nodes are above connection lines */
}

.node:hover {
	box-shadow: 
		0 12px 24px rgba(0,0,0,0.4),
		inset 0 1px 0 rgba(255,255,255,0.3);
	background: black;
	color: white;
}

.node.active {
	background: black;
	color: white;
}

@keyframes pulse {
	0% { box-shadow: 0 8px 16px rgba(0,0,0,0.3), 0 0 0 0 rgba(0,0,0,0.7); }
	70% { box-shadow: 0 8px 16px rgba(0,0,0,0.3), 0 0 0 10px rgba(0,0,0,0); }
	100% { box-shadow: 0 8px 16px rgba(0,0,0,0.3), 0 0 0 0 rgba(0,0,0,0); }
}

.node-title {
	font-size: 14px;
	margin: 0;
	text-align: center;
}

.connection {
	position: absolute;
	height: 0;
	border-top: 3px dashed #666;
	border-image: repeating-linear-gradient(
		to right,
		#666 0px,
		#666 8px,
		transparent 8px,
		transparent 14px
	) 1;
	transform-origin: left center;
	pointer-events: none;
	z-index: 1;
	transition: all 0.2s ease;
}

.connection.active-path {
	border-image: none;
	border-top: 3px solid black;
}

.sidebar {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	height: 100vh;
	background: white;
	transition: right 0.5s ease;
	z-index: 1000;
	box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.sidebar.open {
	right: 0;
}

.sidebar-header {
	background: black;
	padding: 20px;
	position: relative;
}

.sidebar-header h2 {
	margin: 0;
	color: white;
	font-size: 20px;
}

.close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	background: black;
	color: white;
	border: 2px solid white;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	cursor: pointer;
	font-weight: bold;
}

.close-btn:hover {
	background: white;
	color: black;
}

.sidebar-content {
	padding: 20px;
	color: black;
	height: calc(100vh - 100px);
	overflow-y: auto;
}

.video-container {
	background: white;
	border: 3px solid black;
	border-radius: 10px;
	padding: 15px;
	margin: 15px 0;
}

.video-placeholder {
	width: 100%;
	height: 200px;
	background: white;
	border: 2px dashed black;
	display: flex;
	align-items: center;
	justify-content: center;
	color: black;
	font-weight: bold;
	text-align: center;
	border-radius: 5px;
}

/* Updated image styles for sidebar fitting */
.markdown-image {
	max-width: 100%;
	width: 100%;
	height: auto;
	margin: 10px 0;
	display: block;
	object-fit: contain;
}

.image-caption {
	font-style: italic;
	margin-top: 5px;
	margin-bottom: 15px;
	color: black;
	font-size: 12px;
	text-align: center;
}
