html {
  --imgWidth: 90vw;
  --imgHeight: 90vh;
  --halfPage: calc(50vh - 50px);
  box-sizing: border-box;
  font-family: Georgia, serif;
}

body {
  background: rgb(65, 65, 65);
}

figcaption {
  /* width: 100%; */
  width: var(--imgWidth);
  margin: 0;
  padding: 0 5px;
  color: white;
  /* border: 1px solid white; */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

h1, h3, p, label {
  display: inline-block;
  font-size: 0.75em;
  margin: 0;
  color: white;
}

figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

figure div {
  display: flex;
  align-items: center;
  justify-content: center;
}

#manga {
  display: block;
  margin: 0 auto;
  max-width: var(--imgWidth);
  max-height: var(--imgHeight);
}

#prev, #next {
  position: absolute;
  fill: white;
  width: 40px;
  padding: 40px;
  bottom: 40px;
}
#prev {
  left: 20px;
}
#next {
  right: 20px;
}
#prev.fade, #next.fade {
  fill: rgb(90, 90, 90); 
}

input {
  width: 40px;}

footer {
  position: absolute;
  display: flex;
  bottom: 10px;
}

footer svg {
  fill: white;
}

footer p {
  display: none;
  background: rgba(65, 65, 65, 0.75);
  margin: 0;
  padding: 0 5px;
}

footer a {
  color: white;
}

footer svg:hover ~ p {
  display: inline-block;
  /* max-width: 90vw; */
}




@media screen and (min-width: 500px) {

  html {
    --imgWidth: 80vw;
  }

  figcaption {
    margin: 0 auto;
  }

  #prev, #next {
    position: unset;
    left: unset;
    right: unset;
    bottom: unset;
    fill: white;
    width: 40px;
    padding: var(--halfPage) 40px;
  }

}


@media screen and (min-width: 900px) {
  
  figcaption {
    width: var(--imgWidth);
  }

  figure {
    margin: 40px 20px;
  }

  #manga {
    max-height: 80vh;
  }

  #prev, #next {
    --halfPage: calc( ((100vh - 142px) / 2) - 40px );
  }

  h1, h3, p {
    font-size: revert;
    margin: revert;
  }

}