body {
  display: grid;
  place-items: center;
}

.one-line-clamp {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

#stories {
  border: 2px solid black;
  border-radius: 16px;
  box-shadow: 0px 0px 8px black;
  min-width: 50%;
  backdrop-filter: blur(4px);
  overflow: auto;
  touch-action: auto;
  max-height: 60%;
  padding-bottom: 1em;
  padding-top: 1em;
}

ul {
  list-style: none;
  padding: 1rem;
}

li {
  align-items: center;
  text-align: center;
  display: flex;
  align-items: stretch;
  color: white;
  background: #963;
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem;
  border: 2px solid black;
  box-shadow: 0 0 8px black;
  text-shadow: 2px 2px black;
  position: relative;
}

#stories li {
  padding: 0rem;
  height: 3rem;
}

#stories li .story-link {
  padding: 1rem;
  background: #963;
  flex-grow: 1;
  border-radius: 13px;
  text-decoration: none;
  color: white;
}

#stories li:has(> .trash-icon-wpr)>.story-link {
  border-radius: 13px 0 0 13px;
  box-sizing: border-box;
}

#stories li .story-link a {
  transform: translateX(8%);
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#stories li .trash-icon-wpr {
  border-radius: 0px 13px 13px 0;
  width: 10%;
  background-color: #875626;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

#stories li .trash-icon-wpr:hover {
  background-color: #783d01;
}

#stories li .trash-icon-wpr:active {
  background-color: #4a3124;
}



#stories li .trash-icon {
  width: 100%;
  /* aspect-ratio: 1; */
  height: 100%;
  opacity: 1;
  transition: opacity 0.2s ease;
  background: url('../images/trash.svg') center / contain no-repeat;
  border: none;
  background-size: 50%;
  filter: invert(100%) drop-shadow(2px 2px 0px black);
}

#stories li .trash-icon:hover {
  opacity: 1;
  filter: invert(100%)
}

#stories li .story-link:hover,
li:hover {
  background: #C93;
  color: black;
  text-shadow: none;
}

#stories li .story-link:active,
li:active {
  background: #4a3124
}


#stories li .story-link.disabled,
li.disabled {
  background: #630;
  color: gray;
  pointer-events: none;
}

li a {
  text-decoration: none;
  color: white;
  flex-grow: 1;
}

#pages {
  position: absolute;
  right: 0%;
  bottom: 0%;
}