#source-selector
{
	flex-wrap: wrap;
	display: flex;
	width: 100%;
}

#source-selector-placeholder
{
	background-color: #999;
	padding: .3%;
	border-radius: 1%;
}

#source-selector div
{
	background-color: #bbb;
	margin: .25%;
	padding: .25%;
	border-radius: 1%;
}

.main-table
{
	width: 100%;
	border-collapse: collapse;
}

.main-table>:nth-child(2n)
{
	background-color: #ddd;
}

#spells tr td:not(.left)
{
	text-align: center;
}

.left
{
	text-align: left;
}

#spells-header th
{
	cursor: pointer;
}

table a, .price>a
{
	text-decoration: none;
	color: inherit;
}

h1
{
	margin-bottom: 0;
}

p
{
	margin-top: 0;
}

#search-field
{
	width: 50%;
}

.code
{
	background-color: #ddd;
	padding: .25em;
	font-family: monospace;
}

.subtle
{
	color: #555;
	font-style: italic;
}

ul
{
	margin-top: 4px;
	margin-bottom: 4px;
}

#spell-count
{
	margin-right: 20%;
}

button
{
	padding-left: .5%;
	padding-right: .5%;
	cursor: pointer;
}

#upload-list
{
	display: none;
}

#spell-cards
{
	display: flex;
	flex-wrap: wrap;
	margin-left: 3%;
	margin-right: 3%;
}

@media print {
	#spell-cards
	{
		font-size: 9pt;
	}

	footer
	{
		display: none;
	}
}

#spell-cards>div
{
	width: 48%;
	margin-right: 1%;
	margin-left: 1%;
	break-inside: avoid-page;
}

.tag-list {
	display: flex;
	flex-direction: row;
}

.tag-box {
  text-transform: uppercase;
  flex: 0 0;
  background-color: #5e0000;
  color: #fff;
  font-weight: bold;
  padding-left: 1%;
  padding-right: 1%;
  border-color: burlywood;
  border-style: solid;
}

#spell-cards div h3
{
	margin-bottom: 0;
}

.subtle
{
	color: #AAA;
	width: 80%;
}

.from
{
	font-size: small;
	font-style: italic;
}

footer
{
	margin-top: 2em;
	font-size: small;
	color: #AAA;
}

.gold
{
	color: #D6B600;
}

.silver
{
	color: #7D7D7D;
}

.copper
{
	color: #B87333;
}

img
{
	height: 1em;
}

.material-sep
{
	color: #AAA;
	margin-right: 0.75em;
}

#materials input
{
	width: 4em;
}

#materials td:nth-child(3), #materials td:nth-child(5)
{
	text-align: center;
	font-weight: bold;
}

#list-index-container
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.list-item
{
	flex-basis: 16%;
	background-color: #ddd;
	border-radius: .1em;
	padding: .2em;
	margin: .2em;
	display: block;
	text-decoration: none;
	color: black;
}

.list-title
{
	font-size: x-large;
	font-weight: bold;
}