html, body, div, span,
h1, h2, h3, h4, h5, h6, p,
a, font, img,
b, u, i, center,
ol, ul, li,
fieldset, form, label, legend,
table, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family:arial;
	}
	
body {
	color:white;
	font-size:14px;
	background-image: url('images/bg_repeat.jpg');
	}
	
#r1 {
	height:59px;
	background-image:url('images/banner1_rpt.png');
	}
	
#r1_image {
	height:59px;
	width:751px;
	margin:auto;
	}

#r2 {
	height:188px;
	background-image:url('images/banner2_rpt.png');
	}
	
#r2_image {
	height:188px;
	width:1090px;
	margin:auto;
	}
	
#nav {
	margin-top:5px;
	height:20px;
	background-image: url('images/nav_bg.png');
	}
	
#nav_links {
	width:750px;
	margin:auto;
	text-align:center;
	}
	
#nav_links a {
	color:white;
	font-size:10px;
	text-decoration:none;
	margin-right:20px;
	letter-spacing:2px;
	}
	
#nav_links a:hover{
	color:#10ff04;
	font-size:10px;
	text-decoration:none;
	margin-right:20px;
	letter-spacing:2px;
	}
	
#nav_links img{
	margin:auto
	}

.post_cont {
    line-height: 1.6;
    overflow: hidden;
}

