/* Main flex container to hold the two columns */
.level-container {
  display: flex;
  width: 650px;
  border: 1px solid #8FBC8F; /* Dark Sea Green border */
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* Styling for each of the two grid columns */
.level-column-grid {
  display: grid;
  flex: 1; /* Each column takes up half the space */
  /* Defines 3 columns: Livello, Icona, Punti */
  grid-template-columns: 50px 60px 1fr;
  grid-auto-rows: 50px; /* <<<< THIS IS THE NEW LINE TO FORCE ROW HEIGHT */
  background-color: #F0FFF0; /* Honeydew background */
}

/* Create the thick vertical separator */
.level-column-grid:first-child {
  border-right: 2px solid #8FBC8F;
}

/* Styling for every cell in both grids */
.level-column-grid > div {
  padding: 8px;
  display: flex;
  align-items: center; /* This existing rule will vertically center the content */
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid #8FBC8F;
  border-right: 1px solid #8FBC8F;
}

/* Remove the right border from the last cell in each row */
.level-column-grid > div:nth-child(3n) {
  border-right: none;
}

/* Header cell styling */
.grid-header {
  font-weight: bold;
  background-color: #E0EEE0; /* Lighter green/gray for header */
  border-bottom: 2px solid #8FBC8F !important;
}

/* Remove bottom border from the very last row of cells */
.level-column-grid > div:nth-last-child(-n+3) {
  border-bottom: none;
}

.level-column-grid img {
  max-width: 40px; /* Adjust size as needed */
  max-height: 40px; /* Also a good idea to constrain height */
  display: block;
}