#TOC-header{
  	background: #66c;
	padding: 1em;
	margin: 0px;
	color: white;
	text-align: center;
}
#TOC-list{
  	margin-left: 50px;
	margin-bottom: 5in;
}
#TOC-list h2 {
  	color: #336;
	margin-top: 1.5em;
}
#TOC-list h3 {
  	color: #336;
	margin-top: 1.25em;
	margin-left: 1em;
}
.TOC-spacer{
	height:20px;
}
.TOC-item{
	font-size: 120%;
	margin-bottom: 1ex;
	margin-left: 2em;
}

a.TOC-link{
	text-decoration:none;
}



.vocabularyWord {
	color:red;
	font-style:italic;
}

.authorship{
	color:red;
}
#file-version{
  	font-style: italic;
	text-align: right;
}

.caption {
  	font-style: italic;
  	font-weight: bold;
}

.sidebar{
  	/*text-align:center;*/
  	/*font-style:italic;*/
	/*font-size:90%; */
  	float:right;
	background: #eee;
	margin:5px;
	padding: 1em;
	clear:right;
	max-width: 250px;
	/*display:inline;*/
}

.figright{
  	text-align:center;
  	font-style:italic;
	font-size:90%;
  	float:right;
	margin:5px;
	clear:right;
	max-width: 250px;
	/*display:inline;*/
}

.figfullwidth{
  	text-align:center;
  	font-style:italic;
	font-size:90%;
	display:block;
	margin:1.5em;
	clear:both;
}

.code{
  	font-family: "Courier New",monospace;
	font-size:90%;
}

.vocab{
  	font-style:italic;
}

#main-content {
  	max-width: 50em;
	padding-left: 5em;
}

#main-content h2 { clear: both; }
#main-content h3 { clear: both; }

p {	margin-top: 2ex;
	margin-bottom: 2ex; 
	/*
	border: 1px solid blue;
	*/
}
div.p {	margin-top: 2ex;
	margin-bottom: 2ex; 
	/*
	border: 1px solid blue;
	*/
}

.figright img {
  	vertical-align: middle;
}

.figright .arrow {
	font-size: 120%;
	margin: 1em;
}

.figright .smiley {
	font-size: 300%;
	margin-left: 0em;
  	vertical-align: middle;
}

.figfullwidth img {
  	vertical-align: middle;
}

.figfullwidth .arrow {
	font-size: 300%;
	margin: 1em;
}

#exercises li {
	clear: both;
  	margin-top: 2ex;
}
#exercises li li {
  	margin-top: 0ex;
}

#objectives {
	background: #eee;
	width: 40%;
	float: right;
	padding: 1em;
	margin: 0em 0.5em;
}
#objectives .obj-label {
	font-weight: bold;
	display: block;
}

.circuit-diag {
	vertical-align: middle;
	text-align: center;
	padding: 10px;
}

.circuit-label {
	vertical-align: middle;
	text-align: center;
  	/*font-weight: bold; */
}

table.spreadsheet {
	border-collapse: collapse;
}
table.spreadsheet td {
	border-collapse: collapse;
	border: 1px solid black;
	text-align: right;
	min-width: 4em;
}
table.spreadsheet td.text {
	text-align: left;
}
table.spreadsheet td.highlight {
	background: #aaddff;
}

.expr {
	white-space: nowrap;
}

table.truth-table {
	border-collapse: collapse;
}
table.truth-table td {
	border: 1px solid black;
	text-align: center;
	min-width: 2em;
	padding-left: 0.25em;
	padding-right: 0.25em;
}
table.truth-table td.marker {
  	border: 0px;
	font-size: 100%;
}
#exercises .truth-table {
}
#exercises .circuit {
	display:block;
	margin-left: 10em;
}

.example {
  	margin-left: 4em;
  	margin-top: 1ex;
  	margin-bottom: 1ex;
}

.overline {
  	display:inline-block;
  	border-top: 1.5px solid black;
	margin-left: 2px;
	margin-right: 2px;
	margin-top: 2px;
}
.mbox {
  	display:inline-block;
}
table.eqnarray td {
  	vertical-align: top;
}
table.eqnarray td.eq {
  	vertical-align: top;
}
table.eqnarray td.why {
  	padding-left: 3em;
}

table.fraction {
  	font-size: 90%;
  	display: inline-block;
	vertical-align: middle;
	text-align: center;
	border-collapse: collapse;
}
table.fraction tr:first-child td {
  	border-bottom: 1px solid black;
}

table.arithmetic {
	text-align: right;
	border-collapse: collapse;
}
table.arithmetic tr:last-child td {
	border-top: 1px solid black;
}
table.arithmetic tr td {
	min-width: 0.8em;
}
/*
span.slash:before {
	top: -10px;
	background: red;
 */
table.arithmetic tr td.slash:before {
	position:relative;
	content: "/";
	font-weight: 300;
	font-size: 1.2em;
	left: 0.4em;
}
table.arithmetic tr.carry td {
	font-size:60%;
}

table.bits {
	border-collapse: collapse;
	display: inline-block;
	vertical-align: top;
}
table.bits td {
	border: 1px solid black;
	text-align: center;
	min-width: 0.8em;
}
table.bits tr.label td {
	font-size: 50%;
	border: none;
}

table.lined {
	border-collapse: collapse;
}
table.lined td {
	border: 1px solid black;
	padding: 1em;
}
table.lined th {
	padding-left: 1em;
	padding-right: 1em;
}
