.reader {
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    font-family: 'Open Sans', sans-serif;
    background: #FFFFFF;
    color: #000000;
}

.reader .header,
.reader .footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-content: space-between;
    justify-content: space-between;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
}

.reader .header .material-icons,
.reader .footer .material-icons {
    display: inline-block;
    font-size: 20px;
    line-height: 30px;
    width: 30px;
    text-align: center;
}

@media only screen and (max-width: 500px) {
    .nomobile {
        display: none !important;
    }
}

@media only screen and (min-height: 500px) and (min-width: 500px) {
    .reader .header,
    .reader .footer {
        height: 50px;
        line-height: 50px;
    }
    .reader .header .material-icons,
    .reader .footer .material-icons {
        line-height: 50px;
        width: 50px;
    }
}

.reader .header .left,
.reader .header .right,
.reader .footer .left,
.reader .footer .right {
    flex: 0 0 auto;
}

.reader .header .center,
.reader .footer .center {
    flex: 1;
    text-align: center;
}

.reader .header .item,
.reader .footer .item,
.reader .header .item:link,
.reader .footer .item:link,
.reader .header .item:visited,
.reader .footer .item:visited {
    display: inline-block;
    color: inherit;
    opacity: 0.65;
    text-decoration: none;
}

.reader .header .item:link,
.reader .footer .item:link {
    cursor: pointer;
}

.reader .header .item:hover,
.reader .footer .item:hover {
    opacity: 1.0;
}

.reader .header .item:active,
.reader .footer .item:active {
    transform: scale(1.02);
}

.reader .main {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    justify-content: flex-start;
}

.reader .main .content {
    flex: 1;
    display: flex;
}

.reader .main .content :first-child {
    flex: 1;
}

.reader .main .content .welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reader .main .content .welcome .welcome-inner {
    flex: 0 0 auto;
    padding-bottom: 200px;
}

.reader .main .content .welcome .welcome-inner .title {
    font-size: 40px;
    font-weight: 300;
    display: block;
    padding: 20px;
}

.reader .main .content .welcome .welcome-inner .menu {
    display: block;
    text-align: center;
}

.reader .main .content .welcome .welcome-inner .menu .big-item,
.reader .main .content .welcome .welcome-inner .menu .big-item:link,
.reader .main .content .welcome .welcome-inner .menu .big-item:visited {
    display: inline-block;
    width: 150px;
    max-width: 100%;
    font-size: 20px;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin: auto;
    color: inherit;
    text-decoration: none;
    margin: 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.reader .main .content .welcome .welcome-inner .menu .big-item:hover,
.reader .main .content .welcome .welcome-inner .menu .big-item:active {
    background: rgba(0, 0, 0, 0.1);
}

.reader .main .content .welcome .welcome-inner .menu .big-item:active {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid rgba(0, 0, 0, 0.2);
}

.reader .main .sidebar {
    flex: 0 0 auto;
    max-width: 200px;
    overflow-y: auto;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.reader .main .sidebar .sidebar-header {
    display: block;
    padding: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    font-size: 130%;
}

.reader .main .sidebar .sidebar-header .x {
    display: block;
    float: right;
    font-size: 130%;
    background: rgba(0, 0, 0, 0.001);
}

.reader .main .sidebar .toc-sidebar,
.reader .main .sidebar .info-sidebar,
.reader .main .sidebar .settings-sidebar {
    display: none;
    min-width: 200px;
}

.reader .main .sidebar .toc-sidebar .toc {
    display: block;
}

.reader .main .sidebar .toc-sidebar .toc .toc-entry,
.reader .main .sidebar .toc-sidebar .toc .toc-entry:link,
.reader .main .sidebar .toc-sidebar .toc .toc-entry:visited {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 3px;
    color: inherit;
    text-decoration: none;
}

.reader .main .sidebar .toc-sidebar .toc .toc-entry:hover {
    background: rgba(0, 0, 0, 0.1);
}

.reader .main .sidebar .book-info {
    display: block;
    margin: 5px;
}

.reader .main .sidebar .book-info .cover {
    display: block;
    max-width: 90px;
    margin: 10px auto;
}

.reader .main .sidebar .book-info .cover img {
    width: 100%;
}

.reader .main .sidebar .book-info .meta {
    display: block;
    text-align: center;
}

.reader .main .sidebar .book-info .meta .book-title {
    display: block;
    text-align: center;
    font-size: 125%;
}

.reader .main .sidebar .progress-info {
    display: block;
    margin: 5px auto;
    max-width: 70%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.reader .main .sidebar .progress-info>div {
    display: block;
    margin: 3px auto;
}

.reader .main .sidebar .control {
    display: flex;
    margin: 5px 2px;
}

.reader .main .sidebar .control .label {
    flex: 1;
    text-align: left;
    font-size: 14px;
}

.reader .main .sidebar .control select,
.reader .main .sidebar .control input,
.reader .main .sidebar .control button {
    flex: 1;
}

select {
  background: transparent;
  width: 150px;
  padding: 5px 35px 5px 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  height: 34px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) 96% / 15% no-repeat #eee;
}

select:hover {
  border: 1px solid #999;
  background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) 96% / 15% no-repeat #DDD;
  cursor: pointer;
}

select::-ms-expand { 
    display: none; /* remove default arrow in IE 10 and 11 */
}

.reader .main .sidebar div.visible {
    display: block;
}

.reader * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.reader .hidden {
    display: none !important;
}