/*  sfoglio v2  */

:root{ 
    font-size: 12px; 
    font-family: Poppins;

    --doc-height: 100%;

    --toolbar_h : 40px;
    --sfogliatore_h: calc( 100vh - var(--toolbar_h) - var(--toolbar_h) );

    --toolbar_bg : #456;

    user-select: none;
}

[draggable] {
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    /* Required to make elements draggable in old WebKit */
    -khtml-user-drag: element;
    -webkit-user-drag: element;
}


#baseContainer{

    display: grid;
    grid-template-rows: var(--toolbar_h), var(--sfogliatore_h) , var(--toolbar_h);
    width:100vw;
    height:100vh;

}


#pdfContainer{
    
    display: none;
    position:absolute;
    z-index: 996;
    width: 100vw;
    height: 100vh;

    top: 0px;
    left: 0px;
    bottom:0px;
    right: 0px;
    
    background-color: rgba(0,0,0,0.8);
    overflow: hidden;

    touch-action: none;

    color: #FFF;
 
    place-items: center center;
}

.pdfWindow{
    box-sizing: border-box;
    
    font-size: 14px;
    width: clamp( 300px, 100vw, 50vw );
    
    padding: 10px;

    display: block;
    background: #fff;
    color: #333;
    border: 3px solid  #111;
    border-radius: 1rem;

    display:grid;
    grid-template-rows: auto;
    justify-items: center;
    text-align: center;
    gap: 1rem;
}

.pdfWindow > .datePdf{
    box-sizing: border-box;
    width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center center;

    
}

.overClass{
    background-color:#f50;
}

.form-select{
    
    font-size: 16px;
    padding: 5px;

}

.btn{
    border-radius: 10px;
    border: 0px none;
    color:#FFF;
    background-color:#444;
    padding: 1rem;
    font-size: 1rem;
    min-width: 270px;
}

.pdfWindow > .disclaimer{
    
    width: 100%;
    text-align: center;
    
    background-color:#d9534f;
    color: #fff;
    padding: 10px;

    box-sizing: border-box;
    border-radius: 10px;

}



#zoomContainer{
    
    display: none;
    
    position:absolute;
    
    z-index: 997;
    width: 100vw;
    height: 100vh;

    top: 0px;
    left: 0px;
    bottom:0px;
    right: 0px;
    
    background-color: #222;
    overflow: hidden;

    touch-action: none;
    place-items: center center;
}


#thumbsContainer{
    
    display: none;
    
    position:absolute;
    
    z-index: 997;
    width: 100vw;
    height: calc(100vh - var(--toolbar_h ) );
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.7) );
    overflow: hidden;

    touch-action: none;

    place-items: center center;
    
    cursor: pointer;
}


.titoloThumb{
    background: linear-gradient( #454545, #333);
    color: #FFF;
    width: 100%;
    display: grid;
    place-items: center center;
    font-size: 13px;
    height: 30px;
}


#zoomContainer #close{
    
    position:absolute;
    z-index:1001;
    
    top:    -3px;
    right:  -3px;
    
    width: 40px;
    height: 40px;
    border-bottom-left-radius: 40px;
    background-color: #FFF;
    color: #000;
    border: 3px solid #000;
    
    cursor: pointer;
    user-select: none;

    display:grid;
    place-items: center end;
}


#zoomImage{
    
    position: absolute;

    cursor: move;
    max-height: 100vh;
    width: auto;
    transition: all 0s;
    
    transition-delay: 0s;
    transition-timing-function: linear;

    user-select: none;
}

.noDelay{
    transition: all 0s;
    
    transition-delay: 0s;
    transition-timing-function: linear;
}

.pointerOff{
    pointer-events: none;
}



#articoloContainer{
    
    display: none;
    
    position:absolute;
    
    z-index: 999;
    width: 100vw;
    height: 100vh;

    top: 0px;
    left: 0px;
    bottom:0px;
    right: 0px;
    
    background-color: #FFF;
    color:      #0E0E0E;
    font-family: 'Libre Baskerville', serif;
    padding-left: 0px !important;
    padding-right: 0px !important;
    box-sizing: border-box;

    overflow-y: auto;
}

#loadingContainer{
    
    display: none;
    
    position:absolute;
    z-index: 998;
    width: 100vw;
    height: 100vh;

    top: 0px;
    left: 0px;
    bottom:0px;
    right: 0px;
    
    background-color: rgba(0,0,0,0.5);
    color: #FFF;
    font-size: 20px;
    font-family: 'Libre Baskerville', serif;
    padding-left: 0px !important;
    padding-right: 0px !important;
    box-sizing: border-box;

    overflow-y: hidden;

    place-items: center center;
}



#sfoglioContainer{
    
    position:absolute;
    z-index: 991;

    width: 100vw;
    height: 100vh;

    display: grid;
    align-items: center;
}


.void, .center{
    width: 100vw;
    height: var(--sfogliatore_h);
    
    color:#FFF;
    
    display: grid;
    grid-template-columns: auto,auto,auto;
    box-sizing: border-box;

    overflow: hidden;;
}


html, body{
    
    margin:     0px;
    padding:    0px;

    width:      100vw;
    height:     100vh;
    height:     var(--doc-height);

    position: relative;
    overflow:hidden;
    background-image: linear-gradient(#444,#000 );
    
}


.top, .bottom {
    width: 100vw;
    height: var(--toolbar_h);
    background-color:rgba(0,0,0,0.5);
    color:#FFF;
    font-size: 14px;
    background-color: var(--toolbar_bg);

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    place-items: center start;
    box-sizing: border-box;
    overflow-y:hidden;

    padding: 0.3rem;
}


.bottom{
    grid-template-columns: 1fr;
    place-items: center center;
}

#numeroPagina{
    justify-self: center;
}

#issn{
    justify-self: right;
}


.bottom-menu{
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: column;

    place-items: center center;
    gap: 30px;

}


.icon{
    cursor:pointer;
}



.swiper {
    
    width: 100vw;
    height: calc( 100vh - 80px );
}


.swiper-slide {
    text-align: center;
    

    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }



.sensibleArea{
    position:absolute;

    top:0px;
    left: 0px;

    transition: background-color 0.5s;
    
    cursor: pointer;
}

.sensibleArea:hover{
    background-color: rgba(250,200,100,0.4);
}


.showOnMobile{
    display: none;       
}


svg{
    vertical-align:middle;   
}


@media( max-width: 640px ){

    .hideOnMobile{
        display: none;       
    }
    
    .showOnMobile{
        display: block;       
    }
}