/* General Styling */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;

  background-image: url('./images'); /* Adjust the background image path */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Content Layout */
.content {
  display: block;
  position: relative;
  justify-content: space-between;
  max-width: 1300px;
  margin: 20px auto;
  height: auto;
  color: black;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border-collapse: collapse;
  padding: 20px;
}
/* Content Layout */
.contentwhite {
  display: block;
  position: relative;
  justify-content: space-between;
  max-width: 1300px;
  margin: 20px auto;
  height: auto;
  color: black;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border-collapse: collapse;
  padding: 20px;
}



.tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.tabs button {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #888888;
}

.tab.active {
  color: #0048AB;
}

.tabs button:hover {
  text-decoration: underline;
}

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}


.filters-left {
  display: flex;
  gap: 10px;
}

.filters-left select {
  appearance: none; /* Removes default styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white; /* Ensures the background is visible */
  padding: 10px;
  padding-right: 30px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  min-width: 150px;
  color: black;
  font-weight: bold;
  text-align: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='grey'><path d='M7 10l5 5 5-5H7z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.filters-left select:focus {
  color: #0048AB;
  background-color: #ECECEC;
  outline: none;
}

/* Change text color of options */
.filters-left select option {
  color: black;
  font-weight: bold;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 30px;
}

.styled-table tbody tr:hover {
  background-color: #ECECEC;
  transition: background-color 0.3s ease-in-out;
}


.styled-table thead th{
  color: #888888;
}

.styled-table th {
  padding: 10px;
  border: none;
  border-bottom: 1px solid #d5d5d5;
  font-size: 12px;
  cursor: pointer;
}

.highlighted-column {
  background-color: #ECECEC;
}

#hitting .styled-table td:nth-child(2),
#hitting .styled-table td:nth-child(4),
#hitting .styled-table td:nth-child(11),
#hitting .styled-table td:nth-child(16){
  padding-right: 10px;
  border-right: 1px solid #d5d5d5;
}

#pitching .styled-table td:nth-child(3),
#pitching .styled-table td:nth-child(9),
#pitching .styled-table td:nth-child(15){
  padding-right: 10px;
  border-right: 1px solid #d5d5d5;
}

.styled-table td {
  padding: 20px;
  border: none;
  text-align: center;
}

.styled-table td:nth-child(1){
  text-align: left;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-cell a{
  color: #1D1D1D;
  text-decoration: none;
}

.player-cell a:hover {
  color: #0048AB;
}

.player-cell-position {
  color: #666666;
  font-size: 12px;
}

.player-cell-counter,
.player-cell-position {
  color: #666666;
  font-size: 12px;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {

  .content {
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
  }
  .filters-left {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .filters-left select {
    width: 100%;
  }

  .styled-table {
    width: 100%;
    display: block;
    overflow-x: auto;
  }

  .styled-table th,
  .styled-table td {
    font-size: 12px;
    padding: 8px;
  }

  .player-cell {
    flex-direction: column;
    align-items: flex-start;
  }
}