#current-characters, #select-characters {
  display: grid;
  grid-template-columns: repeat(10, 1fr); /* 10 equal flexible columns */
  gap: 10px;
}

#current-characters > div, #select-characters > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

#current-characters img{
  width: 70%;      /* scale to fit cell */
  max-width: 70px; /* prevent it from growing too big */
  height: auto;     /* keep aspect ratio */
  display: block;
  border: 2px solid green;
  border-radius: 5px;
}
#select-characters  img{
  width: 100%;      /* scale to fit cell */
  max-width: 100px; /* prevent it from growing too big */
  height: auto;     /* keep aspect ratio */
  display: block;
}

#select-characters .selected {
  position: relative;
  border: 3px solid #4CAF50;
  border-radius: 8px;
  background-color: rgba(76, 175, 80, 0.2);
}

#select-characters .selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

#select-characters > div {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 2px solid transparent;
}

#select-characters > div:hover {
  border-color: #2196F3;
  transform: scale(1.05);
}

#addchars{
  text-align: center;
  width: 410px;
  margin: auto;
  margin-top: 30px;
  background: green;
  display: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

#addchars span{
  font-weight: bold;
}

#charnote{
  text-align: center;
  font-size: 12px;
  color: orangered;
  display: none;
  padding: 10px 0px;
}

ul#menu-menu-left li.menu-item-2438 a, ul#menu-menu-left li.menu-item-2218 a, ul#menu-menu-left li.menu-item-2399 a{
    color: #999;
}