HTML { width:100%;height:100%;margin:0px;padding:0px }
BODY { width:100%;height:100%;margin:0px;padding:0px;background-color:#e3e3e3 }

/* SKIN */

#bigright {
    position:absolute;
    height:120px;
    width:60px;
    bottom:48px;
    right: 0px;
    top:40%;
    background: rgba(0,0,0,0.3) url('bigright.png') no-repeat 30px center;
    background-size: 21px 36px;
    cursor:pointer;
    z-index:21;
    border-bottom-left-radius: 120px;
    border-top-left-radius: 120px;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

#bigleft {
    position:absolute;
    height:120px;
    width:60px;
    bottom:48px;
    left:0px;
    top:40%;
    background: rgba(0,0,0,0.3) url('bigleft.png') no-repeat 10px center;
    background-size: 21px 36px;
    cursor:pointer;
    z-index:21;
    border-bottom-right-radius: 120px;
    border-top-right-radius: 120px;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

#container {
    overflow:hidden;
    position:absolute;
    left:0px;
    top:50px;
    bottom:5px;
    right:0px;
    z-index:20;
}

#topbar {
    overflow: hidden;
    position:absolute;
    left:0px;
    right:0px;
    top:0px;
    background: #ffffff;
    height:50px;
    text-align:left;
    z-index:21;
    border-bottom: 5px solid #7AB51D;
}

#footerbar {
    position:absolute;
    overflow: hidden;
    left:0px;
    right:0px;
    bottom:0px;
    background: #ffffff;
    height:40px;
    text-align:left;
    z-index:21;
    border-top: 5px solid #7AB51D;
}

.headerlogo {
    display:inline-block;
    background-image:url('minilogo.png');
    width:35px;
    height:23px;
    background-position:center;
    background-repeat:no-repeat;
}

#leftbottomdock {
    position:absolute;
    left:5px;
    bottom:0px;
    height:30px;
    color:white;
    text-align:left;
    padding-left:0px;
    white-space:nowrap;
    z-index:20;
}

#leftdock {
    position:absolute;
    left:10px;
    top:10px;
    height:44px;
    color:white;
    text-align:left;
    padding-left:0px;
    white-space:nowrap;
    z-index:21;
}

#rightdock {
    position:absolute;
    right:0px;
    top:0px;
    height:44px;
    color:white;
    text-align:right;
    padding-right:10px;
    white-space:nowrap;
    z-index:21;
}

#centerdock {
    position:absolute;
    left:0px;
    right:0px;
    top:0px;
    height:30px;
    color:white;
    text-align:center;
    padding-right:10px;
    white-space:nowrap;
    z-index:20;
}

#biglogo {
    position:absolute;
    right:25px;
    top:15px;
    display:block;
    width:110px;
    height:100px;
    background-repeat:no-repeat;
    border:1px solid #7AB51D;
    background-size:100%;
    z-index:100;
}

#pagelabel{
    display: none;
}

#indicatorcurrentpage {
    display:inline-block;
    color:#636363;
    font-size:12px;
    height:23px;
    width:60px;
    text-align:center;
    line-height:25px;
    margin:3px 4px -20px 4px;
    vertical-align: top;
}

#inputgotopage {
    background-color:rgba(0,0,0,0);
    border:1px solid #959595;
    vertical-align: top;
    margin:5px 4px -20px 4px;
    padding:2px;
    width:40px;
    color:#636363;
    text-align:center;
    height:14px;
    -ms-user-select: none;
}

#buttonfirstpage, #buttonlastpage {
    width:26px;
}

#buttonfirstpage {
    background-image:url('bback.png');
    background-size: contain;
}

#buttonprevpage {
    background-image:url('back.png');
    background-size: contain;
}

#buttonlastpage {
    background-image:url('fforward.png');
    background-size: contain;
}

#buttonnextpage {
    background-image:url('forward.png');
    background-size: contain;
}

#buttongotopageindex {
    background-image:url('goto.png');
    background-size: contain;
    width: 24px;
}

#buttonpdf {
    background-image:url('pdf.png');
}
#buttonpdf A {
    display:block;
    width:100%;
    height:100%;
}

#buttonaddthis {
    background-image:url('share.png');
}

/* TODO */
#buttonsearch {
    background-image:url('search.png');
    background-size: contain;
}

#labelhidesearch,
#labelhidegallery{
    margin: 0;
}

.markeron {
    background-image:url('marker-on.png');
    background-size: contain;
}

.markeroff{
    background-image:url('marker-off.png');
    background-size: contain;
}

.notesleft-no {
    background-image:url('notes-left-off.png');
    background-size: contain;
}

.notesleft-yes {
    background-image:url('notes-left-on.png');
    background-size: contain;
}

.notesright-no {
    background-image:url('notes-right-off.png');
    background-size: contain;
}

.notesright-yes {
    background-image:url('notes-right-on.png');
    background-size: contain;
}

#buttonshowindex {
    background-image:url('indice_miniature.png');
    background-size: contain;
}

.sectionindicator-notes {
    background-image:url('notes-left-on.png');
    background-size: contain;
}

