/* General CSS */

@font-face {
    font-family: TrajanPro;
    src: url('../fonts/TrajanPro-Regular.otf');
}
@font-face {
    font-family: TrajanPro;
    src: url('../fonts/TrajanPro-Bold.otf');
    font-weight: bold;
}

body {
	background: #08140d url('../img/bg.png') no-repeat center top fixed;
	background-size: cover;
	margin: 0;
	font-family: TrajanPro;
	font-size: 14px;
	color: #f6f0d8;
	position: relative;
}

#page-bg {
	position: fixed;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(8,20,13,0.14), rgba(8,20,13,0.42)),
		radial-gradient(circle at center, rgba(152,255,116,0.05), transparent 45%);
	pointer-events: none;
	z-index: 0;
}

:focus { outline: none; }
::-moz-focus-inner { border: 0; }

a {
	text-decoration: none;
	color: #f7efc9;
	font-weight: bold;
}
a:hover {
	color: #fff7d8;
}
a:visited {
	color: #f7efc9;
}

a img { border: none; }

h1, h2, h3, h4, h5, h6 {
	color: #fff1b8;
	margin-top: 0;
	text-shadow: 0 1px 2px rgba(0,0,0,0.28);
	font-weight: bold;
}

h2 {
	font-size: 24px;
	margin-bottom: 16px;
}

h3 {
	font-size: 19px;
	margin-bottom: 12px;
}

p, td, th, li, div {
	line-height: 1.45;
}

/* Layout CSS */
#container {
	width: 1000px;
	margin: 0 auto 40px auto;
	position: relative;
	z-index: 2;
}

#content {
	background: rgba(28, 59, 18, 0.55);
	border: 1px solid rgba(214, 175, 76, 0.20);
	box-shadow:
		0 14px 30px rgba(0,0,0,0.30),
		inset 0 0 0 1px rgba(255,255,255,0.02);
	padding: 14px;
	color: #f4edd1;
	overflow: visible;
	border-radius: 0 0 10px 10px;
	backdrop-filter: blur(2px);
}

#submenu {
	padding-top: 14px;
}

/* Homepage */
#homepage {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	width: 100%;
}

#homeleft {
	float: none;
	width: 255px;
	padding-top: 0;
}

#homemain {
	float: none;
	width: calc(100% - 273px);
	padding-top: 0;
}

.homebox,
.loginbox {
	background:
		linear-gradient(to bottom, rgba(53, 92, 24, 0.82), rgba(34, 67, 16, 0.80));
	border: 1px solid rgba(214, 175, 76, 0.18);
	box-shadow:
		0 8px 18px rgba(0,0,0,0.22),
		inset 0 0 0 1px rgba(255,255,255,0.02);
	padding: 18px;
	margin-bottom: 18px;
	border-radius: 10px;
	color: #f6f0d8;
}

.loginbox h2,
.homebox h2 {
	color: #fff1b8;
	margin-bottom: 14px;
}

.login {
	background-color: transparent !important;
}

.newstitle {
	width: 510px;
}

/* Header */
#header {
	width: 100%;
	height: 235px;
	position: relative;
	z-index: 2;
}

#header .topbar {
	height: 235px;
	position: relative;
}

.hero-logo {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	z-index: 6;
}

.hero-logo img {
	width: 235px;
	max-width: 90vw;
	display: block;
	filter:
		drop-shadow(0 0 12px rgba(145,255,116,0.22))
		drop-shadow(0 0 22px rgba(255,220,120,0.14));
}

/* Navigation */
#headernav {
	font-size: 16px;
	font-weight: bold;
	height: 54px;
	background:
		linear-gradient(to bottom, rgba(74, 110, 33, 0.86), rgba(44, 74, 21, 0.86));
	border: 1px solid rgba(214, 175, 76, 0.20);
	box-shadow:
		0 6px 16px rgba(0,0,0,0.28),
		inset 0 0 0 1px rgba(255,255,255,0.02);
	border-radius: 12px 12px 0 0;
	margin-top: 12px;
}

#headernav ul {
	list-style-type: none;
	margin: 0;
	padding: 0 18px;
	display: flex;
	align-items: center;
	height: 54px;
	gap: 22px;
	justify-content: center;
}

#headernav li {
	display: inline-block;
	padding: 0;
}

#headernav a {
	color: #fff4c9;
	font-weight: bold;
	letter-spacing: 0.2px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.26);
	transition: 0.2s ease;
	text-transform: uppercase;
}

#headernav a:hover {
	color: #ffffff;
	text-shadow: 0 0 8px rgba(255,245,180,0.30);
}

/* Footer */
#footer {
	width: 100%;
	height: 250px;
}

#footer .bottombar {
	height: 235px;
	width: 880px;
	margin: auto;
}

