body {
  font-family: Tahoma, Verdana, sans-serif;
  background-color: #202020;
  color: #e0e0e0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #303030;
}

/* Clear floats after the columns */
.top-row {
  display: flex;
  flex-direction: row; 
  justify-content: space-between;
  align-items: center;
  clear: both;
  height: 120px;
}

.top-row img {
  cursor: pointer;
  height: 104px;
}

.page-name {
  margin-top: 124px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
#page-title {
  font-size:2em;
}
#page-sub {
  font-size:.8em;
  color: #a0a0a0;
}

#text {
  padding: 0px 100px;
  text-align: center;
}

#text img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.thumbs {
  display: flex;
  flex-direction: row; 
  align-items: center;
}

div.thumb.selected {
  background-color: #404040;
  box-shadow: 0px 4px 10px 0px rgba(0,0,0,1);
  font-size: .8em;
}

.thumb {
  font-size: .8em;
  display: flex;
  flex-direction: column; 
  align-items: center;
  padding: 6px;
  width: 80px;
}

.thumb span {
  padding: 0px;
}

.thumb img {
  opacity: 0.8;
  cursor: pointer;
  height: 80px;
}

.selected img {
  opacity: 1;
  max-height: 108px;
  height: 100%;
  width: 100%;
}

.thumb img:hover {
  opacity: 1;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  width: auto;
  padding: 16px;
  color: #a0a0a0;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 3px 3px;
  user-select: none;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  color: white;
  background-color: rgba(0,0,0,0.5);
}

.in-pages {
  position: fixed;
  top: 40%;
  left: 0;
  width: 100%;
  z-index: 999;
  pointer-events: none;
}
div.in-pages {
  display: flex;
  flex-direction: row; 
  justify-content: space-between;
}
.in-pages > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 400px;
}
.in-pages .prev {
  pointer-events: all;
  font-size: 28px;
  padding: 48px;
}
.in-pages .next {
  pointer-events: all;
  font-size: 28px;
  padding: 48px;
}
.in-pages > div:hover #prev-thumb {
  opacity: 1;
}
.in-pages > div:hover #next-thumb {
  opacity: 1;
}
.in-pages img {
  object-fit: contain;
  max-width: 384px;
  height: 256px;
  margin: 12px;
  background-color: #303030;
  border:#404040;
    border-style: solid;
    border-width: 1px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,1);
  opacity: 0;
  transition: .6s ease;
}

.pages {
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap;
  justify-content: center;
}
.pages div {
  display: flex;
  flex-direction: column;
  margin: 0px 16px 16px 16px;
  justify-content: right;
}
.pages .hide {
  display: none;
}
.pages span {
  font-size:1em;
  color: darkgray;
}
.pages img {
  width:100%;
  max-width: 1024px;
  box-shadow: 0px 4px 10px 0px rgba(0,0,0,1);
}

.chapter {
  display: flex; 
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  font-size:2em;
}
.chapter > div:hover {
    background-color: #404040;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,1);
}
.chapter > div {
    display: flex; 
    flex-direction: column;
    padding: 8px;
    cursor: pointer;

    margin: 20px 8px;
    border:#404040;
    border-style: solid;
    border-width: 1px;
    background-color: #303030;
}

.characters {
  display: flex; 
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}
.portrait {
  display: flex; 
  flex-direction: column;
  background-color: #303030;
  text-align: center;
  font-size:.8em;
  margin: 8px 8px; 
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.portrait img {
  width:128px;
}

.watermark {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}
.watermark > div {
  opacity: 0.15;
  transition: 1s ease;
}
.watermark > div:hover {
  opacity: 1.0;
}