/* Base styles - Mobile First Approach */
html {
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px; /* Better mobile readability */
  line-height: 1.5;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

p {
  font-size: 1rem;
  margin: 0 0 1rem 0;
}


.season-month {
  margin-bottom: 0;
}

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

.container-small {
  max-width: 600px;
  margin: 1rem auto;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
}

.container-stats {
  width: 100%;
  padding: 1rem 0;
}

/* Responsive container adjustments */
@media (min-width: 768px) {
  .container {
    padding: 2rem;
  }
}

/* Heading section styles */
.heading-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
  align-items: center;
  padding-top: 20px;
}

.page-logo img {
  height: 100px;
  padding: 10px;
}

.page-logo a {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease;
}

.page-logo a:hover {
  transform: scale(1.05);
}

/* Flag and name styles */
.flag-image {
  width: 25px;
  height: 25px;
  margin-right: 5px;
}

.first-name, .last-name {
  text-align: left;
}

.first-name {
  font-size: 14px;
}

.last-name {
  font-size: 11px;
  color: #747474;
}

/* Section styles */
.new-section-two {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
  flex-wrap: wrap;
  margin-top: 50px;
}

/* Match container styles */
.match-page-container {
  padding: 15px;
}

.match_container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
  padding: 10px 15px;
  flex: 1 1 0px;
  border-radius: 5px;
  border: 1px solid whitesmoke;
  transition: box-shadow 0.3s ease;
  margin-bottom: 10px;
}

.match_container-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: white;
  padding: 10px 15px;
  flex: 1 1 0px;


  transition: box-shadow 0.3s ease;
}




.match_container:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

.match_teams_container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.match_home_team {
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-weight: bold;
}

.medium {
  width: 570px;
}

.match_home_team img {
  height: 30px;
}

.score_time_container {
  text-align: center;
  justify-content: center;
}

/* Table styles - Mobile First */
table {
  border-collapse: collapse;
  text-align: center;
  width: 100%;
  border-radius: 5px;
  font-size: 0.875rem; /* 14px */
}

th {
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  background-color: #f8f9fa;
  
}

tr {
  border-bottom: 1px solid #eee;
  background-color: white;
}

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

td {
  padding: 0.5rem;
  font-size: 0.875rem;
}

th:first-child {
  border-radius: 5px 0 0 5px;
}

th:last-child {
  border-radius: 0 5px 5px 0;
}

/* Mobile table adjustments */
@media (max-width: 768px) {
  table {
    font-size: 0.75rem; /* 12px */
  }
  
  th, td {
    padding: 0.375rem 0.25rem;
  }
}
  
.table-view {
  width: 50%;
  font-size: 12px;
}

.image-container img {
  width: 100%;
}

.squad_stats td {
  padding: 5px;
  line-height: 25px;
}

/* Link styles */
a.match_link {
  text-decoration: none;
  color: inherit;
}

a.match_link:hover {
  text-decoration: none;
}


/* League table styles */
.mobile-table {
  display: flex;
  max-width: 800px;
  justify-content: center;
  margin-top: 20px;
  background-color: white;
}

.league_table {
  margin: 0 7px;
  justify-content: center;
}

/* League table column styles */
.league_table td:first-child {
  width: 10px;
  font-weight: bold;
  text-align: center;
}

.league_table td:nth-child(2),
.league_table th:nth-child(2) {
  text-align: left;
  width: 250px;
}

.league_table td:nth-child(3),
.league_table td:nth-child(4),
.league_table td:nth-child(5),
.league_table td:nth-child(6),
.league_table td:nth-child(7),
.league_table td:nth-child(8),
.league_table td:nth-child(9) {
  color: #747474;
  width: 15px;
}

.league_table th:nth-child(3),
.league_table th:nth-child(4),
.league_table th:nth-child(5),
.league_table th:nth-child(6),
.league_table th:nth-child(7),
.league_table th:nth-child(8) {
  color: #747474;
}

.league_table td:nth-child(9) {
  font-weight: bold;
}

.league_table th {
  font-weight: normal;
  font-family: var(--font-mono);
}

/* Page header styles */
.page-header {
  margin-left: 15px;
  margin-top: 30px;
}

.stats-page-container {
  padding-top: 5px;
}

