* {
	font-family: var(--font);
    table-align: center;
	text-align: center;
}

p {
	line-height: 0.6;
}

body {
    color: white;
    background-color: hsl(0, 0%, 7%);
	overflow-x: hidden;
	font-size: 16px;
	margin: 0px;
	user-select: none;
}

table, tr {
    display: flex;
    justify-content: center;
}

button {
    border: solid 2px white;
    background-color: #171717;
	color: white;
    font-size: 14px;
	cursor: pointer;
	transition-duration: 0.15s;
}

#star {
	position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
	border-radius: 50%;
	z-index: -1;
	opacity: 0.25;
	transition-duration: 0.15s;
}

#notify {
	position: absolute;
    left: 50%;
    top: 20px;
	transform: translate(-50%, 0);
	width: 400px;
	min-height: 10px;
	border: solid 2px white;
	background-color: #171717;
	padding: 7px 25px;
	transition-duration: 0.75s;
}

#notify.hide {
	opacity: 0;
	top: -130px;
}

#popup {
	z-index: 3;
	position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
	width: 600px; height: 400px;
	border: solid 2px white;
	background-color: #171717;
	padding: 7px 25px;
}

#popup > .btn {
	max-width: 90%;
}

#tree {
	height: calc(100% - 320px);
}

#tree_table {
	width: 100%;
	height: 100%;
}

#tree_table div:first-child {
    margin-left: auto;
}

#tree_table div:last-child {
    margin-right: auto;
}

#tree_canvas {
	z-index: -1;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.soft {
	color: hsl(237, 15%, 47%);
	font-weight: bold;
	text-shadow: 0px 1px 0px hsl(252, 19%, 57%);
	pointer-events: none;
}

.soft2 {
	color: hsl(0, 50%, 50%);
	font-weight: bold;
	text-shadow: -1px -1px 3px hsl(0, 25%, 50%), 1px 1px 3px hsl(0, 75%, 50%);
	pointer-events: none;
}

.soft3 {
	color: #ff00bf;
	font-weight: bold;
	text-shadow: 0.5px 0.5px 0 black, -0.5px -0.5px 0 black, 1px 1px 0 #ff00ff, -1px -1px 0 #ff00ff;
	pointer-events: none;
}

.soft4 {
	color: rgba(0, 0, 0, 0.25);
	font-weight: bold;
	text-shadow: 12px -3px 12px cyan, 4px -3px 12px blue, 3px 5px 4px red, -6px -3px 8px yellow, 1px 1px 1px black, 0px 0px 2px black;
	pointer-events: none;
}

.img_btn {
	cursor: pointer;
	background-color: #444;
	transition-duration: 0.15s;
}

.img_chal {
	cursor: pointer;
	background-color: #171717;
	transition-duration: 0.15s;
	margin: 3px;
}

.img_chal.ch {
	background-color: #444;
}

.red {
	color: red;
}

.scarlet {
	color: #ff3f00;
}

.yellow {
	color: yellow;
}

.green {
	color: #00bb00;
}

.sky {
	color: skyblue;
}

.magenta {
	color: magenta;
}

.gray {
	color: gray
}

.quark_color {
	animation: quark_color 6s cubic-bezier(0.37, 0, 0.63, 1) infinite
}

@keyframes quark_color {
	0%, 100% {
		color: red;
	}
	33.3% {
		color: #005fff;
	}
	66.7% {
		color: limegreen;
	}
}

.sml {
	margin-bottom: 3px;
}

.txt_area {
	font-size: 12px;
}

.resources {
	display: flex;
	align-items: center;
	min-width: 300px;
}

.res_img {
	width: 35px;
	height: 35px;
}

.btn_tab {
	width: 120px;
}

.btn_tab.bh {
	color: gold;
	border-color: gold;
}

.btn_tab.bh:not(.choosed):hover {
	background-color: #493e00;
}

.btn_tab.bh.choosed {
	color: black;
	background-color: gold;
}

.btn_tab.atom {
	color: #3157be;
	border-color: #3157be;
}

