@font-face{
    font-family:'FontIcoMoon';src:url('icomoon.woff') format('woff');font-weight:normal;font-style:normal;
}
@font-face{
  font-family:RobotoCond_Regular;
  src:url("RobotoCondensed-Regular.ttf");
}
@font-face{
  font-family:Roboto;
  src:url("Roboto-Regular.ttf");
}

body {
    margin: 0;
    padding: 0;
}

/* Viewer panel */
#idrviewer {
    top: 66px;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
}
.light-theme #idrviewer {
    background: #fafafa none repeat scroll 0 0;
}
.dark-theme #idrviewer {
    background: #666 none repeat scroll 0 0;
}
.page {
    box-shadow: 1px 1px 4px rgba(120, 120, 120, 0.5);
}

/* Shared utilities */
.is-mobile .mobile-hidden {
    display: none;
}
.hidden {
    display: none !important;
}

/* Menu bars */
#controls {
    height: 65px;
    position: fixed;
    text-align: center;
    top: 0;
    left: 0;
    right: 0;
    transition: 0.3s ease 0s;
}
#controls-left {
    display: inline-block;
    left: 0;
    position: absolute;
}
#controls-center {
    display: inline-block;
}
#controls-right {
    display: inline-block;
    right: 0; top:0;
    position: absolute;
}

#controls select {
    border-radius: 5px;
    height: 37px;
    margin-top: 14px;
    font-size:16px;
}
.btn {
    border: 0 none;
    height: 60px;
    padding: 0;
    width: 60px;
    background-color: transparent;
    display: inline-block;
    margin: 3px 3px 0;
    vertical-align: top;
    cursor: pointer;
}
#pgCount {
    font-family: Arial,serif;
    vertical-align: middle;
    font-size: 16px;
}
#pgCount,
.btn,
#controls select {
    color: white;
}

#btnSelect{
    margin-left: 0px !important;
}
#btnSelect, #btnZoomOut, #btnView {
    margin-left: 20px;
}
#btnGo {
    width: 55px;
}
#btnView {
    width: 105px;
}
#btnZoom {
    width: 95px;
}

@media only screen and (max-width : 1024px) {
    #btnThemeToggle/*#btnView*/ {
        display:none;/*opacity: 0;   pointer-events: none;*/
    }
}
@media only screen and (max-width : 750px) {
    #btnZoom, #btnZoomOut, #btnZoomIn {
        opacity: 0;   pointer-events: none;
    }
}
@media only screen and (max-width : 800px) {
    #btnView, #btnZoom, #btnThemeToggle/*, #btnZoomOut, #btnZoomIn */{
        display:none;
    }
}
@media only screen and (max-width : 670px) {
    #btnSelect, #btnZoomOut{
        display:none;
    }
}

@media only screen and (max-width : 480px) {
    #btnMove, #btnZoomIn{
        display:none;
    }
}

.light-theme .controls {
    background:
#FFCE55 /*#9CDEE7*/ /*9eacba none repeat scroll 0 0*/;

    /*border-bottom: 1px solid #7b8793;*/
    z-index:1;box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1);
}
.dark-theme .controls {
    background: #454351/* #444*/ none repeat scroll 0 0;
    border-bottom: 1px solid #000;
}
.light-theme #pgCount{ color:#A15A19 }
.light-theme .btn {
    color: white /*#0099C7*/;/*    text-shadow: 0 0 1px #595959;*/
}
.dark-theme #pgCount {
    opacity: 0.8;
}
.dark-theme .btn {
    opacity: 0.7;
}
.light-theme .btn:hover {
    /*opacity: 0.6;*/  background-color: #ffffff10;
}
.dark-theme .btn:hover {
    /*opacity: 0.95;*/ background-color: #ffffff10;
}
.light-theme .btn.disabled {
    /*opacity: 0.4;*/ background-color: #ffffff15;
}
.dark-theme .btn.disabled {
    /*opacity: 0.2;*/ background-color: #ffffff15;
}
.light-theme #controls select {
    color:  #A15A19;/*#0099C7;*/
    background-color: white;/* #FFE9B1*//*F5F5F5*/ /* #C7E7EC*/;
    border: 0px solid #7b8793;
}
.dark-theme #controls select {
    background-color: #656565;
    border: 1px solid #000;
}

/* Sidebar */
#sidebar {
    transition-timing-function: ease;
    transition-duration: 200ms;
    top: 66px;
    bottom: 0;
    position: absolute;
    overflow: hidden;
    z-index: 999;
    left: calc(-100% + 0px);
    width: calc(100% - 1px); /*скрол*/
}
@media only screen and (min-width : 805px) {
    #sidebar{
        left: -805px;    width: 805px;
    }
}
@media only screen and (max-width : 405px) {
    #sidebar{
        left: -405px;    width: 405px;
    }
}

