
body {
    overscroll-behavior-y: contain;
}
title {
    font-size: 1.2em;
}
#logo {
    vertical-align: middle;
}
.loadpages {
    text-align: center;
}
.imgprogress {
    vertical-align: middle;
    padding-left: .5em;
}

/*
    #logoapp {
        max-width: 100% !important;
    }

    #labelArchivalPlacement, #dataArchivalPlacement  {
        display: table-cell;
    }
    @media screen and (max-width: 600px) {
        #labelArchivalPlacement, #dataArchivalPlacement {
            display: none;
        }
    }
    #firstpage {
      width: 100vw; /* Larghezza del 100% del viewport width */
/*      height: 100vh; /* Altezza del 100% del viewport height */
/*      box-sizing: border-box; /* Considera il padding e il bordo all'interno delle dimensioni */
/*      padding: 20px; /* Aggiungi padding se necessario */
/*      border: 1px solid #ccc; /* Aggiungi un bordo se necessario */
/*    } */

.page-loading {
    animation: circle-rotate 1s linear infinite;
    background: transparent;
    border: 4px solid #888;
    border-bottom-color: #fff;
    border-radius: 50%;
    height: 50px;
    left: 50%;
    margin: -25px 0 0 -25px;
    opacity: .7;
    padding: 0;
    position: absolute;
    top: 50%;
    width: 50px;
    z-index: 99999;
}

@keyframes circle-rotate {
    100% {
        transform: rotate(360deg);
    }
}
.ui-btn-help:after {
    background-image: url("../img/iconhelp.svg");
}
.icon-right {
    text-align: right;
    right: .24em;
}
/* info button override */
#rightBtn .ui-btn-inner {
    width: 30px;
    height: 30px;
    margin: -3px;/*Modify to change icon position wrt the header*/
    border: none !important;
}
.ui-icon-myapp-help {
    background: url(../img/iconhelp.png) 50% 50% no-repeat;
    background-size: 30px 30px;
    width: 30px;
    height: 30px;
    margin-top: -15px !important;
    box-shadow: none;
    -webkit-box-shadow: none;
}
.firstHelpLeft {
    float: left;
    width: 48%;
}
.firstHelpMiddle {
    float: left;
    width: 2%;
}
.firstHelpRight {
    float: right;
    width: 48%;
}
.HelpText {
    margin: 0 auto !important;
} 
.owner {
    text-align: center;
}
#chooselanguage {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
.language {
    margin: 1em;
}
label {
    font-weight: normal !important;
}
#msg {
    text-align: center;
    padding: 1em;
    margin: 0 auto;
    line-height: 1.125em;
    width: 95%;
    height: 95%;
}
#buttons {
    text-align: center;
}
#back {
    height: 12px;
    padding-right: 0;
}
thead, tfoot {
    font-weight: 600;
} 
tfoot {
    font-weight: 600;
    font-style: italic;
}
hr {
    margin-bottom: 0;
    margin-top: 0;
}
#results, #xresults, #pageresults {
    overflow: auto !important;
}
#pageresults, #tableresult {
    width: 100%;
    overflow-x: auto !important;
}
.ui-btn-right {
    top: -6px !important;
    right: -6px !important;
}            
#tableresult {
    width: 100%;
}
#popupresult, #PopupDescriptions {
    max-height: 80vh !important;
    overflow-y: scroll;    
}
/*#PopupDescriptions {
    max-width: 95vw; 
    max-height: 95vh;
}*/
#ImgTitle {
    vertical-align: bottom;
}
/*            #labelMunicipality, #labelDistrict, #labelTitle, #labelRepository, #labelArchivalPlacement, #labelDates, #labelFoliationType, #labelPapers, #labelSize, #labelConservationState, #labelDocumentType, #labelCoverType, #labelWritingSupport, #labelWritingType, #labelReviser, #labelReviewDate, #labelEdition, #labelCity, #labelTypographer, #labelYearPrint { */
#labelLocation, #labelArchivalPlacement, #labelSignature, #labelSubject, #labelDate, #labelRegesto, #labelFoliationType, #labelPapers, #labelSize, #labelConservationState, #labelDocumentType, #labelCoverType, #labelWritingSupport, #labelRelatedPainting, #labelMentionedCharacter { 
    border: solid thin lightgray;
    font-weight: 600;
    font-style: italic;
}

#labelRegesto, #dataRegesto {
    min-width: 20%;
}
#labelArchivalPlacement, #dataArchivalPlacement {
    min-width: 8%;
}
#labelSignature, #dataSignature {
    min-width: 18%;
}
#labelSubject, #dataSubject {
    min-width: 9%;
}
#labelLocation, #dataLocation {
    min-width: 6%; 
}
#labelDate, #dataDate {
    min-width: 5%; 
}
 #labelExtrinsicDescription, #labelRelatedPainting, #labelMentionedCharacter, #labelBibliographicNote, #labelGenericNote, #labelImage, #dataExtrinsicDescription, #dataRelatedPainting, #dataMentionedCharacter, #dataBibliographicNote, #dataGenericNote, #dataImage {
    min-width: 1%;
} 

#dataLocation, #dataArchivalPlacement, #dataSignature, #dataSubject, #dataDate, #dataRegesto, #dataFoliationType, #dataPapers, #dataSize, #dataConservationState, #dataDocumentType, #dataCoverType, #dataWritingSupport { 
    border: solid thin lightgray;                
}
#dataBibliographicNote, #dataGenericNote, #dataExtrinsicDescription, #dataRelatedPainting, #dataMentionedCharacter, #dataImage, #labelBibliographicNote, #labelGenericNote, #labelExtrinsicDescription, #labelRelatedPainting, #labelMentionedCharacter, #labelImage {
    border: solid thin lightgray;                
}
#labelBibliographicNote, #labelGenericNote, #labelExtrinsicDescription, #labelRelatedPainting, #labelMentionedCharacter, #labelImage, #dataBibliographicNote, #dataGenericNote, #dataExtrinsicDescription, #dataRelatedPainting, #dataMentionedCharacter, #dataImage {
    text-align: center;
}
#labelBibliographicNote, #labelGenericNote, #labelExtrinsicDescription, #labelRelatedPainting, #labelMentionedCharacter, #labelImage {
    padding-top: 6px;
}
#dataDescription, #dataPage, #dataPageFrom, #dataPageTo, #labelPage, #labelDescription, #labelPageFrom, #labelPageTo {
     border: solid thin lightgray;
}
#popupresult {
    padding: 1em;
}
#labelDescription, #labelPageFrom, #labelPageTo {
    font-style: italic;
}
#texttotooltip {
    font-size: 1.4em;
}
input[type="radio"] {
    -ms-transform: scale(1.5); /* IE 9 */
    -webkit-transform: scale(1.5); /* Chrome, Safari, Opera */
    transform: scale(1.5);
}
#ImgHelp {
    vertical-align: bottom;
    height: 24px;
}
#ImgButton {
    vertical-align: bottom;
    width: 16px;
}
#HelpTitle {
    font-size: 1.2em;
    font-style: italic;
    font-weight: bold;
    padding-top: 1em;
    padding-bottom: 1em;
}
#Bye {
    font-style: italic;
    padding-top: 1em;
    padding-bottom: 1em;
}
#Screenshot {
    margin: 0 auto !important;
    text-align: center;
    padding-top: .8em;
    padding-bottom: .8em;
}
.fancybox-title-float-wrap .child {
    white-space: break-spaces;
}
