:root {
	--primary-red: #aa2c2c;
	--dark-brown: #5a1e1e;
	--gold: #f3b85f;
	--navy-blue: #282c4d;
}

body {
	font-family: Arial, sans-serif;
	background: var(--navy-blue) url("../images/bg-main.jpg") no-repeat
		center/cover;
	overflow-x: hidden;
	min-height: 100vh;
	/* Ensure body takes full viewport height */
}

/* Base styles for larger screens (desktop/tablet) */
@media (min-width: 768px) {
	body {
		background-size: cover;
		background-position: center center;
		background-attachment: fixed;
	}
}

/* Mobile-specific styles */
@media (max-width: 767px) {
	body {
		background-size: cover;
		background-position: center top;
		background-attachment: scroll;
		/* Fixed attachment can cause issues on mobile */
	}
}

/* For very small screens or portrait orientation */
@media (max-width: 480px) {
	body {
		background-size: cover;
		background-position: center center;
	}
}

/* Better approaches for mobile portrait to avoid cropping */
@media (max-width: 767px) and (orientation: portrait) {
	body {
		/* Option 1: Force full width, let height adjust */
		background-position: center top;
		background-repeat: no-repeat;
	}
}

/* For landscape mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
	body {
		background-size: cover;
		background-position: center center;
	}
}

.navbar {
	background: var(--primary-red) url("../images/bg-topbar.png") no-repeat left
		bottom/cover;
	padding: 10px 0;
	position: relative;
}

.logo {
	max-height: 60px;
}

.nav-item {
	margin: 0 15px;
	position: relative;
}

.nav-link {
	color: var(--gold) !important;
	font: bold 18px/1 Arial, sans-serif;
	text-transform: uppercase;
	padding: 8px 15px !important;
	transition: 0.3s;
}

.nav-link:hover {
	transform: translateY(-3px);
}

.nav-decoration {
	display: inline-block;
	width: 18px;
	height: 32px;
	background: url("../images/bg-separator-vertical.png") no-repeat
		center/contain;
	vertical-align: middle;
	margin: 0 -5px;
}

.login-btn {
	background: url("../images/btn-login.png") no-repeat center/contain;
	transition: 0.3s;
	width: 120px;
	height: 60px;
}

#dropdown-account {
	margin-top: -25px;
	z-index: 1;
	padding-top: 40px;
	width: 200px;
	background: radial-gradient(ellipse at center, #7a2323 70%, #5a1e1e 100%);
	border-bottom-left-radius: 18px;
	border-bottom-right-radius: 18px;
}

.dropdown-item {
	color: white;
}

#accountDropdown {
	z-index: 5;
	position: inherit;
}

.side-menu {
	background: var(--dark-brown);
	border-radius: 10px;
	padding: 15px;
	height: fit-content;
}

.side-menu-item {
	color: white;
	text-align: center;
	margin: 15px 0;
	font-weight: bold;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 10px;
}

.side-menu-item:last-child {
	border-bottom: none;
}

.side-menu-icon {
	display: block;
	margin: 0 auto 5px;
	font-size: 24px;
}

.main-content {
	position: relative;
	min-height: 600px;
}

.character-left,
.character-right {
	position: absolute;
	bottom: 0;
	max-height: 500px;
	z-index: 2;
}

.text-banner {
	position: absolute;
	bottom: 0;
	max-height: 500px;
	z-index: 2;
}

.character-left {
	left: 15%;
}

.character-right {
	right: 15%;
}

.text-banner {
	left: 20%;
}

.cta-container {
	position: absolute;
	bottom: 10%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	width: 100%;
	text-align: center;
}

.download-btn {
	background: url("../images/btn-download.png") no-repeat center/contain;
	font: bold 24px/80px Arial, sans-serif;
	padding: 15px 40px;
	width: 345px;
	height: 100px;
	text-align: center;
	text-transform: uppercase;
	margin-bottom: 20px;
	display: inline-block;
	transition: 0.3s;
}

.download-btn:hover {
	transform: scale(1.05);
	color: var(--gold);
	filter: brightness(1.1);
}

.register-btn {
	background: #fff;
	color: var(--dark-brown);
	border: 2px solid var(--gold);
	border-radius: 30px;
	font-weight: bold;
	padding: 10px 30px;
	display: inline-block;
	transition: 0.3s;
}

.register-btn:hover {
	background: var(--gold);
	color: var(--dark-brown);
}

.btn-decoration {
	color: var(--gold);
	font-size: 18px;
	margin: 0 5px;
}

/* MEDIA QUERIES */
@media (min-width: 1400px) {
	.login-btn {
		width: 200px;
		height: 100px;
	}

	.character-left,
	.character-right {
		max-height: 650px;
	}

	.text-banner {
		position: absolute;
		bottom: 235px;
		z-index: 2;
		top: 30%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-height: 500px;
	}

	.server-status {
		position: absolute;
		right: 10%;
		top: 50%;
		width: 275px;
		height: 260px;
		z-index: 4;
		background: url("../images/bg-server-status.png") no-repeat center/contain;
	}

	.status-title {
		font-size: 14px;
		text-align: center;
		color: #333;
		margin-bottom: 5px;
	}

	.status-online {
		font-size: 24px;
		font-weight: bold;
		text-align: center;
		color: #8b0000;
	}

	.status-indicator {
		color: green;
		font-size: 24px;
		vertical-align: middle;
		margin-right: 5px;
	}

	.player-online-container {
		margin: 10px 0;
		font-size: 1.5rem;
		position: absolute;
		top: 76px;
		left: 90px;
		width: 100px;
		text-align: center;
	}

	.total-cegel-container {
		margin: 10px 0;
		font-size: 15px;
		position: absolute;
		top: 154px;
		left: 90px;
		width: 100px;
		text-align: center;
	}

	.status-count {
		color: white;
		border-radius: 5px;
		padding: 5px;
		margin-top: 5px;
	}

	.close-btn {
		position: absolute;
		top: -10px;
		right: -10px;
		width: 40px;
		height: 40px;
		background: url("../images/btn-close.png") no-repeat center/contain;
		cursor: pointer;
		border: none;
		font-size: 0;
	}

	.main-content {
		min-height: 800px;
	}
}

