* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: auto;
  min-height: 100%;
  width: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background: none;
  color: #1a1a1a;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, #252525 0%, #161616 60%, #161616 100%);
}

.navbar {
  width: 100%;
  background: rgba(21, 21, 21, 0.5);
  box-shadow: 5px 10px 20px rgba(16, 16, 16, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
  padding: 0 40px;
  z-index: 999;
}

.left-navigation,
.right-navigation {
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: transparent;
  color: #fafcff;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 10px 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex; /* Use flexbox to align the icon and text */
  align-items: center;
  gap: 8px; /* Add some space between the text and the icon */
}

.hamburger-icon {
  font-size: 1.5rem;
  display: none; /* Hide the icon on desktop by default */
}

.dropdown-content {
  display: none; /* Initially hide the dropdown content */
  position: absolute;
  background-color: rgba(21, 21, 21, 0.95);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* This is the key property to keep it on top */
  border-radius: 5px;
  right: 0;
  top: 100%;
  padding: 10px 0;
}

.dropdown-content a {
  color: #fafcff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.2s ease;
  font-size: 1rem;
  font-weight: 400;
}

.dropdown-content a:hover {
  background-color: #2c2c2c;
}

/* This class will be added/removed by JavaScript to show/hide the menu */
.show {
  display: block;
}

.logo {
  width: 120px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}
.logo:hover {
  transform: scale(1.015);
}

.mcip {
  font-family: Arial, helvetica, sans-serif;
  font-size: 1.13rem;
  align-items: center;
  color: #ececec;
}

.navigation-links {
  display: flex;
  gap: 58px;
}

.navigation-links a {
  text-decoration: none;
  color: #fafcff;
  font-size: 1.13rem;
  font-weight: 600;
  padding-top: 10px;
  font-family: inherit;
  background: transparent;
}

/* New CSS for the mobile menu toggle button */
.mobile-menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  color: #fafcff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1000;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: calc(100vh - 96px);
  padding-bottom: 0;
  gap: 28px;
  margin-top: 126px;
}

/* --- Section container changes (Updated to 60% width and centered) --- */
.hero,
.hero2,
.ranks-hero,
.ranks-container,
.merchandise-container,
.voting-container,
.features-container,
.how-to-join-container,
.gallery-container,
.community-container,
.staff-container,
.apply-container,
.changelog-container {
  width: 60%; /* Changed to 60% as requested */
  margin: 0 auto; /* Added to center the content */
  padding: 0;
}

/* Old properties removed to avoid conflict with new centering method */
.hero,
.hero2,
.ranks-hero,
.ranks-container,
.merchandise-container,
.voting-container,
.features-container,
.how-to-join-container,
.gallery-container,
.community-container,
.staff-container,
.apply-container,
.changelog-container {
  margin-left: auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  max-width: none;
}

.hero-title {
  margin-top: 0;
  position: relative;
  top: 0;
  border-radius: 0.3rem;
  padding: 2rem 3rem;
  height: auto;
  min-height: 350px;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: none;
  background: rgba(21, 21, 21, 0.98);
  transition: 0.15s ease-in-out;
}

.hero-title:hover {
  box-shadow: 0 16px 38px rgba(7, 7, 7, 0.12);
}

.hero-img {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: contain;
  margin-right: 0;
  flex-shrink: 0;
}

.hero-content-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  flex: 1;
}

.hero-main-text {
  font-size: 2.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #e8e8e8;
  letter-spacing: 2px;
  margin-bottom: 6px;
  margin-left: 15px;
  line-height: 1.02;
  font-family: "Segoe UI Semibold", Arial, sans-serif;
  text-shadow: 0 2px 8px rgba(80, 80, 90, 0.04);
}

.hero-main-text-1 {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #bdbdbd;
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 12px 18px;
  margin-top: 4px;
}

.hero2 {
  color: #fafcff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
  position: relative;
  z-index: 2;
  box-shadow: rgba(21, 21, 21, 0.98);
  margin-top: 120px;
}

.hero2-content {
  max-width: none;
  width: 100%;
  border-radius: 1.5rem;
  padding: 24px;
  text-align: center;
}

