/*
Copyright (c) 2014, Anaphore
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

    (1) Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.

    (2) Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in
    the documentation and/or other materials provided with the
    distribution.

    (3)The name of the author may not be used to
   endorse or promote products derived from this software without
   specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/

/** === Main viewer styles */
html, body, section, #pviewer {
    height: 100%;
    font-family: Verdana, Arial, sans-serif;
    background: #414141;
}

#pviewer {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    min-height: 100%;
}

section {
    overflow: hidden;
}

header, aside {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 8;
    color: white;
    text-align: center;
    vertical-align: middle;
}

header {
    background-color: black;
    background-color: rgba(0, 0, 0, .8);
    border-bottom: 1px solid #660912;
    color: #9b9b9b;
    font-weight: bold;
    font-size: 0.85em;
    padding: .3em 0;
}

h1 {
    float: left;
    margin: 0 .2em;
    color: white;
    font-weight: bolder;
}

h2 {
    display: inline;
    margin: 0;
    vertical-align: middle;
    line-height: 1.9em;
}

header a, #comm_header a, #infos_header a, #alert_header a {
    color: #9b9b9b;
    font-weight: normal;
    text-decoration: none;
}

header a:hover, #comm_header a:hover, #infos_header a:hover, #alert_header a:hover {
    text-decoration: underline;
}

#viewer {
    width: 100%;
    min-height: 100%;
    position: relative;
    margin: 0;
}

#nocommunicability {
    position: fixed;
    top: 45%;
    left: 45%;
}

#nocommunicabilityJS {
    position: fixed;
    top: 6%;
    left: 45%;
}

#image_formats {
    position: absolute;
    left: .5em;
}


#formats {
    display:inline-block;
    background: url(../images/buttons/ico-select-down.png) no-repeat right #262525;
    border: 1px solid #660912;
    border-radius: 6px;
    width: 12em;
    overflow: hidden;
    vertical-align: middle;
}

#formats select {
    display: inline-block;
    background: transparent;
    color: #a3a2a2;
    -webkit-appearance: none;
    border: 0;
    border-radius: 0;
    width: 14em;
}

#search_img {
    display: inline;
}

#search_img input {
    width: 30px;
}

/** /Main viewer styles */

/** === Series navigation */
nav {
    top: 50%;
    margin-top: -40px;
    width: 100%;
    position:absolute;
}

.navsimple {
    display: inline-block;
    position: absolute;
    z-index: 5;
    background: url(../images/buttons/spr-nav-arrows.png);
    background: url(../images/buttons/spr-nav-arrows.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background: url(../images/buttons/spr-nav-arrows.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background: url(../images/buttons/spr-nav-arrows.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background: url(../images/buttons/spr-nav-arrows.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background: url(../images/buttons/spr-nav-arrows.png), linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background-repeat: no-repeat;
    background-position:top left;
    width: 25px;
    height: 27px;
    overflow: hidden;
    text-indent: 40px;
    border-style: solid;
    border-color: #646464;
    box-shadow: 0 0 .5em #646464;
    outline: none;
}

.navsimple:hover {
    background: #1b1a1a url(../images/buttons/spr-nav-arrows.png);
    background: url(../images/buttons/spr-nav-arrows.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-arrows.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-arrows.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-arrows.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-arrows.png), linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
}

.navdouble {
    margin-top: 40px;
    display: inline-block;
    position: absolute;
    z-index: 5;
    background: url(../images/buttons/spr-nav-doublearrow.png);
    background: url(../images/buttons/spr-nav-doublearrow.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background: url(../images/buttons/spr-nav-doublearrow.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background: url(../images/buttons/spr-nav-doublearrow.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background: url(../images/buttons/spr-nav-doublearrow.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background: url(../images/buttons/spr-nav-doublearrow.png), linear-gradient(to bottom, rgba(27, 26, 26, 0.6), rgba(20, 19, 19, .6));
    background-repeat: no-repeat;
    background-position:top left;
    width: 25px;
    height: 27px;
    overflow: hidden;
    text-indent: 40px;
    border-style: solid;
    border-color: #646464;
    box-shadow: 0 0 .5em #646464;
    outline: none;
}

.navdouble:hover {
    background: #1b1a1a url(../images/buttons/spr-nav-doublearrow.png);
    background: url(../images/buttons/spr-nav-doublearrow.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-doublearrow.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-doublearrow.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-doublearrow.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-doublearrow.png), linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
}

#previmg {
    border-radius: 0 6px 6px 0;
    border-width: 1px 1px 1px 0;
    left: 0;
    background-position: bottom left;
}

#previmg:hover {
    background-position: top left;
}

#nextimg {
    border-width: 1px 0px 1px 1px;
    border-radius: 6px 0 0 6px;
    right: 0;
    background-position:bottom right;
}

#nextimg:hover {
    background-position:top right;
}

#prevdoubleimg {
    border-radius: 0 6px 6px 0;
    border-width: 1px 1px 1px 0;
    left: 0;
    background-position: bottom left;
}

#prevdoubleimg:hover {
    background-position: top left;
}

#nextdoubleimg {
    border-width: 1px 0px 1px 1px;
    border-radius: 6px 0 0 6px;
    right: 0;
    background-position:bottom right;
}

#nextdoubleimg:hover {
    background-position:top right;
}

