/* ✅ GLOBAL RESET */   
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🌐 Global styles */
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 2rem;
  padding-top: 3.5rem;
  background: #f5f5f5;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

/* 🚩 Navigation Bar */
.nav-banner {
  background-color: #000;
  padding: 0.3rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-title {
  background: #fff;
  color: #000;
  padding: 0.2rem 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-bottom: 0rem;
  text-align: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.nav-links a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 4px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Menu toggle button — only visible on mobile */
.menu-toggle {
  display: none; /* hidden by default */
  background: none;
  color: #fff;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

/* 📦 Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#scroll-area-wrapper {
  position: relative;
}

/* 🔎 Filter Form */
#filter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  max-width: 800px;
  font-family: 'Inter', sans-serif;
}

#filter-form input,
#filter-form select {
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 150px;
}

#filter-form button,
#submit-ranking {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#filter-form button:hover,
#submit-ranking:hover {
  background-color: #222;
  transform: scale(1.05);
}

#submit-ranking:focus {
  outline: 3px solid #93C5FD;
  outline-offset: 2px;
}

#card-container {
  display: flex;
  justify-content: center; /* center the row in the container */
  gap: 1.5rem; /* space between cards */
  flex-wrap: nowrap; /* don’t wrap on desktop */
  margin: 2rem auto;
  padding: 1rem;
  max-width: 100%;
}

#card-container::-webkit-scrollbar {
  height: 12px;
}

#card-container::-webkit-scrollbar-track {
  background: #ccc;
  border-radius: 10px;
}

#card-container::-webkit-scrollbar-thumb {
  background-color: #000;
  border-radius: 10px;
  border: 3px solid #ccc;
}

/* 🎴 Card Styling */
.card-item {
  flex: 0 0 auto;
  width: 245px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: grab;
  height: 368px;
}

.card-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.card-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* 👁️ Card Image Styling */
.card img,
.card-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3;
  display: block;
  margin: 0 auto 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  object-fit: contain;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 🏷️ Card Name Styling */
.card-name {
  margin-top: -5px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.card-name a {
  display: inline-block; /* or block if you want full width */
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #000;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.card-name a:hover {
  background-color: rgba(0,0,0,0.1);
}

.card-name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* 👆 Hover Effects */
.card-item:hover {
  transform: scale(1.01);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

/* 🏆 Leaderboard */
#leaderboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

#leaderboard li {
  background: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  max-width: 260px;
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease;
}

#leaderboard li:hover {
  transform: scale(1.03);
}

#leaderboard li img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* ⭐ Rank Number Styling */
.card-rank {
  font-size: 1.6rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 🦶 Footer */
.footer {
  margin-top: 4rem;
  padding: 1rem;
  background: #eee;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

.footer a {
  color: #0077cc;
}

/* ⏮️ Pagination Buttons */
#pagination-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0 2rem;
}

#pagination-controls button {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#pagination-controls button:hover {
  background-color: #222;
  transform: scale(1.05);
}

#result-count {
  color: #000 !important;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

#pagination-controls span {
  color: #000 !important;
  font-weight: 600;
  font-size: 1rem;
}

/* 🖼️ Explicit Image Style */
.card-image {
  max-width: 100%;
  height: auto;
  image-rendering: auto;
  position: relative;
  z-index: 0;
}

/* ⬅️➡️ Scroll Buttons */
.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  border: none;
  padding: 0.6rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  z-index: 10;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.scroll-button.left {
  left: 10px;
}

.scroll-button.right {
  right: 10px;
}

/* 📱 Mobile + Fake Scrollbar Overlay */
@media (max-width: 820px) {
 
   .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    margin-left: 0;
    gap: 0;
  }

  .nav-links.show {
    display: flex;
  }

  .label-row.bottom {
    margin-top: -40px !important;
  }

  .card-wrapper {
  justify-content: flex-start;
}

 #card-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr)); /* 👈 bigger min size */
  gap: 0.75rem; /* optional: more space between */
  justify-content: center;
  justify-items: center;
}