.buttonhide {
    background-image:url('back.png');
    background-size: contain;
}

#labelhideindex {
    cursor:pointer;
}

.buttonaddbookmark-set {
    background-image:url('bookmark_meno.png');
    background-size: contain;
}

.buttonaddbookmark-unset {
    background-image:url('bookmark_piu.png');
    background-size: contain;
}

#buttonshowbookmarks {
    background-image:url('indice_preferiti.png');
    background-size: contain;
}

#buttontoggleguide {
    background-image:url('guida.png');
    background-size: contain;
}

.sectionindicator-bookmarks {
    background-image:url('indice_preferiti.png');
    background-size: contain;
}

.sectionindicator-index {
    background-image:url('indice_miniature.png');
    background-size: contain;
}

/* TODO */
.sectionindicator-gallery {
    background-color:red;
}

.sectionindicator-search {
    background-image:url('search.png');
    background-size: contain;
}


/* GENERICAL */

.thumbdock{
    position: absolute;
    top: 75px;
    padding-left: 50px;
}

.thumb {
    float:left;
    padding:5px;
    cursor:pointer;
    min-height: 240px;
}



.gallerythumb {
    float:left;
    padding:10px;
    cursor:pointer;
    background-color:#000000;
    border-radius:5px;
    margin:5px;

}

.gallerythumbtop {
    width:123px;
    height:158px;
}

.thumb {
    float:left;
    padding:5px;
    cursor:pointer;
    min-height: 240px;
    margin-top: 10px;
}


.thumbtop {
    width:143px;
    height:178px;
    background-repeat: no-repeat;
    background-position: center;
}

.thumbbottom {
    padding:5px;
    font-size:12px;
    color:#636363;
    text-align:center;
    white-space: nowrap;
    height:20px;
}
/*
.thumbbullets:empty{
    display:block;
    height: 35px;
}*/

.thumbbullets{
    display:flex;
    min-height: 25px;
    justify-content: space-around;
}


.bullet {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    margin-top: 5px;
}

.markerbullet {
    background: #79B600 url('marker_white.png') no-repeat center center;
    background-size: 50%;
}
.bookmarkbullet{
    background: #79B600 url('bookmark_white.png') no-repeat center center;
    background-size: 50%;
}
.extracontentbullet{
    background: #79B600 url('extra_white.png') no-repeat center center;
    background-size: 50%;
}

.select {
    text-align:left;
    color:#636363;
    font-size:12px;
    margin:3px 10px -20px 10px;
    vertical-align: top;
    background-color:rgba(0,0,0,0);
    padding:3px;
    border:1px solid #6F777F;
    border-radius: 0;
    -moz-appearance:none;
    -webkit-appearance:none;
}

.label {
    display:inline-block;
    color:#636363;
    font-size:12px;
    height:23px;
    text-align:center;
    line-height:25px;
    margin:0 0 0 20px;
    padding-top: 2px;
    vertical-align: top;
}

.button {
    display:inline-block;
    padding:0px;
    width:23px;
    height:23px;
    margin:3px 4px 0px 4px;
    background-repeat:no-repeat;
    background-position:center;
    cursor:pointer;
}



.indicator {
    display:inline-block;
    padding:0px;
    margin:0px;
    width:23px;
    height:23px;
    margin:3px 4px 0px 4px;
    background-repeat:no-repeat;
    background-position:center;
}

/* OLD */

.back-button {
    position:absolute;
    height:42px;
    line-height:42px;
    border-bottom:2px solid #8ba6df;
    text-align:center;
    font-size:18px;
    padding:0px 10px 0px 10px;
}
.table-row {
    background-color:#ffffff;
    height:50px;
    border-bottom:1px solid #dbdbdb;
    line-height:50px;
    padding-left:10px;
    padding-right:10px;
    font-size:18px;
    white-space:nowrap;
}
.table-row-tall {
    background-color:#ffffff;
    height:80px;
    border-bottom:1px solid #dbdbdb;
    padding-right:10px;
    font-size:18px;
    white-space:nowrap;
}
.table-row-tall-title {
    font-weight:bold;
    padding-top:10px;
    padding-bottom:10px;
}
.table-row-image-tall {
    height:80px;
    width:100px;
    line-height:0px;
    float:left;
    margin-right:10px;
    background-repeat:no-repeat;
    background-size:100%;
}
.table-row-image {
    height:40px;
    line-height:0px;
    float:left;
    margin-top:5px;
    margin-right:10px;
}
.table-header {
    background-color:#ffffff;
    color:#000000;
    height:20px;
    border-bottom:2px solid #8ba6df;
    line-height:20px;
    padding:5px;
    font-size:18px;
    font-weight:bold;
}
.nav-header {
    background-color:#ffffff;
    border-bottom:2px solid #8ba6df;
    color:#000000;
    height:44px;
    line-height:44px;
    font-size:18px;
    text-align:center;
    font-weight:bold;
}

.sidebar {
    border:4px solid rgba(190,190,190,0.5);
    border-radius:5px;
    z-index:10;
    display:none;
    position:absolute;
    right:5px;
    bottom:20px;
    top:55px;
    background-color:#a0a0a0;
}

