.icon-tab-container {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100vw;
  /* height: calc(var(--tab-bar-height)); */
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-sizing: border-box;
  z-index: 999;
  background: transparent;
  overflow: hidden;
}

.icon-cell:nth-child(1) {
    flex: 0 0 calc(var(--tab-bar-height) + 30px); 
}

.icon-cell:nth-child(2),
.icon-cell:nth-child(3),
.icon-cell:nth-child(4) {
    flex: 0 0 calc(34% - var(--tab-bar-height)/3 - 10px);
}

.icon-cell {
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.18s ease;
  padding: 0 0.3rem;
  min-width: 0; 
}

.icon-cell.target {
    border: 5px solid #22487B;
    z-index: 1;
}

.tag-drag *,
.contributor-drag *,
.bubble-drag * {
    cursor: grabbing !important;
}

.tag-drag .icon-cell:hover,
.contributor-drag .icon-cell:hover {
    transform: scale(1);
}

.icon-tab-container:has(.target) {
    z-index: 1;
}


.icon-cell:hover {
  transform: scale(1.05);
}

.icon-cell-icon {
  height: calc(var(--tab-bar-height) * 0.7);
  padding-top: calc(var(--tab-bar-height) * 0.1);
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0.4rem;
  flex-shrink: 0;
  transform: translateY(calc(var(--tab-bar-height) * 0.05));
}

.icon-cell-title {
  font-size: clamp(10px, 1.3vmin, 16px);
  color: #444;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  padding-bottom: calc(var(--tab-bar-height) * 0.05);
}

.trash-icon .icon-cell-title {
    opacity: 0;
}


.sunk-icon .icon-cell-icon {
    background-image: url('./icons/sunk-icon-off.png');
}
.buzz-icon .icon-cell-icon {
    background-image: url('./icons/buzz-icon-off.png');
}
.docked-icon .icon-cell-icon {
    background-image: url('./icons/docked-icon-off.png');
}
.trash-icon .icon-cell-icon {
    background-image: url('./icons/trash-icon-off.png');
    height: calc(var(--tab-bar-height) * 0.55);
    padding-top: calc(var(--tab-bar-height) * 0.25);
}

#trash-icon{
    background-color: var(--trash-page-background);
}

#sunk-icon {
    background-color: var(--sunk-page-background);
}

.buzz-icon{
    background-color: var(--buzz-page-background);
}

#docked-icon{
    background-color: var(--docked-page-background);
}

.buzz-state .buzz-icon .icon-cell-icon {
    background-image: url('./icons/buzz-icon-on.png');
}

.docked-state .docked-icon .icon-cell-icon {
    background-image: url('./icons/docked-icon-on.png');
}

.sunk-state .sunk-icon .icon-cell-icon {
    background-image: url('./icons/sunk-icon-on.png');
}

.trash-state .trash-icon .icon-cell-icon {
    background-image: url('./icons/trash-icon-on.png');
}