/* Navigation styles */
.match_nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.navigation_form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navigation_form .item {
  width: 30px;
  height: 40px;
}

.selected_date {
  flex-basis: 35%;
}

/* Animation styles */
.animated-table {
  opacity: 1;
}

.animated-table tr {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.3s ease-in-out forwards;
  animation-delay: calc(var(--animation-order) * 0.03s);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Squad stats table styles */
.squad_stats {
  margin: 0 10px;
  margin-top: 20px;
}

.squad_stats th:nth-child(2),
.squad_stats td:first-child {
  text-align: left;
}

.squad_stats td:nth-child(3),
.squad_stats td:nth-child(4),
.squad_stats td:nth-child(5),
.squad_stats td:nth-child(6),
.squad_stats td:nth-child(7),
.squad_stats td:nth-child(8) {
  width: 8%;
}

.full-name {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 7px;
}

.squad_stats td:first-child {
  width: 30px;
}

/* Button styles */
.chevron-button {
  border: none;
  width: 40px;
  height: 40px;
}

/* Match details styles */
.match_details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 10px;
}

.detail-rows {
  gap: 8px;
  line-height: 1.4;
  text-align: left;
}

.home_score_time {
  min-width: 50px;
}

/* Score background styles */
.for-higher-bg {
  background-color: #279AF1;
  color: white;
}

.against-higher-bg {
  background-color: #FF7477;
  color: white;
}

.equal-score-bg {
  background-color: #423E3B;
  color: white;
}

.equal-score,
.against-higher,
.for-higher {
  padding: 2px;
  width: 40px;
  height: 40px;
}

/* Match player stats styles */
.match-player-stats {
  background-color: white;
  padding: 0 15px;
  border-radius: 2px;
}

.next-match {
  margin-bottom: 50px;
}



.score-style {
  border-radius: 5px;
  padding: 2px;
  width: 50px;
  text-align: center;
}



/* Individual stat styles */
.individual-stat {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  align-items: center;
}

.player-stats {
  letter-spacing: 3px;
}

.match-detail-date {
  padding: 15px;
}

footer {
  height: 40px;
}

/* Simplified layout styles - Mobile First */
.one-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.two-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .two-column {
    flex-direction: row;
    gap: 2rem;
  }
}

/* All time player stats table styles */
.all-time-player-stats th {
  padding-top: 20px;
  font-family: var(--font-mono);
}

.all-time-player-stats th:nth-child(2),
.all-time-player-stats td:nth-child(2) {
  text-align: left;
}

.all-time-player-stats td {
  padding: 15px 5px;
  line-height: 20px;
}

.all-time-player-stats td:nth-child(3),
.all-time-player-stats td:nth-child(4),
.all-time-player-stats td:nth-child(5),
.all-time-player-stats td:nth-child(6),
.all-time-player-stats td:nth-child(7) {
  width: 10%;
}

/* Search input styles
#searchInput {
  width: 300px;
  font-size: 14px;
  padding: 12px 20px;
  margin: 0 15px 15px 15px;
  box-sizing: border-box;
  border: 1px solid #eee;
  border-radius: 4px;
} */

/* All time team stats styles */
.all-time-team-stats td:nth-child(2) {
  text-align: left;
}

.all-time-team-stats td:first-child,
.all-time-team-stats td:nth-child(3),
.all-time-team-stats td:nth-child(4),
.all-time-team-stats td:nth-child(5),
.all-time-team-stats td:nth-child(6),
.all-time-team-stats td:nth-child(7) {
  width: 10%;
}

/* Button styles */

.stats-toggle {


  margin-left: 15px;
}

.button-6 {
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  display: inline-flex;
  font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 14px;
  
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
}

.button-6:hover,
.button-6:focus {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  color: rgba(0, 0, 0, 0.65);
}

.button-6:hover {
  transform: translateY(-1px);
}

.button-6:active {
  background-color: #F0F0F1;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
  color: rgba(0, 0, 0, 0.65);
  transform: translateY(0);
}

.active-button {
  background-color: #111111;
  color: white;
}

.active-button:hover {
  color: #fff;
  background-color: #111111;
}

/* Outer and inner container styles */
.outer {
  overflow: hidden;
}