#footer .bottombar .footernav {
	clear: both;
	font-size: 12px;
	font-family: TrajanPro;
	padding-top: 318px;
}

#footer .bottombar .footernav ul {
	list-style-type: none;
	padding-left: 115px;
}

#footer .bottombar .footernav li {
	display: inline-block;
	font-size: 15px;
	padding-top: 13px;
	padding-bottom: 13px;
	padding-left: 20px;
	padding-right: 10px;
}

#footer .bottombar .bottom {
	background: transparent;
	clear: both;
	padding-top: 90px;
	margin: auto;
}

/* Left Homepage Buttons */
#btn-register,
#btn-download,
#btn-donation,
#btn-pvp,
#btn-features,
#btn-vote {
	width: 245px;
	height: 96px;
	display: block;
	background-repeat: no-repeat;
	background-size: contain;
	margin: 0 0 12px 0;
	opacity: 0.96;
	border-radius: 8px;
}

#btn-register { background-image: url(../img/btn_register.png); }
#btn-download { background-image: url(../img/btn_download.png); }
#btn-donation { background-image: url(../img/btn_donation.png); }
#btn-pvp { background-image: url(../img/btn_pvp.png); }
#btn-features { background-image: url(../img/btn_features.png); }
#btn-vote { background-image: url(../img/btn_vote.png); }

/* Forms */
button,
input,
input[type=text],
input[type=password],
input[type=file],
textarea {
	border: 1px solid rgba(122, 96, 32, 0.30);
	padding: 8px 10px;
	border-radius: 6px;
	background: #f5f0df;
	color: #2d2a1f;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
	text-transform: none !important;
}

input[type=submit],
button {
	background:
		linear-gradient(to bottom, #7ea92f, #4e781d);
	color: #fff7d3;
	font-weight: bold;
	cursor: pointer;
	border: 1px solid rgba(214, 175, 76, 0.26);
	box-shadow: 0 4px 8px rgba(0,0,0,0.16);
	padding: 8px 18px;
}

input[type=submit]:hover,
button:hover {
	background:
		linear-gradient(to bottom, #8dbb38, #5d8a24);
}

.generic-form {
	background-color: transparent;
	border: none;
}

.generic-form-div {
	background-color: transparent;
	border: none;
}

/* Login form table cleanup */
.generic-form-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 6px;
}

.generic-form-table th {
	width: 58px;
	text-align: left;
	color: #f7efc9;
	font-size: 13px;
	padding-right: 8px;
	background: transparent !important;
	border: none !important;
}

.generic-form-table td {
	background: transparent !important;
	border: none !important;
	padding: 0;
}

.generic-form-table input[type=text],
.generic-form-table input[type=password] {
	width: 100%;
	box-sizing: border-box;
}

.loginbox ul {
	margin: 0;
	padding-left: 18px;
}

/* Table Stuff */
table {
	font-family: TrajanPro;
	width: 100%;
	border-collapse: collapse;
}

tr:nth-child(odd) {
	background-color: rgba(44, 72, 28, 0.82);
}

.horizontal-table td,
.horizontal-table th,
.vertical-table td,
.vertical-table th {
	font-size: 9pt;
	border: 1px solid rgba(96, 76, 24, 0.35);
}

.horizontal-table td,
.vertical-table td {
	padding: 5px 10px;
	background-color: rgba(60, 97, 37, 0.74);
	color: #f6f0d8;
}

.horizontal-table th,
.vertical-table th {
	padding: 5px 10px;
	background:
		linear-gradient(to bottom, rgba(98, 136, 38, 0.90), rgba(62, 95, 24, 0.90));
	color: #fff2be;
}

.horizontal-table th a,
.horizontal-table th a:hover,
.horizontal-table th a:visited {
	color: #fff2be;
	font-weight: bold;
}

.info-text {
	background-color: transparent !important;
	border: none;
	color: #f6f0d8;
}

/* Messages / menus */
.message {
	background:
		linear-gradient(to bottom, rgba(112, 149, 46, 0.88), rgba(72, 102, 30, 0.88));
	color: #fff;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(214, 175, 76, 0.22);
	box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

.adminpagelinks,
.mainpagelinks {
	margin-bottom: 12px;
}

.mainpagelinks a,
.adminpagelinks a {
	color: #ffe9a7;
}

.mainpagelinks a:hover,
.adminpagelinks a:hover {
	color: #fff7d8;
}

/* News */
.newsDiv h4 {
	margin-bottom: 8px;
	color: #fff1b8;
}

.newsCont {
	margin-bottom: 18px;
}

.newsDate {
	display: block;
	margin-bottom: 8px;
	color: #e9dfb6;
}

.news_link {
	display: inline-block;
	margin-top: 8px;
}

/* Utility panel title style */
.panel-title {
	background: linear-gradient(to bottom, #7ea92f, #4e781d);
	color: #fff6cf;
	border: 2px solid #a97b2c;
	padding: 10px 14px;
	border-radius: 14px;
	display: inline-block;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 1150px) {
	#container {
		width: 95%;
	}

	#homepage {
		flex-direction: column;
	}

	#homeleft,
	#homemain {
		width: 100%;
	}

	#headernav ul {
		gap: 14px;
		flex-wrap: wrap;
		height: auto;
		padding: 12px 18px;
	}

	#headernav {
		height: auto;
	}

	.hero-logo img {
		width: 180px;
	}

	#btn-register,
	#btn-download,
	#btn-donation,
	#btn-pvp,
	#btn-features,
	#btn-vote {
		width: 100%;
		height: 96px;
	}
}