.hero2-title {
  font-size: 2.1rem;
  font-weight: bold;
  color: #ececec;
  margin-bottom: 16px;
  letter-spacing: 1px;
  font-family: "Segoe UI Semibold", Arial, sans-serif;
}

.hero2-desc {
  font-size: 1.13rem;
  color: #bbbbbe;
  margin-bottom: 18px;
  line-height: 1.7;
}

.hero2-list {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  color: #f6f6f6;
}
.hero2-list li {
  background: none;
  font-size: 1.07rem;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
}

.hero2-btn {
  display: inline-block;
  padding: 16px 38px;
  background: linear-gradient(90deg, #c9c9c9 0%, #f0f0f0 100%);
  color: #000000;
  font-weight: 700;
  font-size: 1.16rem;
  border: none;
  box-shadow: 0 2px 10px rgba(50, 110, 200, 0.07);
  border-radius: 5px;
  text-decoration: none;
  letter-spacing: 1.04px;
  cursor: pointer;
  transition: filter 0.18s, transform 0.16s;
}
.hero2-btn:hover {
  filter: brightness(1.09) blur(0.5px);
  transform: translateY(-2px) scale(1.04);
}

.hero-vote .hero-title.vote-hero-title {
  background: rgb(21, 21, 21);
  border-radius: 0.3rem;
  padding: 2rem 3rem;
}

.hero-vote .hero-title.vote-hero-title:hover {
  box-shadow: 2px 2px 8px rgba(21, 21, 21, 0.98);
}

.hero2-content-vote {
  max-width: none;
  width: 100%;
  padding: 22px 18px;
}
.vote-links-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.vote-link-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(90deg, #ebebeb 0%, #dddddd 100%);
  color: #191a19;
  font-weight: 700;
  font-size: 1.09rem;
  border: none;
  border-radius: 9px;
  text-decoration: none;
  letter-spacing: 1.04px;
  cursor: pointer;
  transition: filter 0.18s, transform 0.16s, background 0.18s;
  box-shadow: 0 2px 10px rgba(50, 110, 200, 0.07);
  width: 100%;
  max-width: none;
  text-align: center;
}

.vote-link-btn:hover {
  filter: brightness(1.05);
  transform: scale(1.015);
}

.vote-thanks {
  color: #c5c5c5be;
  font-size: 1.07rem;
  letter-spacing: 0.8px;
  margin-top: 10px;
  display: block;
  text-align: center;
}

.ranks-hero {
  margin-top: 0;
  display: flex;
  height: 280px;
  justify-content: center;
  padding: 0;
  margin-bottom: 50px;
}
.ranks-hero-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.6rem 1.7rem 2.3rem 1.7rem;
  background: rgba(21, 21, 21, 0.98);
  border-radius: 0.3rem;
}

.ranks-hero-content {
  box-shadow: 0 8px 32px 0 rgba(21, 21, 21, 0.98);
}

.ranks-hero-title {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.ranks-hero-img {
  width: 140px;
  border-radius: 1.3rem;
  flex-shrink: 0;
}

.ranks-hero-content-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.ranks-main-text {
  font-size: 2.15rem;
  font-weight: 900;
  color: #ededed;
  letter-spacing: 0.03em;
  display: block;
}
.ranks-main-text-1 {
  font-size: 1.07rem;
  color: #c8c8c8;
  margin-top: 0.35em;
  font-weight: 500;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ededed;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, #eaeaea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ranks-container {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin-bottom: 40px;
}

.ranks-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: none;
  padding: 2.4rem 1.7rem;
  background: rgba(21, 21, 21, 0.9);
  border-radius: 0.3rem;
}

.rank-card {
  background-color: #1b1b1b;
  border-radius: 0.3rem;
  box-shadow: 0 4px 18px 0 rgba(24, 24, 24, 0.08);
  padding: 2.1rem 1.2rem 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.19s, border 0.19s;
  position: relative;
  min-height: 260px;
}

.rank-card:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 35px rgba(20, 20, 20, 0.932);
  z-index: 1;
}

.rank-title {
  font-size: 1.22rem;
  font-weight: bold;
  margin-bottom: 14px;
  letter-spacing: 1.2px;
  background: #2c2c2cb6;
  color: #000000;
  padding: 10px 22px;
  border-radius: 0.3rem;
  text-align: center;
}

