/* ===== Base ===== */
body {
  background-color: #121212;
  color: #fefefe;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #1a1a2e;
  padding: 20px 40px;
  border-bottom: 2px solid #d97706;
}

.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo .logo-img {
  height: 60px;
  border-radius: 5px;
}

/* Centered page title in header */
.page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 34px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

/* ===== Hamburger and menu ===== */
.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle div {
  width: 26px;
  height: 3px;
  background-color: #fbbf24;
  transition: transform .3s ease, opacity .3s ease;
}

/* Dropdown menu hidden by default */
.navbar .nav-links {
  display: none !important;
  position: absolute;
  top: 42px;
  right: 40px;
  background-color: #1a1a2e;
  border: 1px solid #d97706;
  border-radius: 10px;
  flex-direction: column;
  width: 220px;
  padding: 10px 0;
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.35);
  z-index: 1000;
}

.navbar .nav-links a {
  display: block;
  padding: 12px 16px;
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}

.navbar .nav-links a:hover {
  background-color: rgba(251, 191, 36, 0.12);
  color: #ffffff;
}

.navbar .nav-links.show {
  display: flex !important;
}

/* Animate hamburger to X when open */
.menu-toggle.active div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active div:nth-child(2) { opacity: 0; }
.menu-toggle.active div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Main and hero ===== */
.main-content {
  padding: 60px 20px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 48px;
  color: #fbbf24;
}

/* ===== Table wrap and table ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px;
  margin: 0 auto;
  max-width: 90%;
}

.records-table,
table {
  width: 90%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #1e1e2e;
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
  min-width: 800px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  margin: 0 auto;
}

thead {
  background-color: #fbbf24;
  color: #121212;
}

th {
  padding: 14px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
}

td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr:nth-child(even) { background-color: #1b1b29; }

tbody tr:hover {
  background-color: rgba(251, 191, 36, 0.15);
  transition: background-color 0.2s ease;
}

.rank-cell {
  font-weight: 700;
  color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.05);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #888;
  border-top: 1px solid #d97706;
  margin-top: 60px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-title { font-size: 16px; }
  .hero h1 { font-size: 20px; }

  .records-table,
  table {
    font-size: 7px;
    min-width: unset;
    width: 90%;
    margin: 0 auto;
  }

  th {
    font-size: 19px;
  }

  .logo .logo-img {
  height: 30px;
  border-radius: 5px;
  }

  th, td { 
    padding: 6px 8px;
  }


}