.pagination {
    margin: 30px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pagination a {
    background: #111;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border: 1px solid #333;
}
	
	/* Meta row spacing */
.post_meta {
    margin-top: 10px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* The clickable link container */
.comment-link {
    text-decoration: none;
    color: #ccc;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    transition: color 0.2s;
}

.comment-link:hover .comment-badge {
    background-color: #00AA00; /* Changes to your primary green on hover */
    border-color: #00FF00;
}

/* The actual Badge */
.comment-badge {
    background-color: #222;
    color: #fff;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #444;
    margin-right: 5px;
    font-size: 0.85em;
    transition: all 0.2s;
}

.comment-text {
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.avatar-container {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    overflow: hidden;
    border-radius: 50%; /* Circle avatars */
    border: 2px solid #444;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-rank {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-icon img {
    max-width: 100px; /* Standard rank image width */
    height: auto;
    display: inline-block;
}

.dashboard { background: #111; color: #eee; font-size: 0.85em; }
.dash-section { padding: 10px; border-bottom: 1px solid #222; }
.dash-section label { display: block; color: #00AA00; font-weight: bold; font-size: 0.75em; margin-bottom: 5px; }
.dash-row { display: flex; justify-content: space-between; margin-bottom: 3px; }
.dash-row.small { font-size: 0.9em; color: #888; }
.status-on { color: #00FF00; font-size: 0.9em; }
.status-off { color: #FF0000; font-size: 0.9em; }
.count { color: #555; font-style: italic; }

.pulsing-dot {
    height: 10px; width: 10px; background-color: #ff0000;
    border-radius: 50%; display: inline-block;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}
.poll-bar {
    background: #333; height: 10px; border-radius: 5px; margin-bottom: 5px;
}
.poll-fill {
    background: #00AA00; height: 100%; border-radius: 5px;
}

.badge { font-size: 1.2em; vertical-align: middle; margin-right: 5px; }
.badge.gold { color: #FFD700; text-shadow: 0 0 5px #FFD700; }
.badge.silver { color: #C0C0C0; }
.user-welcome { background: #111; padding: 10px 20px; border-bottom: 2px solid #00AA00; margin-bottom: 20px; }

.user-stats {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.roster-card:hover .user-stats {
    opacity: 1;
    color: #888;
}

.badge-modded {
    background: #673ab7; /* Purple */
    box-shadow: 0 0 10px rgba(103, 58, 183, 0.5);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Color for Modpacks */
.software-badge:contains('THE PACK') {
    background-color: #673ab7 !important; /* Purple */
    color: #fff;
}

/* Color for Vanilla */
.software-badge:contains('Vanilla') {
    background-color: #4caf50 !important; /* Green */
}


/* Optional: Tooltip styling for the badges */
.badge:hover::after {
    content: attr(title);
    position: absolute;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: -25px;
    z-index: 10;
}

.dash-row.small a:hover {
    color: #00AA00 !important;
    padding-left: 3px;
    transition: all 0.2s ease;
}

.dash-row.small { font-size: 0.85em; color: #777; line-height: 1.4; }
.badge-new { background: #ff0000; color: #fff; padding: 2px 5px; border-radius: 3px; font-size: 0.7em; margin-left: 10px; vertical-align: middle; }
.comment-badge { background: #222; border: 1px solid #444; color: #fff; padding: 1px 6px; border-radius: 4px; font-size: 0.85em; }
.comment-text { font-size: 0.8em; text-transform: uppercase; color: #666; }

.server-container { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.server-card { display: flex; background: #111; border: 1px solid #333; padding: 15px; border-radius: 8px; align-items: center; }
.card-java { border-left: 5px solid #00AA00; }
.card-bedrock { border-left: 5px solid #007bff; }
.server-img { width: 64px; height: 64px; border-radius: 5px; margin-right: 15px; }
.server-details { flex-grow: 1; }
.badge-java { background: #004400; color: #00FF00; padding: 2px 6px; border-radius: 3px; font-size: 0.7em; font-weight: bold; }
.badge-bedrock { background: #002244; color: #00aaff; padding: 2px 6px; border-radius: 3px; font-size: 0.7em; font-weight: bold; }

/* Arma Reforger Specific Card Styling */
.card-reforger {
    background: linear-gradient(145deg, #1e1e1e 0%, #0a0a0a 100%) !important;
    border: 1px solid #3a3a3a !important;
    border-left: 5px solid #FFD700 !important; /* Signal Yellow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Tactical Overlay (Scanlines) */
.card-reforger::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 215, 0, 0.03) 0px,
        rgba(255, 215, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

/* Badge Styling */
.badge-reforger {
    background-color: #FFD700 !important;
    color: #000 !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 0 !important; /* Sharp corners for military look */
    font-family: 'Courier New', Courier, monospace;
}

/* Software/Version Tags */
.card-reforger .software-badge {
    background: #333;
    color: #FFD700;
    border: 1px solid #FFD700;
    font-size: 0.7em;
}

/* Join Button for Arma */
.reforger-btn {
    background-color: #FFD700 !important;
    color: #000 !important;
    border: none;
    font-weight: bold;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); /* Angular military cut */
    transition: all 0.3s ease;
}

.reforger-btn:hover {
    background-color: #fff !important;
    transform: scale(1.05);
}

/* Pulse Animation */
.status-pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.pulse-on { animation: pulse-animation 2s infinite; }
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0px rgba(0, 255, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0px rgba(0, 255, 0, 0); }
}

/* Modal Overlay */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; }
.modal-content { background: #1a1a1a; padding: 25px; border-radius: 10px; border: 1px solid #333; width: 320px; text-align: center; }
.copy-row { display: flex; justify-content: space-between; background: #111; padding: 8px; border: 1px solid #333; margin-top: 5px; }

.software-badge {
    background: #333;
    color: #aaa;
    font-size: 0.65em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.version-tag {
    font-family: monospace;
    background: rgba(0, 170, 0, 0.1);
    color: #00AA00;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
}

.server-extra { font-size: 0.8em; color: #666; margin: 5px 0; }

.player-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

.player-toggle {
    background: #222;
    border: 1px solid #444;
    color: #00AA00;
    padding: 5px 10px;
    font-size: 0.75em;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-top: 10px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
}

.player-list-dropdown {
    display: none; /* Hidden by default */
    background: #111;
    border: 1px solid #333;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
}

.player-item {
    font-size: 0.8em;
    padding: 3px 8px;
    color: #bbb;
    border-bottom: 1px solid #222;
}

/* Navigation Container must be relative or flex */
.nav-menu {
    display: flex;
    position: relative;
    list-style: none;
    align-items: center;
}

/* Specific styling for the TCAdmin link */
.nav-admin {
    position: absolute;
    top: 0;
    right: 0;
}

.nav-admin a {
    color: #ff4444 !important; /* Bold Red */
    font-weight: bold;
    border: 1px solid #ff4444;
    padding: 5px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-admin a:hover {
    background: #ff4444;
    color: #fff !important;
}

/* Adding the Gear Icon via CSS Pseudo-element */
.nav-admin a::before {
    content: '⚙'; /* Gear unicode icon */
    font-size: 1.2em;
}

.p-tag {
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
}

.p-tag-more { font-size: 0.7em; color: #555; align-self: center; }

.map-btn {
    display: block;
    background: #4a6741; /* Earthy Green/Brown for Map */
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 5px;
    text-align: center;
    border: 1px solid #3d5435;
}

.map-btn:hover {
    background: #5d8252;
}

.member-pulse {
    background: #111;
    border: 1px solid #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    height: 8px;
    width: 8px;
    background-color: #00AA00;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(0, 170, 0, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0px rgba(0, 170, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 170, 0, 0); }
    100% { box-shadow: 0 0 0 0px rgba(0, 170, 0, 0); }
}

.welcome-pulse {
    border-color: #007bff !important; /* Blue accent for welcome */
}

.welcome-text {
    font-size: 0.75em;
    color: #007bff;
    font-weight: bold;
    letter-spacing: 1px;
}

.card-discord {
    border-left: 5px solid #7289da;
}
.map-btn {
    display: block;
    background: #4a6741;
    color: #fff;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8em;
    margin-bottom: 5px;
    text-align: center;
}

/* Ensure the header stacks nicely on mobile */
@media (max-width: 600px) {
    .roster-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

.user-stats span:last-child {
    font-family: 'Courier New', Courier, monospace; /* Makes numbers look like a game UI */
}

.roster-card:hover .user-stats span:last-child {
    text-shadow: 0 0 5px rgba(0, 170, 0, 0.5);
    transition: all 0.3s ease;
}

.roster-card {
    position: relative; /* Required for absolute positioning of medal */
}

.medal-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    cursor: help;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.medal.diamond {
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.8; transform: scale(1); }
}

/* Container for the group icons */
.member-group-icons {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px; /* Space between multiple icons */
}

/* Make group images match primary rank style */
.group-rank-wrapper img {
    /* Set this height to match your .rank-icon img height */
    max-width: 100px; /* Standard rank image width */
    height: auto;
    display: inline-block;
    /* Optional: adds a slight separation if icons touch */
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.3));
}


/* Responsive adjustment for small cards */
.roster-card .member-group-icons {
    padding: 0 5px;
}

.filter-btn {
    background: #222;
    border: 1px solid #444;
    color: #888;
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #00AA00;
    color: #fff;
}

.filter-btn.active {
    background: #00AA00;
    border-color: #00FF00;
    color: #fff;
}

/* Ensure the badge is a block so it can animate */
span.comment-badge {
    display: inline-block !important;
}

/* Force PMs to Pulse Red */
.pulse-red {
    animation: pulse-red-key 1s infinite !important;
}

/* Force Notifications to Pulse Blue */
.pulse-blue {
    animation: pulse-blue-key 3s infinite !important;
}

/* Keyframe for Red Glow */
@keyframes pulse-red-key {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

/* Keyframe for Blue Glow */
@keyframes pulse-blue-key {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.roster-card {
    background: #1a1a1a;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.roster-card:hover {
    transform: translateY(-2px);
    border-color: #00AA00;
    transition: all 0.2s ease;
}

#roster-results {
    min-height: 400px; /* Keeps the footer from jumping up while searching */
    transition: opacity 0.1s ease-in-out;
}

#live-search:focus {
    border-color: #00AA00;
    outline: none;
}
	
#c0 {
	width:750px;
	margin:auto;
	margin-top:15px;
	}
	
#c1 {
	width:209px;
	float:left;
	}
	
.box {
	margin-bottom:15px;
	}
	
.box_head {
	width:209px;
	height:24px;
	background-image: url('images/box_head.png');
	margin-bottom:5px;
	}
	
.box_head p {
	font-size:12px;
	letter-spacing:2px;
	line-height:24px;
	margin-left:10px;
	color:#cbcbcb;
	}
	
.box_head a {
	font-size:12px;
	letter-spacing:2px;
	line-height:24px;
	margin-left:10px;
	color:#cbcbcb;
	}
	
.odd {
	width:209px;
	height:24px;
	background-image: url('images/o.png');
	}
	
.odd a {
	color:#008afe;
	text-decoration:none;
	font-size:10px;
	margin-left:5px;
	line-height:22px;
	letter-spacing:2px;
	}
	
.odd a:hover {
	color:#ffffff;
	text-decoration:none;
	font-size:10px;
	margin-left:5px;
	line-height:22px;
	letter-spacing:2px;
	}
	
.even {
	width:209px;
	height:24px;
	background-image: url('images/e.png');
	}
	
.even a {
	color:#008afe;
	text-decoration:none;
	font-size:10px;
	margin-left:5px;
	line-height:22px;
	letter-spacing:2px;
	}	
	
.even a:hover {
	color:#ffffff;
	text-decoration:none;
	font-size:10px;
	margin-left:5px;
	line-height:22px;
	letter-spacing:2px;
	}		

.discord {
	width:209px;
	height:525px;
	background-image: url('images/e.png');	
	}
	
.even2 {
	width:209px;
	height:24px;
	background-image: url('images/e.png');	
	}
	
.even2 p {
	color:#10ff04;
	font-size:10px;
	margin-left:5px;
	line-height:22px;
	letter-spacing:1px;	
	}
	
.serverlinks {
	width:209px;
	height:24px;
	background-image: url('images/e.png');	
	}
	
.serverlinks p {
	color:#10ff04;
	font-size:10px;
	margin-left:5px;
	line-height:22px;
	letter-spacing:1px;	
	}
	
.bflink {
	color:#10ff04;
	font-size:10px;
	margin-left:5px;
	line-height:22px;
	letter-spacing:1px;	
	}
	
#c2 {
	width:530px;
	float:right;
	}
	
.post {

	}
	
.post_head {
	width:530px;
	height:24px;
	background-image: url('images/post_bg1.png');
	margin-bottom:5px;
	}

.post_head a{
	color:white;
	font-size:14px;
	text-decoration:none;
	margin-right:20px;
	letter-spacing:2px;
	}
	
.post_head a:hover{
	color:#10ff04;
	font-size:13px;
	text-decoration:none;
	margin-right:20px;
	letter-spacing:2px;
	}

.post_head p {
	font-size:14px;
	letter-spacing:2px;
	line-height:24px;
	margin-left:10px;
	color:#ffffff;
	}
	
.postheadlink {
	color:#10ff04;
	font-size:10px;
	margin-left:5px;
	line-height:22px;
	letter-spacing:1px;
}

.post_head p2 {
	font-size:12px;
	letter-spacing:2px;
	line-height:24px;
	margin-left:10px;
	color:#ffffff;
	}
	
.post_cont {
	width:530px;
	background-image: url('images/post_bg2.png');
	}
	
.post_cont p {
	width:500px;
	font-size:14px;
	margin:auto;
	padding-top:5px;
	padding-bottom:5px;
	line-height:15px;
	color:#a9a9a9;
	}
	
.post_cont a{
	color:#008afe;
	}
	
#r3 {
	clear:both;
	height:103px;
	background-image: url('images/r3_rpt.png');
	}
	
#r3_cont {
	width:750px;
	height:103px;
	margin:auto;
	}
	
	
em {
/* font-style: italic; */
font-size: 12px;
width: 500px;
/* font-size: 11px; */
padding-left: 15px;
padding-top: 5px;
padding-bottom: 5px;
line-height: 15px;
color: #a9a9a9;
}




////

/* Container for sidebar and main feed */
#c0 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Left Sidebar (c1) */
#c1 {
    flex: 1 1 250px; /* Grow to 1, shrink to 1, base width 250px */
    max-width: 300px;
}

/* Main Content (c2) */
#c2 {
    flex: 3 1 600px; /* Take up 3x more space than sidebar */
}

/* Ensure images don't break the layout */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile responsive: Stack sidebar on top for screens < 800px */
@media (max-width: 800px) {
    #c0 {
        flex-direction: column;
    }
    #c1, #c2 {
        max-width: 100%;
    }
}