﻿body
{
    margin: 0;
    padding: 0;
}

#viewer
{
    table-layout: fixed;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    border-spacing:0;
}

#viewer td
{
    margin: 0;
    border: 0;
}

#pageNumber
{
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-family: inherit;
    line-height: inherit;
    outline: none;
    padding: 2px 0 0 0;
    text-align: center;
    width: 40px;
    height: 20px;
    font-size: 12px;
    box-sizing:border-box;
}

#pageLength
{
    color: #fff;
    font-size: 12px;
}

span.sep
{
    color: #5c5b5b;
    padding: 0 10px;
}

input#scale
{
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-family: inherit;
    line-height: inherit;
    outline: none;
    padding: 2px 0 0 0;
    text-align: center;
    width: 40px;
    height: 20px;
    font-size: 12px;
    box-sizing:border-box;
}
#tb-buttons button
{
    font-size: 15px;
    border-radius: 10px;
    border: 0;
    background-color: transparent;
    color: white;
}
#minus, #plus
{
    font-weight: bold;
}

#tb-buttons button:hover
{
    cursor: pointer;
    background-color: #464646;
}

#toolbar
{
    color: white;
    height: 56px;
    background-color: #8d8d8d;
    vertical-align: middle;
    padding: 0;
}

#toolbar table
{
    table-layout: fixed;
    width: 100%;
    margin: 0;
    padding: 0;
    border-spacing: 0;
}

#toolbar table td
{
    vertical-align: middle;
    font-family: Roboto, 'Segoe UI', Tahoma, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Многоточие */
    text-align:left;
}

#toolbar table td#menu
{
    width: 1em;
    padding: 2px 8px;
    overflow: unset;
    font-size: 22px;
    border-radius: 10px;
    text-align:center;
}

#toolbar table td#menu:hover
{
    background-color: gray;
    cursor: pointer;
}

#toolbar table td#file-title
{
    width: 30%;
    padding: 2px 30px;
}

#thumbs
{
    background-color: #b3b3b3;
}

#pages
{
    width: auto;
    background-color: #d1d1d1;
}

#twrapper
{
    padding: 0;
    margin: 0;
    overflow-y: scroll;
    position: relative;
}

#tcontainer
{
    padding:0;
    margin:0;
    position: relative;
}

.thumb
{
    position: absolute;
    left: 86px;
}
.timg
{
    width: 100px;
    height: 141px;
    background-color: white;
    border: 3px solid #414548;
    opacity: 0.6;
    position: relative;
}
.timg:hover
{
    opacity: 0.8;
    cursor: pointer;
}

.thumb.active div.timg
{
    opacity: 1;
    border-color: #9e74cc;
}

.numpage
{
    text-align:center;
    color: white;
    font-size: 12px;
    padding-top:4px;
}

#pwrapper
{
    padding: 0;
    margin: 0;
    overflow-y: scroll;
}

#pcontainer
{
    padding: 0;
    margin: 0;
    position: relative;
}

.page
{
    padding: 0;
    margin: 0;
    position: absolute;
    box-shadow: 4px 4px 15px 7px #000000;
    box-sizing: border-box;
}

.pimg
{
    padding: 0;
    margin: 0;
    /*  width: 800px;
    height: 1131px; */
    background-color: white;
    box-sizing: border-box;
}

.pimg img
{
    padding: 0;
    margin: 0;
    box-sizing:border-box;
}

.checker
{
    position:absolute;
    border: 1px solid gray;
    color: white;
    background-color: blue;
    border-radius:16px;
    bottom:5px;
    right: 5px;
    padding: 0 4px;
    z-index:100;
}

.checker:hover
{
    background-color:cornflowerblue;
}

#menu-block
{
    position:absolute;
    display: inline-block;
    border: 1px solid gray;
    color: black;
    background-color: white;
    top: 50px;
    left: 20px;
    padding: 5px 10px;
    border-radius:6px;
    z-index: 2000
}

#menu-block div
{
    padding: 5px 2px;
}

#menu-block div:hover
{
    background-color: lightgray;
    cursor: pointer;
}

/* Стили для окна закладок */
#bookmark-block, #marked-block, #find-block
{
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 200;
    box-sizing: border-box;
}

#bm-header, #mk-header, #fb-header
{
    height: 40px;
    background-color: #6a6a6a;
    color: #efefef;
    font-size: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding-top: 7px;
}

#bm-close, #mk-close, #fb-close
{
    position: absolute;
    top: 11px;
    right: 3px;
    border-radius: 15px;
    font-size: 12px;
}