#series_pos {
    /*color: white;*/
    font-weight: normal;
    vertical-align: middle;
}
/** /Series navigation */

/** === Common toolbar */
aside {
    bottom: 0;
    height: 40px;
    cursor: default;
}

aside ul {
    display: inline-block;
}

aside li, #fullscreen  {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
    cursor: pointer;
}

aside li:first-child {
    border-left: 1px solid #2f1414;
    border-radius: 10px 0px 0px 0px;
}

aside li:last-child {
    border-right: 1px solid #2f1414;
    border-radius: 0px 10px 0px 0px;
}

aside li {
    font-size: 0;
    background: #1b1a1a url(../images/buttons/spr-nav-list.png);
    background: url(../images/buttons/spr-nav-list.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-list.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-list.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-list.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/spr-nav-list.png), linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    border-top: 1px solid #2f1414;
}

aside li:hover, #thumbnails:hover, #moreparams:hover {
    background: #0d0d0d url(../images/buttons/spr-nav-list.png);
    background: url(../images/buttons/spr-nav-list.png), -webkit-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/spr-nav-list.png), -moz-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/spr-nav-list.png), -ms-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/spr-nav-list.png), -o-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/spr-nav-list.png), linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
}

#thumbnails, #moreparams {
    background: #2d2c2c url(../images/buttons/spr-nav-list.png);
    background: url(../images/buttons/spr-nav-list.png), -webkit-linear-gradient(to bottom, rgba(45, 44, 44, .8), rgba(30, 29, 29, .8));
    background: url(../images/buttons/spr-nav-list.png), -moz-linear-gradient(to bottom, rgba(45, 44, 44, .8), rgba(30, 29, 29, .8));
    background: url(../images/buttons/spr-nav-list.png), -ms-linear-gradient(to bottom, rgba(45, 44, 44, .8), rgba(30, 29, 29, .8));
    background: url(../images/buttons/spr-nav-list.png), -o-linear-gradient(to bottom, rgba(45, 44, 44, .8), rgba(30, 29, 29, .8));
    background: url(../images/buttons/spr-nav-list.png), linear-gradient(to bottom, rgba(45, 44, 44, .8), rgba(30, 29, 29, .8));
}

#thumbnails {
    background-position: 0 0;
}

#zoomin {
    background-position: -265px 0;
}

#zoomout {
    background-position: -145px 0;
}

#fullsize {
    background-position: -355px 0;
}

#fitsize {
    background-position: -310px 0;
}

#lrotate {
    background-position: -50px 0;
}

#rrotate {
    background-position: -95px 0;
}

#moreparams {
    background-position: -405px 0!important;
}

#print, #printZoomify {
    background-position: -500px 0;
}

#linkCurrentCopyClipBoard {
    background-position: -545px 0;
}
#mdDownloadImg {
    background-position: -219px 0;
}



#fullscreen {
    width: 20px;
    background-image: url(../images/buttons/ico-full-screen.png);
    background-size: 34px 34px;
    float: right;
    margin: .2em;
    margin-right: 1em !important;
    padding: 0 3px;
}

#fullscreen > span {
    display: none;
}

#zoominfos, #hidef, #comments {
    background: #1b1a1a;
    background: -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    color: #fff;
    text-align: center;
    width: 80px;
    height: 40px;
    vertical-align: top;
    font-size: 1em;
    line-height: 40px;
}

#zoominfos:hover {
    background: #0d0d0d;
    background: -webkit-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: -moz-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: -ms-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: -o-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
}

