body, html {
	font-family: sans-serif;
	background-color: #fff;
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
	color: #000000;
}

body {
	background-image: url('splash.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

#top {
	font-size: 1.2em;
	display: flex;
	flex-direction: row;
	background-color: white;
	color: black;
	align-items: center;
	justify-content: center;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.8rem;
	padding-right: 0.8rem;
}

#title_container {
	user-select: none;
	flex-grow: 1;
	flex-shrink: 1;
	text-align: center;
}

#title {
	cursor: pointer;
	display: inline-block;
}

#left_side {
	user-select: none;
	display: flex;
	flex-direction: row;
	gap: 2rem;
	flex-grow: 1;
	flex-shrink: 1;
	width: 5rem;
}

#right_side {
	user-select: none;
	flex-grow: 1;
	flex-shrink: 1;
	width: 5rem;
	display: flex;
	flex-direction: row;
	gap: 2rem;
	justify-content: flex-end;
}

#seed {
	cursor: pointer;
}

#highscores {
	cursor: pointer;
}

#menu {
	cursor: pointer;
}

#points {
	display: inline-block;
	cursor: pointer;
}

#start {
	text-decoration: underline;
	cursor: pointer;
}

#mode {
	cursor: pointer;
}

#speed {
	cursor: pointer;
}

.hs_select {
	padding: 0;
	margin: 0;
	overflow: hidden;
	background-color: #fff;
	white-space: nowrap;
	padding-top: 0.4em;
	padding-bottom: 1em;
}

.hs_select select {
	width: 8em;
	cursor: pointer;
	font-size: 1em;
	border: none;
	box-shadow: none;
	background-color: transparent;
	background-image: none;
	text-align-last: center;
	text-decoration: underline;
}

.hs_select select:focus {
	outline: none;
}

#main_container {
	text-align: center;
	outline: 0;
	user-select: none;
}

.element_container {
	width: 8em;
	display: inline-block;
	padding: 3.5em;
	padding-top: 2.5em;
	border: 0.14em solid #4a4a4a;
	text-align: center;
	height: 7em;
	overflow: hidden;
	outline: 0;
}

.element_name {
	white-space: nowrap;
}

.element_profit {
	font-size: 1.2em;
	padding-top: 0.7em;
	white-space: nowrap;
}

.element_direction {
	padding-top: 0.4em;
	padding-bottom: 1em;
	font-size: 1.2em;
}

.element_patent_btn {
	color: #2F2F2F;
	background-color: #eee;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.7em;
	border-radius: 0.4em;
	border: 0.15em solid rgba(0, 0, 0, 0.3);
	border-bottom-width: 0.2em;
	font-size: 0.7em;
	outline: 0;
	cursor: inherit;
}

.cursor_pointer {
	cursor: pointer;
}

.cursor_default {
	cursor: default;
}

.green {
	background-color: #93c393;
}

.red {
	background-color: #c36887;
}

.blue {
	background-color: #afaae2;
}

.yellow {
	background-color: #d6ff6a;
}

.gone {
	background-color: #808080;
}

.bonus {
	color: white;
	font-size: 1.8em;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

.green_color {
	color: #4ca94d;
}

.red_color {
	color: #cc414c;
}

.btn_sell {
	background-color: #699DB6;
	text-shadow: 0 0.1em 0 rgba(0, 0, 0, 0.5);
	color: #FFF;
}

#overlay {
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	position: fixed;
	z-index: 49939959;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
}

#foverlay {
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	position: fixed;
	z-index: 0;
	background-color: rgba(0, 0, 0, 0);
	display: none;
}

#msg {
	font-size: 1.2em;
	text-align: center;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: white;
	padding: 1.6em;
	overflow: auto;
	max-height: 80vh;
	overflow-x: hidden;
	overflow-y: auto;
	display: none;
	z-index: 499399259;
	outline: 0;
}

#fmsg {
	position: fixed;
	font-size: 1.2em;
	text-align: center;
	background: white;
	padding-top: 0.5em;
	padding-bottom: 1em;
	padding-left: 1em;
	padding-right: 1em;
	overflow: auto;
	max-height: 80vh;
	overflow-x: hidden;
	overflow-y: auto;
	display: none;
	z-index: 499399259;
	outline: 0;
}

b {
	letter-spacing: 0.1em;
	font-size: 1.2em;
}

.dialog_btn {
	display: inline-block;
	color: #2F2F2F;
	background-color: #eee;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.7em;
	border-radius: 5px;
	border: 1px solid rgba(0, 0, 0, 0.3);
	border-bottom-width: 3px;
	font-size: 0.7em;
	cursor: pointer;
	user-select: none;
}

.dialog_btn:hover {
	background-color: #e3e3e3;
	border-color: rgba(0, 0, 0, 0.5);
}

.dialog_btn:active {
	background-color: #CCC;
	border-color: rgba(0, 0, 0, 0.9);
}

#seed_input {
	font-size: 1.2rem;
	min-width: 6em;
	padding: 0.2em;
	text-align: center;
	border: 1px solid grey;
}

.linkydiv {
	text-decoration: underline;
	cursor: pointer;
	user-select: none;
}

.setting_small {
	font-size: 0.6em;
	padding-bottom: 0.2em;
}

.clickable_score {
	cursor: pointer;
}

.grey_highlight {
	background-color: #dcdcdc;
}

a:hover, a:visited, a:link {
	color: #000000;
}

table {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	font-size: 1em;
}

th, td {
	border: 1px solid grey;
	padding: 0.4em;
}

input[type="checkbox"] {
	width: 1.5em;
	height: 1.5em;
}

.pulsating {
	animation: pulse 1s infinite;
}

.pulsetrio {
	animation: pulsetrio 0.8s;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 1) inset;
	}

	70% {
		box-shadow: 0 0 0 1em rgba(204, 169, 44, 0) inset;
	}

	100% {
		box-shadow: 0 0 0 0 rgba(204, 169, 44, 0) inset;
	}
}

@keyframes pulsetrio {
	0% {
		box-shadow: 0 0 0 0 rgba(53, 45, 123, 1) inset;
	}

	70% {
		box-shadow: 0 0 0 1em rgba(204, 169, 44, 0) inset;
	}

	100% {
		box-shadow: 0 0 0 0 rgba(204, 169, 44, 0) inset;
	}
}

#instgif {
	margin: auto;
}

.hs_type {
	font-size: 0.8em;
	padding-bottom: 0.2em;
	cursor: pointer;
}

.unselectable {
	user-select: none;
}

.button:hover {
	text-shadow: 0 0.05em 0 rgba(0, 0, 0, 0.5);
}

.menu_button {
	min-width: 12rem;
}

.menu_button_small {
	min-width: 4.9rem;
}