#selectchapter {
    width:100px;
}

#guide {
    cursor:pointer;
    position:absolute;
    left:10px;
    bottom:40px;
    z-index:21;
    background-color:#e5e5e5;
    padding:5px;
    color:#000000;
    font-size:13px;
    border-radius: 0px;
    border-width:5px 5px 0px 5px;
    border-style:solid;
    border-color: #7AB51D;
}

.searchbox {
    padding:10px 17px 20px;
    background-color:#c4c5c5;
    border-radius:5px;
}

#searchform{
    margin: auto;
}

#searchform input[type=text]{
    height: 28px;
    border: 1px solid #979797;
    padding: 0;
    padding-left: 5px;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}


#searchform input[type=submit]{
    background-color: #2B2B2B;
    text-transform: uppercase;
    color: #ffffff;
    min-width: 85px;
    max-width: 20%;
    height: 30px;
    border-radius: 0;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
}

#searchresults {
    padding:10px 0px 0px 10px;
}

.finding {
    text-align:center;
    background-image:url('spinner.gif');
    background-repeat:no-repeat;
    background-position:center bottom;
    padding-bottom:20px;
}

#searchlabel {
    width:70%;
    margin-right:5px;
}

.findresults {
    text-align:center;
}

.findsuggestion {
    padding:5px 0px 0px 0px;
    font-size:10px;
}

.searchmessage {
    padding-bottom:5px;
}

.closebutton {
    z-index:1;
    position:absolute;
    right:5px;
    top:5px;
    width:30px;
    height:30px;
    background-repeat:no-repeat;
    background-image:url('closebutton.png');
    background-size: contain;
    cursor: pointer;
}

.separator {
    width: 40px;
    display: inline-block;
    margin-right: 8px;
    border-right: 1px solid #6D747C;
    height: 22px;
}

.no-w8-separator{
    width: 35px;
    display: inline-block;
}


.closearea1, .closearea2 {
    display: none;
}

.indexviewdocked {
    position: absolute;
    z-index: 99990;
    top:0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

.indexviewdocked #topbar {
    position: absolute;
    bottom: 275px;
    top:auto;
}

.indexviewdocked .thumbdock {
    background-color: #e3e3e3;
    height:275px;
    overflow-x: scroll;
    overflow-y:hidden;
    white-space: nowrap;
    padding: 0px;

    position:absolute;
    top: auto;
    right:0px;
    bottom:0px;
    left:0px;
}

.indexviewdocked .thumbdock .thumb {
    display: inline-block;
    float: none;
    vertical-align: top;
}

.indexviewdocked #centerdock, .indexviewdocked .headerlogo, .indexviewdocked #biglogo {
    display: none;
}

.indexviewdocked .closearea1 {
    display: block;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 290px;
}

.indexviewdocked .closearea2 {
    display: block;
    position: absolute;
    bottom: 0px;
    right: 0px;
    left: 0px;
    height: 30px;
}

.extra-content {
    border-radius: 50%;
}

@media screen and (max-width: 768px){
    .thumbdock{
        padding-left: 35px;
    }

    .thumbdock.gallerythumb{
        margin: 10px;
    }

     .thumb{
        width: 50%;
        padding: 0;
    }

    .thumbtop{
        margin: auto;
        width: 100px;
        height: 124px;
        background-size: contain;
    }

    .indexviewdocked .thumbdock{
        height: 210px;
    }

    .indexviewdocked #topbar{
        bottom: 210px;
    }

     #searchresults {
        padding: 15px 0;
    }

     #biglogo {
        top:12px;
        width:74px;
        height:24px;
        right:2px;
    }

    @media (max-width: 750px) {
        #biglogo {
            width:35px;
        }
    }

    #selectchapter { display:none }
    #buttonaddthis { display:none }
    #buttonprevpage { display: none }
    #buttonnextpage { display: none }
    #buttonfirstpage { display: none }
    #buttonlastpage { display: none }
    #labelgotopage {display:none }
    #inputgotopage {display:none }
    #buttongotopageindex {display:none }
    #buttonpdf {display:none }
    #bigleft {
        top: 50%;
        height: 80px;
        width: 40px;
        border-bottom-right-radius: 80px;
        border-top-right-radius: 80px;
        background: rgba(0,0,0,0.3) url(bigleft.png) no-repeat 10px center;
        background-size: 15px 25px;
    }
    #bigright {
        top: 50%;
        height: 80px;
        width: 40px;
        border-bottom-left-radius: 80px;
        border-top-left-radius: 80px;
        background: rgba(0,0,0,0.3) url(bigright.png) no-repeat 15px center;
        background-size: 15px 25px;
    }

    #pagelabel{
        color: black;
        display: inline-block;
        line-height: 25px;
        font-size: 12px;
        height: 23px;
        margin: 3px 0px -20px 4px;
        vertical-align: top;
    }

    #indicatorcurrentpage{
        width: auto;
    }
}

@media screen and (max-width: 1024px){
    .no-w8-separator{
        width: 10px;
    }

    .thumbdock{
        -webkit-overflow-scrolling: touch;
   }

   .thumb{
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
    }

}