#bm-close:hover, #mk-close:hover, #fb-close:hover
{
    cursor: pointer;
    background-color: #CBC7BD;
}

#bm-wrapper, #mk-wrapper, #fb-wrapper
{
    margin: 0;
    padding: 0;
    background-color: #919191;
    overflow-y: scroll;
    box-sizing: border-box;
}

.bm-item, .mk-item, .fb-item, .fb-res
{
    border: 1px solid #404040;
    border-radius: 6px;
    margin: 10px 5px;
    padding: 0;
    color: white;
    background-color: #818181;
    position: relative;
}

.bm-remove, .mk-remove
{
    position:absolute;
    top: 1px;
    right:1px;
    border-radius: 15px;
    color: black;
    padding: 0 5px;
    font-size: 20px;
}

.bm-remove:hover, .mk-remove:hover
{
    cursor: pointer;
    color: white;
    background-color: #464646;
}

.bm-item:hover, .fb-item:hover, .mk-item:hover
{
    cursor: pointer;
    background-color: #A1A1A1;
}

.bm-npage, .mk-npage, .fb-npage, .fb-found
{
    margin: 5px auto;
    text-align: center;
}
.bm-npage span, .mk-npage span, .fb-npage span, .fb-found span
{
    background-color: #464646;
    padding: 3px 3px;
    border-radius: 6px
}

.fb-fres
{
    color: black;
    padding: 4px 5px;
    text-align: left;
}

.bm-name, .fb-occur
{
    padding: 4px 5px;
    color: black;
}

/* Стили для окна найденных страниц */
#wfind
{
    height: 40px;
    margin: 0;
    padding: 10px 0 0 0;
    background-color: #919191;
    box-sizing: border-box;
    text-align: center;
    border-bottom: 1px solid gray;
}

#ifind
{
    width: 95%;
}

/****************************/
/* стиль таблицы справки по страницам */
table.pinfo
{
    border: 1px solid #C0C0C0;
    margin: 0 auto;
    border-spacing: 1px;
}

table.pinfo th
{
    font-weight: bold;
    margin: 0;
    padding: 0;
}

table.pinfo th, table.pinfo td
{
    vertical-align: middle;
    padding: 5px;
}

table.pinfo thead
{
    margin: 0;
    padding: 0;
}

table.pinfo tbody tr:nth-child(odd)
{
    background-color: #d9d9d9;
}

table.pinfo tbody tr:nth-child(even)
{
    background-color: #c9c9c8;
}

table.pinfo thead tr
{
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
    height: 35px;
}


table.pinfo tbody td
{
    text-align: left;
}

table.pinfo thead td
{
    text-align: center;
    vertical-align: middle;
}

table.pinfo td.left, table.pinfo td.pinfo-l
{
    text-align: left;
}

table.pinfo td.center, table.pinfo td.pinfo-c
{
    text-align: center;
}

table.pinfo td.right, table.pinfo td.pinfo-r
{
    text-align: right;
}

table.pinfo tbody tr td:nth-child(3)
{
    text-align:center;
}

/* окно диалога */
.pppw
{
    padding: 0;
    z-index: 1501;
    position: absolute;
    display: none;
    border-radius: 8px;
    background-color: white;
    border-bottom: 1px solid #afafaf;
    box-shadow: 10px 10px 10px #555555;
}

.pppw header
{
    margin: 0 0 15px 0;
    padding: 3px 10px 3px 10px;
    text-align: center;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #eeeeee 0%, #c8c8c8 100%);
    border: 1px solid #CBC7BD;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.pppw footer
{
    margin: 15px 0 0 0;
    padding: 3px 10px 3px 0;
    text-align: right;
    box-sizing: border-box;
    background: linear-gradient(to top, #eeeeee 0%, #c8c8c8 100%);
    border: 1px solid #CBC7BD;
    border-radius: 0px 0px 8px 8px;
}

.pppw > div
{
    margin: 2px 5px;
    text-align: center;
}

.pppw i
{
    display: block;
    margin: 10px;
    padding: 2px;
    text-align: center;
    font-style: italic;
}
/********************************/

/* Стили всплывающих сообщений */
.msg_red
{
    color: Red;
    border: 1px solid Red;
}

.msg_green
{
    color: Green;
    border: 1px solid Green;
}

#popup_msg
{
    text-align: center;
    font-weight: bold;
    font-size: 22px;
    background-color: #EEE0CC;
    z-index: 999;
    padding: 15px;
    border-radius: 8px;
}