.rank-divider {
  width: 60px;
  height: 0.14rem;
  background: linear-gradient(90deg, #ebebeb 60%, #e7e7e7 100%);
  border-radius: 99px;
  margin: 12px 0;
}

.rank-desc {
  font-size: 1.05rem;
  color: #fafcffd9;
  margin-bottom: 18px;
  font-weight: 400;
  text-align: center;
  min-height: 40px;
  flex-grow: 1;
}

.rank-btn {
  display: inline-block;
  background: linear-gradient(90deg, #161616c7 36%, #161616c0 100%);
  color: #fafcff;
  font-size: 1.1rem;
  padding: 12px 0;
  border-radius: 9px;
  font-weight: bold;
  letter-spacing: 0.5px;
  width: 80%;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, color 0.17s, box-shadow 0.18s, transform 0.12s;
  margin-top: auto;
}

.rank-btn:hover,
.rank-btn:focus {
  box-shadow: 0 4px 24px rgba(22, 22, 22, 0.911);
  transform: scale(1.015);
}

.rank-vip .rank-title {
  color: #ebebeb;
}
.rank-slime .rank-title {
  color: #ebebeb;
}
.rank-knight .rank-title {
  color: #ebebeb;
}
.rank-royal .rank-title {
  color: #ebebeb;
}
.rank-king .rank-title {
  color: #ebebeb;
}
.rank-divine .rank-title {
  color: #ebebeb;
}

.merchandise-container {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin-bottom: 55px;
}

.merchandise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: none;
  padding: 2.4rem 1.7rem;
  background: rgba(21, 21, 21, 0.9);
  border-radius: 0.3rem;
}

.merchandise-card {
  background: rgba(25, 25, 25, 0.97);
  border-radius: 0.3rem;
  box-shadow: 0 4px 18px 0 rgb(22, 22, 22);
  padding: 2.5rem 1.5rem 1.9rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.19s, border 0.19s;
  position: relative;
  min-height: 320px;
}

.merchandise-card:hover {
  transform: scale(1.015);
  z-index: 1;
}

.merchandise-img {
  width: 120px;
  height: 120px;
  border-radius: 0.3rem;
  object-fit: cover;
  margin-bottom: 16px;
}

.merchandise-title {
  font-size: 1.22rem;
  font-weight: bold;
  margin-bottom: 14px;
  letter-spacing: 1.2px;
  color: #fafcff;
  padding: 10px 22px;
  text-align: center;
}

.merchandise-divider {
  width: 60px;
  height: 0.14rem;
  background: linear-gradient(90deg, #ffffff 60%, #fafafa 100%);
  border-radius: 99px;
  margin-bottom: 32px;
}

.merchandise-desc {
  font-size: 1.05rem;
  color: #fafcffd9;
  margin-bottom: 18px;
  font-weight: 400;
  text-align: center;
  min-height: 40px;
  flex-grow: 1;
}

.merchandise-btn {
  display: inline-block;
  background: linear-gradient(90deg, #131313 36%, #111111 100%);
  color: #fafcff;
  font-size: 1.1rem;
  padding: 15px 30px;
  border-radius: 0.3rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  width: 80%;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, color 0.17s, box-shadow 0.18s, transform 0.12s;
  margin-top: auto;
}

.merchandise-btn:hover,
.merchandise-btn:focus {
  transform: scale(1.015);
}

.voting-container {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
  margin-bottom: 55px;
  padding: 0;
}

.voting-hero-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.voting-hero-title {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(21, 21, 21, 0.98);
  border-radius: 0.3rem;
  padding: 2rem 3rem;
  width: 100%;
  transition: 0.15s ease-in-out;
  max-width: none;
}

.voting-hero-title:hover {
  box-shadow: 0 16px 38px rgba(7, 7, 7, 0.12);
  background: rgba(21, 21, 21, 1);
}

.voting-hero-img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: contain;
  margin-right: 0;
  flex-shrink: 0;
}

.voting-hero-content-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  flex: 1;
}

.voting-main-text {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin-left: 13px;
  font-family: "Segoe UI Semibold", Arial, sans-serif;
}

.voting-main-text-1 {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #f0f9fa;
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 10px 15px 0 0;
  margin-top: 2px;
  max-width: none;
}

.voting-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  width: 100%;
  max-width: none;
}

