a:link {
	color: #7393B3;
}

a:visited {
	color: #8A6EAA;
}

body {
	font-family: Arial, sans-serif;
	background: #000000;
	margin: 0;
	padding: 0px;
}

.container {
	max-width: 816px;
	margin: auto;
	background: #1a365d;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	position: relative;
}

#markdown-output {
	line-height: 1.5;
	padding: 20px;
	background: #fafafa;
	border-radius: 0px;
	min-height: 200px;
	margin-top: 20px;
}

#markdown-output table {
	border-collapse: collapse;
	width: 100%;
	margin: 12px 0;
}

#markdown-output th, #markdown-output td {
	border: 1px solid #ddd;
	padding: 7px 10px;
	text-align: left;
}

#markdown-output th {
	background: #2d3748;
	color: white;
}

#markdown-output blockquote {
	border-left: 4px solid #000;
	font-style: italic;
	margin: 12px 0;
	padding: 10px 16px;
}

#markdown-output hr {
	border: 0;
	background: #000;
	height: 1px;
	margin: 18px 0;
}

/* Balanced spacing for all elements */
#markdown-output h1 { 
	margin: 16px 0 10px 0;
	line-height: 1.3;
}

#markdown-output h2 { 
	margin: 14px 0 9px 0;
	line-height: 1.3;
}

#markdown-output h3 { 
	margin: 13px 0 8px 0;
	line-height: 1.3;
}

#markdown-output h4, 
#markdown-output h5, 
#markdown-output h6 {
	margin: 12px 0 8px 0;
	line-height: 1.3;
}

#markdown-output p {
	margin: 8px 0;
	line-height: 1.5;
}

#markdown-output ul {
	margin: 8px 0;
	padding-left: 20px;
}

#markdown-output li {
	margin: 4px 0;
	line-height: 1.4;
}

#markdown-output br {
	display: none;
}

/* Add a little extra space between major sections */
#markdown-output h1 + p,
#markdown-output h2 + p,
#markdown-output h3 + p,
#markdown-output h4 + p,
#markdown-output h5 + p,
#markdown-output h6 + p {
	margin-top: 10px;
}

/* Extra space after tables and blockquotes */
#markdown-output table + p,
#markdown-output blockquote + p,
#markdown-output table + ul,
#markdown-output blockquote + ul {
	margin-top: 10px;
}

/* Media Elements */
#markdown-output .markdown-image-container {
	margin: 1.5em 0;
	text-align: center;
}

#markdown-output .markdown-image {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#markdown-output .markdown-image-caption {
	margin-top: 0.5em;
	font-size: 0.9em;
	color: #666;
	font-style: italic;
}

#markdown-output .markdown-video-container {
	margin: 1.5em 0;
	text-align: center;
}

#markdown-output .markdown-video {
	max-width: 100%;
	max-height: 80vh;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	background: #000; /* Black background for video area */
}

#markdown-output .markdown-video-controls {
	margin-top: 0.5em;
	display: flex;
	justify-content: center;
	gap: 10px;
	align-items: center;
}

#markdown-output .video-play-btn {
	padding: 5px 15px;
	background: #3498db;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.9em;
}

#markdown-output .video-play-btn:hover {
	background: #2980b9;
}

#markdown-output .video-volume {
	width: 80px;
}

/* Responsive adjustments */
@media (max-width: 850px) {
	.container {
		margin: 0 10px;
		padding: 15px;
		max-width: calc(100% - 20px);
	}
	
	#markdown-output {
		padding: 15px;
	}
	
	#markdown-output .markdown-video {
		max-height: 60vh;
	}
}