@font-face {
  font-family: graduate;
  src: url(../assets/fonts/Graduate-Regular.ttf);
}

a {
  color: #B5A642; /* Gold color */
  text-decoration: none;
}

a:hover {
  color: #6a0001;
}

@font-face {
  font-family: montserrat;
  src: url(../assets/fonts/Montserrat-VariableFont_wght.ttf);
}

body {
  font-family: montserrat, "Trebuchet MS", sans-serif;
  background-color: #111;
  color: #eee;
  margin: 0;
  padding: 0;
}

header {
  font-family: graduate, "Trebuchet MS", sans-serif;
  background: #6a0001; /* Khorne red */
  color: #fff;
  text-align: center;
  padding: 1rem;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center; /* Center the content horizontally */
}

.quote {
  background: #1a1a1a;
  padding: 1rem;
  margin: 1rem 0;
  border-left: 5px solid #6a0001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.warning {
  width: 90%;
  background: #6a0001;
  font-size: 11px;
  padding: 0.5rem;
  margin: 1rem 0;
  border-left: 5px solid #B5A642;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.team-logo {
  max-height: 120px;
  margin-right: 1.5rem;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

#menu-toggle {
  display: none;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
}

h2.subtitle {
  font-size: 1.7rem;
  color: #B5A642;
  border-bottom: 2px solid #6a0001;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

#menu-toggle:hover {
  background: #B5A642;
}

.flex-container {
  display: flex;
  justify-content: center;
}

.flex-div {
  margin: 2rem;
  align-content: center;
}

.stadium-image {
  max-width: 45vw;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border: 5px solid #6a0001;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

#main-head {
  flex: 1;
  display: flex;
  flex-direction: column; /* Stack vertically */
  justify-content: center;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  background: #222;
  margin: 0;
  padding: 0.5rem;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #6a0001;
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 0.3rem;
  color: #B5A642;
  letter-spacing: 0.05em;
}

section {
  padding: 1.5rem;
}

footer {
  text-align: center;
  background: #222;
  padding: 1rem 0;
  font-size: 0.9rem;
  width: 100%;
  bottom: 0;
  margin: 0;
}

footer p {
  margin: 0.2rem 0;
  padding: 0 1rem;
}

.standings-table {
  margin: 0;
  width: 90%;
  border-collapse: collapse;
  background: #222;
  color: #eee;
}

.standings-table th, 
.standings-table td {
  border: 1px solid #444;
  padding: 0.75rem;
  text-align: center;
}

.standings-table th {
  background: #6a0001;
  color: #fff;
}

.standings-table tr:nth-child(even) {
  background: #2a2a2a;
}

.match-reports {
  width: 90%;
  margin: 2rem auto;
}

.season-summary {
  width: 90%;
  margin: auto;
}

.testimonial {
  background: #1a1a1a;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid #6a0001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.testimonial:hover {
  background: #6a0001;
  border-left-color: #B5A642;
}

.match-report {
  background: #1a1a1a;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid #6a0001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.roster-cards {
  width: 90%;
  margin: 2rem auto;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.player-card {
  perspective: 1000px;
  width: 100%;
  height: 280px;
}

.player-card div {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.6s;
}

.card-front {
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.card-front h3 {
  background-color: #222;
}

.card-front p {
  background-color: #222;
}

.khorngor {
  background-image: url('../assets/images/khorngor.jpg');
  background-size: 450px;
  background-repeat: no-repeat;
  background-position: 40% 15%;
}

.bloodseeker {
  background-image: url('../assets/images/bloodseeker.jpg');
  background-size: 450px;
  background-repeat: no-repeat;
  background-position: 40% 15%;
}

.lineman {
  background-image: url('../assets/images/linemen.jpg');
  background-size: 875px;
  background-repeat: no-repeat;
  background-position: 47% 35%;
}

.card-front h3 {
  margin: 0;
  font-size: 1.5rem;
}

.card-front .position {
  font-style: italic;
  color: #B5A642;
}

.card-back {
  background: #222;
  color: #eee;
  transform: rotateX(180deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.player-card:hover .card-front {
  transform: rotateX(180deg);
}

.player-card:hover .card-back {
  transform: rotateX(360deg);
}

.player-card h3, 
.player-card p
{
  font-family: graduate, "Trebuchet MS", sans-serif;
}

.injured {
  color: #6a0001;
  font-weight: bold;
}

.active {
  color: #B5A642;
  font-weight: bold;
}

section article {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
}

section article:hover {
  background: #222;
}

.date {
  font-size: 0.9rem;
  color: #B5A642;
  margin-bottom: 0.5rem;
}

.grad-text {
  font-family: graduate, "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  color: #B5A642;
}


@media screen and (max-width: 600px) {
  main {
    padding: 0 1rem;
  }

  .team-logo {
    display: none;
  }

  #menu-toggle {
    display: block;
  }

  nav {
    display: none;
  }

  .stadium-image {
    display: none;
  }

  .flex-container {
    flex-direction: column;
    align-items: center;
  }

  .flex-div {
    margin: 1rem 0;
  }

  section {
    padding: 1rem 0;
  }
}