#comments {
    background: url("../images/buttons/comment.png") ;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: #1b1a1a url(../images/buttons/comment.png);
    background: url(../images/buttons/comment.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/comment.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/comment.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/comment.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/comment.png), linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background-repeat: no-repeat, repeat;
    background-position: center;
}

#comments:hover {
    background: #0d0d0d url(../images/buttons/comment.png);
    background: url(../images/buttons/comment.png), -webkit-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/comment.png), -moz-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/comment.png), -ms-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/comment.png), -o-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/comment.png), linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background-repeat: no-repeat, repeat;
    background-position: center;
}

#infosRemote {
    background: url("../images/buttons/icone-info.png") ;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: #1b1a1a url(../images/buttons/icone-info.png);
    background: url(../images/buttons/icone-info.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/icone-info.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/icone-info.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/icone-info.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/icone-info.png), linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background-repeat: no-repeat, repeat;
    background-position: center;
}

#infosRemote:hover {
    background: #0d0d0d url(../images/buttons/icone-info.png);
    background: url(../images/buttons/icone-info.png), -webkit-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/icone-info.png), -moz-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/icone-info.png), -ms-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/icone-info.png), -o-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/icone-info.png), linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background-repeat: no-repeat, repeat;
    background-position: center;
}

#lockparams {
    background: url("../images/buttons/lock.png") ;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: #1b1a1a url(../images/buttons/lock.png);
    background: url(../images/buttons/lock.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/lock.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/lock.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/lock.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/lock.png), linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background-repeat: no-repeat, repeat;
    background-position: center;
}

#lockparams.off {
    background: url(../images/buttons/lock-unlock.png);
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: #1b1a1a url(../images/buttons/lock-unlock.png);
    background: url(../images/buttons/lock-unlock.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/lock-unlock.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/lock-unlock.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/lock-unlock.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/lock-unlock.png), linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background-repeat: no-repeat, repeat;
    background-position: center;
}

#lockparams:hover {
    background: #0d0d0d url(../images/buttons/lock.png);
    background: url(../images/buttons/lock.png), -webkit-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/lock.png), -moz-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/lock.png), -ms-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/lock.png), -o-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/lock.png), linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background-repeat: no-repeat, repeat;
    background-position: center;
}

#lockparams.off:hover {
    background: #0d0d0d url(../images/buttons/lock-unlock.png);
    background: url(../images/buttons/lock-unlock.png), -webkit-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/lock-unlock.png), -moz-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/lock-unlock.png), -ms-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/lock-unlock.png), -o-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/lock-unlock.png), linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background-repeat: no-repeat, repeat;
    background-position: center;
}

#hidef {
    width: 60px;
    background: #1b1a1a url(../images/buttons/hidef.png);
    background: url(../images/buttons/hidef.png), -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/hidef.png), -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/hidef.png), -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/hidef.png), -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: url(../images/buttons/hidef.png), linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background-repeat: no-repeat, repeat;
    background-position: 50% -35px, top left;
}

#hidef.on {
    background-position: 50% 7px, top left;
}

#hidef:hover {
    background: #0d0d0d url(../images/buttons/hidef.png);
    background: url(../images/buttons/hidef.png), -webkit-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/hidef.png), -moz-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/hidef.png), -ms-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/hidef.png), -o-linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background: url(../images/buttons/hidef.png), linear-gradient(to bottom, rgba(13, 13, 13, .8), rgba(10, 9, 9, .8));
    background-repeat: no-repeat, repeat;
    background-position: 50% -35px, top left;
}

#hidef.on:hover {
    background-position: 50% 7px, top left;
}

#hidef .userinfo {
    display: block;
    position: absolute;
    padding: .5em 1em;
    line-height: 1.3em;
    background: #1b1a1a;
    background: -webkit-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: -moz-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: -ms-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: -o-linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    background: linear-gradient(to bottom, rgba(27, 26, 26, .8), rgba(20, 19, 19, .8));
    color: #fff;
    text-align: center;
    display: none;
    border-radius: 10px;
}

#hidef .userinfo .inner {
    display: block;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1b1a1a;
    border-top: 5px solid rgba(20, 19, 19, .8);
    left: 50%;
    position: absolute;
    top: 100%;
}

/** /Common toolbar */

/** === Progress bar */
aside#progressbar, aside#progressbar-thumbnails {
    width: 100%;
    height: 100%;
    background-color: black;
    background: rgba(0, 0, 0, .5);
    z-index: 100;
    display: none;
}

