:root {
	--primary-color: #ffbb00;
	--secondary-color: #ff3d00;
	--dark-bg: #1a1a1a;
	--card-bg: rgba(0, 0, 0, 0.7);
	--border-color: #ffbb00;
}

body {
	font-family: "Arial", sans-serif;
	background-color: #000;
	color: #fff;
	overflow-x: hidden;
}

/* Custom Nav */
.navbar {
	background-color: rgba(0, 0, 0, 0.8);
	border-bottom: 2px solid var(--primary-color);
}

.navbar-nav .nav-link.active {
	color: var(--primary-color);
	text-decoration: none;
	padding-bottom: 5px;
}

.navbar-nav .nav-link {
	color: white;
	font-weight: 700; /* bold */
	text-transform: uppercase; /* auto uppercase */
	letter-spacing: 0.5px; /* spacing for readability */
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

	/* Sharpen text rendering */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: geometricPrecision;

	/* Subtle shadow for depth */
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Hover effect */
.navbar-nav .nav-link:hover {
	color: #ffcc00; /* gold highlight */
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* deeper shadow */
	transform: translateY(-1px); /* slight lift */
}

@media (max-width: 768px) {
	.navbar-nav .nav-link {
		font-size: 1em;
		/* Smaller font for mobile */
	}
}

@media (min-width: 769px) and (max-width: 992px) {
	.navbar-nav .nav-link {
		font-size: 1.2em;
		/* Slightly smaller font for tablets */
	}
}

@media (min-width: 993px) {
	.navbar-nav .nav-link {
		font-size: 1.3em;
		/* Consistent font size for PCs */
	}

	.navbar-nav .nav-link.active {
		color: var(--primary-color);
		text-decoration: none;
		/* background-image: url("../images/bg-nav-active.png");
		background-repeat: no-repeat;
		background-position: left bottom;
		background-size: 100% 5px; */
		padding-bottom: 5px;
	}
}

.navbar-nav .nav-link:hover {
	color: var(--primary-color);
}

.auth-buttons .btn {
	border-radius: 20px;
	padding: 0.375rem 1.5rem;
	margin-left: 10px;
	font-weight: bold;
}

.btn-register {
	background-color: white;
	color: black;
}

.btn-login {
	background-color: #333;
	color: white;
	border: 1px solid #666;
}

/* Hero Section */
.hero-section {
	background-image: url("../images/bg-head.png");
	background-size: cover;
	position: relative;
	padding: 3rem 0;
	border-bottom: 4px solid var(--primary-color);
	background-repeat: no-repeat;
	height: 690px;
	background-position: center;
}

.body-container {
	background-image: url("../images/bg-body.png");
	background-size: cover;
	background-position: center;
	position: relative;
	width: 100%;
}

.logo-container {
	text-align: center;
	margin-bottom: 2rem;
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}

.seal-action-buttons {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-top: 10rem;
}

.btn-action {
	background-image: url("../images/bg-btn-action.png");
	background-size: contain;
	background-position: center;
	color: black;
	font-size: 1.2rem;
	padding: 2.5rem 1rem;
	position: relative;
	min-width: 231px;
	transition: all 0.3s;
	background-repeat: no-repeat;
}

.btn-action:hover {
	color: gold;
	transform: scale(1.05);
}

/* Stats Section */
.stats-section {
	padding: 2rem 0;
	position: relative;
}

.stat-card {
	border-radius: 10px;
	padding: 5rem;
	text-align: center;
	position: relative;
	margin-bottom: 1.5rem;
	overflow: hidden;
	min-height: 311px;
}

.stat-card::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: url("../images/bg-box.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.stat-title {
	color: white;
	font-weight: bold;
	font-size: 1.2rem;
	z-index: 2;
	position: relative;
	margin-top: 40px;
}

.stat-value {
	color: var(--primary-color);
	font-size: 2.5rem;
	z-index: 2;
	position: relative;
	font-weight: bold;
}

.stat-username {
	color: var(--secondary-color);
	font-size: 1.5rem;
	z-index: 2;
	position: relative;
	font-weight: bold;
}

.stat-subtitle {
	color: #aaa;
	font-size: 0.9rem;
	z-index: 2;
	position: relative;
}

/* Events Section */
.events-section {
	background-image: url("/api/placeholder/1200/800");
	background-size: cover;
	background-position: center;
	padding: 3rem 0;
	position: relative;
}

.events-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
}

.events-section .container {
	position: relative;
	z-index: 1;
}

.section-title {
	color: white;
	font-size: 2.5rem;
	font-weight: bold;
	text-align: center;
	margin-bottom: 2rem;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.event-carousel {
	position: relative;
}

.carousel-control-prev,
.carousel-control-next {
	width: 50px;
	height: 50px;
	background-color: var(--primary-color);
	border-radius: 50%;
	top: 35%;
	transform: translateY(-50%);
	opacity: 1;
}

.event-card {
	background-color: transparent;
	border: none;
	text-align: center;
}

.event-image {
	transition: transform 0.3s;
	max-width: 100%;
}

.event-card:hover .event-image {
	transform: scale(1.05);
}

.event-title {
	color: white;
	font-weight: bold;
	font-size: 1.5rem;
	margin-top: 1rem;
}

.event-code {
	color: var(--primary-color);
	font-size: 1.2rem;
	font-weight: bold;
}

.event-date {
	color: #aaa;
	font-size: 0.9rem;
}

/* Social Media Section */
.social-section {
	padding: 3rem 0;
}

.social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #333;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
	border-radius: 30px;
	padding: 0.75rem 2rem;
	margin: 0.5rem;
	font-weight: bold;
	font-size: 1.2rem;
	transition: all 0.3s;
	text-decoration: none;
}

