body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.main-container {
  max-width: 1200px;
  width: 80%;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.predictor-title {
  font-family: "Oswald", "Impact", Arial, sans-serif;
  font-size: 48px;
  color: #fff;
  background: linear-gradient(to right, #1e3e5c, #206369);
  padding: 20px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#prediction-form {
  min-height: 150px;
  padding: 30px;
  background-color: #f8f9fa;
  background-image: linear-gradient(
    rgba(30, 62, 92, 0.1),
    rgba(30, 62, 92, 0.1)
  );
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#prediction-form label {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1e3e5c;
}
#matchup {
  width: 100%;
  max-width: 720px;
  padding: 15px;
  font-size: 18px;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  height: 60px;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%231e3e92" d="M7 10l5 5 5-5z"/></svg>');
  background-size: 50px 50px;
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.team-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.team-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 335px;
  padding: 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-image: linear-gradient(
    rgba(30, 62, 92, 0.1),
    rgba(30, 62, 92, 0.1)
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.team-card:hover {
  transform: scale(1.05);
}
.team-logo {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 10px;
}
.team-name {
  font-size: 18px;
  font-weight: bold;
  color: #1e3e5c;
  margin-bottom: 10px;
}
.team-card div {
  margin: 8px 0;
  font-size: 16px;
  font-weight: bold;
  color: white;
}
.totals {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 335px;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.totals div {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin: 8px 0;
}

.error-message {
  color: #ff0000;
  font-size: 16px;
  margin-top: 10px;
  display: none;
}
@media (max-width: 768px) {
  .main-container {
    width: 90%;
  }
  .team-card {
    width: 100%;
    max-width: 400px;
  }
  #prediction-form {
    min-height: 120px;
    padding: 20px;
  }
  #matchup {
    max-width: 100%;
    font-size: 16px;
    height: 50px;
  }
  .predictor-title {
    font-size: 32px;
    padding: 15px;
  }
  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }
}

.table-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

table {
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  min-width: 400px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background-color: #004080;
  color: white;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

.about-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-container h1 {
  margin-bottom: 20px;
  font-size: 2.5em;
  color: #1e3e92;
}

.about-container h2 {
  margin-top: 30px;
  font-size: 1.5em;
  color: #333;
}

.about-container p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}

.starters-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 35px;
}
/*
.starters-container {
  display: flex;
  flex-direction: column; 
  flex: 1;
}
*/
.starter-section {
  flex: 1; /* offense and defense take equal width */
}

.starters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.starter-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  text-align: center;
  align-items: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  /* Force equal sizing */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  min-height: 100px; /* ensures consistent height */
  max-height: 100px; /* optional, keeps them equal */
  min-width: 150px; /* ensures consistent height */
  max-width: 150px; /* optional, keeps them equal */
}

.starter-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 6px;
}

.injury-notification-home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 335px;
  padding: 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-image: linear-gradient(
    rgba(30, 62, 92, 0.1),
    rgba(30, 62, 92, 0.1)
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.injury-notification-visitor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 335px;
  padding: 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-image: linear-gradient(
    rgba(30, 62, 92, 0.1),
    rgba(30, 62, 92, 0.1)
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.injury-wrapper {
  display: flex;
  flex-direction: column;
}

.injured {
  background-color: #ffcccc; /* light red background */
  border: 1px solid #ff0000; /* optional red border */
}