/* LOGO */
.hero-logo {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	margin-bottom: 10px;
}

.hero-logo img {
	max-width: 220px;
	filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

/* NAV */
#headernav {
	display: flex;
	justify-content: center;
	margin-top: 10px;
}

.nav-wrapper {
	background: rgba(40, 80, 30, 0.75);
	padding: 12px 30px;
	border-radius: 12px;
	box-shadow: 0 0 15px rgba(0,0,0,0.5);
	backdrop-filter: blur(6px);
}

.nav-menu {
	list-style: none;
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
}

.nav-menu li a {
	color: #f5e7a1;
	text-decoration: none;
	font-weight: bold;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
	position: relative;
	transition: all 0.25s ease;
}

.nav-menu li a:hover {
	color: #ffffff;
	text-shadow: 0 0 6px #fff2a8;
}

.nav-menu li a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 0%;
	height: 2px;
	background: #ffd86f;
	transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
	width: 100%;
}

/* ACTIVE LINK */
.nav-menu li a.active {
	color: #ffffff;
	text-shadow: 0 0 8px #ffd86f;
}

.donation-page {
	padding: 10px 0 30px;
}

.donation-box {
	background: rgba(30, 80, 20, 0.68);
	border: 1px solid rgba(214, 197, 123, 0.18);
	border-radius: 16px;
	padding: 26px 28px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	color: #f1ebcf;
	line-height: 1.7;
}

.donation-box h2 {
	margin: 0 0 14px;
	font-size: 34px;
	color: #f5e6a8;
	text-transform: uppercase;
}

.donation-box h3 {
	margin: 22px 0 10px;
	font-size: 24px;
	color: #ffe08a;
	text-transform: uppercase;
}

.donation-box h4 {
	margin: 0 0 14px;
	font-size: 22px;
	color: #f5e6a8;
	text-align: center;
	text-transform: uppercase;
}

.donation-lead {
	font-size: 17px;
	margin-bottom: 16px;
}

.donation-method-list,
.donation-reminders {
	margin: 10px 0 16px 22px;
	padding: 0;
}

.donation-method-list li,
.donation-reminders li {
	margin-bottom: 8px;
}

.donation-ratio {
	margin: 18px 0;
	padding: 12px 16px;
	background: rgba(255, 223, 118, 0.10);
	border: 1px solid rgba(255, 223, 118, 0.18);
	border-radius: 10px;
	color: #ffe8a3;
	font-size: 16px;
}

.donation-ticket-note {
	margin-top: 18px;
	font-size: 16px;
}


/* ============================= */
/* DONATION PAGE */
/* ============================= */

.donation-box {
	background: rgba(30, 80, 20, 0.7);
	padding: 25px;
	border-radius: 16px;
}

/* GRID FIX */
.payment-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* CARD */
.payment-card {
	background: rgba(21, 60, 14, 0.8);
	padding: 20px;
	border-radius: 14px;
	text-align: center;
}

/* ============================= */
/* 🔥 QR IMAGE FIX */
/* ============================= */

.payment-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px !important;
    padding: 20px;
}

.payment-image-wrap img {
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
    border-radius: 12px;
    cursor: zoom-in;
}

/* ============================= */
/* 🔥 MODAL (POPUP FIX) */
/* ============================= */

.qr-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.85);
	z-index: 99999;
}

.qr-modal.open {
	display: flex;
	justify-content: center;
	align-items: center;
}

.qr-modal-content {
	position: relative;
	padding: 20px;
	border-radius: 12px;
	background: rgba(20,40,12,0.95);
}

.qr-modal-content img {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 10px;
}

/* CLOSE BUTTON */
.qr-modal-close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #6fa93d;
	color: #fff;
	font-size: 22px;
	border: none;
	cursor: pointer;
}

.qr-modal-close:hover {
	background: #8acb4a;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1000px) {
	#container {
		width: 95%;
	}

	.payment-grid {
		grid-template-columns: 1fr;
	}

	.payment-image-wrap img {
		width: 300px !important;
	}
}