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;
}
