body.popup-open {
	overflow: hidden;
}

body.popup-open header {
	z-index: -1000;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.styled-section {
	position: relative;
	padding: 30px;
	background: var(--card-gradient);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	box-shadow: 0 5px 15px var(--shadow-color);
	font-family: 'Open Sans', sans-serif;
	margin-bottom: 40px;
	overflow: hidden;
}

.styled-section::before {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
	opacity: 0.1;
	content: '';
	pointer-events: none;
}

.character-section-content {
	display: flex;
	gap: 20px;
	padding-top: 50px;
}

#show-classes-btn {
	display: none;
	width: fit-content;
	align-self: center;
}

.character-info,
.character-select {
	width: 50%;
}

.character-info {
	position: relative;
}

.character-info .character-role {
	line-height: 24px;
}

.character-info .character {
	position: absolute;
	opacity: 0;

	/* display: none; */
}

.character-info .character.active {
	position: relative;
	opacity: 1;
	transition: 0.5s;

	/* display: block; */
}

.character-info p {
	margin: 0;
	line-height: 1;
}

.character-info span {
	color: var(--accent-color);
}

.character-info .value {
	font-size: 24px;
}

.character-info .character-descripton {
	line-height: 20px;
	margin-top: 25px;
}

.character-section .character-image {
	width: 100%;
	margin-top: 35px;
}

.character-select {
	display: flex;
	gap: 5px;
}

#close-character-select {
	position: absolute;
	top: 10px;
	right: 10px;
	display: none;
	width: 30px;
	height: 30px;
	font-size: 20px;
	color: var(--text-color);
	background: none;
	border: none;
	transition: 0.3s;
	cursor: pointer;
}

#close-character-select:hover {
	filter: brightness(1.3);
}

.character-select-section {
	flex: 1;
}

.character-select-section ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.character-select-section h3 {
	font-size: 18px;
	color: var(--text-color);
	text-align: center;
	text-transform: uppercase;
}

.character-select .character-option {
	position: relative;
	display: flex;
	align-items: center;
	opacity: 0.5;
	transition: 0.3s all;
	cursor: pointer;
	gap: 14px;
}

.character-select .character-option.active {
	opacity: 1;
}

.character-select .character-option::before {
	position: absolute;
	top: calc(50% - 33px);
	right: 0;
	width: calc(100% - 40px);
	height: 66px;
	background: linear-gradient(to right, rgb(255 210 75 / 30%), transparent);
	content: '';
}

.character-select .character-option:not(.active):hover {
	opacity: 1;
	transform: translateX(-5px);
}

.character-select .character-icon {
	position: relative;
	z-index: 1;
	width: 80px;
	height: 80px;
	background: #181420;
	border: 2px solid #181420;
	border-radius: 50%;
	transition: 0.3s;
}

.character-select .character-option:hover .character-icon,
.character-select .character-option.active .character-icon {
	box-shadow: 0 0 15px 0 #ffd24b;
	border-color: #ffd24b;
}

.character-select .character-option span {
	font-weight: bold;
	color: var(--accent-color);
	font-family: Cinzel, 'Noto Sans', sans-serif;
	text-transform: uppercase;
}

a.gold-bars {
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	color: #fdd14a;
	transition: all 0.3s;
	gap: 5px;
	margin-left: 30px;
	margin-right: auto;
	text-transform: uppercase;
}

a.gold-bars:hover {
	filter: brightness(110%);
	padding-left: 5px;
}

.icon-container.gold-bars {
	display: flex;
	width: 40px;
	height: 40px;
	background: url('../images/icons/gold.png') no-repeat;
	background-position: center;
	background-size: contain;
}

@media (width <= 992px) {
	.character-info .values {
		display: inline-flex;
		flex-direction: column;
	}

	a.gold-bars {
		margin: 0;
		margin-bottom: 20px;
	}
}

@media (width <= 800px) {
	#show-classes-btn {
		display: block;
	}

	.character-section-content {
		flex-direction: column;
	}

	.character-select {
		position: fixed;
		bottom: -100%;
		left: 0;
		width: 100%;
		height: 100%;
		padding: 50px 20px 25px;
		background: rgb(30 28 41 / 99%);
		opacity: 0;
		transition: 0.3s;
		box-sizing: border-box;
	}

	.character-select.active {
		bottom: 0;
		opacity: 1;
		overflow: auto;
	}

	.character-select-section {
		height: max-content;
	}

	.character-info {
		width: 100%;
		text-align: center;
	}

	.character-info .values {
		display: block;
	}

	#close-character-select {
		display: block;
	}
}

@media (width <= 550px) {
	.character-select {
		flex-direction: column;
		padding: 50px 30px 30px;
		gap: 30px;
	}

	.character-info .character-descripton {
		text-align: center;
	}

	.character-info .values {
		display: flex;
		flex-direction: column;
		line-height: 30px;
	}
}
