body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}
main{
  margin-left: 20px;
}
.header {
  /* display: inline; */
  padding: 20px;
  background-color: #121212; /* Optional: Add a background color */
}

.logo-container {
  display: flex;
  margin-left: 20px;
  /* align-items: center; */
}

.logo {
  width: 75px; 
  height: auto;
}

nav {
  background-color: #121212;
  color: rgb(218, 71, 71);
  padding: 10px;
  display: flex;
  gap: 10px;
  margin-bottom: 2px;
  align-items: flex-end;
}
nav a {
  text-decoration: none; /* Remove underline */
  color: #f5f5f5; /* Default color */
  font-size: 16px; /* Adjust font size */
  padding: 5px; /* Optional padding for better click area */
}

nav a:visited,
nav a:active {
  color: #f5f5f5; /* Prevent color change on click or visit */
}

nav a:hover {
  color: #ff0000; /* Change to white on hover */
  transition: color 0.3s ease; /* Smooth transition effect */
}

.burger {
  position: absolute;
  width: 40px;
  height: 30px;
  left: 10px;
  background: transparent;
  cursor: pointer;
  display: block;
}
.burger-menu {
  display: none;
  background-color: #121212;
}
.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #f5f5f5;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
  left: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  width: 200px;
  height: 70%;
  top: 100%;
  right: 0;
  margin-top: 20px;
  left: -40px;
  z-index: 1000;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.burger input:checked ~ .dropdown-menu {
  display: block;
}
.dropdown-menu ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  width: 200px;
  height: 70%;
}

.dropdown-menu li {
  padding: 10px 20px;
  border-bottom: 1px solid #1fbd2d;
}

.dropdown-menu a {
  text-decoration: none;
  color: #f5f5f5;
}
.horizontal-menu {
  display: flex; /* Enables flexbox */
  justify-content: flex-end;

  padding-right: 40px;
  margin: 0;
}
.horizontal-menu ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.htpi {
  width: 350px;
  height: auto;
}
.htpl {
  display: flex;
  width: 400px;
  justify-content: center;
}
.horizontal-menu li {
  margin: 0 15px;
  align-items: center;
  left: 50%;
}

.horizontal-menu a {
  text-decoration: none;
  color: #f5f5f5;
}

/* Wrapper for the icon with background */
.account-icon-wrapper {
  background-color: #f0f0f0; /* Grey or white background */
  padding: 10px;
  border-radius: 50%; /* Circle around the icon */
  width: 30px; /* Set the size of the wrapper */
  height: 30px; /* Set the size of the wrapper */
  display: flex;
  justify-content: flex-end;
}
.account-link{
    display: flex;
    color: white;
  justify-content: flex-end;
}
.account-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}
.account-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
a{
  text-decoration: none;
}
.account-username {
  text-align: center;
  margin-top: 5px; 
  color: white;
  text-decoration: none;
  display: flex;
  justify-content: flex-end;
}

.ac-w {
  height: 740px;
}
.account-container {
  max-width: 350px;
  margin: 40px auto;
  padding: 20px;

  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.account-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group .toggle-dark-mode {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.form-group .toggle-dark-mode input {
  margin-right: 10px;
}
#modeSelect {
  margin-top: 15px;
}
.logout-balance {
  margin-top: 20px;
  text-align: center;
}

.logout-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f44336;
  color: #f5f5f5;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}
.section {
  display: none;
} /* Hide all sections by default */
.active {
  display: block;
} /* Show active section */

.hidden {
  display: none;
} /* Hide elements */
.score-header {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}
/* Hide elements on mobile */


.team-name {
  flex: 1; /* Ensures teams take equal space */
  text-align: center;
}

.seaosonfixturedrp{
  background-color: var(--background-color);
  color: var(--text-color);
  border: none;
  height: 50px;
  font-size: 0.8em;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  outline: none;
  transition: background 0.2s, color 0.2s;
}
.seaosonfixturedrp:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.seaosonfixturedrp option {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 12px 18px;
  font-size: 1.2em;
}
.match-info {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.match-time {
  font-weight: bold;
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.team-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
  padding: 0 20px;
}

#player-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90%;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#player-list {
  display: flex;
  flex-direction: column;
}
#players-list-event {
  max-height: 300px; /* Set a maximum height for the player list */
  overflow-y: auto;  /* Enable vertical scrolling if content exceeds max height */
  overflow-x: hidden; /* Hide horizontal overflow */
  border: 1px solid #ccc; /* Optional: Add a border for better visibility */
  padding: 10px; /* Optional: Add some padding */
  background-color: #f5f5f5; /* Optional: Set a background color */
}
.players-list{
  max-height: 300px;
  display: flex;
  overflow-y: auto; 
  overflow-x: hidden; 
  flex-direction: column;
}
#filtered-players {
  max-height: 300px; /* Fixed height to make it scrollable */
  overflow-y: auto; /* Enable scrolling */
  border: 1px solid #ccc;
  padding: 10px;
  background: #f9f9f9;
}
.playeradd {
  display: inline-block;
  padding: 10px 10px;
  background-color: #a5a5a5;
  color: #121212;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
  margin-right: 10px;
  text-decoration: none;
  cursor: pointer;
}

.player-slot.selected {
  background-color: lightgreen;
  color: black;
  height:100px
}

#home-substitutes,
#away-substitutes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 45%;
}
.bench {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}
.subs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.subs-slot {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 5px;
  width: 100px; /* Adjust width */
  text-align: center;
}

.formation-grid {
  display: flex;
  flex-direction: row;
  gap: 40px;
  width: 100%;
  min-height: 400px;
  align-items: center;
  justify-content: center;
}

.formation-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin: 5px 0;
  height: 100%;
  width: 100%;
}

.formation-row[data-players="3"] {
  justify-content: space-between;
  padding: 0 40px;
}

.formation-row[data-players="4"] {
  justify-content: space-between;
  padding: 0 20px;
}

.formation-row[data-players="2"] {
  justify-content: space-around;
  padding: 0 60px;
}

.player-slot {
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  min-width: 100px;
  max-width: 120px;
  flex: 1; /* Ensure all slots have the same size */
  height: 30px;
  border-radius: 10px;
  text-align: center;
}
.lineup-slot {
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}


.home-events, .away-events {
  flex: 1;
  padding: 15px;
  border: none;
}


.match-events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}