.inner {
  display: flex;
  overflow-x: auto;
  padding-bottom: 17px;
}

.button-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: hidden;
  gap: 5px;
  margin-bottom: 5px;
  margin-left: 15px;
}

#filterButtons {
  margin-top: 5px;
  margin-bottom: 20px;
}

/* Chart container styles */
.chart-container {
  width: 90%;
  margin: auto;
}

/* Past encounters styles */
.past-encounters-match-container {
  margin-bottom: 20px;
}

/* Container long styles */
.container-long {
  max-width: 1200px;
  margin: auto;
}

/* Small match container styles */
.match_container-small {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid whitesmoke;
  transition: box-shadow 0.3s ease;
  width: 300px;
}

@media screen and (max-width: 768px) {
  .match_container-small {
    width: 100%;
  }
}

/* New section styles */
.new-section-new {
  display: flex;
  flex-direction: row;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
  
  
  
}

.month-section {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.matches-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.match_container-row,
.match_container-row * {
  
  font-size: 1.2rem !important;
}

[title] {
    position: relative;
    cursor: help;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1;
}


.matches-table {
    width: 100%;
    border-collapse: separate; /* Changed from collapse to separate */
    border-spacing: 0; /* Ensures no space between cells */
    margin-top: 20px;
    margin-bottom: 100px;
}



.matches-table th, .matches-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    
}

/* Center align the date column */
.matches-table {
    width: 8%;
}

.date-column {
  width: 4%;
}

/* Center align the venue column */
.matches-table .venue-column {
}

/* Center align the score column */
.matches-table .score-column {
    text-align: center;
}

/* Center align the MOM column */
.matches-table .mom-column {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific styles for the scorers column */
.matches-table .scorers-column {
    max-width: 200px;
    
}

.matches-table tr:hover {
    background-color: #f5f5f5;
}


/* Add this to ensure the sticky header works in Firefox */
.matches-table {
    overflow: visible;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: #f5f5f5;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
    color: #111111;
    text-decoration: none;
    cursor: pointer;
}

.about-us {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.about-us .flex-container {
    flex: 1 1 200px; /* Adjust the 200px to control the minimum width of each container */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-us .flex-item-heading {
    text-align: center;
    margin-bottom: 10px;
}

.about-us .flex-item-body {
    text-align: center;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .about-us {
        flex-direction: column;
    }
    
    .about-us .flex-container {
        width: 100%;
    }
}

.col-span-4 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.col-span-4 .flex-container {
    flex: 1;
}

.mom-column svg {
  width: 20px;
  height: 20px;
}

/* Team Comparison Tables Styles */
.comparison-section {
  padding: 20px 15px;
  margin-top: 30px;
}

.section-title {
  text-align: center;
  color: #333;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  font-family: 'Inter', sans-serif;
}

.comparison-table-container {
  margin-bottom: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}


.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table th {
  background: #f8f9fa;
  color: #333;
  font-family: var(--font-mono);
  font-weight: bold;
  padding: 12px 8px;
  text-align: center;
  border-bottom: 2px solid #dee2e6;
  font-size: 14px;
}

.comparison-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
  font-size: 14px;
}

.comparison-table tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

.comparison-table tr:nth-child(even) {
  background-color: #fafbfc;
}

.comparison-table tr:nth-child(even):hover {
  background-color: #f0f1f2;
}

/* Position column styling */
.comparison-table td:first-child {
  font-weight: bold;
  color: #1e3c72;
  width: 60px;
}

/* Team name column styling */
.comparison-table td:nth-child(2) {
  text-align: left;
  font-weight: 500;
  color: #333;
}

/* Goals columns styling */
.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4),
.comparison-table td:nth-child(5) {
  font-weight: 500;
  color: #2a5298;
}

/* Cards columns styling */
.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4),
.comparison-table td:nth-child(5),
.comparison-table td:nth-child(6) {
  font-weight: 500;
  color: #2a5298;
}

/* Responsive design for comparison tables */
@media screen and (max-width: 768px) {
  .comparison-section {
    padding: 15px 10px;
  }
  
  .section-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .table-title {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .comparison-table td:first-child {
    width: 40px;
  }
  
  .comparison-table td:nth-child(2) {
    text-align: center;
  }
}