.voting-card {
  background: rgba(20, 21, 21, 0.93);
  border-radius: 1.3rem;
  padding: 2rem 2.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  transition: transform 0.13s, box-shadow 0.14s;
}

.voting-card:hover {
  transform: scale(1.015);
  box-shadow: rgba(21, 21, 21, 0.98);
}

.voting-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.voting-divider {
  width: 50px;
  height: 0.15rem;
  background: linear-gradient(90deg, #e2e2e2 50%, #e9e9e9 100%);
  border-radius: 99px;
  margin: 0;
}

.voting-desc {
  font-size: 1.02rem;
  color: #f0f9fa;
  line-height: 1.6;
  flex-grow: 1;
}

.voting-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ebebeb 0%, #c5c5c5 100%);
  color: #141715;
  font-size: 1.05rem;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
  align-self: flex-start;
}

.voting-btn:hover,
.voting-btn:focus {
  background: linear-gradient(90deg, #eeeeee 0%, #dadada 100%);
  color: #0f1a10;
  transform: scale(1.025);
}

/* --- Color Palette & General Improvements --- */
:root {
  --slime-green: #7ed957; /* Accent Green */
  --royal-purple: #8a2be2; /* Accent Purple */
  --dark-bg: #1a1a1a; /* Dark background */
  --light-text: #f0f0f0; /* Light text */
  --card-bg: #2c2c2c; /* Card background */
  --border-color: #444; /* Border color */
}

/* --- Hero CTA Buttons --- */
.join-cta-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
  align-items: center;
}

.join-cta-btn {
  border: 2px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--light-text);
  padding: 15px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  font-family: inherit;
}

.join-cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.java-btn:hover {
  border-color: var(--slime-green);
}
.bedrock-btn:hover {
  border-color: var(--royal-purple);
}

.join-cta-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--light-text);
}

.join-cta-ip {
  font-size: 1rem;
  color: #ccc;
  margin-top: 5px;
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 40px;
  font-weight: bold;
}

/* --- Features Section --- */
.features-container {
  padding: 60px 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.5rem;
  color: var(--slime-green);
  margin-bottom: 10px;
}

