:root {
	--bg: #fff;
	--bg-darker: #f4f4f4;
	--fg: #000;
	--accent: #ED913C;
	--accent-darker: #e78234;
	--accent-other: #27527c;
}

* {
	box-sizing: border-box;
}

html, body {
	max-width: 100%;
	overflow-x: clip;
}

body {
	background-color: var(--bg-darker);
	display: flex;
	flex-direction: column;
	font-family: 'Noto Sans', sans-serif;
	margin: 0;
	min-height: 100vh;
}

hr {
	border: 1px solid var(--fg);
}

h1 {
	font-size: 1.5rem;
}

h2 {
	font-size: 1.2rem;
}

h3 {
	font-size: 1.1rem;
}

header {
	background-color: var(--bg);
	color: var(--fg);
	font-size: 1.2rem;
	height: 20vw;
	max-height: 4em;
	font-weight: bold;
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
}

header img {
	height: 100%;
}

header a {
	color: var(--fg);
	margin-top: auto;
	margin-bottom: auto;
	padding-left: 10px;
	padding-right: 10px;
}

header a.button {
	margin-left: auto;
	margin-top: 0px;
	margin-bottom: 0px;
	font-size: 1.5rem;
	display: block;
}

header a.button:hover {
	background-color: var(--fg);
	color: var(--bg);
}

header a.button * {
	display: flex;
	text-align: center;
	justify-content: center;
	align-items: center;
	height: 100%;
}

header > .content {
	height: 100%;
	margin: auto;
	padding-left: 10px;
	padding-right: 10px;
	max-width: 900px;
}

header > .subbar {
	width: calc(100%);
	background: var(--accent-darker);
	background: linear-gradient(to right, var(--accent-darker), rgba(158, 79, 152, 1), var(--accent-other));
	color: var(--bg);
	font-size: 0.7rem;
	overflow: hidden;
	min-width: 0;
}

header > .subbar > .content {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	margin: auto;
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 20px;
	padding-right: 20px;
	max-width: 900px;
}

body > .content {
	background-color: var(--bg-darker);
	flex-grow: 1;
	flex-shrink: 0;
	margin: auto;
	max-width: 900px;
	padding: 20px;
	padding-top: 40px;
	width: 100vw;
}

body > .content a.button {
	background-color: var(--accent);
	color: var(--bg);
	font-weight: bold;
	font-size: 1.1rem;
	padding: 10px;
	flex-shrink: 0;
	border-radius: 12px;
}

body > .content a.button:hover {
	background-color: var(--fg);
	color: var(--bg);
}

body > .content a.button_other {
	background-color: var(--accent-other);
}

body > .content > .header {
	display: flex;
	align-items: center;
}

body > .content > .header a {
	background-color: var(--bg);
	color: var(--fg);
	font-weight: bold;
	padding: 0.5rem;
	margin-left: auto;
}

body > .content > .header a:hover {
	opacity: 0.8;
}

body > .content > a.img, body > .content > a.img img {
	width: 100%;
}

body > img {
	margin: auto;
	max-height: 50vh;
	max-width: 900px;
	width: 100vw;
	object-fit: cover;
}

img.inverted {
	-webkit-filter: invert(100%);
	filter: invert(100%);
}

a {
	text-decoration: none;
}

.grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.center {
	justify-content: center;
	display: flex;
}

.tile {
	font-size: 1.1rem;
	width: 225px;
	display: flex;
	margin: 10px;
	flex-direction: column;
	background-color: var(--accent-other);
	font-weight: bold;
	text-align: center;
	border-radius: 12px;
	overflow: hide;
}

.tile:hover {
	background-color: var(--fg);
}

.tile img {
	width: 100%;
	height: 225px;
	border-radius: 12px 12px 0px 0px;
}

.tile .title {
	color: var(--bg);
	vertical-align: middle;
	padding: 10px;
}

.tile:hover .title {
	color: var(--bg);
}

.list_item {
	overflow: hidden;
	display: flex;
	flex-direction: row;
	width: 100%;
	margin-top: 10px;
	margin-bottom: 10px;
}

.list_item img {
	object-fit: cover;
	min-height: 90px;
	min-width: 90px;
	height: 15vh;
	width: 15vh;
}

.list_item .details {
	padding: 10px;
}

.list_item .title {
	font-size: 1.2rem;
	font-weight: bold;
	color: #000;
	vertical-align: middle;
	text-align: left;
	padding-bottom: 5px;
}

.list_item .price {
	color: var(--fg);
	text-align: left;
}

.list_item .actions {
	vertical-align: middle;
	justify-content: center;
	align-items: center;
	display: flex;
	margin: 10px;
	margin-left: auto;
}

.list_item .button {
	background-color: var(--bg);
	color: var(--fg);
	min-width: 85px;
	font-weight: bold;
	padding: 10px;
}

.list_item .button:hover {
	background-color: var(--fg);
	color: var(--bg);
}

.list_item .edge {
	height: 15vh;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--fg);
	background-color: var(--bg);
	padding: 10px;
}

footer {
	display: flex;
	text-align: center;
	color: var(--fg);
	font-weight: bold;
	margin: auto;
	width: 100%;
	min-height: 40px;
}

footer a {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 10px;
	margin-bottom: 10px;
	padding-left: 10px;
	padding-right: 10px;
	color: var(--fg);
}

footer a:hover {
	text-decoration: underline;
}

footer img {
	height: 1.5rem;
	margin: 10px;
}