@media (max-width: 1399px) and (min-width: 993px) {
	.text-banner {
		position: absolute;
		bottom: 235px;
		z-index: 2;
		top: 30%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 440px;
	}

	#dropdown-account {
		width: 160px;
	}

	.login-btn {
		width: 160px;
		height: 80px;
	}

	.download-btn {
		width: 345px;
		height: 100px;
		font-size: 20px;
		line-height: 60px;
		padding: 10px 20px;
	}
	.server-status {
		display: none;
	}
}

@media (max-width: 1300px), (max-width: 576px) {
	.text-banner {
		position: absolute;
		bottom: 190px;
		z-index: 2;
		top: 20%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 350px;
	}

	.login-btn {
		display: none;
	}

	#dropdown-account {
		width: 160px;
	}
}

@media (max-width: 992px) {
	.character-left {
		max-height: 400px;
		left: 5%;
	}

	.character-right {
		max-height: 400px;
		right: 5%;
	}

	.main-content {
		min-height: 400px;
		margin-top: 80px;
	}

	.download-btn {
		height: 90px;
		font-size: 18px;
		line-height: 48px;
		padding: 8px 10px;
	}

	.download-btn {
		font-size: 20px;
		padding: 12px 30px;
	}
	.server-status {
		display: none;
	}
}

@media (max-width: 768px) {
	.character-left,
	.character-right {
		max-height: 300px;
	}

	.text-banner {
		position: absolute;
		bottom: 190px;
		z-index: 2;
		top: 35%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: 300px;
	}

	.nav-link {
		font-size: 16px;
	}

	.server-status {
		display: none;
	}
}

