* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url("group5pics/backgroundg5.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Rubik", sans-serif;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: white;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background-color: rgba(17, 17, 17, 0.95);
  border-bottom: 4px solid #f7c331;
  padding: 15px 20px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Bangers", cursive;
  font-size: 22px;
  letter-spacing: 1px;
  color: #f7c331;
  cursor: default;
}

.brand-mark {
  color: #e8221a;
}

.brand-mark:hover {
  cursor: default;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background-color: #e8221a;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #f7c331;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:active {
  transform: translateY(1px) scale(0.95);
}

/* HERO */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: rgba(0, 0, 0, 0.55);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f7c331;
  margin-bottom: 15px;
}

.hero-title {
  font-family: "Bangers", cursive;
  font-size: 60px;
  letter-spacing: 2px;
  color: #e8221a;
  -webkit-text-stroke: 2px #ffffff;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 500px;
  margin: 0 auto 30px auto;
  color: #eeeeee;
  font-size: 18.5px;
}

.char-button {
  display: inline-block;
  background-color: #e8221a;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 6px;
  border: 3px solid #f7c331;
  transition: transform 0.2s ease, background-color 0.25s ease,
              color 0.25s ease, box-shadow 0.25s ease;
}

.char-button:hover {
  background-color: #f7c331;
  color: #111111;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 0 #e8221a;
}

.char-button:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 2px 0 #e8221a;
}

/* SECTION HEADING */
.section-eyebrow {
  font-family: "Bangers", cursive;
  color: #f7c331;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ffffff;
}

/* ABOUT */
.about {
  padding: 70px 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.about-text {
  max-width: 600px;
  color: #dddddd;
  font-size: 18px;
}

/* ROSTER / CARDS */
.roster {
  padding: 60px 0 100px 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.roster-hint {
  color: #cccccc;
  margin-bottom: 30px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #1a1a1a;
  border: 3px solid #f7c331;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
}

.member-card:hover {
  border-color: #e8221a;
  transform: translateY(-8px) scale(1.02);
  background-color: #202020;
  box-shadow: 0 10px 0 rgba(232, 34, 26, 0.35);
}

.member-card.is-selected {
  animation: characterSelect 0.35s ease forwards;
}

.member-card.is-selected .avatar {
  animation: fighterSpin 0.35s ease;
}

@keyframes characterSelect {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(0.96);
  }
}

@keyframes fighterSpin {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.15) rotate(-5deg);
  }

  100% {
    transform: scale(1.05) rotate(0deg);
  }
}

.member-card:active {
  transform: translateY(-2px) scale(0.98);
}

.card-id {
  font-family: "Bangers", cursive;
  font-size: 14px;
  color: #e8221a;
  margin-bottom: 10px;
}

.avatar {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.member-card:hover .avatar {
  transform: scale(1.08) rotate(-3deg);
  border-color: #e8221a;
}

.member-card:hover .avatar img {
  transform: scale(1.12);
}

.member-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.member-role {
  font-size: 13px;
  color: #cccccc;
  margin-bottom: 14px;
}

.view-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #f7c331;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.member-card:hover .view-link {
  color: #e8221a;
  transform: translateX(5px);
}

/* FOOTER */
.site-footer {
  background-color: #111111;
  border-top: 4px solid #f7c331;
  padding: 30px 0;
  text-align: center;
}

.footer-brand {
  font-family: "Bangers", cursive;
  color: #f7c331;
  margin-bottom: 8px;
}

.footer-text,
.footer-copy {
  color: #aaaaaa;
  font-size: 13px;
}

/* MOBILE VIEW */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    background-color: #111111;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;

    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .main-nav.is-open {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .nav-link {
    padding: 14px 20px;
    border-top: 1px solid #333333;
    transform: translateY(-10px);
    transition: color 0.25s ease, transform 0.25s ease;
  }

  .main-nav.is-open .nav-link {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 42px;
  }
}

@media (max-width: 500px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}