.social-btn:hover {
	background-color: var(--primary-color);
	color: #333;
}

.social-btn i {
	margin-right: 10px;
	font-size: 1.5rem;
}

/* Footer */
footer {
	background-color: rgba(0, 0, 0, 0.8);
	border-top: 2px solid var(--primary-color);
	padding: 2rem 0;
}

.footer-logo {
	max-width: 150px;
}

.footer-text {
	color: #aaa;
	font-size: 0.9rem;
}

.footer-social {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
}

.footer-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: #333;
	color: white;
	border-radius: 50%;
	transition: all 0.3s;
	text-decoration: none;
	border: 2px solid var(--primary-color);
}

.footer-social-icon:hover {
	background-color: var(--primary-color);
	color: #333;
}

/* Game Characters */
.game-character {
	z-index: 2;
	position: absolute;
}

.character-left {
	left: 20%;
	max-height: 300px;
	width: 15%;
	float: left;
	top: -13%;
}

.character-right {
	right: 5%;
	top: -20px;
	max-height: 150px;
	float: right;
	width: 15%;
}

.action-background {
	margin-top: 130px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	/* Phone view */
	.character-left,
	.character-right {
		display: none;
	}
}

@media (min-width: 769px) and (max-width: 992px) {
	/* Tablet view */
	.character-left {
		left: 10%;
		max-height: 200px;
		width: 10%;
	}

	.character-right {
		right: 10%;
		top: -10px;
		max-height: 100px;
		width: 10%;
	}
}

@media (min-width: 993px) {
	/* PC view */
	.character-left {
		left: -1%;
		max-height: 300px;
		width: 35%;
		position: absolute;
		top: -330%;
	}

	.character-right {
		right: -650px;
		top: -180%;
		max-height: 150px;
		width: 45%;
		position: relative;
	}
}

/* Responsive */
@media (max-width: 992px) {
	.seal-action-buttons {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}

	.game-character {
		display: none;
	}
}

@media (max-width: 768px) {
	.btn-action {
		font-size: 20px;
	}

	.auth-buttons .btn {
		padding: 0.25rem 1rem;
		font-size: 0.9rem;
	}

	.stat-value {
		font-size: 2rem;
	}

	.event-title {
		font-size: 1.2rem;
	}
}

/* Registration Form */
.register-container {
	padding: 2rem 0;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.register-card {
	background-color: rgba(0, 0, 0, 0.7);
	border: 2px solid var(--primary-color);
	border-radius: 15px;
	padding: 2rem;
	position: relative;
	width: 100%;
	max-width: 900px;
}

.form-label {
	color: white;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.form-control {
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 187, 0, 0.5);
	color: white;
	padding: 0.75rem;
	border-radius: 5px;
}

.form-control:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: var(--primary-color);
	color: white;
	box-shadow: 0 0 0 0.25rem rgba(255, 187, 0, 0.25);
}

.form-control::placeholder {
	color: rgba(255, 255, 255, 0.6);
}
.placeholder-dark::placeholder {
	color: rgb(213, 213, 213) !important;
}

.login-link {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: bold;
}

.login-link:hover {
	text-decoration: underline;
}

.btn-submit {
	background-color: white;
	color: black;
	font-weight: bold;
	padding: 0.75rem 2rem;
	border-radius: 30px;
	transition: all 0.3s;
	border: none;
}

.btn-submit:hover {
	background-color: var(--primary-color);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(255, 187, 0, 0.3);
}

.captcha-container {
	background-color: white;
	border-radius: 5px;
	padding: 5px;
	display: inline-block;
}

.input-validation-error {
	color: #ff6b6b;
	font-size: 0.8rem;
	margin-top: 0.25rem;
	display: none;
}

.login-box {
	position: relative;
	z-index: 10;
	background-color: rgba(0, 0, 0, 0.6);
	border: 2px solid #facc15;
	border-radius: 1rem;
	padding: 2rem 3rem;
	max-width: 600px;
	width: 100%;
	backdrop-filter: blur(6px);
	color: white;
}
.login-box h1 {
	font-weight: 800;
	font-size: 2rem;
	margin-bottom: 1rem;
}
.login-box p.register-text {
	font-size: 0.9rem;
	margin-bottom: 2rem;
}
.login-box p.register-text span {
	font-weight: 700;
	color: #facc15;
	cursor: pointer;
}
.form-label {
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}
.form-control {
	background-color: rgba(75, 85, 99, 0.5);
	border: 1px solid #facc15;
	color: white;
	font-size: 1rem;
	padding: 0.5rem 1rem;
}
.form-control::placeholder {
	color: rgba(255, 255, 255, 0.7);
}
.form-control:focus {
	border-color: #facc15;
	box-shadow: 0 0 0 0.25rem rgba(250, 204, 21, 0.5);
	background-color: rgba(75, 85, 99, 0.5);
	color: white;
}
.forget-password {
	font-weight: 700;
	color: #facc15;
	cursor: pointer;
	margin-top: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}
