body {
	font-size: 17px;
}

/* link styling */
a {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* color and link management for headings */
.markdown-section h1>a,
.markdown-section h2>a,
.markdown-section h3>a,
.markdown-section h4>a,
.markdown-section h5>a,
.markdown-section h6>a
{
	color: var(--text_color);
	text-decoration-color: var(--theme-color);
}

/* margin fix for thin screens, since paragraph spacing is less aggressive */
.infobox, 
.side-panel, 
.inline-box 
{
	margin-top: 1.2rem;
}

/* spacing fix for tables, since paragraph spacing is less aggressive */
.markdown-section p + table {
	margin-top: 1.2rem;
}

/* paragraph spacing fixes */
p + ul,
p + ol,
.markdown-section h1 + p,
.markdown-section h2 + p, 
.markdown-section h3 + p,
.markdown-section h4 + p
{
	margin-top: 0px;
}

.markdown-section p {
	margin-bottom: 0px;
}

/* header spacing fixes */
.markdown-section h2 {
	margin-top: 30px; 
}

.markdown-section h3 {
	margin-top: 20px;
}

.markdown-section h4 {
	margin: 1.2rem 0 0.4rem;
}

/* final tool for fixing spacing. adds newlines */
.spacer {
	margin-bottom: 1.2rem;
}

/* non-thin screen special stuff */
@media (min-width: 1550px) {
	
	/* make some space on the side */
	.markdown-section {
		max-width: 45%;
	}
	
	.content {
		left: 0px;
	}
	
	/* move side stuff over to that side space */
	.infobox, .side-panel {
		position: absolute;
		margin-top: -200px;
		left: 105%;
		width: 50%;
	}
}

/* infobox border and spacing */
.infobox {
	border: 1px solid;
	padding: 10px;
}

.infobox p:nth-of-type(1) {
	margin: 0px;
}

/* inline box styling */
.inline-box {
	border: 1px solid;
	padding: 10px;
	width: 50%;
	margin-left: 5%;
}

.inline-box p {
	margin: 0px;
}

/* tight margin class */
.tight p {
	margin: 0px;
}

/* table sizing */
.markdown-section table {
	margin: 0 auto 1rem auto;
	width: 90%;
}

/* styles for wide tables */
.wide-table table {
	width: 120%;
	margin-left: -10%;
}

/* styles for column distribution of most tables (broken, a little) */
.markdown-section th:nth-last-of-type(1) {
	column-width: 1000px;
}

/* bandaid for some tables because the above is broken */
.three-column th:nth-of-type(2){
	column-width: 1000px;
}

/* more bandaids for class tables */
.class-table th:nth-last-of-type(1) {
	column-width: auto;
}

.class-table th:nth-last-of-type(2) {
	column-width: 1000px;
}

/* sidebar spacing fixes */
.sidebar li {
	margin: 0px 0px 0px 5px;
}

.sidebar .sidebar-nav {
	line-height: 1.8em;
}
