body {
    font-family: Arial, sans-serif;
    background-color : #F9FAFB;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 24px;
    padding-top: 25px;
    padding-bottom: 25px;
    color: white;
    background-color: #0047AB;
    border-radius: 10px;
}

#options-column, #teams-section {
    max-height: 80vh;
    overflow: auto;
    padding: 20px;
     border: 3px solid #1E3A8A;
    background-color: #FFFFFF;
    border-radius: 10px;
}

#ranking-selection, #speed-selection {
    margin-top : 40px;
}

#round-selection {
    margin-top : 20px;
}

button {
    margin: 5px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #F9FAFB;
    box-sizing: border-box;
    border: 1px solid #D4D4D4;
    border-radius : 10px;
}

.round-btn {
    text-align: center;
}


button:hover {
    box-shadow: inset 0 0 0 1px #0047AB;
}

#start-button , #pause-button {
    text-align: center;
    margin-top: 30px;
    justify-content: center;
    width : 125px; /* Ensures all buttons are the same width */
    color:white;
    background-color: #0047AB;
}

#enter-draft-btn {
    text-align: center;
    margin-top: 30px;
    justify-content: center;
    color:white;
    background-color: #0047AB;
}

#enter-draft-btn:disabled, #start-button:disabled , #pause-button:disabled, .draft-btn:disabled {
    opacity: 0.5;        /* fades the button */
}

.ranking-btn {
    width: 110px; /* Ensures all buttons are the same width */
}

.speed-btn {
    width: 110px; /* Ensures all buttons are the same width */
}

.prospect-image {
    width: 50px;  /* Adjust the width as needed */
    height: 50px; /* Maintain the aspect ratio */
}



.team-image {
    width: 50px;  /* Adjust the width as needed */
    height: 50px; /* Maintain the aspect ratio */
}

.prospect-info {
    flex-direction: column;
}

.prospect-info .prospect-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px; /* Space between name and details */
    text-align: left; /* Aligns the name to the left */
}

.prospect-details {
    display: flex;
    gap: 10px; /* Space between position and college */
}

.prospect-info .prospect-position,
.prospect-info .prospect-college {
    font-size: 14px;
    display: inline-block;
}

.prospect-info-draft-board {
    flex-direction: column;
}

.prospect-info-draft-board .prospect-name-draft-board {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px; /* Space between name and details */
    text-align: left; /* Aligns the name to the left */
}

.prospect-details-draft-board {
    display: flex;
    gap: 10px; /* Space between position and college */
}

.prospect-info-draft-board .prospect-position-draft-board,
.prospect-info-draft-board .prospect-college-draft-board {
    font-size: 14px;
    display: inline-block;
}



#teams {
    margin : 5px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 8 columns */
    gap: 5px; /* Space between columns */
    justify-items: center;
    margin-top: 10px;
}

.team-btn {
    display: grid;
    grid-template-columns: 1fr auto; /* Text takes space, image as small as possible */
    align-items: center;
    width: 100%;             /* Fill container by default */
    max-width: 150px;        /* Prevent being too wide on desktop */
    min-height: 50px;        /* Allow height to expand if needed */
    height: 50px;
    font-size: 16px;
    font-weight: bold;
    padding: 0 4px; /* Reduce overall padding */
    cursor: pointer;
    background-color: #F9FAFB;
}

.team-btn span {
    justify-self: start;
    text-align: left;
    padding-left: 10px; /* Space between text and image */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.team-btn img {
    justify-self: end;
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin: 0; /* Make sure there’s no margin */
    padding-left: 20px; /* Space between text and image */
}

#select-all-teams-btn {
    justify-self: center; /* Centers it horizontally in the grid */
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
}

/* Draft Board Table */
#draft-board-table th:nth-child(1),
#draft-board-table td:nth-child(1) {
    width: 5px;  /* Pick number column */
}

#draft-board-table th:nth-child(2),
#draft-board-table td:nth-child(2) {
    width: 25px;  /* Team logo column */
}

#draft-board-table th:nth-child(3),
#draft-board-table td:nth-child(3) {
    width: 400px; /* Player name column */
}

#draft-board-table th:nth-child(4),
#draft-board-table td:nth-child(4) {
    width: 100px; /* Position column */
}

#draft-board-table th:nth-child(5),
#draft-board-table td:nth-child(5) {
    width: 100px; /* College column */
}

