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

.container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #617193;
}

#players-list {
    display: flex;
    flex-direction: column; /* Ensures the list is vertical */
    gap: 10px; /* Adds some space between each player */
}

/* Make the search input full width and more beautiful */
#search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border: 2px solid #617193;
    border-radius: 10px;
    background-color: #ebf1fc;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s, border 0.3s;
}

.player.selected {
    background-color: #617193;
    color: white;
    border-color: #476eb5;
}

.must-play-checkbox {
    margin-left: 10px;
    vertical-align: middle;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #617193;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #617193;
}

#teams-list {
    list-style-type: none;
    padding: 0;
}

#teams-list li {
    background-color: #f4f4f4;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
}

.clear-selection {
    display: block; /* Ensure it is displayed as a block element, so it's below the button */
    margin-top: 10px;
    font-size: 12px;
    color: #007BFF;
    cursor: pointer;
    text-decoration: none; /* Remove underline */
    text-align: center; /* Center the text */
}

/* Hover effect for the text */
.clear-selection:hover {
    color: #0056b3;
}

/* General stats page styling */
#stats-page {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

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

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 18px;
    text-align: left;
}

.styled-table thead tr {
    background-color: #617193;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Updated dropdown style */
.select-container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
}

.select-container select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #f7f7f7;
  border: 2px solid #ccc;
  border-radius: 10px;
  appearance: none; /* Hides the native dropdown arrow */
  cursor: pointer;
  outline: none;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.select-container::after {
  content: '▼'; /* Custom arrow */
  font-size: 12px;
  color: #555;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Disable interaction on the arrow */
  line-height: 0; /* Ensures the arrow is aligned vertically */
}

/* Hover and focus effects */
.select-container select:hover {
  background-color: #e2e2e2;
}

.select-container select:focus {
  border-color: #999;
}

.table-container {
  overflow-x: auto; /* Enable horizontal scrolling */
  width: 100%; /* Make the container take up full width */
}
