.anidiv {
  --box-width: 50px; 
  --box-height: 70px;
  border: 1px solid var(--accent);
  min-width: 60px;
  width: var(--box-width);
  height: var(--box-height);
  position: relative;
  vertical-align: top;
  font-size:12px;
}

.anidiv i {
  position: absolute;
  left: 3px;
  top: 3px;
  text-shadow: 1px 1px #000;
  color: var(--accent);
  opacity: 0.5;
}

.anidiv:hover i {
  opacity: 1.0;
}

.anidiv span {
  position: absolute;
  left: 0px;
  bottom: 3px;
  width: 100%;
  height: 13px;
  line-height: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  
  text-shadow: 1px 1px #000;
  color: var(--accent);
  opacity: 0.5;
}

.anidiv:hover span {
  overflow: visibile;
  opacity: 1.0;
}

.aniinfobox {
  display: inline-block !important;
  vertical-align: top;
  text-align:left;
}

.aniframeeditor {
  display: block;
  height: 20vh;
  overflow: auto;
  background-color: white;
  color: black;
  border: solid 1px var(--accent);
  padding: 6px;
  border-radius: 5px;
  position: relative;
  box-shadow: inset -2px -2px 2px #eef, inset 2px 2px 2px #559, 0px 0px 3px var(--accent);
  container-type: size; 
}

.aniframeeditor i {
  display:inline-block;
  position: absolute;
  top: 0px;
  left: 0px;
  opacity: 0.6;
}

.aniframeeditor span {
  margin: 5px;
  position: relative;
  vertical-align: top;
  display: inline-block;
  cursor: pointer;
}

.aniframeeditor em {
  position: absolute;
  left: 0px;
  top: 0px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  text-shadow: 1px 1px #fff;
  opacity: 0;
}
.aniframeeditor:hover em {
  opacity: 1;
}

.aniframeeditor b {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  text-align: center;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  text-shadow: 1px 1px #fff, -1px -1px #fff;
  opacity: 0;
}
.aniframeeditor:hover b {
  opacity: 1;
}

.aniframeeditor img {
  max-height: 15vh;
  max-width: 15vw;
  cursor: grab;
}

.aniframeeditor .aniframeeditortrash {
  display: inline-block;
  position: absolute;
  right: 0px;
  top: 10px;
  padding: 12px;
  background-color: #ffebee;
  border: 2px dashed #ef5350;
  color: #c62828;
  text-align: center;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 15px;
  opacity: 0.2;
  transition: all 0.2s ease;
}

.aniframeeditor .aniframeeditoradd {
  display: inline-block;
  position: absolute;
  right: 0px;
  top: 80px;
  padding: 15px;
  background-color: #eeffee;
  border: 2px dashed #50ff50;
  color: #26c528;
  text-align: center;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 15px;
  opacity: 0.2;
  transition: all 0.2s ease;
}

.aniframeeditor .aniframeeditoradd:hover {
  opacity: 1.0;
  cursor: pointer;
}

.anispritesheetselector {
  width:98vw;
  max-height:80vh;
  overflow:auto;
}

.anispritesheetselector div {
  width: fit-content;
  height: fit-content;
  position: relative;
  display: inline-block;
}

.anispritesheetselector div i {
  position: absolute;
  top: 0px;
  left: 0px;
  opacity: 0.0;
}
.anispritesheetselector:hover div i {
  opacity: 1.0;
}

.anispritesheetselector img, .anispritesheetselector canvas {
  opacity: 0.1;
  cursor:pointer;
  transition: opacity 0.1s linear;
}

.anispritesheetselector img:hover, .anispritesheetselector canvas:hover {
  opacity: 1.0 !important;
  box-shadow: inset 1px 1px 2px var(--border), inset -1px -1px 2px var(--border);
}

.aninextitem {
  width: 80%;
  height: 40px;
  box-shadow: 1px 1px 2px var(--border);
  border-radius: 4px;
  cursor: grab;
  font-size:12px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr); 
  grid-template-rows: repeat(2, minmax(0, 1fr)); 
}

.aninextitem span {
  min-width: 0;
  min-height: 0; 
  overflow: hidden;
  line-height: 16px;
  text-align: right;
  margin: 0px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aninextitem canvas {
  max-height: 100%;
  grid-row: span 2;
  align-self: center;
  object-fit: contain;
}

.spanBig
{
  display: none !important;
}

@container (min-height: 40vh) {
  .spanSmall
  {
    display: none !important;
  }
  .spanBig
  {
    display: inline-block !important;
  }

  .aninextitem
  {
    height: 70px;
  }
}