@font-face {
	font-family: 'Ringbearer';
	src: url('fonts/RINGM___.TTF') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'IMFellEnglish';
	src: url('fonts/IMFellEnglish-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Cinzel';
	src: url('fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

body {
	font-family: 'Cinzel', serif;
	color: white;
	background-color: black;
	margin: 0px 30px 0px 30px;
	background: rgba(0, 0, 0, 0.5) url('Images/Morgul_Vale.jpg');
	background-blend-mode: darken;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

a {	color: palegoldenrod; }
a:visited { text-decoration: none; }
a:hover { color: gold; }

h1 { 
	color: gold; 
	font-family: 'Ringbearer', serif;
	font-size: 2.5em;
}
h2 { 
	color: gold; 
	font-family: 'Ringbearer', serif;
	font-size: 2em;
}
h3 { 
	color: goldenrod; 
	font-family: 'Ringbearer', serif;
	font-size: 1.5em;
}

article {
	padding: 2px 20px 2px 20px;
}
details summary:hover {
	background-color: #44444477;
}
summary {
	cursor: pointer;
	color: goldenrod;
	font-weight: bold;
	font-size: 14pt;
}

.navbar td {
	vertical-align: top;
	padding: 2px 4px 2px 4px;
}
.navbar a {
	text-decoration: none;
	color: gold;
}
.navbar a:hover {
	text-decoration: underline;
}

.faction_table td {
	text-align: center;
	vertical-align: top;
	padding: 20px;
	color: palegoldenrod;
	font-size: 16pt;
	width: 140px;
}
.faction_table th {
	vertical-align: top;
	padding: 76px 0px 0px 0px;
}
.faction_table a {
	text-decoration: none;
}

/* ---- Roster Box ---- */
.roster-box {
	width: 240px;
	margin-left: 32px;
	background: rgba(30, 30, 30, 0.92);
	border: 2px solid goldenrod;
	border-radius: 12px;
	padding: 20px 18px 18px 18px;
	box-shadow: 0 4px 16px #000a;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: 180px;
	transition: box-shadow 0.2s;
}

.roster-box:hover {
	box-shadow: 0 8px 32px #000c;
	border-color: gold;
}

.roster-title {
	margin-top: 0;
	margin-bottom: 18px;
	text-align: center;
	color: gold;
	font-family: 'Ringbearer', serif;
	font-size: 1.4em;
	letter-spacing: 1px;
}

.roster-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.roster-link {
	display: block;
	background: linear-gradient(90deg, #2a4d7a 0%, #1a2330 100%);
	color: palegoldenrod;
	font-weight: bold;
	text-decoration: none;
	border-radius: 6px;
	padding: 10px 0;
	text-align: center;
	font-size: 1.1em;
	box-shadow: 0 2px 8px #0004;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.roster-link:hover {
	background: linear-gradient(90deg, #3a6db0 0%, #2a4d7a 100%);
	color: gold;
	box-shadow: 0 4px 16px #0006;
}

/* ---- Unit Cards ---- */
.unit-cards-container {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 40px auto 60px auto;
	max-width: 1200px;
}
.unit-row {
	display: flex;
	flex-direction: row;
	gap: 32px;
	justify-content: center;
	margin-bottom: 12px;
}
.unit-card {
	background: rgba(24, 24, 24, 0.98);
	border: 2px solid #2a4d7a;
	border-radius: 14px;
	box-shadow: 0 4px 18px #000a;
	width: 220px;
	min-height: 320px;
	padding: 18px 12px 14px 12px;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: box-shadow 0.2s, border-color 0.2s;
	position: relative;
}
.unit-card:hover {
	box-shadow: 0 8px 32px #000c;
	border-color: gold;
}
.unit-img {
	width: 90px;
	height: 110px;
	object-fit: contain;
	margin: 0 auto;
	border-radius: 6px;
	background: #222;
}
.unit-name {
	font-family: 'Ringbearer', serif;
	color: gold;
	font-size: 14px;
	margin-top: 20px;
	margin-bottom: 30px;
	text-align: center;
}
.unit-attr {
	color: palegoldenrod;
	font-size: 0.65em;
	margin-bottom: 15px;
	text-align: left;
}
.unit-modal-version {
    display: inline-flex;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 3px;
    background-color: #091e420f;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    gap: 4px;
}
/* ---- Popup Modal ---- */
.unit-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	overflow: auto;
	background: rgba(0,0,0,0.7);
	justify-content: center;
	align-items: center;
}
.unit-modal-presentation {
	text-align: center;
}
.unit-modal-content {
	background: #181818;
	margin: 80px auto;
	padding: 32px 28px 24px 28px;
	border: 2px solid goldenrod;
	border-radius: 16px;
	max-width: 1080px;
	color: white;
	box-shadow: 0 8px 32px #000c;
	position: relative;
	text-align: left;
}
.unit-modal-close {
	color: gold;
	position: absolute;
	top: 12px;
	right: 18px;
	font-size: 2em;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.2s;
}
.unit-modal-close:hover {
	color: palegoldenrod;
}
.unit-img-large {
	width: 120px;
	height: 150px;
	object-fit: contain;
	display: block;
	margin: 0 auto 18px auto;
	border-radius: 8px;
	background: #222;
}

.patch-notes {
	max-width: 800px;
	margin: 20px auto;
	padding: 0 20px;
}

.patch-entry {
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 8px;
	margin-bottom: 30px;
	overflow: hidden;
}

.patch-header {
	background: linear-gradient(135deg, #2c1810 0%, #1a1a1a 100%);
	padding: 20px;
	border-bottom: 1px solid #333;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.patch-header h2 {
	color: #d4af37;
	margin: 0;
	font-size: 1.5rem;
}

.patch-badge {
	background: #d4af37;
	color: #1a1a1a;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: bold;
}

.patch-badge.new {
	background: linear-gradient(45deg, #d4af37, #f4d03f);
	animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
	from { box-shadow: 0 0 5px #d4af37; }
	to { box-shadow: 0 0 15px #d4af37, 0 0 25px #d4af37; }
}

.patch-content {
	padding: 25px;
	color: #e0e0e0;
}

.patch-content h3 {
	color: #d4af37;
	margin: 20px 0 10px 0;
	font-size: 1.2rem;
	border-left: 3px solid #d4af37;
	padding-left: 10px;
}

.patch-content ul {
	list-style: none;
	padding-left: 0;
}

.patch-content li {
	margin: 8px 0;
	padding-left: 20px;
	position: relative;
}

.patch-content li:before {
	content: "▶";
	color: #d4af37;
	position: absolute;
	left: 0;
}

.patch-content strong {
	color: #f0f0f0;
}

.upcoming-section {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border: 1px solid #0f4c75;
	border-radius: 8px;
	padding: 25px;
	margin-top: 30px;
}

.upcoming-section h2 {
	color: #3282b8;
	margin-top: 0;
}

.upcoming-content ul {
	list-style: none;
	padding-left: 0;
}

.upcoming-content li {
	margin: 12px 0;
	padding-left: 25px;
	position: relative;
	color: #e0e0e0;
}

.upcoming-content li:before {
	content: "🔮";
	position: absolute;
	left: 0;
}