aside#progressbar > div, aside#progressbar-thumbnails > div {
    height: 64px;
    position: absolute;
    top: 50%;
    left:0;
    right: 0;
    margin: -32px auto 0;
    color: black;
    background: black;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 6px;
    width: 1%;
    min-width: 18em;
}

aside#progressbar > div > p, aside#progressbar-thumbnails > div > p {
    padding: 1em 0 .3em 0;
    font-size: .85em;
}

aside#progressbar > div > progress, aside#progressbar-thumbnails > div > progress{
    font-size: 0.85em;
}
/** /Progress bar */

/** === Modale bar */
aside#modale-download-img {
    width: 100%;
    height: 100%;
    background-color: black;
    background: rgba(0, 0, 0, .5);
    z-index: 100;
    display: none;
}

aside#modale-download-img > div {
    position: absolute;
    top: 50%;
    left:0;
    right: 0;
    margin: -32px auto 0;
    background: black;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 6px;
    width: 1%;
    min-width: 18em;
}

aside#modale-download-img > div > span{
    cursor: pointer;
    display: block;
    padding: 0.7em 0px;
    font-size: .85em;
    border: 1px solid;
    text-align: center;
}
aside#modale-download-img > div > span:hover{
    background: rgba(255, 255, 255, 0.65);
    color: black;
}
/** /Modale */
/** Overview */
.navcontainer {
  float:right;
  z-index: 5;
  text-align: center;
  background: transparent;
  margin: 55px 20px 0 0;
}

.navcontainer .toolbar {
    height: 10px;
    cursor: move;
    width: 100%;
    background: #000;
    border-radius: 6px 6px 0 0;
}

.navcontainer .toolbar .toolbarbtn {
    position: absolute;
    width: 34px;
    height: 34px;
    background: url(../images/buttons/ico-zoom-on.png) top left no-repeat;
    background-size: 34px 34px;
    top: -18px;
    left:50%;
    margin-left:-18px;
    z-index:10;
    cursor: pointer;
}

.navcontainer .toolbar .toolbarbtn.off {
    background: url(../images/buttons/ico-zoom-off.png) top left no-repeat;
    background-size: 34px 34px;
}

.navwin, .navwin > img {
  border-radius: 0 0 6px 6px;
}

.navwin {
  left: 0;
  top: 10px;
  z-index: 5;
  width: 100%;
  height: auto;
  border: 1px solid black;
}

.navwin img { border: 0; width: 100%; height: 100%; display: block;}

.navwin .outerzone {
    position: absolute;
    top: 10px;
    left: 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, .5);
    border-radius: 0 0 6px 6px;
}

.navwin .zone {
  background: transparent;
  border: 1px solid #660912;
  cursor: move;
  z-index: 6;
}
/** /Overview */

/** Image parameters window */
#image_params, #image_comments {
    position: absolute;
    bottom: em;
    left: 1em;
    background-color: black;
    background-color: rgba(0,0,0,0.8);
    display: none;
    color: #9b9b9b;
    border: 1px solid #660912;
    border-radius: 6px;
    padding-bottom: .3em;
}

#image_params {
    top: 3em;
}

#image_comments, #remoteInfos_content {
    width: 20%;
    bottom: 0;
    height: 450px;
}

#remoteInfos_content {
    position: absolute;
    bottom: em;
    background-color: black;
    background-color: rgba(0,0,0,0.8);
    display: none;
    color: #9b9b9b;
    border: 1px solid #660912;
    border-radius: 6px;
    padding-bottom: .3em;
    right: 50px;
}

#zoomifyalert_content {
    position: absolute;
    bottom: em;
    background-color: black;
    background-color: rgba(0,0,0);
    display: none;
    color: #9b9b9b;
    border: 1px solid #660912;
    border-radius: 6px;
    padding-bottom: .3em;
    left: 50%;
    top: 50%;
    height: 110px;
    width: 400px;
    margin-left: -200px;
    margin-top: -55px;
}

#image_params legend, #comm_header, #infos_header, #alert_header {
    text-align: center;
    width: 100%;
    padding: .3em 0;
    font-weight: bold;
    background-color: #660912;
    background-color: rgba(102, 9, 18, .8);
    color: white;
}

#image_params legend .close,
#comm_header .close, #infos_header .close, #alert_header .close {
    display: block;
    position: absolute;
    background: url(../images/buttons/close.png) no-repeat top left;
    height: 16px;
    width: 16px;
    top: 0.3em;
    right: 0.2em;
    cursor: pointer;
}

