.is-mobile #viewBtn,
.is-mobile #zoomBtn,
.is-mobile #btnMove,
.is-mobile #btnSelect,
.is-mobile #btnZoomIn,
.is-mobile #btnZoomOut {
    display: none;
}

#left {
    transition-timing-function: ease;
    transition-duration: 200ms;
    top: 45px;
    bottom: 0;
    position: absolute;
    overflow: hidden;
    z-index: 999;
    left: -350px;
    width: 350px;
}
.light-theme #left {
    border-right: 1px solid #7b8793;
}
.dark-theme #left {
    border-right: 1px solid #000;
}
#left.open {
    left: 0;
}
#left-controls {
    height: 44px;
    display: block;
}
#leftContent {
    top: 45px;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    overflow-y: scroll;
    background-color: #eee;
    -webkit-overflow-scrolling: touch;
}
#btnOutlines {
    display: none;
}
#left.hasBookmarks #btnOutlines {
    display: inline;
}
#outlinePanel {
    display: none;
}

#pgCount {
    font-family: Arial,serif;
    vertical-align: middle;
    font-size: 15px;
}
#btnSelect, #btnZoomOut, #viewBtn {
    margin-left: 20px;
}


#goBtn, #zoomBtn, #viewBtn {
    height: 25px;
}
#goBtn {
    width: 55px;
}
#viewBtn {
    width: 105px;
}
#zoomBtn {
    width: 95px;
}
.thumbnail {
    cursor: pointer;
    display: block;
    padding: 8px 0;
    margin: 0 auto;
    text-align: center;
}
.thumbnail img{
    max-width: 160px;
    border-radius: 5px;
    border: 1px solid #bbb;
}
.currentPageThumbnail, .thumbnail:hover {
    background-color: #ddd;
}
.currentPageThumbnail img, .thumbnail:hover img {
    border: 1px solid #999;
}

#thumbnailPanel.visible, #outlinePanel.visible, #searchPanel.visible {
    display: inline;
}
#thumbnailPanel.hidden, #outlinePanel.hidden, #searchPanel.hidden {
    display: none;
}
#outlinePanel ul {
    list-style-type: none;
    padding: 0 5px;
}
#outlinePanel ul ul {
    padding-left: 15px;
    padding-right: 0;
}
#outlinePanel li {
    color: #333;
    padding: 2px;
    font-family: Arial,serif;
    font-size: 15px;
}
#outlinePanel li:hover {
    background-color: #ddd;
    cursor: pointer;
}
#searchPanel {
    font-family: Arial, sans-serif;
    font-size: 14px;
}
#searchPanel * {
    color: #333;
    margin: 5px;
}
#searchPanel #searchInput {
    color: black;
    border: 1px solid #666;
    width: 288px;
    display: block;
    padding: 5px;
    margin: 20px auto 10px;
}
#searchPanel .searchOption {
    margin: 0 20px;
    display: block;
}
#searchPanel hr {
    margin-top: 18px;
}
#searchPanel #searchResultsCount {
    text-align: center;
    display: block;
}
#searchPanel .result {
    text-decoration: none;
    display: block;
    word-wrap: break-word;
}
#searchPanel .result:hover {
    background-color: #ddd;
}

body {
    margin: 0;
    padding: 0;
}

.btn {
    border: 0 none;
    height: 30px;
    padding: 0;
    width: 30px;
    background-color: transparent;
    display: inline-block;
    margin: 7px 5px 0;
    vertical-align: top;
    cursor: pointer;
}

.page {
    box-shadow: 1px 1px 4px rgba(120, 120, 120, 0.5);
}

#controls {
    height: 44px;
    position: fixed;
    text-align: center;
    top: 0;
    left: 0;
    right: 0;
    transition: 0.3s ease 0s;
}

#controls select {
    margin-top: 10px;
}

#controls-left {
    display: inline-block;
    left: 0;
    position: absolute;
}
#controls-center {
    display: inline-block;
}
#controls-right {
    display: inline-block;
    right: 0;
    position: absolute;
}

.light-theme #idrviewer {
    background: #fafafa none repeat scroll 0 0;
}
.light-theme #controls,
.light-theme #left-controls {
    background: #9eacba none repeat scroll 0 0;
    border-bottom: 1px solid #7b8793;
}

.light-theme #pgCount,
.light-theme .btn {
    color: white;
    text-shadow: 0 0 1px #595959;
}
.light-theme .btn:hover {
    opacity: 0.6;
}
.light-theme .btn.disabled {
    opacity: 0.4;
}

.light-theme #goBtn,
.light-theme #zoomBtn,
.light-theme #viewBtn {
    background-color: #9aa8b6;
    color: white;
    border: 1px solid #7b8793;
}

.dark-theme #idrviewer {
    background: #666 none repeat scroll 0 0;
}
.dark-theme #controls,
.dark-theme #left-controls {
    background: #444 none repeat scroll 0 0;
    border-bottom: 1px solid #000;
}
.dark-theme #pgCount {
    color: white;
    opacity: 0.8;
}
.dark-theme .btn {
    opacity: 0.7;
    color: white;
}
.dark-theme .btn:hover {
    opacity: 0.95;
}
.dark-theme .btn.disabled {
    opacity: 0.2;
}

.dark-theme #goBtn,
.dark-theme #zoomBtn,
.dark-theme #viewBtn {
    background-color: #656565;
    color: white;
    border: 1px solid #000;
}

#idrviewer {
    top: 45px;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
}

.spinner {
    border: 6px solid #bbb;
    border-top: 6px solid #3c9fe1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin: 0 auto;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}