.feature-desc {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- How to Join Section --- */
.how-to-join-container {
  padding: 60px 20px;
}

.join-instructions {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: none;
  margin: 0 auto;
  flex-wrap: wrap;
}

.join-method {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  flex: 1;
  min-width: 300px;
}

.join-method ol {
  padding-left: 20px;
  color: #ccc;
}

.join-method li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.join-title-java {
  color: var(--slime-green);
  margin-bottom: 30px;
}

.join-title-bedrock {
  color: var(--slime-green);
  margin-bottom: 30px;
}

.troubleshooting {
  text-align: center;
  margin-top: 30px;
  color: #ccc;
}
.troubleshooting a {
  color: var(--slime-green);
  font-weight: bold;
}

/* --- Gallery Section --- */
.gallery-container {
  padding: 60px 20px;
  background-color: var(--dark-bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: none;
  margin: 0 auto;
}
.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* --- Community Section --- */
.community-container {
  padding: 60px 20px;
}
.community-widgets {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  max-width: none;
  margin: 0 auto;
}
.social-links {
  text-align: center;
}
.social-links h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.social-btn {
  display: block;
  padding: 15px 40px;
  margin: 10px 0;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: opacity 0.3s ease;
}
.social-btn:hover {
  opacity: 0.8;
}
.youtube {
  background-color: #ff0000;
}
.tiktok {
  background-color: #000000;
}

/* --- Staff Page --- */
.staff-container,
.apply-container {
  padding: 60px 20px;
}
.staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: none;
  margin: 0 auto 40px auto;
}
.staff-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.staff-img {
  color: white;
  font-weight: 900;
  font-size: 45px;
  margin-bottom: 15px;
}
.staff-name {
  font-size: 1.4rem;
  color: var(--light-text);
  margin-bottom: 5px;
}
.staff-bio {
  color: #ccc;
  font-size: 0.9rem;
}

.apply-desc {
  text-align: center;
  color: #ccc;
  max-width: none;
  margin: 0 auto 30px auto;
}
.apply-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.apply-btn {
  background-color: var(--slime-green);
  color: black;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.apply-btn:hover {
  background-color: #68b347;
}

/* --- Changelog Page --- */
.changelog-container {
  max-width: none;
  margin: 0 auto;
  padding: 40px 20px;
}
.changelog-entry {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 5px solid var(--slime-green);
}
.changelog-title {
  font-size: 2rem;
  color: var(--light-text);
  margin: 0 0 5px 0;
}
.changelog-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}
.changelog-content p,
.changelog-content li {
  color: #ccc;
  line-height: 1.7;
}
.changelog-content ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* --- Responsive Design (Updated) --- */
@media (max-width: 1024px) {
  /* For tablets and smaller desktops, we can increase the width slightly */
  .hero,
  .hero2,
  .ranks-hero,
  .ranks-container,
  .merchandise-container,
  .voting-container,
  .features-container,
  .how-to-join-container,
  .gallery-container,
  .community-container,
  .staff-container,
  .apply-container,
  .changelog-container {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .navigation-links a {
    font-size: 0.9rem;
  }
  .hero-content-text {
    padding: 0 10px;
  }
  .section-title {
    font-size: 2rem;
  }
  .join-cta-btn {
    width: 90%;
  }
  /* On mobile, we want sections to take up almost the full width */
  .hero,
  .hero2,
  .ranks-hero,
  .ranks-container,
  .merchandise-container,
  .voting-container,
  .features-container,
  .how-to-join-container,
  .gallery-container,
  .community-container,
  .staff-container,
  .apply-container,
  .changelog-container {
    width: 95%; /* Adjust to a larger width for mobile view */
    margin: 0 auto;
    padding: 0 10px;
  }

  .navbar {
    height: 100px;
    padding: 0 20px;
  }

  .logo {
    width: 80px;
  }

  .mcip {
    font-size: 0.7rem;
  }

  /* Hiding the desktop navigation links on mobile */
  .navigation-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    right: 0;
    width: 100%;
    background-color: rgba(21, 21, 21, 0.95);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    text-align: center;
    gap: 20px;
  }

  /* This is the new rule that will make the mobile menu visible */
  .navigation-links.menu-open {
    display: flex;
    z-index: 1000; /* Add this line */
  }

  .navigation-links a {
    width: 100%;
    padding: 15px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navigation-links a:last-child {
    border-bottom: none;
  }

  .navigation-links a img {
    display: none;
  }

  .mobile-menu-toggle {
    display: block; /* Show the button on mobile */
  }

  .main {
    margin-top: 100px;
    gap: 20px;
  }

  .hero-title {
    flex-direction: column;
    padding: 1.5rem 1.5rem;
    min-height: auto;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-img {
    width: 100px;
    height: 100px;
  }

  .hero-main-text {
    font-size: 1.8rem;
    margin-left: 0;
    line-height: 1.1;
  }

  .hero-main-text-1 {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .hero2 {
    padding: 24px 15px;
    margin-top: 80px;
  }

  .hero2-title {
    font-size: 1.8rem;
  }

  .hero2-desc {
    font-size: 1rem;
  }

  .hero2-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .vote-hero-title {
    padding: 1.5rem 1.5rem;
  }

  .vote-links-list {
    gap: 12px;
  }

  .vote-link-btn {
    padding: 12px 24px;
    font-size: 1rem;
    max-width: 200px;
  }

  .ranks-hero-content {
    padding: 2rem 1.2rem;
  }

  .ranks-hero-title {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }

  .ranks-hero-img {
    width: 100px;
    height: 70px;
  }

  .ranks-main-text {
    font-size: 1.8rem;
  }

  .ranks-main-text-1 {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .ranks-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .rank-card {
    padding: 1.5rem 1rem;
    min-height: 200px;
  }

  .rank-title {
    font-size: 1.1rem;
    padding: 5px 16px;
  }

  .rank-desc {
    font-size: 0.95rem;
    min-height: 30px;
  }

  .rank-btn {
    width: 90%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .merchandise-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .merchandise-card {
    padding: 1.5rem 1rem;
    min-height: 250px;
  }

  .merchandise-img {
    width: 100px;
    height: 100px;
  }

  .merchandise-title {
    font-size: 1.1rem;
    padding: 5px 16px;
  }

  .merchandise-desc {
    font-size: 0.95rem;
    min-height: 30px;
  }

  .merchandise-btn {
    width: 90%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .voting-container {
    gap: 30px;
    margin-top: 30px;
  }

  .voting-hero-title {
    flex-direction: column;
    padding: 1.5rem 1.5rem;
    gap: 1.2rem;
    text-align: center;
  }

  .voting-hero-img {
    width: 100px;
    height: 100px;
  }

  .voting-main-text {
    font-size: 1.6rem;
    margin-left: 0;
  }

  .voting-main-text-1 {
    font-size: 0.95rem;
    padding: 8px 0;
    max-width: none;
  }

  .voting-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .voting-card {
    padding: 1.5rem 1.2rem;
  }

  .voting-title {
    font-size: 1.15rem;
  }

  .voting-desc {
    font-size: 0.95rem;
  }

  .voting-btn {
    font-size: 0.95rem;
    padding: 8px 20px;
  }
}

@media (max-width: 480px) {
  .hero,
  .hero2,
  .ranks-hero,
  .ranks-container,
  .merchandise-container,
  .voting-container,
  .features-container,
  .how-to-join-container,
  .gallery-container,
  .community-container,
  .staff-container,
  .apply-container,
  .changelog-container {
    width: 95%;
    padding: 0 5px;
  }

  .navbar {
    height: 80px;
    padding: 0 15px;
  }

  .logo {
    width: 60px;
  }

  .mcip {
    font-size: 0.5rem;
  }

  .navigation-links {
    gap: 10px;
  }

  .navigation-links a {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .hero-title {
    padding: 1rem 1rem;
    margin: 0 10px;
  }

  .hero-main-text {
    font-size: 1.5rem;
  }

  .hero-main-text-1 {
    font-size: 0.9rem;
  }

  .hero2 {
    padding: 20px 10px;
  }

  .hero2-content {
    padding: 20px 15px;
  }

  .hero2-title {
    font-size: 1.5rem;
  }

  .hero2-desc {
    font-size: 0.9rem;
  }

  .hero2-list li {
    font-size: 0.9rem;
  }

  .hero2-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .ranks-hero-content {
    padding: 1.5rem 1rem;
    margin: 0 10px;
  }

  .ranks-main-text {
    font-size: 1.5rem;
  }

  .ranks-main-text-1 {
    font-size: 0.9rem;
  }

  .ranks-list {
    padding: 1rem 0.5rem;
    margin: 0 10px;
  }

  .rank-card {
    padding: 1rem 0.8rem;
  }

  .rank-title {
    font-size: 1rem;
  }

  .rank-desc {
    font-size: 0.9rem;
  }

  .merchandise-list {
    padding: 1rem 0.5rem;
    margin: 0 10px;
  }

  .merchandise-card {
    padding: 1rem 0.8rem;
  }

  .merchandise-title {
    font-size: 1rem;
  }

  .merchandise-desc {
    font-size: 0.9rem;
  }

  .voting-hero-title {
    padding: 1rem 1rem;
    margin: 0 10px;
  }

  .voting-main-text {
    font-size: 1.4rem;
  }

  .voting-main-text-1 {
    font-size: 0.9rem;
  }

  .voting-card {
    padding: 1rem 1rem;
  }

  .voting-title {
    font-size: 1rem;
  }

  .voting-desc {
    font-size: 0.9rem;
  }

  .vote-link-btn {
    max-width: 180px;
    font-size: 0.9rem;
  }
}

/* Ensure text doesn't overflow and is readable */
@media (max-width: 768px) {
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  body {
    font-size: 14px;
  }

  .hero-content-text,
  .voting-hero-content-text,
  .ranks-hero-content-text {
    width: 100%;
    max-width: 100%;
  }

  .hero-main-text,
  .voting-main-text,
  .ranks-main-text {
    word-break: break-word;
    hyphens: auto;
  }

  .hero-main-text-1,
  .voting-main-text-1,
  .ranks-main-text-1 {
    word-break: break-word;
    hyphens: auto;
  }

  /* Removing the dropdown specific rules that were conflicting with the mobile menu toggle */
  .dropdown-menu {
    display: none;
  }

  .dropbtn {
    display: none;
  }

  .hamburger-icon {
    display: none;
  }
}