/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('img/back1.png') no-repeat center center fixed;
  background-size: cover;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.top-bar {
  background: #40423a;
  text-align: center;
  padding: 8px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.top-bar nav a {
  color: yellow;
  font-weight: 600;
  margin: 0 20px;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.top-bar nav a:hover {
  color: rgb(8, 168, 142);
  border-bottom: 2px solid gold;
}


/* Header stays centered */
header {
  background: transparent;
  position: relative;
  padding: 20px 0;
  text-align: center;
}

header .logo {
  height: 200px;
  max-width: 90%;
  object-fit: contain;
}

/* Server status box positioned top-right inside header */
.server-status {
  position: absolute;
  top: 50%;
  right: 30%;
  transform: translateY(-50%);
  text-align: right;
  font-size: 14px;
  color: white;
  line-height: 1.4;
}

.status-line {
  color: white; /* Keep "Login:" and "Game:" white */
}

.status-line .online {
  color: #00ff00; /* Green for 'Online' */
  font-weight: bold;
}

.status-line .offline {
  color: #ff3333; /* Red for 'Offline' */
  font-weight: bold;
}



/* Main content area */
main {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  width: 95%;
  margin: 20px auto 40px auto;
  flex: 1;
}

/* Discord section */
.discord-section {
  width: 280px;
  background: #222;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
  color: #eee;
}

.discord-section h3 {
  color: gold;
  margin-top: 0;
  margin-bottom: 15px;
}

.discord-section iframe {
  border-radius: 6px;
  border: none;
}

/* News section */
.news-section {
  flex: 1 1 520px;
  background: #222;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.news-section h2 {
  color: gold;
  margin-bottom: 15px;
}

.news-content p {
  line-height: 1.5;
  font-size: 1.05rem;
}

/* Sidebar */
.sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Login box */
.login-box {
  background: #222;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.login-box h2 {
  color: gold;
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.login-box form {
  display: flex;
  flex-direction: column;
}

.login-box label {
  margin: 8px 0 5px;
  font-weight: 600;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #eee;
  font-size: 1rem;
}

.login-box button {
  margin-top: 20px;
  background: gold;
  border: none;
  color: #111;
  font-weight: bold;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.login-box button:hover {
  background: #ccaa00;
}

/* Login links */
.login-links {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.login-links a {
  color: #bbb;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

/* Vote section */
.vote-section {
  background: #222;
  padding: 20px 15px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.vote-section h3 {
  color: gold;
  margin-top: 0;
  margin-bottom: 12px;
}

.vote-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.vote-links a img {
  height: 80px;
  width: auto;
  border-radius: 4px;
  transition: transform 0.25s ease;
}

.vote-links a img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(235, 252, 1, 8.4);
}

/* Register box */
.register-box {
  flex: 1 1 600px;
  background: #222;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.register-box h2 {
  color: gold;
  margin-bottom: 15px;
  text-align: center;
}

.register-box form {
  display: flex;
  flex-direction: column;
}

.register-box label {
  margin: 10px 0 5px;
  font-weight: 600;
}

.register-box input {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #eee;
  font-size: 1rem;
}

.register-box button {
  margin-top: 20px;
  background: gold;
  border: none;
  color: #111;
  font-weight: bold;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.register-box button:hover {
  background: #ccaa00;
}

/* Footer */
footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 12px 0;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Responsive: stack main columns on small screens */
@media (max-width: 900px) {
  main {
    flex-direction: column;
    width: 95%;
    gap: 25px;
  }

  .discord-section,
  .sidebar,
  .news-section,
  .register-box {
    width: 100%;
  }
}
.magic-btn {
  display: block;
  margin: 12px auto;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: bold;
  color: #fff;
  background: #1a1a1a;
  border: 2px solid #9c27b0;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.magic-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #9c27b0, #03a9f4, #9c27b0);
  animation: rotate-glow 4s linear infinite;
  z-index: 0;
  filter: blur(15px);
  opacity: 0.6;
}

.magic-btn:hover {
  color: #fff;
  border-color: #03a9f4;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.magic-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  z-index: -1;
  border-radius: 10px;
}
.ice-btn {
  display: block;
  margin: 12px auto;
  padding: 12px 24px;
  background: #111;
  color: #b3e5fc;
  border: 2px solid #29b6f6;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px #29b6f6;
  transition: all 0.3s ease;
}

.ice-btn:hover {
  background: #29b6f6;
  color: #111;
  box-shadow: 0 0 20px #81d4fa;
}
.gem-btn {
  display: block;
  margin: 12px auto;
  padding: 12px 28px;
  background: linear-gradient(145deg, #3f3f3f, #2a2a2a);
  border: 2px solid #76c7ff;
  border-radius: 12px;
  color: #76c7ff;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 8px #76c7ff;
  transition: 0.3s;
}

.gem-btn:hover {
  background: #76c7ff;
  color: #111;
  box-shadow: 0 0 16px #76c7ff;
}
.blood-btn {
  display: block;
  margin: 12px auto;
  padding: 12px 24px;
  color: #fff;
  font-weight: bold;
  background: #2b0000;
  border: 2px solid crimson;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 0 8px crimson;
  transition: transform 0.2s, box-shadow 0.3s;
}

.blood-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px red, 0 0 6px crimson inset;
  background: #550000;
}
.glow-button {
  display: block;
  width: fit-content;
  margin: 0 auto 10px auto;
  padding: 10px 25px;
  color: #fff;
  background: #0ff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 8px #0ff, 0 0 20px #0ff;
  transition: box-shadow 0.3s ease;
}

.glow-button:hover {
  box-shadow: 0 0 12px #0ff, 0 0 30px #0ff;
  color: #000;
  background: #0cc;
}
.outline-button {
  display: block;
  width: fit-content;
  margin: 0 auto 10px auto;
  padding: 10px 25px;
  color: #888;
  background: transparent;
  border: 2px solid #888;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.outline-button:hover {
  background: #888;
  color: #222;
  border-color: #aaa;
}
.gradient-button {
  display: block;
  width: fit-content;
  margin: 0 auto 10px auto;
  padding: 10px 25px;
  color: white;
  background: linear-gradient(45deg, #f39c12, #f1c40f);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 8px rgba(241, 196, 15, 0.4);
  transition: background 0.3s ease;
}

.gradient-button:hover {
  background: linear-gradient(45deg, #f1c40f, #f39c12);
}
.shadow-button {
  display: block;
  width: fit-content;
  margin: 0 auto 10px auto;
  padding: 10px 25px;
  color: #222;
  background: #eee;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.shadow-button:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background: #ddd;
}
.donate-btn {
  background: linear-gradient(to right, #8e44ad, #3498db);
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.donate-btn:hover {
  background: linear-gradient(to right, #9b59b6, #2980b9);
}
.discord-widget {
  background-color: #2c2c2c;
  padding: 15px;
  border-radius: 8px;
  color: #eee;
  margin-bottom: 0px;
  max-width: 300px;   /* limit width if needed */
  font-family: Arial, sans-serif;
}

/* Control iframe size inside discord-widget */
.discord-widget iframe {
  width: 100%;       /* full width of container */
  height: 300px;     /* reasonable height */
  border: none;
  border-radius: 5px;
  display: block;
}
.left-panel {
  max-width: 320px;  /* fixed width */
  display: flex;
  flex-direction: column;
  gap: 0px;         /* vertical spacing */
}
.leaderboard-widget {
  background-color: #2c2c2c;
  padding: 15px 20px;
  border-radius: 8px;
  color: #eee;
  font-family: Arial, sans-serif;
  max-width: 300px;  /* keep it consistent */
  margin-bottom: 0px;
}

.leaderboard-widget h3 {
  color: gold;
  margin-bottom: 12px;
}

.leaderboard-widget ol {
  margin-left: 20px;
  padding-left: 0;
}

.leaderboard-widget ol li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}
.top15-buttons {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.top15-buttons button {
  background-color: #444;
  color: white;
  border: none;
  padding: 8px 12px;
  margin-bottom: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.top15-buttons button.active,
.top15-buttons button:hover {
  background-color: gold;
  color: #111;
}
.contact-section {
  max-width: 500px;
  margin: 40px auto;
  background-color: #2c2c2c;
  padding: 30px;
  border-radius: 10px;
  color: #f1f1f1;
  font-family: Arial, sans-serif;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-section a {
  color: #00afff;
  text-decoration: none;
}
.contact-section a:hover {
  text-decoration: underline;
}
.leaderboard-widget {
  margin-top: 30px;
  color: white;
  font-family: Arial, sans-serif;
}

.top15-buttons button {
  background: #444;
  border: none;
  color: white;
  padding: 10px 20px;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.top15-buttons button.active,
.top15-buttons button:hover {
  background: gold;
  color: #111;
}

.top15-list ol {
  padding-left: 20px;
}

.top15-list li {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* PvP styles */
.top15-pvp-name {
  color: rgba(247, 222, 3, 0.993);
  font-weight: bold;
}
.top15-pvp-points {
  color: rgb(255, 0, 0);
  font-weight: bold;
}

/* PK styles */
.top15-pk-name {
  color: orange;
  font-weight: bold;
}
.top15-pk-points {
  color: red;
  font-weight: bold;
}
footer {
  background-color: #111; /* dark background */
  padding: 20px 0;
  text-align: center;
  color: #ccc; /* soft gray text */
  font-family: Arial, sans-serif;
  margin-top: 40px;
  border-top: 1px solid #333;
}

footer a {
  color: #aaa; /* neutral link color */
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #fff; /* highlight on hover */
}

footer p {
  margin: 5px 0 10px;
  font-size: 14px;
}
.news-item {
  background: #1c1c1c;
  border-left: 5px solid gold;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: scale(1.01);
  box-shadow: 0 0 15px rgba(229, 255, 0, 7.4);
}

.news-item h3 {
  color: rgb(251, 255, 0);
  margin-bottom: 10px;
}

.news-item small {
  color: #aaa;
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-style: italic;
}

.download-section {
  max-width: 500px;
  margin: 40px auto;
  background-color: #2c2c2c;
  padding: 30px;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px; /* smaller font */
}

.download-section a {
  color: #ffd700; /* gold/yellow */
  text-decoration: underline;
}
