@font-face {
	font-family: "TeX Gyre Termes";
	src: url("../fonts/TeX Gyre Termes Regular.otf");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "TeX Gyre Termes";
	src: url("../fonts/TeX Gyre Termes Italic.otf");
	font-weight: 400;
	font-style: italic;
}

@font-face {
	font-family: "Birmingham";
	src: url("../fonts/Birmingham.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Ugly Qua";
	src: url("../fonts/Ugly Qua.woff") format("woff"), url("../fonts/Ugly Qua.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
}

body,
button,
select {
	font-family: "TeX Gyre Termes", "Times New Roman", serif;
	font-size: 18px;
	color: black;
	max-width: 800px;
	margin: auto;
	padding: 5px;
}

button,
select {
	background-color: #eae3d3;
	border: 2px black outset;
	padding: 2px 5px;
	font-variant-caps: small-caps;
	margin-bottom: 5px;
}

h1 {
	font-family: "Birmingham";
	font-weight: 400;
	font-size: 35px;
	text-align: center;
	margin-bottom: 20px;
	line-height: 50px;
}

.view {
	display: none;
}

.start-view {
	display: block;
	text-align: center;
}

.expansions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 5px;
	row-gap: 5px;
	margin-top: 20px;
}

.expansion__image {
	vertical-align: middle;
}

.expansion__name,
.name-filter__input {
	font-family: "Ugly Qua";
	font-variant-caps: small-caps;
	font-size: 16px;
}

footer {
	margin-top: 30px;
	margin-bottom: 20px;
	color: gray;
}

.back-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
}

.logic-operator-wrapper {
	margin-top: 10px;
}

.last-drawn-card,
.drawn-cards {
	margin-top: 10px;
}

.no-newest-card {
	display: none;
}

.newest-card,
.history {
	margin: 0;
}

.card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #eae3d3;
	border: 2px #af814f solid;
	padding: 2px 5px;
	font-family: "Ugly Qua";
	margin-top: -2px;
	color: black;
}

.last-drawn,
.card-history {
	position: relative;
	flex-wrap: wrap;
	justify-content: flex-end;
	column-gap: 5px;
}

.card-history:not(.card-history--mythos) {
	padding-right: 20px; /* same width as .card__shuffleIn, which Mythos deck doesn't have */
}

.last-drawn__name,
.card__name {
	flex: 1 0 auto;
}

.last-drawn__traits,
.card__traits {
	flex: 0 0 auto;
}

.badge {
	margin-left: 5px;
	background-color: black;
	color: white;
	font-style: italic;
	padding: 0px 5px;
}

.card__shuffleIn {
	position: absolute;
	right: 0;
	border-style: none;
	margin-bottom: 0;
	width: 20px;
	height: 20px;
}

.card__shuffleIn:before,
.card__shuffleIn:after {
	position: absolute;
	right: 9px;
	content: " ";
	height: 15px;
	width: 2px;
	background-color: red;
	top: 2px;
}

.card__shuffleIn:before {
	transform: rotate(45deg);
}

.card__shuffleIn:after {
	transform: rotate(-45deg);
}

.trait,
.deck-visibility-item {
	white-space: nowrap;
}

.trait__name,
.cost__name,
.deck-visibility-itemy__name {
	font-variant-caps: small-caps;
	font-style: italic;
	font-size: 19px;
}

.deck,
.deck-visibility {
	margin-bottom: 20px;
}

.deck__name,
.section__name {
	font-size: 1.5em;
	font-variant-caps: small-caps;
	margin-bottom: 5px;
}

.deck__subtitle {
	font-variant-caps: small-caps;
}

.mythos fieldset {
	background-color: #dad2e1;
}

.artifact fieldset {
	background-color: #7f1c16;
	color: white;
}

.asset fieldset {
	background-color: #bf6c10;
}

.condition fieldset {
	background-color: #aaa09f;
}

.monster fieldset {
	background-color: #000000;
	color: white;
}

.spell fieldset {
	background-color: #856089;
	color: white;
}

.uniqueAsset fieldset {
	background-color: #d9b55f;
}

.rearrange-top {
	margin-bottom: 10px;
}

.top-cards {
	margin-top: 10px;
	margin-bottom: 10px;
}

.green {
	background-color: #467e25;
}

.yellow {
	background-color: #e8b54b;
}

.blue {
	background-color: #5870c4;
}