.modal-inner-content {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 10px; /* Add padding for scrollbar */
}
.event-item:last-child {
  border-bottom: none;
}

h4 {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.pl {
  margin-left: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: 25px;
}

.card {
  border: 1px solid #ccc;
  width: 150px;
  padding: 16px;
  border-radius: 8px;
  background-color: #f9f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.difference {
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 4px;
}
.team-link {
  text-decoration: none;
}
.rise {
  color: #28a745; /* Green for rise */
  background-color: #e6ffe6; /* Light green background */
}

.fall {
  color: #dc3545; /* Red for fall */
  background-color: #ffe6e6; /* Light red background */
}
.players {
  margin-left: 20px;
}
.players,
.portfolio {
  display: flex;
  gap: 10px;
}
#time-left {
  font-size: 14px;
  font-weight: bold;

}
.players a {
  text-decoration: none; /* Remove underline */
  color: #121212; /* Default color */
  font-size: 16px; /* Adjust font size */
  text-decoration: none;
  padding: 5px; /* Optional padding for better click area */
}
.player-detail {
  margin-left: 20px;
}
.fixture-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap; /* Ensures it wraps to the next row if necessary */
  gap: 15px; /* Space between fixtures */
}
.fixture-link {
  text-decoration: none;
}
/* Style for each fixture card */
.fixture-card {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  width: 110px;
  height: 100px;
  background-color: #f5f5f5;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Headings and paragraphs */
.fixture-card p {
  font-weight: bolder;
  font-size: 14px;
  color: #121212;
}
.darkred {
  background-color: darkred;
}

.brightred {
  background-color: #ff0000;
}

.graycolor {
  background-color: gray;
}

.lightgreen {
  background-color: #1fbd2d;
}

.darkgreen {
  background-color: darkgreen;
}
.title {
  font-size: 40px;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  display: flex;
  margin-bottom: 20px;
  margin-top: 20px;
}
.section-title {
  font-size: 28px;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  display: flex;
  margin-bottom: 20px;
  margin-top: 20px;
}
.players a:visited,
.players a:active {
  color: #121212; /* Prevent color change on click or visit */
}

.h-c {
  margin-left: 20px;
}
.player-card,
.portfolio-item {
  border: 1px solid #ddd;
  padding: 10px;
  width: 200px;
}
.player-kit-image {
  width: 100px; /* Adjust the width to your desired size */
  height: auto; /* Maintain the aspect ratio */
}
.search-form {
  width: 600px;
  border-radius: 30px;
  height: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.search-form input {
  height: 20px;
  width: 250px;
}
.custom-select {
  width: 200px;
  border-radius: 4px;
  height: 30px;
  margin-top: 20px;
  margin-bottom: 30px;
  -webkit-tap-highlight-color: #1fbd2d; /* General appearance reset */
}
.custom-select option {
  background-color: #f5f5f5; /* Default background */
  color: #121212; /* Default text color */
}

/* Highlight the selected option (hover or focus) */
.custom-select:focus,
.custom-select option:focus {
  outline: none; /* Remove the default outline */
  background-color: #4caf50; /* Set your custom highlight color */
  color: #f5f5f5; /* White text color when highlighted */
}
.custom-select option:hover {
  background-color: #4caf50; /* Set your custom hover color */
  color: #f5f5f5; /* White text color */
}
#position_sort {
  margin-left: 20px;
}
.rank{
font-weight: bold;
}

.playerdetail-kit {
  padding-top: 0; /* No space above the div */
  margin-top: 0;
  margin-left: 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.playerdetail-kit img {
  width: 150px;
  height: 140px;
  margin-bottom: 200px;
  object-fit: contain;
}
.playerdetail-kit h3 {
  margin-top: 0;
  margin-left: 20px;
  font-weight: bold;
  font-size: 22px;
}
#stock-graph {
  margin-left: 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;

  gap: 10px;
}
#stock-graph .candle {
  color: black; /* Set text color to black */
  font-size: 14px; /* Adjust font size if needed */
  text-align: center; /* Center the text */
  line-height: 20px; /* Adjust line-height to vertically center text if candles have a fixed height */
}

.candle-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.candle {
  width: 20px;
  border-radius: 3px;
  min-height: 1px;
}

.candle.green {
  background-color: #1fbd2d; /* Green for gain */
}

.candle.red {
  background-color: #ff0000; /* Red for loss */
}

.candle-label {
  margin-top: 5px;
  font-size: 12px;
  text-align: center;
}
.empty {
  background-color: transparent;
}
.trade-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
}
.purchase-stock-header {
  display: none;
}
.trade-header {
  display: flex;
  justify-content: space-between;
  width: 80%;
  padding: 0 10px;
}
.trade-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 20px; /* Add some spacing */
}
#buy-form {
  flex: 1;
  max-width: 300px; /* Keeps the form closer to the center */
  display: flex;
  flex-direction: column; /* Ensures vertical stacking */
  align-items: center;
  padding: 20px;
  border-radius: 8px;
}
#buy-form label,
#buy-form input {
  margin-bottom: 15px; /* Adds space between form elements */
}
#buy-form input,
#buy-form button {
  width: 80px;
  height: 40px;
  margin-bottom: 15px; /* Adds space between the input and the button */
}
#buy-form .quantity-container {
  display: flex;
  align-items: center; /* Aligns the label and input vertically */
  margin-bottom: 15px;
}

#buy-form label {
  margin-right: 10px; /* Adds space between the label and the input */
  font-weight: bold;
}

#buy-form input {
  width: 200px; /* Adjusts the input field width */
}

#buy-form button {
  padding: 10px;
  background-color: #1fbd2d; /* Green background for the button */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#buy-form button:hover {
  background-color: #45a049; /* Darker green when hovering */
}

.leaderboard-table {
  height: 500px;
  width: 70%;
  margin-left: 20px;
}

#your-rank-section {
  width: 70%;
}
/* Main leaderboard table */
#leaderboard-table,
#your-rank-table {
  width: 70%;
}

/* Table headers */
#leaderboard-table thead th,
#your-rank-table thead th {
  text-align: left;
  padding: 8px;
  font-weight: bold;
}

/* Table body cells */
#leaderboard-table tbody td,
#your-rank-table tbody td {
  padding: 8px;
  text-align: left;
  border-spacing: 0;
}

/* Row borders */
#leaderboard-table tbody tr,
#your-rank-table tbody tr {
  border-bottom: 1px solid #1fbd2d; /* Light border for separation */
}