.card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 135px; /* 👈 optional: cap the max size so they don’t get too huge */
  height: auto;
  margin-bottom: 0.5rem;
}

.card-image {
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
   margin-bottom: 0.5rem;
}

  .card-labels {
    flex-direction: column;
    width: 100%;
  }

  #leaderboard li {
    width: 90%;
  }

  #leaderboard {
    margin-top: 8rem !important;
  }

  #filter-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  #filter-form input,
  #filter-form select,
  #filter-form button {
    width: 90%;
  }

   #clear-filters {
    margin-top: 0.5rem;
   }

   .label-row div {
  font-size: 0.75rem !important;
  padding: 0.4rem 0.6rem !important;
  width: auto!important;
}
}

/* 🎴 Flip Card Styles */
.card-flipper {
  position: relative;
  perspective: 1000px;
  width: 100%;
  height: 310px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-flipper.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  width: 100%;
  height: 310px;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  object-fit: contain;
}

.card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
}

/* 📱 Mobile styles */
@media (max-width: 820px) {
  
  #pagination-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #pagination-controls button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  #pagination-controls input[type="number"] {
    width: 60px;
    font-size: 0.85rem;
    padding: 0.3rem;
  }

  /* 📱 Mobile: extra space below filters */
  #filter-form {
    margin-bottom: 1rem;
  }

  /* 📱 Mobile: tighten space between result count & leaderboard */
  #result-count {
    margin-bottom: 25px;
  }

  #leaderboard {
    margin-top: 0.5rem !important;
  }
}

 .label-row {
    display: flex;
    justify-content: space-around;
    max-width: 600px;
    margin: 1.5rem auto;
    font-weight: bold;
    margin-bottom: -45px;
    gap: 3rem;
  }

  .label-row.bottom {
    margin-top: -22px;
    margin-bottom: 1rem;
  }

  .label-row div {
    width: 45%;
    text-align: center;
  }

.label-row div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45%;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#desktop-labels {
  display: none; /* hide by default */
}
#deck-progress-bar {
  max-width: 800px;
  margin: 2rem auto 2rem;
  padding: 1rem;
  background: #111;
  border-radius: 1.5rem;
  color: white;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
  position: relative;
  text-align: center;
}

.progress-header {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.progress-track {
  position: relative;
  height: 12px;
  background: #333;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #00aaff;
  width: 0%;
  transition: width 0.5s ease-in-out;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 9999;
  padding-top: 10vh;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content button {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #222;
}

.modal-title {
  background: #fff;
  color: #000;
  padding: 0.2rem 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  text-align: center;
  display: inline-block;
  margin-bottom: 1rem;
}

@media (min-width: 821px) {
  /* hide mobile labels */
  .label-strongest,
  .label-strong,
  .label-weak,
  .label-weakest {
    display: none !important;
  }

    #desktop-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem auto;
    max-width: 1200px;
    position: relative;
    z-index: 10;
  }

  .desktop-label {
     font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: #000;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 1rem;
  }

  .desktop-arrow {
    flex: 1;
    height: 2px;
    background: #000;
    position: relative;
    margin: 0 1rem;
  }

  .desktop-arrow::before,
  .desktop-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: solid #000;
    width: 0;
    height: 0;
  }

  .desktop-arrow::before {
    left: -8px;
    border-width: 6px 8px 6px 0;
    border-color: transparent #000 transparent transparent;
  }

  .desktop-arrow::after {
    right: -8px;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #000;
  }

    body.ranker-page {
  padding-top: 5.3rem; /* ✅ only for ranker page */
}
}

a[href^="mailto:"] {
  color: #0077cc;
  font-weight: 600;
}

a[href^="mailto:"]:hover {
  color: #005fa3;
}

@media (min-width: 768px) and (max-width: 911px) {
  .card-item {
    max-width: 250px; /* or whatever size you want for tablets */
  }
}

@media (min-width: 912px) and (max-width: 1366px) {
  /* Covers iPad Pro (1024px) and Surface Pro 7 (1280px) */
  .card-item {
    max-width: 200px; /* or whatever size you want for tablets */
  }
}









































































