@import './shell.css';

/* Nav */
input[type="file"] {
  display: none;
}

.link-label {
  border: none;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}

.link-button {
  display: inline-block;
  padding: 6px;
}
/* End Nav */

/* Comics section */
main {
  padding-bottom: 2em;
}

.comics:not(.visible) {
  display: none;
}

.comics > header {
  padding: 0.6em 2em;
}

.comics > header > h1 {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0;
}

.comics .book-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 180px);
  padding: 0 30px;
  grid-column-gap: 16px;
  grid-row-gap: 36px;
}

.comics .book-list > a {
  display: inline-block;
}

.comics .book-list figure {
  margin: 0;
}

.comics .book-list figure .thumbnail {
  position: relative;
}

.comics .book-list figure,
.comics .book-list figure img {
  max-width: 180px;
  min-height: 100%;
}

.comics .book-list figure .thumbnail {
  height: 255px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  border: var(--border-width, 0px) solid var(--accent-border-color);
  border-bottom: none;
}

.dark-mode .comics .book-list figure .thumbnail {
  border-radius: 0;
}

.comics .book-list figure .thumbnail progress:not([value]),
.comics .book-list figure .thumbnail progress[value="0"] {
  display: none;
}

.comics .book-list figure .thumbnail progress {
  position: absolute;
  bottom: 0;
  margin: 0;
  -webkit-appearance: none;
  height: .5em;
  width: 100%;
}

.comics .book-list figure .thumbnail progress::-moz-progress-bar {
  background: rgba(0,0,0,.6);
}
.comics .book-list figure .thumbnail ::-webkit-progress-bar {
  background-color: rgba(0,0,0,.6);
}
.comics .book-list figure .thumbnail progress::-webkit-progress-value {
  background: dodgerblue;
}

.comics .book-list figure figcaption {
  height: 75px;
  word-wrap: break-word;
  padding: 0.8em;
  background-color: var(--accent-background, --color-white);
  color: var(--accent-color, --color-black);
  border: var(--border-width, 0px) solid var(--accent-border-color);
  border-top: none;
  border-radius: 0 0 15px 15px;
  font-weight: 600;
  display: flex;
}

.dark-mode .comics .book-list figure figcaption {
  border-radius: 0;
}

.comics .book-list figure figcaption line-clamp {
  flex: 1;
  max-height: 41px;
}

.comics .book-list figure figcaption button {
  border: none;
  padding: 5px 6px;
  margin-top: -5px;
  margin-right: -6px;
  cursor: pointer;
  background-color: transparent;
  display: flex;
}

.comics .book-list figure figcaption button svg {
  width: 18px;
  fill: var(--body-color);
}
/* End of comics section */

/* Loading bar */
.load-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: #fdba2c;
}
.load-bar .bar {
  content: "";
  display: inline;
  position: absolute;
  width: 0;
  height: 100%;
  left: 50%;
  text-align: center;
}
.load-bar .bar:nth-child(1) {
  background-color: #da4733;
  animation: loading 3s linear infinite;
}
.load-bar .bar:nth-child(2) {
  background-color: #3b78e7;
  animation: loading 3s linear 1s infinite;
}
.load-bar .bar:nth-child(3) {
  background-color: #fdba2c;
  animation: loading 3s linear 2s infinite;
}
@keyframes loading {
    from {left: 50%; width: 0;z-index:100;}
    33.3333% {left: 0; width: 100%;z-index: 10;}
    to {left: 0; width: 100%;}
}
/* End of loading bar */