#sidebar.open {
    left: 0;
}
#sidebar-controls {
    width: 65px;
    height:  100%;
    display: block;
    background-color: #454351;
}
#sidebar-content {
    top: 0px;
    bottom: 0;
    left: 65px;
    right: 0;
    position: absolute;
    background-color: #eee;
}
#sidebar-content>div {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100%;
}
.light-theme #sidebar {
    border-right: 1px solid #7b8793;
}
.dark-theme #sidebar {
    border-right: 1px solid #000;
}

/* Thumbnails panel */
.thumbnail {
    cursor: pointer;
    display: block;
    padding: 8px 0;
    margin: 0 auto;
    text-align: center;
}
.thumbnail img{
    max-width: 160px;
    max-height: 100%;
    border-radius: 5px;
    border: 1px solid #bbb;
}
.currentPageThumbnail, .thumbnail:hover {
    background-color: #ddd;
}
.currentPageThumbnail img, .thumbnail:hover img {
    border: 1px solid #999;
}
.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); }
}

/* Bookmarks panel */
#bookmarks-panel{background-color:#fbfdfd}
#bookmarks-panel .bookmark-container {
    padding: 0;
    margin: 5px 0;
    font-family: Arial,serif;
    font-size: 15px;
}
#bookmarks-panel .bookmark-container .bookmark-item {
    margin: 0 5px 0 20px;
    position: relative;
}
#bookmarks-panel .bookmark-container .bookmark-item.parent > .toggle {
    display: list-item;
    position: absolute;
    left: -18px;
    border-radius: 4px;

    /* To centre the list marker inside this element, as it has an unchangeable 6px right margin, we'll compensate
    by setting a 6px left padding in here */
    padding-left: 6px;
    width: fit-content;

    list-style-position: inside;
    list-style-type: disclosure-closed;

    /* Needed to align the marker vertically with the text */
    line-height: 1.7;

    cursor: pointer;
}

#bookmarks-panel .bookmark-container .bookmark-item.parent.open > .toggle {
    list-style-type: disclosure-open;
}
#bookmarks-panel .bookmark-container .bookmark-item.parent .bookmark-container {
    display: none;
}
#bookmarks-panel .bookmark-container .bookmark-item.parent.open > .bookmark-container {
    display: initial;
}
#bookmarks-panel .bookmark-container .bookmark-item a {
    border-radius: 4px;
    padding: 5px;
    display: list-item;
    list-style-type: none;
    color: #333;
    text-decoration: none;

    cursor: pointer;
}
#bookmarks-panel .bookmark-container .bookmark-item .toggle:hover,
#bookmarks-panel .bookmark-container .bookmark-item a:hover {
    /*background-color: #f3f3f3;*/
    /*box-shadow: 0px 0px 5px rgba(0,0,0,0.3);*/
    text-decoration: underline;
}

/* Search panel */
#search-panel {
    font-family: Roboto, sans-serif;
    font-size: 18px;
}
#search-panel * {
    color: #333;
}

#search-panel input[type="checkbox"] {
    appearance: none;
  background-color: #fff;
  /*margin: 0;*/
  font: inherit;
  color: black;
  width: 22px; height: 22px;
  /*border: 0.15em solid black;*/
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  /* ...existing styles */
  display: grid;
  place-content: center;
}

#search-panel input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #FFCE55 /*#62CEEA*/;
}

#search-panel input[type="checkbox"]:checked::before {
  transform: scale(1);
}

#search-panel #searchResults{
    padding:28px 0; box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.25); background:white;
        z-index: 1;
    position: relative;
}