.btn_tab.atom:not(.choosed):hover {
	background-color: #172857;
}

.btn_tab.atom.choosed {
	color: black;
	background-color: #3157be;
}

.btn_tab.dilation {
	color: #25ff30;
	border-color: #25ff30;
}

.btn_tab.dilation:not(.choosed):hover {
	background-color: #0a470d;
}

.btn_tab.dilation.choosed {
	color: black;
	background-color: #25ff30;
}

.btn_tab:not(.choosed):hover {
	background-color: #444
}

.btn_tree:not(.locked):not(.bought):hover,
.elements:not(.locked):not(.bought):hover,
.btn:not(.locked):not(.md):hover,
.img_btn:not(.locked):not(.bought):hover {
	background-color: #555
}

.btn_tab.normal.choosed {
	background-color: white;
	color: black;
}

.btn_tree {
	background-color: black;
	border: solid 2px white;
	margin: 10px;
	width: 54px;
	height: 54px;
	padding: 0;
}

.btn_tree:not(.bought).locked {
	border-color: #171717;
}

.btn_tree:not(.bought).failed {
	border-color: red;
}

.btn_tree:not(.perm).bought {
	border-color: #00520b;
}

.btn_tree.perm {
	border-color: #ffff00;
}

.btn_tree.choosed {
	transform: scale(1.25);
}

.elements {
	font-size: 18px;
	width: 50px;
	height: 50px;
	background-color: #444;
}

.btn {
	cursor: pointer;
	background-color: #444;
	font-size: 12px;
	max-width: 250px;
	padding: 7px 25px;
	text-decoration: none;
}

.btn.full {
	width: 250px;
	height: 120px;
}

.btn.locked,
.img_btn.locked,
.elements.locked {
	background-color: #171717;
	cursor: default;
}

.elements.bought,
.img_btn.bought {
	background-color: #00520b;
	cursor: default;
}

.chal_comp {
	background-color: #00520b;
}

.input_ratio {
	width: 100px;
	border: solid 2px white;
	background-color: #171717;
}

.img_btn {
	cursor: pointer;
	background-color: #444;
}

h1 {
    display: inline;
	font-weight: normal;
    font-size: 35px;
}

h2 {
	display: inline;
	font-weight: normal;
    font-size: 25px;
}

.table_center {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
}

.md {
	border-color: darkgreen;
	background-color: #171717;
}

.md.locked {
	border-color: #303030;
	cursor: default;
}

.md:not(.locked):hover {
	border-color: #00ce00;
	background-color: #003a00;
	box-shadow: 0 0 10px #00ce00;
}

.btn.b_btn {
	font-size: 11px;
}

.bosons {
	font-size: 18px;
}

.sub_b {
	padding: 15px;
	width: calc(50% - 30px);
}

.higgs_boson {
	min-height: 100px;
	background-color: rgb(255, 255, 0, 0.25);
}

.graviton {
	min-height: 100px;
	background-color: rgba(0, 102, 255, 0.25);
}

.photon {
	min-height: 300px;
	background-color: rgba(255, 255, 149, 0.25);
}

.gluon {
	min-height: 300px;
	background-color: rgba(212, 0, 255, 0.25);
}

.w_boson {
	min-height: 200px;
	background-color: rgba(189, 189, 189, 0.25);
}

.z_boson {
	min-height: 200px;
	background-color: rgba(189, 189, 189, 0.25);
}

.fermions {
	font-size: 18px;
}

.sub_f {
	padding: 15px;
	width: calc(100% - 30px);
}

.f_quark {
	min-height: 290px;
	background-color: rgba(255, 145, 0, 0.25);
}

.f_lepton {
	min-height: 290px;
	background-color: rgba(0, 255, 34, 0.25);
}

.fermion_btn {
	padding: 3px;
	width: 240px;
	height: 240px;
	font-size: 11px;
	margin: 0px 5px;
}

.fermion_btn > b {
	font-size: 15px;
}

.fermion_btn.quark {
	border-color: orange;
}