/* Available Prospects Table */
#available-prospects-table th:nth-child(1),
#available-prospects-table td:nth-child(1),
#team-picks-table th:nth-child(1),
#team-picks-table td:nth-child(1) {
    width: 25px;  /* Pick number column */
}

#available-prospects-table th:nth-child(2),
#available-prospects-table td:nth-child(2),
#team-picks-table th:nth-child(2),
#team-picks-table td:nth-child(2) {
    width: 60px;  /* Logo column */
}

#available-prospects-table th:nth-child(3),
#available-prospects-table td:nth-child(3),
#team-picks-table th:nth-child(3),
#team-picks-table td:nth-child(3) {
    width: 500px; /* Player name column */
}

#available-prospects-table th:nth-child(4),
#available-prospects-table td:nth-child(4) {
    width: 100px; /* Position column */
}

#available-prospects-table th:nth-child(5){
    width: 100px; /* Action button column */
}


.tables-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.5fr 1.5fr;
    gap: 20px;
    margin-top: 20px;
    margin-left : 50px;
    margin-right : 50px;
    padding-right: 10px;
    padding-left: 10px;
}

.start-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-left : 50px;
    margin-right : 50px;
        padding-right: 10px;
    padding-left: 10px;
}

@media (max-width: 1024px) {
  .tables-grid,
  .start-page-grid {
    grid-template-columns: 1fr; /* stack in one column */
    justify-items: center;
  }

  #options-column,
  #teams-section {
    max-height: none; /* let them expand naturally */
    width: 100%;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  h1 {
    font-size: 24px;
    padding: 15px 10px;
  }

  .team-btn {
    width: 100%; /* take full width on small screens */
    font-size: 14px;
    height: auto;
    padding: 10px;
  }

  .team-btn img {
    width: 30px;
    height: 30px;
  }

  .team-btn span {
    padding-left: 4px;
  }

  .tables-grid,
  .start-page-grid {
    grid-template-columns: 1fr; /* force stacking */
    gap: 5px;
    margin-left : 15px;
    margin-right : 15px;
  }

  .scrollable-table {
    max-height: 400px; /* shorter scroll for mobile */
  }
}

.scrollable-table {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden; /* Optional: disables horizontal scroll */
    scrollbar-width: none;
    background-color: white;
    table-layout: auto;
    border-radius: 0 0 10px 10px; /* Rounded corners for the bottom */
}

table {
    table-layout: fixed;
    border-collapse: collapse;
}

.table-container {
    display: flex;
    flex-direction: column;
    max-height: 600px;
    border-radius: 10px;
    border : 3px solid #1E3A8A;
}


.table-header {
    background-color: #f9f9f9;
    color: black;
    padding: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
    border-radius: 10px 10px 0 0; /* Rounded corners for the top */
    text-align: center;
}

th, td {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.draft-btn {
    color: white;
    background-color: #0047AB;
}

#options-column {
    flex-direction: column;
}

.dropdown-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: white;
  color: black;
  min-width: 300px;
  padding: 10px 16px;
  font-size: 16px;
  border: 1px solid black;
  cursor: pointer;
}

.dropdown-content {
    max-height: 400px;
    overflow-y: auto;    /* Enables vertical scrolling */
    scrollbar-width: none;
    overflow-x: hidden;  /* Optional: disables horizontal scroll */
    display: none;
    position: absolute;
    background-color: white;
    min-width: 300px;
    z-index: 1;
    left: 5px; /* Adjust as needed */
    border: 1px solid black;
}

.dropdown-content a {
  color: black;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
    border-bottom: 1px solid #ccc;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropbtn::after {
    content: "▾";
    font-size: 14px;
    margin-left: 8px;
}

.dropdown-disabled {
  pointer-events: none;
  opacity: 0.4;
  cursor: not-allowed;
}


.tab-box {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    flex-grow: 1; /* Allow it to grow and fill the space */
}


.team-trades-section {
    display: flex;
    flex-direction: column;
    margin: 20px;
}

.section-title {
    font-weight: bold;
    font-size: 18px;
    margin-top : 20px;
    margin-bottom: 10px;
}

.picks-row-label {
    font-weight: bold;
    margin-top: 10px;
}

.picks-row {
    display: flex;
    flex-wrap: wrap; /* Wrap to next line if too many picks */
    gap: 6px;
    padding: 8px 0;
    margin-top: 10px;
    border-top: 1px solid black; /* Optional bottom border for clarity */
}

.team-pick-btn {
    margin: 4px 0;
    padding: 4px 8px;
    min-width: 50px; /* Ensures all buttons are the same width */
    min-height: 40px;
}