.btn-login {
	border-radius: 50px;
	padding: 0.5rem 2.5rem;
	font-weight: 500;
	background-color: white;
	color: black;
	border: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-login:hover {
	background-color: #facc15;
	color: black;
}
.login-section {
	flex-grow: 1;
	position: relative;
	padding: 3rem 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.content-wrapper {
	background-color: rgba(0, 0, 0, 0.7);
	border: 2px solid #f6d33f;
	border-radius: 1rem;
	padding: 2rem;
	margin: 2rem auto;
	max-width: 1100px;
	color: white;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	z-index: 1;
}
.left-menu {
	min-width: 180px;
	font-size: 0.9rem;
	font-weight: 400;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	user-select: none;
}
.left-menu span {
	cursor: default;
}
.right-content {
	flex: 1 1 0;
	font-size: 0.9rem;
}
.header-box {
	background-color: rgba(0, 0, 0, 0.9);
	padding: 1rem 1.25rem;
	border-radius: 0.375rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.header-box h2 {
	font-weight: 800;
	font-size: 1.5rem;
	margin-bottom: 0.25rem;
	user-select: none;
}
.header-box p {
	font-size: 0.75rem;
	max-width: 400px;
	margin: 0;
	user-select: text;
}
select.form-select {
	background-color: transparent;
	border: 1.5px solid #f6d33f;
	color: white;
	font-size: 1rem;
	padding-right: 2.5rem;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23f6d33f' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1rem 1rem;
}
select.form-select option {
	color: black;
}
.btn-pill {
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.9rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	white-space: nowrap;
}
.btn-outline-white {
	color: white;
	border-color: white;
}
.btn-outline-white:hover,
.btn-outline-white:focus {
	background-color: white;
	color: black;
	border-color: white;
}
.btn-white {
	background-color: white;
	color: black;
}
.btn-white:hover,
.btn-white:focus {
	background-color: #f6d33f;
	color: black;
}
@media (max-width: 767.98px) {
	.content-wrapper {
		flex-direction: column;
		padding: 1.5rem 1rem;
	}
	footer {
		flex-direction: column;
		text-align: center;
	}
	footer .footer-text {
		max-width: 100%;
	}
}

.text-link {
	font-weight: 700;
	color: #facc15;
	cursor: pointer;
	margin-top: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	text-decoration: none;
}

.content-section {
	flex-grow: 1;
	position: relative;
	padding: 3rem 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.content-box {
	position: relative;
	z-index: 10;
	background-color: rgba(0, 0, 0, 0.6);
	border: 2px solid #facc15;
	border-radius: 1rem;
	padding: 2rem 3rem;
	max-width: 80%;
	width: 100%;
	backdrop-filter: blur(6px);
	color: white;
}
.content-box h1 {
	font-weight: 800;
	font-size: 2rem;
	margin-bottom: 1rem;
}

.fs-7 {
	font-size: 11px;
}

.rank-card {
	position: relative;
	border-radius: 10px;
	background-color: white;
	padding: 20px;
	text-align: center;
	margin: 30px;
	width: 200px;
}
.rank-medal {
	position: absolute;
	top: -1px;
	left: 3px;
}
.rank-charname {
	font-size: 24px;
	font-weight: bold;
	margin-top: 30px;
}
.rank-score {
	font-size: 18px;
	color: #6c757d;
}
.rank-icon {
	width: 20px;
	height: 20px;
}
.rank-charname {
	color: #000;
}
.dataTables_wrapper .dataTables_length select {
	color: white !important;
}
.dataTables_wrapper .dataTables_filter input {
	color: white !important;
}
.table-responsive {
	padding-top: 10px !important;
}
#table-marketplace-widthdraw-history {
	font-size: 12px;
}

.left-menu .hover-link:hover,
.left-menu .hover-link.active {
	background-color: var(--bs-primary);
	color: white;
	border-radius: 0.25rem;
}
#webquest_container {
	color: black;
}
.modal-title {
	color: black;
}
.nav-separator .nav-item {
	border-right: 1px solid #ffbb00;
	padding-right: 10px;
	margin-right: 10px;
}

/* Remove the line from the last item */
.nav-separator .nav-item:last-child {
	border-right: none;
}

.list-group-item > div {
	margin-left: 13px;
}

.voucher-input {
	width: 50px !important;
	height: 40px !important;
	font-weight: 500;
}
.voucher-input:focus {
	border-color: #0d6efd;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.voucher-group {
	position: relative;
}
.voucher-group:not(:last-child):after {
	content: "-";
	position: absolute;
	right: -12px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: bold;
	font-size: 1.2rem;
}
.modal-body {
	color: black !important;
}
