

.portfolio-team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }
  
  .gameweek-deadline {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
  }
  
  #countdown-timer {
    font-weight: bold;
    font-size: 18px;
    color: #ff0000;
  }

  .player-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
  }
  
  .player-info p {
    margin: 8px 0;
    font-size: 0.9rem;
  }
  
  .player-info span.up {
    color: green;
  }
  
  .player-info span.down {
    color: red;
  }

  .team-selection {
    margin: 20px;
    text-align: center;
}

.player-selection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
}

.player-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: 150px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 10px;
}
.player-card:hover {
  /* background-color: #e3e3e3; 
    border-color: #918c8c;  */
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}
 
.player-card img {
    border-radius: 50%;
}

.btn-primary {
    margin-bottom: 10px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    width: 100px;
    display: flex;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

#messageContainer {
  margin-top: 10px;
  padding: 10px;
  font-weight: bold;
}

.hidden {
  display: none;
}

  .action-buttons {
    margin: 10px 0;
  }
  
  .action-buttons button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
  }
  
  .action-buttons button:hover {
    background-color: #0056b3;
  }
  .green {
    color: #1fbd2d;
}

.red {
    color: #ff0000;
}
 
.gray {
    color: #888;
}

.five-a-side-team {
  text-align: center;
  margin: 20px;
}

.formation-dropdown {
  margin-bottom: 20px;
}
.slots-container{
  display: flex;
  justify-content: center;
  align-items: center;
}
.slots {
  justify-content: center;
  width: 650px;
  display: grid;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

#player-grid {
  display: grid;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.player-row {
  display: flex;
  justify-content: center; /* Center align the row */
  gap: 20px;
}

.player-slot {
  flex: 1; /* Ensure all slots have the same size */
  max-width: 200px; /* Optional: Define a max width for slots */
  height: 330px;
  border: 2px solid #ddd;
  border-radius: 10px;
  text-align: center;
}
.player-slot.dragging {
  opacity: 0.5;
  background-color: #1fbd2d;
  border: 2px dashed #888;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.player-slot.highlight {
  background-color: #e6f7ff; /* Light blue background */
  border: 2px dashed #1f78d1; /* Optional dashed border */
  transition: background-color 0.2s ease;
}
.player-slot.drag-over {
  background-color: #e0e0e0; /* Light grey to highlight when dragged over */
}
.player-slot img {
  width: 50%;
}

.player-slot .lock-indicator svg {
  width: 30px;
  margin-right: 5px;
  margin-top: 5px;
}
.lock-indicator{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.trade-form input,
#buy-form input {
  width: 120px;
  height: 25px;
  margin-bottom: 5px;
  font-size: 12px;
  border-radius: 8px;
  padding: 3px; /* Reduce padding */
}

.trade-form button,
#buy-form button {
    font-size: 12px;
    padding: 4px 8px;
}

.slot-content p {
  margin: 5px 0;
}

.add-player-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}


.add-player-link:hover {
  text-decoration: underline;
}

.save-team-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.lock-message-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lock-message-popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.lock-message-popup button {
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.lock-message-popup button:hover {
  background-color: #0056b3;
}

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

#fixtures-list ul {
  font-weight: bold;
  border: #333;
  list-style-type: none;
  padding: 0;
}
ul {
  list-style-type: none; 
}
#fixtures-list li {
  margin-bottom: 10px; /* Optional: Adds space between list items */
}
/* Center the fixtures list */
.fixtures-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  max-width: 800px;
  text-align: center;
}

/* Style the gameweek title */
.gameweek-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #333;
}

/* Style the fixture date */
.fixture-date {
  font-size: 1.2em;
  margin: 10px 0;
  color: #000000;
}

/* Style the fixture list */
.fixture-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Style each fixture item */
.fixture-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  font-size: 1em;
  color: #000000;
}
.fixture-item img {
  width:50px;
 height: 50px;
}
/* Add a border around the kickoff time */
.kickoff-time {
  border-top: 2px solid #ff0000; /* Top border: orange */
  border-right: 2px solid #28a745; /* Right border: blue */
  border-bottom: 2px solid #28a745; /* Bottom border: blue */
  border-left: 2px solid #ff0000; /* Left border: orange */
  padding: 5px 10px;
  flex: 0 0 100px; 
  border-radius: 5px;
  background-color: #f9f9f9;
  width: 60px;
  margin: 0 16px;
  color: #000000;
}
.scoreline {
  border-top: 2px solid #ff0000; /* Top border: orange */
  border-right: 2px solid #28a745; /* Right border: blue */
  border-bottom: 2px solid #28a745; /* Bottom border: blue */
  border-left: 2px solid #ff0000; /* Left border: orange */
  padding: 5px 10px;
  flex: 0 0 100px; 
  width: 60px;
  margin: 0 16px;
  border-radius: 5px;
  background-color: #f9f9f9;
  color: #000000;
}

.home-team,
.away-team {
  display: flex;
  align-items: center;
  gap: 10px; 
  width: 200px;
}
/* Style team names */
.away-team img {
  margin-left: 0; /* Push away team kits to align vertically */
}

.home-team,
.away-team {
  flex: 1; /* Make home and away teams take equal space */
}

.team-name {
  margin: 0 10px;
  font-weight: bold;
}

/* Add a divider between fixtures */
.fixture-divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 10px 0;
}

/* No fixtures message styling */
.no-fixtures {
  font-size: 1.2em;
  color: #888;
}
.stockChart{
  width: 400px;
  height: 250px;
}

@media (max-width: 768px) {

  .fixture-list{
    width: 350px;
  }
  .fixture-item{
    width: 350px;
  }
  .home-team, .away-team{
    width: 100px !important;
    gap: 0;
    flex-direction: column; 
  }
  .home-team img,
  .away-team img {
    margin-bottom: 5px; /* Space between image and name */
  }
  .gameweek-title{
    font-size: 1.6em;
  }
  .scoreline,.kickoff-time{
    margin: 0 12px;
  }
  .player-card{
    display: flex;
    width: 150px;
    margin-right: 10px;
   }
   .btn-primary{
    width: 50px;
  }
}