/* Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', sans-serif;
	background-color: #0f0f0f;
	color: white;
}

/* Nav Container */
.navbar {
	position: relative;
	display: flex;
	align-items: center;
	height: 60px;
	padding: 0 20px;
}

/* Left Title */
.navbar-left {
	white-space: nowrap;
	font-weight: 600;
}

/* Center Nav */
.nav-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.nav-center li {
	display: inline-flex;
	align-items: center;
}

.nav-auth {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-link,
.nav-link:active,
.nav-link:focus,
.nav-link:hover,
.dropdown:active > .nav-link {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.nav-link {
	position: relative;
	display: inline-flex;
}

.nav-link.active::before,
.dropdown.active > .nav-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: white;
}

.nav-button {
	background: linear-gradient(135deg, #1e90ff, #00bfff);
	color: #fff;
	border: none;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	text-decoration: none;
}

.nav-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.logout-btn {
	background: linear-gradient(135deg, #ff4d4d, #ff1f1f);
}

/* Page Content */
main {
  padding: 3rem 2rem;
  text-align: center;
}

/* Buttons */
.main-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Base Button Styles */
.main-button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

/* Join Button - White with black text */
.join-button {
  background-color: white;
  color: black;
  border: 2px solid black;
}
.join-button:hover {
  background-color: #f0f0f0;
}

/* Discord Button - Discord Blue */
.discord-button {
  background-color: #5865F2;
  color: white;
}
.discord-button:hover {
  background-color: #4752c4;
}

/* Icon Styling */
.main-button .icon {
  font-size: 1.2rem;
}

/* Features Section */
.feature-boxes {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 50px 20px;
  background-color: #111;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  flex-wrap: wrap;
}

.feature-box {
  flex: 1 1 300px;
  max-width: 300px;
  text-align: center;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  padding: 20px;
  color: white;
}

.feature-box:first-child {
  border-left: none;
}
.feature-box:last-child {
  border-right: none;
}

.feature-box .icon {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 15px;
}

.feature-box h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.feature-box p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #ccc;
}

.feature-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: white;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.feature-button:hover {
  background-color: #eee;
}

/* Team Section */
.team-section {
	padding: 60px 20px;
	text-align: center;
	background-color: #1a1a1a;
	color: white;
}

.team-section h2 {
	font-size: 2.5rem;
	margin-bottom: 30px;
}

.team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.team-member {
	background: #2a2a2a;
	border-radius: 10px;
	padding: 20px;
	width: 200px;
	transition: transform 0.2s ease;
}

.team-member:hover {
	transform: translateY(-5px);
}

.avatar {
	font-size: 3rem;
	margin-bottom: 15px;
	color: #ffffff;
}

.team-member h4 {
	font-size: 1.2rem;
	margin-bottom: 5px;
}

.team-member p {
	font-size: 0.95rem;
	color: #bbb;
}

/* Rules Page */
/* Make navbar + main blend into one green header */
.profile-page .navbar,
.profile-page main,
.rules-page .navbar,
.rules-page main,
.faq-page .navbar,
.faq-page main,
.ranking-rich-page .navbar,
.ranking-rich-page main,
.ranking-law-page .navbar,
.ranking-law-page main {
	background-color: #1d4035; /* dark green */
	color: white;
}

/* Remove spacing between navbar and main */
.profile-page .navbar,
.rules-page .navbar,
.faq-page .navbar,
.ranking-rich-page .navbar,
.ranking-law-page .navbar {
	border-bottom: none;
}

.profile-page main,
.rules-page main,
.faq-page main,
.ranking-rich-page main,
.ranking-law-page main {
	padding: 40px 20px;
	text-align: center;
	border-top: none;
	box-shadow: none;
}

/* Optional: remove extra margin/padding to unify look */
.profile-page .navbar + main,
.rules-page .navbar + main,
.faq-page .navbar + main,
.ranking-rich-page .navbar + main,
.ranking-law-page .navbar + main {
	margin-top: 0;
}

.profile-page .wave-separator,
.rules-page .wave-separator,
.faq-page .wave-separator,
.ranking-rich-page .wave-separator,
.ranking-law-page .wave-separator {
	position: relative;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	margin-top: -1px;
}

.profile-page .wave-separator svg,
.rules-page .wave-separator svg,
.faq-page .wave-separator svg,
.ranking-rich-page .wave-separator svg,
.ranking-law-page .wave-separator svg {
	display: block;
	width: 100%;
	height: 60px;
}

.profile-body-section {
	background-color: #ffffff;
	padding: 60px 20px;
	color: #333;
	text-align: left;
}

.rules-body-section {
	background-color: #ffffff;
	padding: 60px 20px;
	color: #333;
	text-align: left;
}

.rules-container {
	max-width: 900px;
	margin: 0 auto;
}

.rules-container h2 {
	font-size: 2em;
	margin-bottom: 20px;
	color: #1d4035;
}

.rules-container p {
	font-size: 1.1em;
	margin-bottom: 30px;
}

.rule-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rule-list li {
	margin-bottom: 15px;
	font-size: 1.05em;
	border-left: 4px solid #1d4035;
	padding-left: 12px;
}

/* Dropdown */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown .dropdown-content {
	display: none;
	position: absolute;
	background-color: white;
	min-width: 160px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	z-index: 1000;
	top: 100%;
	left: 0;
}

.dropdown:hover .dropdown-content {
	display: block;
}

.dropdown-content a {
	color: black;
	padding: 10px 14px;
	text-decoration: none;
	display: block;
}

.dropdown-content a:hover {
	background-color: #f0f0f0;
}

/* Richest Players / Law Enforcement Players */
.ranking-section {
	padding: 2rem;
	background-color: #f9f9f9;
	text-align: center;
}

.ranking-list {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 600px;
}

.ranking-list li {
	padding: 0.5rem 1rem;
	margin: 0.25rem 0;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	display: flex;
	justify-content: space-between;
	font-weight: bold;
}

#richest-players-list li span {
	color: black;
}

/* Login & Register Page */
.auth-container {
	min-height: calc(100vh - 60px);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
}

/* Card */
.auth-card {
	background: #1a1a1a;
	padding: 30px;
	border-radius: 12px;
	width: 100%;
	max-width: 420px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Titles */
.auth-card h1 {
	margin-bottom: 10px;
	font-size: 1.8rem;
}

.auth-subtitle {
	color: #ccc;
	font-size: 0.95rem;
	margin-bottom: 20px;
}

/* Tabs */
.auth-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.auth-tab {
	flex: 1;
	padding: 10px;
	background: #2a2a2a;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s ease;
}

.auth-tab.active {
	background: linear-gradient(135deg, #1e90ff, #00bfff);
}

/* Forms */
.login-form,
.register-form {
	display: none;
	flex-direction: column;
	gap: 12px;
}

.login-form.active,
.register-form.active {
	display: flex;
}

/* Inputs */
.login-form input,
.register-form input {
	padding: 10px;
	border-radius: 6px;
	border: none;
	font-size: 0.95rem;
}

/* Submit Button */
.auth-submit {
	margin-top: 10px;
	padding: 10px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	background: white;
	color: black;
	transition: background 0.2s ease;
}

.auth-submit:hover {
	background: #f0f0f0;
}

/* Footer Text */
.auth-footer {
	margin-top: 20px;
	font-size: 0.85rem;
	color: #aaa;
}