/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0f0f0f;
  color: white;
  padding-top: 70px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0b0b0b;
  border-bottom: 1px solid #1f1f1f;
  z-index: 999;
}

.navbar_container {
  max-width: min(1100px, 92%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

#navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#navbar-logo img {
  width: 40px;
  height: 40px;
}

.logo_text {
  color: rgb(0, 255, 0);
  font-weight: 700;
  font-size: 1.4rem;
}

.navbar_menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.navbar_links {
  text-decoration: none;
  color: #ccc;
  font-size: 0.95rem;
}

.navbar_links:hover {
  color: rgb(0, 255, 0);
}

/* MOBILE MENU */
.menu_toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu_toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
}

/* MAIN CONTENT */
.tierlist_container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.tierlist_heading {
  text-align: center;
  color: rgb(0, 255, 0);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.tierlist_paragraph {
  text-align: center;
  font-size: 1rem;
  color: #aaa;
  max-width: 750px;
  margin: 0 auto 10px auto;
  line-height: 1.5;
}

/* TIER LABELS */
.tier_label {
  font-size: 1.3rem;
  color: white;
  margin: 50px 0 20px 0;
  padding-left: 12px;
  border-left: 5px solid;
}

.tier_label:nth-of-type(1) {
  border-color: red;
}
.tier_label:nth-of-type(2) {
  border-color: orange;
}
.tier_label:nth-of-type(3) {
  border-color: yellow;
}

/* DECK GRID */
.deck_list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  list-style: none;
  padding: 0;
}

/* DECK CARD */
.deck {
  width: 100%;
  aspect-ratio: 150 / 239;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease;
}

.deck a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.deck:hover {
  transform: scale(1.05);
}

/* DECK LABEL OVERLAY */
.deck_labelcontainer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.deck_label {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-align: center;
  text-shadow: 5px 5px 7px rgba(0, 0, 0, 0.8);
}

.deck:hover .deck_label {
  color: rgb(0, 255, 0);
}

/* DECK BACKGROUNDS */
.deck_container_redel {
  background: url(images/TheSongList\ \(1\).webp) center/cover no-repeat;
}
.deck_container_noobs {
  background: url(images/Coeptus-0\ \(1\).webp) center/cover no-repeat;
}
.deck_container_rygears {
  background: url(images/Sycophant_To_Glory.webp) center/cover no-repeat;
}
.deck_container_rymid {
  background: url(images/Found_Familey.webp) center/cover no-repeat;
}
.deck_container_bioblades {
  background: url(images/Bioblade_Stud_Curator.webp) center/cover no-repeat;
}
.deck_container_bowlunar {
  background: url(images/Cosmic_Endowment_Card.webp) center/cover no-repeat;
}
.deck_container_apocs {
  background: url(images/Enchanted_Flora.webp) center/cover no-repeat;
}
.deck_container_gbless {
  background: url(images/Lunar_Drilling_Operation.webp) center/cover no-repeat;
}
.deck_container_plurral {
  background: url(images/Unburden.webp) center/cover no-repeat;
}
.deck_container_gheroes {
  background: url(images/Wizardguy34_Luna_Fixed.webp) center/cover
    no-repeat;
}
.deck_container_gyro {
  background: url(images/ICFfix.webp) center/cover no-repeat;
}
.deck_container_rglib {
  background: url(images/McKayla2C_Bane_of_Hierarchy.webp) center/cover
    no-repeat;
}
.deck_container_bowmid {
  background: url(images/Steve2C_Skyline_Strider_Luna.webp) center/cover
    no-repeat;
}
.deck_container_gbstall {
  background: url(images/Xi_nal2C_The_Honoured_One.webp) center/cover
    no-repeat;
}
.deck_container_redgig {
  background: url(images/Distressed_Cityfolk.webp) center/cover
    no-repeat;
}
.deck_container_redrage {
  background: url(images/Rageborne_Bike.webp) center/cover
    no-repeat;
}

/* FOOTER */
.footer {
  border-top: 1px solid #1f1f1f;
  padding: 40px 20px;
  margin-top: 60px;
  color: #aaa;
}
.footer_container {
  max-width: min(1100px, 92%);
  margin: auto;
}
.footer_top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer_brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer_title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}
.footer_socials {
  display: flex;
  gap: 10px;
}
.footer_socials img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}
.footer_socials img:hover {
  opacity: 1;
}
.footer_links {
  display: flex;
  gap: 20px;
}
.footer_links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer_links a:hover {
  color: white;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu_toggle {
    display: flex;
  }
  .navbar_menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b0b0b;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .navbar_menu.active {
    max-height: 100vh;
    padding: 20px 0;
  }
  .navbar_item {
    padding: 15px 0;
  }

  .footer_top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer_links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .deck_list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