/* Highlight row */
#leaderboard-table tbody tr.highlight,
#your-rank-table tbody tr.highlight {
  background-color: #1fbd2d;
}

/* Ensure proper spacing and border for headers */
#leaderboard-table thead,
#your-rank-table thead {
  border-bottom: 1px solid #1fbd2d; /* Green bottom border for headers */
}

/* Highlight row styling */
.highlight {
  background-color: #1fbd2d;
}

/* Ensure your rank table aligns the same */
#your-rank-table {
  width: 100%;
  border-collapse: collapse;
}

#your-rank-table td,
#leaderboard-table td {
  padding: 8px;
  text-align: left;
}

#your-rank-table tbody tr {
  border-bottom: 1px solid #1fbd2d;
}

/* Make sure your rank section table is aligned with leaderboard table */
#your-rank-table td,
#leaderboard-table td {
  padding: 8px;
}

#your-rank-table thead th,
#leaderboard-table thead th {
  font-weight: bold;
  padding: 8px;
  text-align: left;
}
/* Ensure both tables have identical column widths */
#leaderboard-table th:nth-child(1),
#your-rank-table td:nth-child(1) {
  min-width: 50px;
  width: 20%;
}

#leaderboard-table th:nth-child(2),
#your-rank-table td:nth-child(2) {
  min-width: 100px;
  width: 40%;
}

#leaderboard-table th:nth-child(3),
#your-rank-table td:nth-child(3) {
  min-width: 80px;
  width: 40%;
}

.show-more-wrapper {
  text-align: center;
  margin-top: 20px;
}

.show-more-wrapper .btn {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.show-more-wrapper .btn:hover {
  background-color: #0056b3;
}

.highlight-message {
  margin-top: 10px;
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

footer {
  bottom: 0;
  position: relative;
  text-align: center;
  padding: 20px;
  background-color: #121212;
  /* margin-top: 20px; */
}

.footer-content a {
  color: #f5f5f5;
  text-decoration: none;
  margin-left: 10px;
}

.footer .footer-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo,
.footer-links,
.footer-socials {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-right: 100px;
}

.footer-logo img {
  width: 80px; /* Adjust logo size */
  margin-bottom: 10px;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f5f5f5;
}

.footer-links-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #f5f5f5;
}

.footer-about {
  font-size: 0.9rem;
  color: #f5f5f5;
}

.footer-auth-link a {
  text-decoration: none;
  color: #f5f5f5;
}

.footer-auth-link {
  text-align: center;
  margin-top: 20px;
}

.footer-auth-link a {
  font-size: 1rem;
  color: #f5f5f5;
  text-decoration: none;
}
/* From Uiverse.io by 0800Gonza */
.sc {
  width: fit-content;
  height: fit-content;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 25px;
  gap: 40px;
}

/* for all social containers*/
.socialContainer {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgb(44, 44, 44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: 1s;
}
/* instagram*/
.containerOne:hover {
  background-color: #d62976;
  transition-duration: 0.3s;
}
/* twitter*/
.containerTwo:hover {
  background-color: #00acee;
  transition-duration: 0.3s;
}

/* Youtube*/

.containerFour:hover {
  background-color: #eb1616;

  transition-duration: 0.3s;
}

.socialContainer:active {
  transform: scale(0.9);

  transition-duration: 0.3s;
}

.socialSvg {
  width: 17px;
}

.socialSvg path {
  fill: rgb(255, 255, 255);
}

.socialContainer:hover .social Svg {
  animation: slide-in-top 0.3s both;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: red;
  margin-bottom: 10px;
}

.live-dot {
  height: 10px;
  width: 10px;
  background-color: red;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 5px;
}

.status-dot.winning {
  background-color: green;
  animation: pulse 1.2s infinite;
}

.status-dot.losing {
  background-color: red;
  animation: pulse 1.2s infinite;
}

.status-dot.draw {
  background-color: gray;
  animation: pulse 1.2s infinite;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-50p x);
    opacity: 0;
  }

  100% {
    transform: translateY(0);

    opacity: 1;
  }
}

.pagination {
  margin-top: 20px;

  display: flex;

  width: 60%;

  justify-content: space-betwe en;
}

.userbalance {
  text-align: right;

  font-size: 20px;

  margin-right: 10px;

  margin-top: 10px;

  font-weight: bold;
}

.stockprice {
  margin-top: 20px;

  display: flex;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* From Uiverse.io by akshat-p
atel28 */
.errorcard {
  width: 330px;

  height: 80px;

  border-radius: 8px;

  box-sizing: border-box;

  padding: 10px 15px;

  background-color: #f5f5f5;

  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  position: relative;

  overflow: hidden;

  display: flex;

  align-items: center;

  justify-content: space-aroun d;
  gap: 15px;
}

.wave {
  position: absolute;

  transform: rotate(90deg);

  left: -31px;

  top: 32px;

  width: 80px;

  fill: #fc0c0c3a;
}
.hhtp {
  font-family: "Poppins", sans-serif; /* Modern, readable font */
  font-size: 24px; /* Adjust header size */
  font-weight: bold;
  color: #2c3e50; /* Dark blue shade */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 3px solid #1fbd2d; /* Adds a blue underline effect */
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.thtp {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6; /* Improves readability */
  color: #444; /* Dark gray for easy reading */
  margin-bottom: 15px;
}
.spacer {
  height: 10px; /* Adjust gap */
}

h2.hhtp::after {
  content: "⚽"; /* Optional: Adds a football emoji */
  margin-left: 8px;
  color: #e74c3c; /* Red accent color */
}

.icon-container {
  width: 35px;

  height: 35px;

  display: flex;

  justify-content: center;

  align-items: center;

  background-color: #fc0c0c48;
  border-radius: 50%;

  margin-left: 8px;
}

.icon {
  width: 17px;

  height: 17px;

  color: #d10d0d;
}

.message-text-container {
  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: flex-start;

  flex-grow: 1;
}

.message-text,
.sub-text {
  margin: 0;

  cursor: default;
}

.message-text {
  color: #d10d0d;

  font-size: 17px;

  font-weight: 700;
}

.sub-text {
  font-size: 14px;

  color: #555;
}

.cross-icon {
  width: 18px;

  height: 18px;

  color: #555;

  cursor: pointer;
}

.saveformation {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.htp {
  margin-bottom: 20px;
  margin-left: 20px;
}
.ptf {
  margin-left: 20px;
}
@media (max-width: 1024px) {
  .burger {
    position: relative;
    width: 25px;
    height: 20px;
  }
  .burger-menu {
    display: block;
  }

  .horizontal-menu {
    display: none;
  }

  .burger input:checked ~ span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 3px;
  }

  .burger input:checked ~ span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
  }

  .burger input:checked ~ span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 18px;
    left: 3px;
  }

  .filters {
    margin-top: 40px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .searchBoxcontainer {
    margin-top: 0;
  }

  .sc {
    display: block;
    margin: 5px 0;
  }
  .socialContainer {
    margin-bottom: 25px;
  }
}

#loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
}