.fermion_btn.quark:hover {
	background-color: hsl(39, 100%, 6%);
}
.fermion_btn.quark.choosed {
	background: repeating-linear-gradient(45deg, #0005 0%, #0005 1%, hsl(39, 100%, 21%) 5%, #0005 9%, #0005 10%);
	animation: f_spin 2s linear infinite;
	cursor: default;
}

.fermion_btn.lepton {
	border-color: lime;
}
.fermion_btn.lepton:hover {
	background-color: hsl(120, 100%, 6%);
}
.fermion_btn.lepton.choosed {
	background: repeating-linear-gradient(45deg, #0005 0%, #0005 1%, hsl(120, 100%, 21%) 5%, #0005 9%, #0005 10%);
	animation: f_spin 2s linear infinite;
	cursor: default;
}

.fermion_btn.comp {
	background: #3f5f3f;
	border-color: #7fff7f;
}
.fermion_btn.comp.choosed {
	background: repeating-linear-gradient(45deg, #0005 0%, #0005 1%, #7fff7f 5%, #0005 9%, #0005 10%);
	animation: f_spin 2s linear infinite;
	cursor: default;
}

.radiation {
	background-color: hsl(0, 0%, 6%);
	font-size: 14px;
	width: 100%;
	min-height: 150px;
	margin-bottom: 10px;
	align-items: center;
}

.btn.rad {
	width: 200px;
	height: 60px;
	margin: 0px 3px;
}

.sub_rad {
	margin: 0px 15px
}

@keyframes f_spin {
	0% {
		background-position-x: 0px;
	}
	100% {
		background-position-x: -48px;
	}
}

#app_ext {
	position: fixed;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, transparent, #ff003f, #ff3f00, transparent 75%);
}

td.ax {
	min-width: 60px;
	min-height: 60px;
	max-width: 60px;
	max-height: 60px;
	padding: 6px
}

.btn_ax {
	background-color: black;
	border: solid 2px white;
	width: 60px;
	height: 60px;
	padding: 0;
}

.btn_ax.normal {
	background-color: #333
}

.btn_ax.normal:hover {
	background-color: grey
}

.btn_ax:not(.bonus).locked {
	border-color: #333;
}
.btn_ax.bonus {
	border-color: #0f0;
}

.rainbow {
	color: #7fff00;
	text-shadow: -2px -2px 2px #ff0000, 2px 2px 2px #002fff
}

#chroma_bg {
	z-index: -1
}

#chroma_bg1 {
	z-index: -2;
	position: fixed;
	width: 100%;
	height: 100%;
	animation: 5s rainbow linear infinite;
}

#chroma_bg2 {
	z-index: -2;
	position: fixed;
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, transparent, white, transparent, transparent);
}

#chroma_bg3 {
	z-index: -2;
	position: fixed;
	width: 100%;
	height: 100%;
	background: linear-gradient(transparent, white, transparent), linear-gradient(transparent, transparent, black, transparent, transparent);
}

.btn_ch {
	height: 54px;
	width: 120px;
	background: black;
	border-color: #3f005f;
	box-shadow: 0 0 12px #3f005f;
	margin: 6px;
	padding: 3px
}

.btn_ch.choosed {
	background: #3f005f;
	border-color: #7f00bf;
	color: #7f00bf;
	box-shadow: 0 0 24px #7f00bf;
}

.btn_ch.unavailable {
	background: #3f0000 !important;
	border-color: #7f0000;
	color: #5f3f3f;
	box-shadow: 0 0 6px red;
}

.btn_ch b {
	font-size: 125%
}

.btn_cs {
	height: 36px;
	width: 90px;
}

.boost_cs {
	height: 36px;
	width: 180px;
	font-size: 80%;
	border: 3px solid transparent
}

@keyframes rainbow {
	0% {
		background: #ff0000
	}
	16% {
		background: #ffbf00
	}
	33% {
		background: #7fff00
	}
	50% {
		background: #ffbf00
	}
	67% {
		background: #003fff
	}
	83% {
		background: #bf00ff
	}
	100% {
		background: #ff0000
	}
}