@media (max-width: 576px) {
	.character-left {
		max-height: 180px;
		left: 0;
	}

	.character-right {
		max-height: 180px;
		right: 0;
	}

	.text-banner {
		max-width: 200px;
		position: absolute;
		top: 40%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.main-content {
		min-height: 250px;
	}

	.download-btn {
		width: 140px;
		font-size: 14px;
		line-height: 36px;
		padding: 5px;
	}
	.server-status {
		display: none;
	}
	.cta-container {
		bottom: -20%;
	}
}

.content-wrapper {
	max-width: 1000px;
	padding: 20px;
	display: flex;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1rem;
}

.content-title {
	font-family: "Arial Black", Gadget, sans-serif;
	font-size: 3.5rem;
	font-weight: 900;
	color: #f8a100;
	text-shadow: 3px 3px 0 #2b82b5, 4px 4px 0 #2b82b5,
		5px 5px 5px rgba(0, 0, 0, 0.5);
	text-align: center;
	margin-bottom: 20px;
}

.content-card {
	border: 5px solid #f8a100;
	border-radius: 25px;
	background-color: #fdf7e3;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M20,20 L80,20 L80,80 L20,80 Z" stroke="%23f8a10020" stroke-width="1" fill="none"/></svg>');
	background-size: 50px 50px;
	padding: 20px;
	position: relative;
	overflow: hidden;
	width: 90%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 992px) {
	.content-card {
		width: 90%;
		padding: 16px;
	}
}

@media (max-width: 768px) {
	.content-card {
		width: 98%;
		padding: 12px;
	}
}

@media (max-width: 576px) {
	.content-card {
		width: 100%;
		padding: 8px;
		border-width: 3px;
		border-radius: 15px;
	}
}

.night-bg {
	background-image: url("https://via.placeholder.com/1920x1080/051540/051540");
	background-size: cover;
	background-position: center;
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	margin-left: -13px;
	margin-right: -13px;
}

.night-bg::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
		circle at top,
		rgba(0, 20, 80, 0.3),
		rgba(0, 10, 30, 0.8)
	);
	z-index: 1;
}

.content-container {
	position: relative;
	z-index: 3;
	padding-top: 50px;
	padding-bottom: 50px;
}

.title {
	font-size: 4rem;
	font-weight: bold;
	text-align: center;
	margin-bottom: 40px;
	color: #ffb700;
	text-shadow: 3px 3px 0 #2e6cff, -3px -3px 0 #2e6cff, 3px -3px 0 #2e6cff,
		-3px 3px 0 #2e6cff;
	letter-spacing: 2px;
}

.milestone-card {
	background-color: #f9f5e7;
	border-radius: 20px;
	padding: 15px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
	color: #5c2424;
	border: 5px solid #ffb700;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease;
}

.milestone-card:hover {
	transform: translateY(-10px);
}

.milestone-header {
	background-color: #5c2424;
	color: #ffffff;
	padding: 10px;
	text-align: center;
	font-weight: bold;
	border-radius: 8px;
	margin-bottom: 10px;
}

.milestone-content {
	background-color: #5c2424;
	color: #ffffff;
	padding: 10px;
	text-align: center;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	margin-bottom: 15px;
}

.milestone-rewards {
	padding: 10px;
	font-size: 0.9rem;
	font-weight: bold;
	text-align: left;
	min-height: 120px;
}

.claim-btn {
	background-color: #5c2424;
	color: #ffb700;
	border: none;
	border-radius: 30px;
	padding: 10px 40px;
	font-size: 1.5rem;
	font-weight: bold;
	display: block;
	margin: 0 auto;
	cursor: pointer;
	transition: background-color 0.3s;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	width: 80%;
}

.claim-btn:hover {
	background-color: #7c3434;
}

.social-bar {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	background-color: #5c2424;
	border-radius: 30px;
	padding: 15px 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	z-index: 10;
}

.social-icon {
	width: 40px;
	height: 40px;
	background-color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #5c2424;
	font-size: 20px;
	transition: transform 0.3s;
	text-decoration: none;
}

.social-icon:hover {
	transform: scale(1.2);
}

/* Mobile styles - Bootstrap 5.3.0 uses 576px for sm breakpoint */
@media (max-width: 575.98px) {
	.social-bar {
		position: fixed;
		bottom: 20px;
		right: 50%;
		top: auto;
		transform: translateX(50%);
		flex-direction: row;
		padding: 10px 15px;
		border-radius: 25px;
		gap: 10px;
	}

	.social-icon {
		width: 35px;
		height: 35px;
		font-size: 18px;
	}
}

.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: -20px;
	left: -20px;
}
.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;
}