.team-assignment {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.home-team,
.away-team {
  width: 45%;
}

.matched-player {
  padding: 5px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
}

.player-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.player-match {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}

.position-select {
  width: 120px;
}

#processing-results.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-wrapper {
  background: white;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background: white;
  border-radius: 8px 8px 0 0;
  z-index: 2;
}

.modal-header h3 {
  margin: 0;
}

.scrollable-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
  margin-bottom: 60px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 80vh; /* Ensure modal has enough height */
}

.team-assignment {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.home-team,
.away-team {
  width: 48%;
  background: none;
  padding: 15px;
  border-radius: 8px;
}

#unmatched-players {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.modal-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.extracted-player {
  background: white;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.player-match {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 8px;
  background: white;
  border: 1px solid #eee;
  border-radius: 4px;
}

/* Main scrollbar width */
html::-webkit-scrollbar {
  width: 20px; /* Reduced width */
}

/* The track (background) */
html::-webkit-scrollbar-track {
  background: transparent;
  border: none;
}

/* The handle (soccer ball) */
html::-webkit-scrollbar-thumb {
  background-color: transparent;
  background-image: url('../images/soccer-ball.png'); 
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0; /* Remove margin to allow ball to touch top */
}

/* Remove any space at the top of the scrollbar */
html::-webkit-scrollbar-button:start {
  display: none;
}

html::-webkit-scrollbar-button:end {
  display: none;
}

/* Hover effect */
html::-webkit-scrollbar-thumb:hover {
  filter: brightness(0.9);
}

/* Active state */
html::-webkit-scrollbar-thumb:active {
  filter: brightness(0.8);
}

/* Corner where scrollbars meet */
html::-webkit-scrollbar-corner {
  background: #4caf50;
}

/* Ensure proper scrolling behavior */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.content {
  padding-right: 10px;
}

/* Add a grass pattern to the scrollbar track */
::-webkit-scrollbar-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    #4caf50,
    #4caf50 10px,
    #45a049 10px,
    #45a049 20px
  );
  opacity: 0.3;
}

/* Match History Styles */
.match-history {
  margin-top: 20px;
}

.match-history .table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.match-history .table th,
.match-history .table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.match-history .table th {
  background-color: #f5f5f5;
  height: 50px;
}

.team-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.team-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
}

.team-stats-card {
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.team-stat{
  color: var(--text-color);
  font-size: clamp(1.2rem, 2vw, 1.8em);
  font-weight: bold;
}
.stat-value, .stt-value {
  font-size: clamp(1.2rem, 2vw, 1.8em);
  font-weight: bold;
}

.stat-label {
  margin-top: 5px;
  font-size: 0.9em;
  color: #666;
}


.highlight .stat-value,
.highlight .stat-label {
  color: white;
}

.team-ranks-card {
  background: #181818;
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ranks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.rank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}
.rank-label {
  font-size: 1em;
  color: #aaa;
}
.rank-value {
  font-size: 1.3em;
  font-weight: bold;
  color: #1fbd2d;
}

.team-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.section {
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Make sure there's no accidental hidden overflow */
  overflow: visible;
}

.section h2 {
  margin-bottom: 20px;
  color: var(--text-color);
  padding-bottom: 10px;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px;
  /* Make sure these are visible */
  visibility: visible;
  opacity: 1;
}

.squad-player-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  /* Make sure these properties are set */
  display: block;
  visibility: visible;
  opacity: 1;
  /* Set a minimum height to ensure visibility */
  min-height: 100px;
}

.squad-player-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.player-name {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #000;
}

.player-name a {
  color: #218838;
  text-decoration: none;
}

.player-name a:hover {
  text-decoration: underline;
}

.player-position {
  font-weight: 500;
  color: #666;
  margin: 5px 0;
}

.player-jersey {
  color: #888;
  font-size: 0.9em;
  margin: 5px 0;
}

.player-stats {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
}

.player-stats p {
  margin: 2px 0;
}