#search-panel .searchOption *,
#search-panel #searchResults a {
    margin: 5px 0;
}
#search-panel #searchResults a {
    padding: 5px 20px;
}
#search-panel .search-head-wrap {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;     padding-bottom: 20px;

    background-color:#F3F4F4/* #eee*/;
}
#search-panel .search-head-wrap .search-input-wrap {
    display: flex;
    align-items: center;

    width: 100%;/*288px;*/
    height: 65px; /*30px*/
    /*margin: 20px auto 10px;
    border-radius: 5px;
    border: 1px solid #666;*/

    color: black;
    background-color: white;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px; font-weight:bold;
}
#search-panel .search-head-wrap .search-input-wrap #searchInput {
    display: block;
    flex-grow: 1;
    padding: 5px;
    min-width: 0;

    border: unset;
    background-color: unset;

    margin-left: 30px;
    font-family: 'Roboto';
    font-size: 18px;
}
#search-panel .search-head-wrap .search-input-wrap #searchInput:focus-visible {
    border: unset;
    outline: unset;
    font-weight:bold;
}
#search-panel .search-head-wrap .search-input-wrap .search-count {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    margin: 0px 5px;

    cursor: default;
    user-select: none;

}
#search-panel .search-head-wrap .search-input-wrap #searchNavWrap {
    /*display: contents;    height: 100%;*/
    margin-right: 22px;
}
#search-panel .search-head-wrap .search-input-wrap #searchNavWrap button {
    width: auto;
    /*height: 100%;*/

    padding: unset;

    background-color: unset;
    border: unset;
}
#search-panel .search-head-wrap .search-input-wrap #searchNavWrap button:hover {
    background-color: rgba(0, 0, 0, 0.2);
}
#search-panel .search-head-wrap .search-input-wrap #searchNavWrap button:disabled {
    cursor: default;
    fill: #666666;
    background-color: rgba(0, 0, 0, 0.1);
}
#search-panel .search-head-wrap .search-input-wrap #searchNavWrap button:disabled:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
#search-panel .search-head-wrap .search-input-wrap #searchNavWrap button svg {
    width: auto;
    height: 100%;

    vertical-align:middle; margin: 10px;
    flex: none;
}
#search-panel .search-head-wrap .searchOption {
    margin: 0 20px;
    display: block;

    display: grid;
  grid-template-columns: 1em auto;
  gap: 1em;
}
#search-panel hr {
    margin: 18px 5px 0;    display:none;
}
#search-panel .result {
    text-decoration: none;
    display: block;
    word-wrap: break-word;
}
#search-panel .result:hover {
    background-color: /*#ddd*/ #E5D5AD4D;
}

/* Print styles */
@media print {
    #controls { display: none; }
    #sidebar { display: none; }
    #idrviewer { overflow: visible; top:0px }
    .page { box-shadow: none; display:none }
    .page:not([data-state="loaded"]) { display: none; }
    .page.current {display: initial}
    /*.page-inner{ transform:initial !important; }*/
}

.letter-item{
  display: inline-block; margin-left: 4px; margin-top: 4px; text-align: center;  box-shadow: lightgray 2px 2px 3px ; line-height: 52px; width: 52px; height: 52px; background: #ffffff/* rgb(233,239,255)*/; font-size: 27px;
cursor: pointer;
}
.letter-item.active, #selected_letter, #selected_letter_words p span:first-child{
    color:#FFC713;
    text-transform: uppercase;
}


#dictionary-container{
    padding: 54px 0px 0px 14px;
}
#dictionary-panel{
    background-color: white;
}
#dictionary-panel, #print-panel, #zakladky-panel, #налаштування-panel, #домашки-panel{
    font-family: Roboto;
}

#buttonPrint {
    background-color: #B3E254; width:112px; height:73px;text-transform: uppercase;border: none; color: white;font-size: 20px;font-family: Roboto;
}
.fi{
    display: inline-block;
    font: 14px/1 FontIcoMoon2; /*normal normal normal*/
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
.fi-lg{
    font-size: 36px/*1.33333333em*/;
    line-height: .75em;
    vertical-align: -15%;
}
.fi-20{
    font-size: 27px;
    line-height: .75em;
    vertical-align: -15%;
}
.fi-sb{
    font-size: 25px/*1.33333333em*/;
    line-height: .75em;
    vertical-align: -15%;
}
.fi-menu:before         { content: "\e90a";}
.fi-search:before       { content: "\e901"; color: white}
.fi-paragraph:before    { content: "\e902"; color: #62CEEA;}
.fi-thumbnail:before    { content: "\e903"; color: #D184D1;}
.fi-print:before        { content: "\e904"; color: #B0DB42;}
.fi-bookmark:before     { content: "\e905"; color: #FF5164;}
.fi-dictionary:before   { content: "\e906"; color: #FFCF13;}
.fi-options:before   { content: "\e907"; color: lightgray;}
.fi-fullscreen-on:before   { content: "\e908";}
.fi-fullscreen-off:before   { content: "\e909";}

.fi-select:before   { content: "\e90e";}
.fi-move:before   { content: "\e90f";}
@media (display-mode: fullscreen) {
    .fi-fullscreen-off::before {
        content: "\e908";
    }
    .icon-resize-full::before{
        content: "\f066";
    }
    #btnFullScreen>img{
        content:url("res/svg/minimize.svg"); /*"http://imgur.com/SZ8Cm.jpg"*/
    }
}

/*.fi-arrow-up:before    { content: "\e90a";}
.fi-arrow-down:before  { content: "\e90b";}*/
.fi-arrow-right:before { content: "\e90c";}
.fi-arrow-left:before  { content: "\e90d";}

#sidebar-controls>button:first-child{
    margin-top: 15px;
    /*margin: 3px 3px ;*/
}

#sidebar-controls>button{
    text-shadow: 1px 1px 1px black;
}

#contentContainer{
    zoom: 0.999;
}