* {
	font-family: Arial, Helvetica, sans-serif;
    table-align: center;
	text-align: center;
    user-select: none;
    color: white;
}

button:not(.ascension-upgrade) {
	cursor: pointer;
	color: #f5f5f5;
	background-color: #1e1e1e;
	border: 2px solid #444;
	border-radius: 6px;
	padding: 0px 12px;
	margin: 2px;
	font-size: 14px;
	transition: background-color 0.05s ease, border-color 0.05s ease, color 0.05s ease;
}

button * {
	pointer-events: none;
}

button:not(.locked, .ascension-upgrade):hover {
	background-color: #2a2a2a;
	border-color: #888;
}

button.locked {
	background-color: #290202;
	border-color: #ff0000;
}

.locked, .bought, .required {
	cursor: default;
}

button.big-btn, .tab-button:not(.stab) {
	width: 150px;
	height: 50px;
}

button.huge-btn {
	width: 250px;
	height: 100px;
}

button.half-huge-btn {
	width: 250px;
	height: 50px;
}

/* Brighter dark active/selected state */
.tab-button.selected,
button:not(.locked, .ascension-upgrade):active {
	background-color: #3a3a3a; /* Brighter dark gray */
	color: #ffffff;
	border-color: #aaa;
}

.table {
	width: 100%;
	border-color: white;
}

.table td {
	vertical-align: top;
	border-color: white;
}

h1 {
    display: inline;
	font-weight: normal;
    font-size: 32px;
}

h2 {
	display: inline;
	font-weight: normal;
    font-size: 28px;
}

h3 {
	display: inline;
	font-weight: bold;
    font-size: 24px;
}

h4 {
	display: inline;
	font-weight: bold;
    font-size: 20px;
}

.free-select {
	user-select: text;
}

.table-center {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
}

.table-left {
    display: flex;
    justify-content: start;
    flex-flow: row wrap;
}

.item-left {
	width: 100%;
	text-align: left;
}

.line, .black-line {
	content: '';
	display: block;
	width: 100%;
	margin-top: 6px;
	height: 6px;
	border-top: solid 2px white;
}
.black-line {
	border-top-color: black;
}

.main-line {
	width: 100%;
	border-bottom: solid 2px #ffffff;
	height: 3px;
	margin-bottom: 3px;
}

*::-webkit-scrollbar {
    width: 10px;
	height: 10px;
}

*::-webkit-scrollbar-track {
    background-color: #0000;
}

*::-webkit-scrollbar-thumb {
	border: solid 1px black;
    background-color: #888;
    border-radius: 10px;
}

#currs-top {
	margin: 10px 0px;
	min-height: 120px;
	display: flex;
	justify-content: space-evenly;
	flex-flow: row wrap;
	align-items: center;
}

#ranks {
	margin: 10px 0px;
	min-height: 120px;
	display: flex;
	justify-content: center;
	flex-flow: row wrap;
	align-items: center;
}

.curr-top, .rank-top {
	width: 300px;
	align-self: stretch;
}

.curr-top > div {
	min-height: 18px;
	font-size: 14px;
}

.rank-top > div {
	min-height: 18px;
	font-size: 14px;
}

.curr-top > button {
	width: calc(100% - 80px);
	height: 70px;
	font-size: 12px;
}

.rank-top > button {
	width: calc(100% - 80px);
	height: 100px;
	font-size: 12px;
}

#popup {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: #0006;
	z-index: 1;

	opacity: 0;
	transform: scale(1.1);
	pointer-events: none;

	transition: transform, opacity;
	transition-duration: 0.5s;
}

#popup-ctn {
	position: absolute;
	top: 50%;
	left: 50%;
	padding: 10px;
	transform: translate(-50%,-50%);
	width: 720px;
	border: solid 5px #000000;
	background-color: #141414;
	border-radius: 10px;
}

#popup-html {
	min-height: 100px;
	max-height: 400px;
	padding: 5px;
	overflow-y: auto;
}

#popup-btns {
	display: flex;
	flex: 1;
}

#popup-btns > button {
	min-width: 100px;
	min-height: 30px;
	width: 100%;
}

.popup-input, #popup-input {
	width: 100%;
	height: auto;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	text-align: left;
	color: black;
	resize: none;
}

button.stat-button {
   width: 150px;
   height: 150px;
}

#scalings-table {
	border: solid 1px rgb(255, 255, 255);
	table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 1px;
}

#scalings-table td, #scalings-table th {
	border: solid 1px rgb(255, 255, 255);
	min-width: 200px;
	min-height: 50px;
	height: 50px;
	font-size: 14px;
}

#scalings-table td {
	background-color: #0002;
}

#scalings-table th {
	background-color: #0006;
}

button.ascension-upgrade {
   width: 200px;
   height: 150px;
   border: solid 2px rgb(0, 189, 16);
   background-color: transparent;
}

button.ascension-upgrade:active {
   border: solid 2px rgb(0, 119, 10);
}

#ascension-upgrades {
	grid-template-columns: repeat(4, 200px);
	display: grid;
	justify-content: center;
}

.ascension-milestone {
  border: solid 2px rgb(0, 189, 16);
  background-color: transparent;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* optional, vertically centers content */
  align-items: center;     /* optional, horizontally centers content */
  text-align: center;      /* center text */
  padding: 10px;
  box-sizing: border-box;
}

.ascension-milestone.locked {
  border: solid 2px rgb(189, 0, 0);
  
}


.milestone-title {
  font-size: 18px;
  margin-bottom: 5px;
}

.milestone-description {
  font-size: 14px;
}

button.option {
	width: 100px;
	height: 50px
}

button.option.wipe {
	background-color: red;
}