.debug-info {
  font-size: 0.8em;
  color: #999;
  margin-top: 5px;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.match-card {
  display: flex;
  justify-content: flex-start;
  width: 400px;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}


.match-date {
  font-size: 0.9em;
  margin-bottom: 10px;
}
.mdurl {
text-decoration: none;
}
.match-teams {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.match-team {
  font-weight: bold;
  flex: 1;
  width: 100px;
}

.matches-section {
  margin-top: 20px;
}

.match-time {
  font-weight: bold;
  color: #28a745;
}
.match-score {
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  margin: 0 15px;
}
.live {
  color: #dc3545;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  margin: 0 15px;
  animation: pulse 1.5s infinite;
}
.match-time {
  color: #1fbd2d;
  margin: 0 15px;
}

.match-link {
  display: flex;
  margin-top: 10px;
  color: #1fbd2d;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9em;

}

.match-link:hover {
  text-decoration: underline;
  color: #218838;
}

.league-table-container {
  margin: 20px auto;
  max-width: 1000px;
  padding: 0 6px;
}

.league-table, .form-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.league-table th,
.league-table td,
.form-table th,
.form-table td {
  padding: 12px 8px;
  text-align: left;
  border: none;
}

.league-table th, .form-table th {
  font-weight: bold;
  color: #333;
}

.league-table, .form-table, .team-name {
  text-align: left;
  min-width: 200px;
}

.league-table .points {
  font-weight: bold;
}

.league-table tbody tr:hover {
  background-color: #f8f8f8;
}


/* League Table Styles */
.table-controls {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.Tsort.active {
  background: #d10d0d;
  color: white;
  border-color: #960e05;
}

.month-select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}
/* Update class names to be specific to league table */
.league-form {
  display: flex;
  flex-direction: row;
  gap: 2px;
  align-items: center;
}

.league-form-indicator {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

.league-form-indicator.win {
  background: #28a745;
  color: white;
}

.league-form-indicator.draw {
  background: #ffc107;
  color: black;
}

.league-form-indicator.loss {
  background: #dc3545;
  color: white;
}

.league-table td.league-form {
  padding: 5px;
  vertical-align: middle;
}

/* Add these to your existing league table styles */
.league-form-indicator.latest {
  position: relative;
}

.league-form-indicator.latest::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background-color: #28a745;
  border-radius: 50%;
}

/* Optional: Add tooltip to show "Latest match" on hover */
.league-form-indicator.latest:hover::before {
  content: "Recent match";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.Tsort {
  background-color: #1fbd2d;
  width: 70px;
  border-radius: 6px;
  color: black;
  cursor: pointer;
  border: none;
}


.relegation-playoff {
  background-color: #ffb936;
}


.team-detail-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.team-squad-section {
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.squad-position-header {
  margin: 20px 0 10px 0;
  padding-left: 10px;
  border-left: 4px solid #1fbd2d;
}

.squad-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px;
  margin-bottom: 30px;
}

.squad-player-card {
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.squad-player-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.squad-player-name {
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.squad-player-name a {
  color: #1fbd2d;
  text-decoration: none;
}

.events{
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-right: 10px;
}

.squad-player-position {
  font-weight: 500;
  margin: 5px 0;
}

.squad-player-jersey {
  font-size: 0.9em;
  margin: 5px 0;
}

.squad-player-stats {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
}

.squad-player-stats p {
  margin: 2px 0;
}

/* Player Edit Modal Styles */
.player-edit-section {
  margin-top: 15px;
  padding: 15px;
  border-top: 1px solid #ddd;
}

.player-edit-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.player-edit-actions button {
  flex: 1;
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.player-edit-actions button:hover {
  background-color: #e0e0e0;
}

.player-position-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.lineup-modal-actions {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid #ddd;
  background-color: #f8f9fa;
  border-radius: 0 0 8px 8px;
  text-align: center;
  z-index: 10;
}

.lineup-save-button {
  padding: 12px 24px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  min-width: 120px;
}

.lineup-save-button:hover {
  background-color: #218838;
}

.player-options-modal .modal-content {
  max-width: 500px;
  margin: 20px auto;
}

/* Add this to ensure the modal content can accommodate the sticky footer */
#lineup-modal .modal-content {
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px; /* Space for the sticky save button */
}

/* General Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background-color: #f5f5f5;
  margin: 2% auto;
  padding: 30px;
  width: 90%;
  max-width: 1200px;
  max-height: 95vh;
  overflow-y: auto;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.tab-container{
  display: flex;
  justify-content: flex-start;
  left: 30px;
  position: relative;
  gap: 30px;

}

/* Tab Button Styles */
.tab-buttons {
  margin-bottom: 20px;
  display: flex;
}

.tab-button {
  padding: 10px 20px;
  margin-right: 10px;
  border: none;
  cursor: pointer;
  margin: 5px;
}


/* Team Container Styles */
.teams-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.formation-line-3-3 {
  display: flex !important;
  justify-content: space-evenly !important;
  gap: 40px !important;
}
.formation-line-4-2 {
  display: flex !important;
  justify-content: space-evenly !important;
}
.formation-line-4-1 {
  display: flex !important;
  justify-content: space-evenly !important;
}
.formation-line-5-1 {
  display: flex !important;
  justify-content: space-evenly !important;
}
.formation-line-3-1 {
  display: flex !important;
  justify-content: space-evenly !important;
}
.formation-line-3-4 {
  display: flex !important;
  justify-content: space-evenly !important;
  gap: 40px !important;
}
.formation-line-2-2 {
  display: flex !important;
  justify-content: space-evenly !important;
}
.formation-line-2-5 {
  display: flex !important;
  justify-content: space-evenly !important;
}
.formation-line-3-2 {
  display: flex !important;
  justify-content: space-evenly !important;
}
.formation-line-2-3 {
  display: flex !important;
  justify-content: space-evenly !important;
}
.formation-line-5-2 {
  display: flex !important;
  justify-content: space-evenly !important;
  gap: 4px !important;
}
.formation-line-5-2 .lineup-slot {
  width: 30px !important;
  height: 30px !important;
  font-size: 12px !important;
}
.formation-line-1-3 {
  display: flex !important;
  left: 0 !important;
  
}

/* Narrower grouping for 1-2 (e.g., in 4-1-2-3) */
/* .formation-line-1-2,
.formation-line-2-3 {
  justify-content: center;
  gap: 15px;
  width: 60%;
} */
.XI-container {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: row;
  max-width: 1000px;
  height: 500px;
  margin: 0 0 40px;
  position: relative;
  margin-left: 30px; /* Add some padding to prevent content from touching the edge */
}


.team {
  flex: 1;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.XI-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 90%;
  height: 100%;
  position: relative;
  left: 30px;
}

.XI-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 10px;
}
.fixture-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}
.fixture-easy {
  background-color: #28a745;
  color: white;
}
.fixture-medium {
  background-color: #ffc107;
  color: black;
}
.fixture-hard {
  background-color: #dc3545;
  color: white;
}
.fixture-note {
  color: #aaa;
  font-size: 12px;
}
.fixtures-container {
  padding: 4px 0;
}
.player-list-item {
  display: flex;
  align-items: center;
  padding: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.player-list-item:not(.disabled-player) {
  cursor: pointer;
  background-color:var(--background-color);
}

.player-list-item.disabled-player {
  cursor: default;
  background-color: #ccc;
}

.player-list-item .player-info {
  display: flex;
  align-items: center;
  width: 100%;
}

.player-list-item .player-kit {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  object-fit: contain;
}

.player-list-item .player-details {
  flex: 2;
}

.player-list-item .player-name {
  font-weight: bold;
}

.player-list-item .player-team {
  font-size: 12px;
}

.player-list-item .player-price {
  flex: 1;
  text-align: center;
  font-weight: bold;
}

.player-list-item .player-selected {
  flex: 1;
  text-align: center;
  color: #aaa;
  font-size: 0.9em;
}

.player-list-item .player-stats {
  flex: 1;
  text-align: right;
}

.player-list-item .fixtures-container {
  width: 100%;
  margin-top: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.fixture-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.fixture-easy {
  background-color: #28a745;
  color: white;
}

.fixture-medium {
  background-color: #ffc107;
  color: black;
}

.fixture-hard {
  background-color: #dc3545;
  color: white;
}

.fixture-note {
  color: #aaa;
  font-size: 12px;
}


/* Player list header */
.player-list-header {
  display: flex;
  padding: 8px;
  font-weight: bold;
  background-color: #222;
  color: white;
}

.player-list-header .kit-space {
  width: 48px;
}

.player-list-header .player-name {
  flex: 2;
}

.player-list-header .player-price,
.player-list-header .player-selected {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.player-list-header .player-stats {
  flex: 1;
  text-align: right;
}
.lineup-slot {
  width: 40px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.kit-image {
  width: 50px;
  height: 60px;
  object-fit: contain;
}

.XI-name {
  margin-top: 5px;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
  color: #eee;
}
.Bench-name {
  margin-top: 5px;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
}
.home-direction, .away-direction {
  position: relative;
  gap: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0;
}

.LXIH, .LXIA{
  color: var(--text-color);
}
.match-events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.match-events-list li {
  padding: 8px 0;

}

.match-events-list li:last-child {
  border-bottom: none;
}

.match-events-list strong {
  color: #666;
  margin-right: 8px;
}
.match-events-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-header {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 2px solid #ccc;
}
.timeline-content::before {
  content: '';
  position: absolute;
  display: none;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #ccc;
  transform: translateX(-50%);
}

.minute-group {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  margin: 15px 0;
  align-items: flex-start;
}

.timeline-marker {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background-color: #666;
  border-radius: 50%;
  display: none;
  z-index: 1;
}

.home-events {
  padding-right: 20px;
  text-align: right;
}

.away-events {
  padding-left: 20px;
  text-align: left;
}

.event-item {
  margin: 5px 0;
  padding: 0;
  border-radius: 4px;
  display: inline-block;
  max-width: 90%;
  border: none;
  font-size: 0.9em;
}


.substitution-icon {
  border-color: none;
}


/* Clear floats */
.home-events::after,
.away-events::after {
  content: '';
  display: table;
  clear: both;
}


.timeline-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
}

.timeline-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: flex-start;
  margin: 15px 0;
}

.timeline-time {
  padding: 5px 15px;
  font-weight: bold;
  text-align: center;
  min-width: 60px;
}

.timeline-home {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.timeline-away {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.home-event {
  align-self: auto;
}

.away-event {
  align-self: auto;
}

/* Substitution styling */
.sub-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.sub-out {
  color: #d32f2f; /* Red for player going out */
  font-weight: 500;
}

.sub-in {
  color: #2e7d32; /* Green for player coming in */
  font-weight: 500;
  position: relative;
}

/* Align text for away team subs */
.away-event .sub-details {
  text-align: right;
}

/* Make the event items a bit taller for subs */
.event-item:has(.sub-details) {
  padding: 8px 0;
}

/* Update the substitution event background */


/* Make sure the colors are visible in both home and away events */
.home-event .sub-out,
.away-event .sub-out {
  color: #d61212;
}

.home-event .sub-in,
.away-event .sub-in {
  color: #09920f;
}

.event-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.home-event .event-header {
  justify-content: flex-start;
}

.away-event .event-header {
  justify-content: flex-end;
}

.sub-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-out {
  color: #d32f2f;
}

.away-event .sub-line {
  justify-content: flex-start;
}

.event-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-event .event-content {
  justify-content: flex-start;
}

.away-event .event-content {
  justify-content: flex-end;
}


.start-match-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin: 0 10px;
  transition: background-color 0.2s;
}

.start-match-btn:hover {
  background-color: #218838;
}

.scoreline.live {
  color: #dc3545;
  font-weight: bold;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}
/* Add these styles */
.goal-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.assist-text {
  font-size: 0.9em;
  color: #8a8a8a;
}

.away-event .goal-details {
  align-items: flex-start;
}

.home-event .goal-details {
  align-items: flex-end;
}
.goalscorers {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 20px;
  padding: 10px;
}

.home-goalscorers, .away-goalscorers {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
}
.home-goalscorers{
justify-content: flex-end;
margin-right: 0;
align-items: end;
}
.away-goalscorers{
  justify-content: flex-start;
  margin-left: 0;
  align-items: baseline;
}
.goal-item {
  margin: 0 5px;
  font-size: 14px; /* Adjust font size as needed */
}
.player-icons {
  position: relative; /* Position relative to the player slot */
}

.player-event {

  display: flex;
  font-size: 0.9em; /* Adjust size as needed */
  margin-left: -10px; /* Space between events */
}
.player-event :first-child{
  margin-left:0
}
.sub-event :first-child{
  margin-left:0
}
.goal-icon {
  position: absolute;
  top: 30px; /* Position at the bottom right */
  right: 10px;
}
.goal-sub {
  position: absolute;
  bottom: 40px; /* Position at the bottom right */
  right: 90px;
}
.assist-icon {
  position: absolute;
  top:  0; /* Position at the bottom left */
  left: 35px;
}
.pensave-icon {
  position: absolute;
  top: -15px; 
  left: 30px;
}
.penalties-icon {
  position: absolute;
  top: 0; 
  left: 35px;
}
.assist-sub {
  position: absolute;
  bottom: 80px; 
  right: 40px;
}
.yellow-card-icon {
  position: absolute;
  top: 30px; 
  left: 25px;
}
.second_yellow-icon {
  position: absolute;
  top: 30px; 
  left: 25px;
}
.yellow-card-sub {
  position: absolute;
  bottom: 40px;
  right: 40px;
}
.second_yellow-sub {
  position: absolute;
  bottom: 40px;
  right: 40px;
}
.red-card-icon {
  position: absolute;
  top: 0; 
  left: 30px;
}
.red-card-sub {
  position: absolute;
  bottom: 100px; 
  right: 90px;
}
.own-goal-icon {
  position: absolute;
  top:  20px; 
  right: 15px;
  transform: translateY(-50%); /* Center vertically */
}
.own-goal-sub {
  position: absolute;
  bottom: 70px; 
  right: 20px;
  transform: translateY(-50%); /* Center vertically */
}

.sub-icon {
  position: absolute;
  top: 0; /* Position at the top left */
  right: 15px;
}
.inj-icon {
  position: absolute;
  top: 50px; 
  right: 15px;
}
.injsub-icon {
  position: absolute;
  bottom: 15px; /* Position at the top left */
  left: 0;
}
.psub {
  bottom: 90px; /* Position at the top left */
  position: absolute;
  color: #09920f;
  font-size: 0.9em;
 
}
.posub{
  bottom: 90px; /* Position at the top left */
  right: 15px;
  position: absolute;
  font-size: 0.9em;
  color: #d32f2f;
 
}
/* Update the period-event style to remove background-color */
.period-event {
  grid-column: 1 / -1;
  text-align: center;
  padding: 8px 16px;
  margin: 10px auto;
  width: 80%;
  font-weight: bold;
}
.period-event-border {
  border-bottom: 2px solid #494949;
}
.stats-section {
  margin-bottom: 30px;
}
.fanteam{
  font-size: 14px;
  align-items: flex-start;
}

.player-list-item img {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}
.fanselected {
  color: var(--text-color);
  font-size: 0.9em;
}
.fanplayer {
  flex: 2;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fanprice {
  flex: 1;
  color: var(--text-color);
  text-align: center;
  font-weight: bold;
}

.fanstats {
  flex: 1;
  text-align: right;
  color: var(--text-color);
}
.Playerpool{
  display: flex; 
  padding: 8px;
   font-weight: bold; 
   background-color: var(--background-color); 
   color: var(--text-color);
}

.squad-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* background-image: url("../images/pitchc.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat; */
  max-width: 800px;
  margin: auto;
}
.squad-row {
  display: flex;
}
.squad-grid { display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr); max-width: 800px; margin: auto; }


.slot {
  padding: 10px;
  text-align: center;
  width: 80px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border-radius: 10px;
  color: #f5f5f5;
  /* background: #08fd0c;
  box-shadow: inset 24px 24px 48px #06b409,
              inset -24px -24px 48px #0aff0f; */
}
.see-all-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.see-all-btn:hover {
  background-color: #45a049;
}

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


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

.stats-modal-close:hover {
  color: black;
}

.stat-card {
  border-radius: 8px;
  box-shadow: 0 7px 8px rgba(48, 48, 48, 0.6);
  padding: 20px;
}

.captain-label {
  font-size: 14px;
  font-weight: bold;
  color: red;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Dimmed background */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}




/* .top-entries {
  margin-bottom: 15px;
}

.entry {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.entry:last-child {
  border-bottom: none;
} */
/* .rank {
  font-weight: bold;
  width: 30px;
  color: #666;
} */

.entry-details {
  display: flex;
  margin-left: 20px;
  justify-content: space-between;
  align-items: center;
  bottom: 20px;
  position: relative;
}

.player-name {
  display: block;
}

.player-name {
  font-weight: 500;
}

/* .team-name {
  font-size: 12px;
  color: #666;
} */

.table-wrapper{
  width: auto;
}
@media (max-width: 800px) {
  .cell.team-name {
    min-width: 0; /* allow truncation inside flex/grid */
    overflow: hidden;
}

.truncate {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

}


@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .timeline-row {
    display: block;
    margin: 10px 0;
  }

  .timeline-home, 
  .timeline-away {
    width: 100%;
  }

  .event-item {
    max-width: 100%;
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 15px;
  }

  /* Home events */
  .home-event {
    align-self: flex-start;
    flex-direction: row;
    justify-content: flex-start;
    padding-right: 20px;
  }

  .home-event .timeline-time {
    order: 1;
    margin-right: 10px;
  }

  .home-event .event-content {
    order: 2;
  }

  /* Away events */
  .away-event {
    align-self: flex-end;
    flex-direction: row;
    justify-content: flex-end;
    padding-left: 20px;
  }

  .away-event .event-content {
    order: 1;
    text-align: right;
  }

  .away-event .timeline-time {
    order: 2;
    margin-left: 10px;
  }

  .timeline-time {
    min-width: 45px;
    padding: 5px;
  }

  .event-content {
    flex: 1;
  }

  /* Add some visual separation between events */
  .event-item + .event-item {
    margin-top: 10px;
  }
  .team-sections {
    grid-template-columns: 1fr;
  }
  /* .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  } */
  .period-event {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    width: 90%;
    max-width: none;
    margin: 10px 0;
  }
  .match-container {
    flex-direction: column; /* Stack teams vertically */
    align-items: center; /* Center teams */
  }


  .XI-container {
    background-size: cover;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 1250px;
    margin: 5px;
  }   
  .LXIH, .LXIA{
    color: var(--text-color);
    margin: 10px;
    font-size: 15px;
  }
  .slot {

    width: 50px;
    height: 80px;

  }
  .LXIA{
    margin-bottom: 0;
  }
  .team-container {
    flex-direction: column;
    align-items: center;
  }
  .home-direction {
    display: flex;
    flex-direction: row !important;
    gap: 20px;
    top: 0;
    width: 90%;
    left: -5px;
    height: 100%;
    padding: 0;
  }

  .slot{
    font-size: 10px;
  }
  .home-event .goal-details {
    align-items: flex-start;
  }
  .away-direction {
    display: flex;
    flex-direction: row !important;
    gap: 20px;
    top: 0;
    width: 90%;
    height: 100%;
    padding: 0;
  }
  .team {
    position: relative;
    width: 100%; 
    padding: 0;
  }

  .XI-grid {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    left: 0;
  }
  .league-table, .form-table {
    width: 340px ;
  }
  .league-table th, .form-table th{
    font-size: 15px;
  }
  .league-table th, .league-table td, .form-table th, .form-table td{
    font-size: 15px;
  }
  .XI-row {
    display: flex;
    flex-direction: row-reverse !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .XI-row[data-players="3"] {
    justify-content: space-between;
    padding: 0 40px;
  }

  .XI-row[data-players="4"] {
    justify-content: space-between;
    padding: 0 20px;
  }

  .XI-row[data-players="2"] {
    justify-content: space-around;
    padding: 0 60px;
  }
  .players {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    height: 100%;
    width: 100%;
    margin: 0;
    gap: 10px;
  }

.minute-group {
    grid-template-columns: 1fr 40px 1fr;
}


  main {
    margin-left: 10px;
  }
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
  }
  .htpi-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  .pagination {
    display: grid;
    justify-content: flex-end;
  }
  .page {
    margin-bottom: 20px;
  }
  .search-form {
    width: 300px;
  }
  .player-search {
    margin-top: 10px;
    border-radius: 8px;
  }
  .hhtp,
  .thtp {
    width: 250px;
    margin-right: 10px;
  }

  .fixture-container {
    left: 10px;
    width: 350px;
  }
  .burger {
    position: relative;
    width: 25px;
    height: 20px;
  }
  .burger-menu {
    display: block;
  }

  .horizontal-menu {
    display: none;
  }

  .burger input:checked ~ span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 3px;
  }

  .burger input:checked ~ span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
  }

  .burger input:checked ~ span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 18px;
    left: 3px;
  }
  .dropdown-menu {
    width: 280px;
    height: 500px;
  }

  .pl {
    margin-left: 30px;
  }
  .players a {
    padding: 2px;
    font-size: 13px;
  }
  #position_sort {
    margin-left: 0;
  }
  .custom-select {
    margin-right: 40px;
  }
  .trade-container {
    margin-top: 20px;
    width: 100%;
  }
  .trade-header {
    flex-direction: column; /* Stacks the header items vertically */
    align-items: flex-start; /* Align to the left */
    width: 100%; /* Make it full width */
  }
  .trade-header h2:nth-child(2) {
    display: none; /* Hides the second h2 element (Purchase Stock) */
  }
  .trade-content {
    flex-direction: column; /* Stacks the items vertically */
    align-items: center; /* Centers the items */
  }
  .trade-header h2 {
    margin-bottom: 10px; /* Adds space between the headers */
  }
  .purchase-stock-header {
    display: block;
  }
  #buy-form {
    width: 100%; /* Takes full width of the container on smaller screens */
    max-width: 100%; /* Removes the max-width constraint */
  }
  #stock-graph {
    width: 600px;
  }
  .sc {
    display: block;
    margin: 5px 0;
  }
  .socialContainer {
    margin-bottom: 25px;
  }
  .footer-links {
    margin-right: 40px;
  }
  .wide-layout .header,
  .wide-layout .header,
  .wide-layout .footer,
  .wide-layout .playerdetail-kit {
    width: 800px;
  }

  .wide-layout .logo-container,
  .row {
    width: 50%;
  }
  .htpi {
    width: 200px;
  }
  .htpl {
    width: 250px;
  }

  /* Adjust formation layout for vertical display */
  .formation-grid {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
  }

  .formation-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin: 5px 0;
    width: 100%;
  }

  .lineup-slot {
    width: 70px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .kit-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  .player-name {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
  }
  .formation-line-5-2 {
    gap: 30px !important;
    left: 10px;
  }

}
.player-events {
  position: relative;
  display: flex;
  justify-content: space-between; /* Space events evenly */
  width: 100%; /* Full width to align events */
  margin-top: 5px; /* Space between player name and events */
}


