@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');

:root {
	font-size: 16px;
	font-family: 'JetBrains Mono', monospace;
	--text-primary: #b6b6b6;
	--text-secondary: #ececec;
	--bg-primary: #1c1d21;
	--bg-secondary: #18191c;
	--accent-color: #22c55e;
}

* {
	box-sizing: border-box;
}

body {
	background-color: var(--bg-primary);
	color: var(--text-primary);
	margin: 0;
	padding: 0;
}

a {
	color: var(--text-secondary);
	transition: .3s;
}

a:hover {
	color: var(--accent-color);
	transition: .3s;
}

h1 {
	color: var(--text-secondary);
	text-decoration: underline;
	margin: 0;
}

.disable-select {
  -webkit-user-select: none;  
  -moz-user-select: none;    
  -ms-user-select: none;      
  user-select: none;
}

.container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	row-gap: 1rem;
}

#cards {
	background-color: var(--bg-secondary);
	height: 100px;
	width: 800px;
	border: 2px solid var(--bg-secondary);
	position: relative;
	overflow: hidden;
	white-space: nowrap;
	display: flex;
	border-radius: 1rem;
	box-shadow: 0 0 1rem 0.1rem var(--accent-color);
}

.card {
	position: relative;
	display: inline-block;
	width: 100px;
	height: 100px;
	border-left: 2px solid var(--bg-secondary);
	text-align: center;
}

.arrow {
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 20px solid var(--accent-color);
	opacity: .7;
	filter: drop-shadow(0 0px 1rem var(--accent-color));
}

.card > img {
	width: 100px;
	height: 100px;
}

.rarity {
	position: absolute;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	top: 2px;
	right: 2px;
	background-color: #fff;
	opacity: .9;
}

.card[data-rarity="0"] > div {
	background-color: lightblue;
}

.card[data-rarity="1"] > div {
	background-color: mediumpurple;
}

.card[data-rarity="2"] > div {
	background-color: deeppink;
}

.card[data-rarity="3"] > div {
	background-color: red;
}

.card[data-rarity="4"] > div {
	background-color: yellow;
}

/* --- */

[data-rarity="0"] {
	color: lightblue;
}

[data-rarity="1"] {
	color: mediumpurple;
}

[data-rarity="2"] {
	color: deeppink;
}

[data-rarity="3"] {
	color: red;
}

[data-rarity="4"] {
	color: yellow;
}

button {
	width: 10vw;
	height: 2rem;
	background-color: var(--bg-secondary-);
	border: none;
	color: var(--text-primary);
	text-align: center;
	text-decoration: none;
	display: inline-block;
	border-radius: 1rem;
	box-shadow: 0 0 1rem 0.1rem var(--accent-color);
	transition: .3s;
	font-family: 'JetBrains Mono', monospace;
}

button:hover {
	background-color: var(--accent-color);
	color: var(--bg-secondary);
	transition: .3s;
}

.navbar {
	background-color: var(--bg-secondary);
	height: 10vh;
	border-radius: 0 0 1rem 1rem;
	display: flex;
	padding: 3rem;
	box-shadow: 0 0 1rem 0.1rem var(--accent-color);
}

.money-wrapper {
	display: flex;
	align-items: center;
	column-gap: 1rem;
}

.money {
	color: var(--accent-color);
	font-size: 3rem;
	opacity: .7;
}

.icon {
	fill: var(--accent-color);
	width: 3rem;
	opacity: .7;
	transition: .3s;
}

.icon:hover {
	opacity: 1;
	transform: scale(1.1);
	transition: .3s;
	filter: drop-shadow(0 0px 1rem var(--accent-color));
}

.icon-wrapper {
	margin-left: auto;
	display: flex;
	align-items: center;
	column-gap: 1rem;
}

.credits-wrapper {
	text-align: left;
}

.dex-container {
	position: absolute;
	top: 20vh;
	left: 50%;
	transform: translate(-50%, -50%);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	row-gap: 1rem;
}

.dex-grid {
	position: inherit;
	top: 5vh;
	width: 100vh;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, 250px);
}

.dex-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--bg-secondary);
	padding: 2rem;
	width: 100%;
	height: 100%;
	border-radius: 5%;
	overflow: hidden;
}

.dex-image {
	width: 200px;
	height: 200px;
}

.dex-title {
	margin: 0;
}

.show {
	display: flex;
}

@keyframes fadeOut {
	0% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}