.trade-button-section {
    display: flex;
    margin-top : auto;
    justify-content: center;
    padding-top: 10px;
}

.propose-trade-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}


.start-pause-section {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    gap : 20px;
    margin-top: -50px;
}

.tab-content {
    display: none;
}

.tab-content.active-tab {
    display: block;
}

#user-team-section {
    flex: 1;
}

#other-team-section {
    flex: 1;
}

.table-container {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tabs-header {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Add this to hide square corners of children */
}

.tab-btn {
    flex: 1;
    margin: 0;
    padding: 12px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    border: none;
    border-right: 1px solid #ccc;
    box-sizing: border-box;
}

.tab-btn:last-child {
    border-right: none; /* removes border from last button */
}

.tab-btn.active[data-tab="needs-tab"] {
    background-color: #eaeaea;
    border-bottom: 3px solid #007bff; /* optional indicator for active tab */
}

.nested-tabs-header {
    display: flex;
    width: 50%;
    float : right;
    margin:0;
    padding: 0;
    border-bottom: 1px solid #ccc; /* optional bottom border for clarity */
}

.nested-tab-btn {
    flex: 1;
    margin: 0;
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    border: none;
    border-right: 1px solid #ccc;
    box-sizing: border-box;
}

.nested-tab-btn:last-child {
    border-right: none; /* removes border from last button */
}

.nested-tab-btn.active {
    background-color: #eaeaea;
    border-bottom: 3px solid #007bff; /* optional indicator for active tab */
}

.nested-tab-content {
    display: none;
}

.nested-tab-content.active-nested-tab {
    display: block;
}

.needs-section {
    display: flex;
    flex-direction: column;
    margin: 10px;
    justify-content: center;
}

.needs-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.needs-row-label {
    font-weight: bold;
}

.needs-list {
    font-size : 14px;
}

.select-all-teams-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.enter-draft-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dropdown-image {
    width: 20px;  /* Adjust the width as needed */
    height: 20px; /* Maintain the aspect ratio */
}

.team-trade-section {
    display: flex;
    flex-direction: column;
    /* no justify-content */
    min-height: 425px;
    width: 90%;
    margin: 0 auto;
}


.user-team-pick-btn, .other-team-pick-btn {
    min-width: 50px; /* Ensures all buttons are the same width */
}

.team-needs-tab {
    min-height : 500px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 20px 30px;
  text-align: center;
  min-width: 300px;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content.success {
  border: 3px solid #28a745;
}

.modal-content.error {
  border: 3px solid #dc3545;
}

.modal-content button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.modal-content button:hover {
  background-color: #0056b3;
}

.player-modal-content {
  background: white;
  border-radius: 10px;
  padding: 20px;
  border : 2px solid black;
    width : 600px;
}

.modal-top {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left and right halves */
  margin-bottom: 20px;
}

.modal-logo-container {
  /* team logo on left side */
  display: flex;
  align-items: center;
}

.modal-logo-container img {
  width: 300px;
  height: 210px;
}

.modal-name-logo-container {
    display: flex;
    flex-direction: column;
    width: 100%; /* fill right half */
}

.modal-name-container {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.modal-attributes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.attr-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    column-gap: 20px; /* space between columns */
    width: 100%;
    text-align: center;
}

.attr-row label {
  font-size: 16px;
  color: #555;
  display: block;
  justify-self: center;  /* Centers the element itself in the grid cell */
}

.attr-row div {
  font-size: 18px;
  font-weight: 500;
  justify-self: center;  /* Centers the element itself in the grid cell */
}

.modal-header {
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  color: black;
  cursor: pointer;
  font-size: 20px; /* Adjust this as needed */
  align-self: flex-end; /* Only applies if in a flex container */
}

.top {
    text-align: center;
    margin: 0px;
    color : #141619
}

@media (max-width: 1024px) {
  .modal-logo-container img {
    max-width: 100%;    /* don’t overflow container */
    height: auto;       /* preserve aspect ratio */
    object-fit: contain; /* prevent distortion */
  }

  .modal-logo-container {
    justify-content: center; /* center logo inside its grid cell */
  }

  .player-modal-content {
    width: 95%;
    padding: 12px;
  }
}

@media (max-width: 600px) {
  .modal-logo-container img {
    max-width: 90%;
    height: auto;
  }

  .modal-logo-container {
    justify-content: center;
  }

  .player-modal-content {
    width: 90%;
    padding: 10px;
  }
}