@media (max-width: 450px) {
  .league-table, .form-table {
    width: 300px ;
  }
  .league-table th, .form-table th{
    font-size: 11px;
  }
  .league-table th, .league-table td, .form-table th, .form-table td{
    font-size: 11px;
  }
}
@media (max-width: 380px) {
  .league-table, .form-table {
    width: 300px ;
  }
  .league-table th, .form-table th{
    font-size: 8px;
  }
  .league-table th, .league-table td, .form-table th, .form-table td{
    font-size: 8px;
  }
  .slot{
    width: 50px;
  }
}

/* Fixture Cards */
.next-fixtures {
  margin-top: 15px;
}

.next-fixtures h4 {
  margin-bottom: 10px;
  color: var(--text-color);
}

#fixture-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.fixture-card {
  background: var(--modal-bg);
  border: 1px solid var(--playercard-border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 100px;
  flex-shrink: 0;
}

.fixture-card .gameweek {
  text-align: center;
  font-weight: bold;
  color: var(--text-color);
}

.fixture-card .team-kit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fixture-card .team-kit img {
  width: 30px;
  height: 30px;
}

.fixture-card .opponent-info {
  text-align: center;
}

.fixture-card .opponent-info .opponent {
  color: var(--text-color);
  font-size: 0.9em;
}

