body, #content-container {
  min-height: 100vh;
  min-widgth: 100vw;
}

#content-container {
  width: 100%;
  margin: 16px;
  margin-left: auto;
  margin-right: auto;
}

#main-grid {
  display: grid;
  grid-template-columns: 1fr 75% 1fr;
  grid-template-rows: 1fr 75% 1fr;
  grid-gap: 5px;
}

#gameboard {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background-color: lightgreen;
  z-index: -10000;
}

.flex {
  display: flex;
}

.player-hand {
  position: absolute;
  display: flex;
}

.player-perspective-position-1 {
  top: 0;
  left: 40%;
}

.player-perspective-position-2 {
  right: 0;
  top: 40%;
}

.player-perspective-position-3 {
  bottom: 0;
  left: 40%;
}

.player-perspective-position-4 {
  left: 0;
  top: 40%;
}

#cardslots {
  background-color: grey;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 244px;
  position: relative;
  left: 40%;
  top: 25%;
}

.cardslot {
  min-width: 120px;
  min-height: 160px;
  background-color: white;
}

.card {
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 2fr 1fr;
  grid-gap: 5px;
  background-color: white;
  color: black;
  font-size: 1.5em;
  padding: 10px;
  border-radius: 5%;
  box-shadow: 0px 5px 15px grey;
  max-height: 160px;
}

.card.active {
  box-shadow: 0 5px 15px blue;
}

.card[data-selected="1"], .card.winning {
  box-shadow: 5px 10px 25px red;
  background-color: orange;
}

.hearts, .diamonds {
  color: red;
}

.clubs, .spades {
  color: black;
}

.card-center {
  text-align: center;
  align-self: center;
  font-size: 2em;
}

.card-top-left {
  padding: 0.1em;
}

.card-bottom-right {
  align-self: end;
  transform: rotate(180deg);
}

#final-score-table {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* --- Highscore Table Styles --- */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden; /* Ensures rounded corners apply to content */
}

/* Gradual color change from green to red for the first four rows */
tbody tr:nth-child(1) {
  background-color: #d4edda; /* Light green */
}

tbody tr:nth-child(2) {
  background-color: #fff3cd; /* Slightly yellow-green */
}

tbody tr:nth-child(3) {
  background-color: #fce8d5; /* Orange-ish */
}

tbody tr:nth-child(4) {
  background-color: #f8d7da; /* Light red */
}


tbody tr {
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

tbody tr:hover {
  background-color: #e0e0e0; /* Slightly darker grey on hover */
}

td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dddddd; /* Separator between rows */
  color: #333333;
}

/* Specific styling for the rank column */
td:first-child {
  font-weight: bold;
  width: 10%; /* Adjust as needed */
  text-align: center;
}

/* Specific styling for the player name column */
td:nth-child(2) {
  width: 60%; /* Adjust as needed */
}

/* Specific styling for the scoring points column */
td:nth-child(3) {
  width: 30%; /* Adjust as needed */
  text-align: right; /* Align points to the right */
  font-weight: bold;
  color: #007bff; /* A distinct color for points */
}

/* Remove bottom border for the last row (assuming 4 rows) */
tbody tr:nth-child(4) td {
  border-bottom: none;
}

/* Optional: Add a subtle border to the table itself if desired */
table {
  border: 1px solid #dddddd;
}