#image_params legend .close:hover,
#comm_header .close:hover,
#infos_header .close:hover,
#alert_header .close:hover{
    background-image: url(../images/buttons/close-hover.png);
}

#comm_header a:visited, #infos_header a:visited, #alert_header a:visited {
    color: #9b9b9b;
}

.linkComment {
    padding-left: 1em;
}

#image_params fieldset > div {
    margin-top: .3em;
    padding: 0 .3em;
}

#allComments {
    overflow-y: auto;
    height: 400px;
    padding: 0.5em;
}

#allComments hr {
    margin: 1em 2.5em;
    height: 0.5px;
}

#allInfosRemote {
    overflow-y: auto;
    height: 400px;
    padding: 0.5em;
}

#zoomifyalert {
    padding: 0.5em;
    font-size: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#allInfosRemote hr {
    margin: 1em 2.5em;
    height: 0.5px;
}

#mat_list_record li a {
    color: #9b9b9b;
}

#ead_list_infos li a {
    color: #9b9b9b;
}

.oneComment {
    margin-top: .6em;
    padding: 0 .6em;
    text-align: justify;
}

.oneComment strong {
    font-weight: bold;
}

.contentComment {
    padding-top: .3em;
}

#image_params div.controls {
    text-align: right;
}

#image_params label {
    display: inline-block;
    width: 11em;
}

#change_contrast, #change_brightness {
    width: 200px;
    display: inline-block;
    margin-right: 1.5em;
}

#contrast_value, #brightness_value {
    width: 3.5em;
    margin-right: 1.2em;
}

[id=image_params] .noUi-target {
    border-color: #262525;
    box-shadow: 0 1px 1px #262525 inset, 0 3px 6px -5px #262525;
}

[id=image_params] .noUi-background {
    background-color: #262525;
}

[id=image_params] .noUi-horizontal {
    height: 12px;
}

[id=image_params] .noUi-handle:before,
[id=image_params] .noUi-handle:after {
    top: 2px;
}

[id=image_params] .noUi-horizontal .noUi-handle {
    height: 20px;
}

[id=image_params] .noUi-handle {
    background: rgba(255, 255, 255, .7);
}
/** /Image parameters window */


/** Thumbnails */
#thumbnails_view {
    width: 100%;
    height: 100%;
    background-color: black;
    background-color: rgba(0, 0, 0, .9);
    position: absolute;
    z-index: 9;
    overflow: auto;
    text-align: center;
}

#thumbnails_view a {
    display: inline-block;
    margin: .5em;
    padding: .3em;
    text-align:center;
    vertical-align: middle;
    border-radius: 6px;
}

#thumbnails_view a.current {
    box-shadow: 2px 2px 20px white;
}

#thumbnails_view a:hover {
    box-shadow: 0 0 3px white;
    background-color: rgba(0, 0, 0, .9);
}

#thumbnails_view a img {
    vertical-align: middle;
}
/** Thumbnails */

.navcontainer .toolbar.invisible {
    background: none!important;
}

.navcontainer .loadBarContainer.invisible {
    visibility: hidden!important;
}

#warning_js {
    position: absolute;
    top: 37px;
    right: 20px;
    background-color: #660912;
}

.header_infos {
    display: block;
    font-size: 1.17em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

.mat_record {
   padding: 4px 0;
}

.mat_record_head, .ead_description_head {
    font-weight: bold;
    padding: 1px;
}

.iipmooviewer .canvas img:hover {
    cursor: grabbing !important;
}

.hidden-header-bar h1 { display: none !important;}
.hidden-header-bar h2 { display: none !important;}
.hidden-header-bar div#formats { display: none !important;}
.hidden-header-bar { 
    background: none !important;
    background-color: none !important;  
    box-shadow: none !important;
    border-bottom:none !important;

}
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptextHover, .tooltip .tooltiptextClick {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: bold;
}

.tooltip .tooltiptextHover::after, .tooltip .tooltiptextClick::after  {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptextHover {
    visibility: visible;
    opacity: 1;

}


.tooltiptextShow {
    visibility: visible !important;
    opacity: 1 !important;

}


ul.flexbox {
  justify-content: center;
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
.logo_img{
    position: absolute;
}

/* Mobile view */
@media ( max-width : 767px) {
    header > h1 {
        width: 40px;
        overflow: hidden;
    }

    #zoomifyalert_content {
        height: 120px;
        width: 320px;
        margin-left: -160px;
        margin-top: -60px;
    }
}