.fixture-card .opponent-info .venue {
  color: var(--text-color);
  font-size: 0.9em;
}

.goal-svg {
  position: absolute;

  pointer-events: none;
  transform-origin: center;
}

/* Mobile layout - vertical display */
.home-direction .goal-frame {
  transform:translateX(-50%)  rotate(0deg);
}

.away-direction .goal-frame {
 transform: translateY(695%) translateX(-50%) rotate(180deg);
}

/* Desktop layout - horizontal display */
@media screen and (min-width: 768px) {
  .goal-svg {
    position: absolute;
  }
  .LXIA{
    position: relative;
    display: flex;
    bottom: 30px;
    right: 10px;
    justify-content: flex-end;
    margin: 0;
  }
  .LXIH{
    position: relative;
    top: 50px;
    left: 30px;
    display: flex;
    justify-content: flex-start;
    margin: 0;
  }
  .home-direction .goal-svg {
    transform: rotate(270deg) translateY(38%) ;

  }
  .away-direction .goal-frame {
 transform:  translateX(-50%) ;
}
  .away-direction .goal-svg {
    transform: rotate(90deg) translateY(38%);
    right: 0;
  }
  
  .XI-grid {
    gap: 35px;
  }

  .center {
    position: relative;
    height: calc(100% - 2px);
    width: 0px !important;
  }
}

.center {
  position: relative;
  width: calc(100% - 2px); /* Subtract 2px to prevent border overflow */
  transform: rotate(0deg);
  position: relative;
  width: 100%;
  border: 1px solid #f6f6f6;
  margin: auto;
}
.center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid #f4f4f4;
  border-radius: 50%;
  background: transparent;
}

.center::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #f4f4f4;
  border-radius: 50%;
}

.fixtures-container {
  display: none; /* Hidden by default for mobile */
  width: 300px;
  margin-left: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fixtures-container h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.2em;
}

.fixture-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fixture-item:last-child {
  border-bottom: none;
}

.fixture-score {
  font-weight: bold;
  color: #333;
}

.fixture-live {
  color: #28a745;
  font-weight: bold;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Media query for larger screens */
@media screen and (min-width: 1200px) {
  .XI-container {
    margin-right: 320px; /* Make space for fixtures */
  }
  
  .fixtures-container {
    display: block;
    position: fixed;
    right: 20px;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

