html,
body {
	padding: 0;
	margin: 0;
	overflow: hidden;
	height: 100%;
}

body {
	background: #000000;
	color: white;
}

html,
body,
canvas {
	touch-action-delay: none;
	touch-action: none;
}

canvas,
.c3htmlwrap {
	position: absolute;
}

.c3htmlwrap {
	contain: strict;
}

.c3overlay {
	pointer-events: none;
}

.c3htmlwrap>* {
	pointer-events: auto;
}

/* HACK - work around elements being selectable only in iOS WKWebView for some reason */
html[ioswebview] .c3htmlwrap,
html[ioswebview] canvas {
	-webkit-user-select: none;
	user-select: none;
}

html[ioswebview] .c3htmlwrap>* {
	-webkit-user-select: auto;
	user-select: auto;
}

#notSupportedWrap {
	margin: 2em auto 1em auto;
	width: 75%;
	max-width: 45em;
	border: 2px solid #aaa;
	border-radius: 1em;
	padding: 2em;
	background-color: #f0f0f0;
	font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
	color: black;
}

#notSupportedTitle {
	font-size: 1.8em;
}

.notSupportedMessage {
	font-size: 1.2em;
}

.notSupportedMessage em {
	color: #888;
}

/* bbcode styles */
.bbCodeH1 {
	font-size: 2em;
	font-weight: bold;
}

.bbCodeH2 {
	font-size: 1.5em;
	font-weight: bold;
}

.bbCodeH3 {
	font-size: 1.25em;
	font-weight: bold;
}

.bbCodeH4 {
	font-size: 1.1em;
	font-weight: bold;
}

.bbCodeItem::before {
	content: " • ";
}

/* For text icons converted to HTML: size the height to the line height
   preserving the aspect ratio. Also add position: relative as that allows
   just adding a 'top' style for the iconoffsety style. */
.c3-text-icon {
	height: 1em;
	width: auto;
	position: relative;
}

/* screen reader text */
.c3-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}


/* Button */
.nav-buttons {
	position: fixed;
	top: 20px;
	left: 0;
	right: 0;
	padding: 0 20px;
	display: flex;
	justify-content: end;
	z-index: 1000;
}

#connectButton {
	background: rgba(0, 0, 0, 0.5);
	color: #4a90e2;
	border: 1px solid #4a90e2;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s;
}

#leaderboardButton {
	text-decoration: none;
	display: inline-block;
	width: 80px;
	height: 80px;
	padding: 0 !important;
}

#leaderboardButton img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#connectButton:hover {
	background: rgba(74, 144, 226, 0.2);
}

/* Thêm styles cho dropdown */
.wallet-container {
	position: fixed;
	top: 55px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 8px;
	margin-top: 5px;
	z-index: 1001;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.dropdown-menu.show {
	display: block;
}

.dropdown-menu button {
	width: 100%;
	padding: 8px 16px;
	background: none;
	border: none;
	color: #4a90e2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s;
	white-space: nowrap;
}

.dropdown-menu button:hover {
	background: rgba(74, 144, 226, 0.2);
}

/* Mobile styles */
@media (max-width: 768px) {
	.nav-buttons {
		top: 10px;
		padding: 0 10px;
		right: 40px;
	}

	#connectButton,
	#leaderboardButton {
		padding: 6px 12px;
		font-size: 12px;
	}

	#leaderboardButton {
		width: 54px;
		height: 54px;
	}
}

/* Token Purchase Modal */
.token-purchase-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	font-family: 'Courier New', monospace;
}

.token-purchase-content {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 0 20px rgba(0, 100, 255, 0.5);
	max-width: 500px;
	width: 90%;
	text-align: center;
	color: white;
	letter-spacing: 0.5px;
}

.token-purchase-content h2 {
	color: #4a90e2;
	margin-bottom: 15px;
	font-size: 24px;
	text-transform: uppercase;
	font-weight: 700;
}

.token-purchase-content p {
	margin-bottom: 20px;
	line-height: 1.6;
	font-size: 16px;
}

.wallet-address {
	background: rgba(255, 255, 255, 0.1);
	padding: 12px;
	border-radius: 8px;
	font-family: 'Courier New', monospace;
	margin-bottom: 20px;
	font-size: 14px;
	letter-spacing: 1px;
	border-left: 3px solid #4a90e2;
}

.token-purchase-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 25px;
}

.primary-btn {
	background-color: #4a90e2;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s;
	font-family: 'Courier New', monospace;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 14px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
	background-color: #3a80d2;
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
	background-color: transparent;
	color: #4a90e2;
	border: 1px solid #4a90e2;
	padding: 12px 24px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s;
	font-family: 'Courier New', monospace;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 14px;
}

.secondary-btn:hover {
	background-color: rgba(74, 144, 226, 0.1);
	transform: translateY(-2px);
}

/* Animation cho modal */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.token-purchase-content {
	animation: fadeIn 0.4s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.token-purchase-content {
		padding: 20px;
		width: 85%;
	}

	.token-purchase-buttons {
		flex-direction: column;
		gap: 12px;
	}

	.token-purchase-content h2 {
		font-size: 20px;
	}

	.token-purchase-content p {
		font-size: 14px;
	}
}