.tab-container {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.tab-button {
	background-color: #913a47;
	color: white;
	border: 3px solid #e7b75f;
	border-radius: 10px;
	padding: 10px 20px;
	font-weight: bold;
	cursor: pointer;
	min-width: 150px;
	text-align: center;
}

.calendar-container {
	background-color: #f9f5e7;
	border: 5px solid #e7b75f;
	border-radius: 25px;
	padding: 20px;
	max-width: 1100px;
	margin: 20px auto;
	position: relative;
	display: flex;
}

.calendar-left {
	flex: 0 0 60%;
}

.calendar-right {
	flex: 0 0 40%;
	padding-left: 20px;
	display: flex;
	align-items: center;
}

.calendar-header {
	text-align: center;
	margin-bottom: 20px;
}

.month-title {
	color: #913a47;
	font-size: 36px;
	font-weight: bold;
	margin-top: 10px;
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
	padding-bottom: 20px;
}

.calendar-day-header {
	color: #913a47;
	font-weight: bold;
	text-align: center;
	padding: 10px 0;
}

.calendar-day {
	text-align: center;
	padding: 10px;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	border-radius: 5px;
	transition: all 0.2s;
}

.calendar-day.burgundy {
	color: #913a47;
}

.calendar-day.gold {
	color: #e7b75f;
}

.calendar-day:hover {
	background-color: #f0e6d2;
}

.calendar-content {
	background-color: #913a47;
	height: 300px;
	width: 100%;
	border-radius: 10px;
}

.calendar-footer {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #e7b75f;
}

.divider {
	display: inline-block;
	width: 150px;
	height: 2px;
	background-color: #e7b75f;
	position: relative;
}

.divider::before,
.divider::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid #e7b75f;
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
}

.divider::before {
	left: -10px;
	border-right: none;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.divider::after {
	right: -10px;
	border-left: none;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.pagination {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.pagination-dot {
	width: 12px;
	height: 12px;
	background-color: #d9d9d9;
	border-radius: 50%;
	margin: 0 5px;
	cursor: pointer;
}

.pagination-dot.active {
	background-color: #913a47;
}

.calendar-decoration {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	color: #913a47;
	font-size: 24px;
}

.main-title {
	font-size: 4rem;
	font-weight: bold;
	color: #ffa500;
	text-shadow: -3px -3px 0 #0080ff, 3px -3px 0 #0080ff, -3px 3px 0 #0080ff,
		3px 3px 0 #0080ff;
	text-align: center;
	margin-bottom: 20px;
}

.event-container {
	background-color: rgba(255, 251, 235, 0.95);
	border-radius: 30px;
	padding: 20px;
	position: relative;
	max-width: 1100px;
	border: 5px solid #ffa500;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.event-content {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 20px;
}

.event-image {
	width: 500px;
	height: 300px;
	background-color: #8b4513;
	flex-shrink: 0;
}

.event-info {
	color: #8b4513;
	text-align: right;
}

.event-info h2 {
	color: #ffa500;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	font-weight: bold;
	margin-bottom: 20px;
}

.event-info p {
	margin-bottom: 10px;
	font-size: 14px;
}

.star-decoration {
	position: absolute;
	width: 80px;
	height: 80px;
}

.star-left {
	left: -40px;
	top: 50%;
	transform: translateY(-50%);
}

.star-right {
	right: -40px;
	top: 50%;
	transform: translateY(-50%);
}

.divider {
	text-align: center;
	margin-top: 10px;
}

.divider img {
	height: 30px;
}

.carousel-indicators {
	position: relative;
	margin-top: 20px;
}

.carousel-control-prev,
.carousel-control-next {
	width: 50px;
	height: 50px;
	background-color: rgba(255, 165, 0, 0.7);
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.8;
}

.carousel-control-prev {
	left: -25px;
}

.carousel-control-next {
	right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
	opacity: 1;
	background-color: rgba(255, 165, 0, 0.9);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
	width: 25px;
	height: 25px;
	filter: invert(100%);
}

/* Touch-enabled elements */
.carousel-touch {
	cursor: grab;
}

.beggar-tips-container {
	display: block;
	background: url("../images/background-beggar-tips.png") no-repeat;
	width: 277px;
	height: 142px;
}
.beggar-tips-content {
	padding: 5px;
	font-size: 13px;
	height: 75px;
}
