.control {
  position: relative;
  border: 1px solid #ccc;
  padding: 5px 10px;
  margin-right: 10px;
  background-color: white;
  max-height: 300px;
  overflow-y: auto;
  flex-grow: 1;
}

.dirCtrl {
}

input[type="range"] {
  margin-bottom: -3px;
  margin-left: 5px;
  margin-right: 5px;
}

.main-grid {
  height: 85vh;
}

.ag-cell {
  overflow-x: hidden;
  overflow-y: hidden;
}

.images {
  display: flex;
}

.image {
  text-align: center;
  position: relative;
  max-height: 30px;
}

.image img {
  padding: 5px;
  max-width: 100%;
  max-height: 100%;
}

.overlay {
  position: absolute;
  z-index: 10;
}

.caption {
  font-size: 0.8em;
}

canvas#scoreCanvas {
  width: 100%;
}

.sort-rows {
  font-size: 0.7em;
  margin-top: 5px;
}

.randomBtn {
  position: absolute;
  right: 13px;
}

.pairs {
  display: flex;
  flex-wrap: wrap;
}

.pairs > div {
  border: 1px solid gray;
  padding: 5px;
  margin-right: 15px;
  margin-bottom: 5px;
  text-align: center;
}

.search-msg {
  white-space: pre;
  font-family: monospace;
  margin-top: 2em;
}

.icon {
  margin-right: 7px;
  margin-bottom: -3px;
  display: inline-block;
  max-height: 20px;
}

.name-field span {
  margin-right: 7px;
}

.recipe-image {
  width: 40px;
  height: 30px;
  margin-right: 7px;
  display: inline-block;
  margin-bottom: -10px;
  object-fit: cover;
}

.flags {
    display: inline-block;
}

.search-preset {
  margin-left: 10px;
}

.icon-overlay {
}

.icon-overlay span {
}

/* labelrows is container for label rows, each of which is horizontal, i.e., stacked vertically */
.labelrows {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: 10px;
  padding: 5px;
  border: 1px solid gray;
}

.label-row > div {
  margin-right: 10px;
}

.label-row > div > img {
  margin-right: 5px;
}

.label-col {
  display: flex;
  flex-direction: column;
}

.pager {
  display: flex;
  justify-content: center;
  margin: 5px 0;
  align-items: flex-end;
}

.pager > * {
  margin: 0 2px;
}


/* we want this to have rounded corners and some padding */
.toggle-pill {
  border-radius: 20px;
  border: 1px solid lightgray;
  padding: 5px 10px;
  margin-bottom: 5px;
}

.toggle-pill.pos {
  background-color: aquamarine;
}

.toggle-pill button {
  margin-right: 5px;
}
