#loginpanel,
#logoutpanel {
	position: absolute;
	right: 1rem;
    top: 4rem;
	width: 18rem;
}

#sitetitle {
    position: absolute;
    top: 0;
    left: calc(50% - 10rem);
    text-align: center;
    z-index: 31;
}

.titletable, .pagecontent {
	width:100%;
}

.titletd, .content .titletd h1 {	
 font-size: 1.25rem;
 font-weight: normal;
 margin: 0.25rem;
 line-height: 1.5rem;
 background-color: hsl(var(--bulma-info-h), var(--bulma-info-s), var(--bulma-info-30-l));
 color: hsl(var(--bulma-white-h), var(--bulma-white-s), var(--bulma-white-l));
}

.content h2.panel-heading {
    font-weight: bold;
    font-size: 1.25rem;
}

.pagecontent  .contentleft {
	width: 35%;
}

.image {
    box-shadow: var(--bulma-shadow);
}

.image.hs {
    height: 324px;
}

.tnimage {
    box-shadow: var(--bulma-shadow);
}

.content table.pagecontent td,
.content table.tableframe td {
    border: none;
}

div#welcome-blog {
    width: 100%;
}

table.tableframe {
    width: 100%;
}

#dvpopup {
    display: none;
}

div#dv-close {
    float: right;
    font-size: 0;
}

td[valign=bottom] {
    vertical-align: bottom !important;
}

td.hometab {
   cursor: pointer;
}

td.hometab.makebold {	
    background-color: hsl(var(--bulma-light-h), var(--bulma-light-s), var(--bulma-light-l));
	font-weight: bold;
}

td.hometab:hover {
    background-color: #f9fafb;
}


#imagebox {
    display: none;
    position: fixed;
    background: rgba(0,0,0, 0.6);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
	text-align: center;
    vertical-align: middle;
	z-index: 13;
}

#imageboxshell {
	margin: 4rem  auto;
	display: inline-block;
}

#si-close {
    font-size: 0;
}

#si-imagemsg {
	padding: 5px;
}

#si-imagemsg,
#si-imagecontent {
    display: inline-block;
}

table.image {
    display: table;
    border-collapse: separate;
    border-spacing: 30px;
}

table.image2 {
    border-collapse: separate;
    border-spacing: 5px;
    margin: 15px;
}

.content table td.imagetd {
    border: 1px solid #0004;
}
.content table td.imagetd td {
    padding:0;
}

.tableframe > tbody > tr > td {
    vertical-align:middle;
    padding: 0;
}

#ibt-maincontent .tableframe > tbody > tr > td {
    vertical-align:top;
}

.versebox {
    display: inline-block;
    max-width: 50rem;
}

.image img {
    display: block;
    height: unset !important;
    width: unset !important;
}

.maintitle {
    font-size: 1.5rem;
    font-weight: bold;
}

.maintitle2 {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
    margin-left: 0.5rem;
}

.box.versebox #ri-verseref {
    font-style: italic;
    font-size: 0.9rem;
}

.content table td.imagecell {
    margin: 0;
    padding: 0;
    text-align: center;
}


@font-face {
  font-family: 'artfont';
  src: url('Calligraphic_421_BT.ttf');
  font-display: fallback;
}

table td.verseboxcell,
.verseboxcell, 
.verseboxcell .versebox {
	font-family: 'artfont';
	text-align: left;
}


.xxtitletable.panel.download {
    display:none;
}

.selflink {
    cursor:pointer;
}

.selflink:hover {
    background: #eee;
}

.selflink.button.is-info:hover {
    background: #11283d;
}

.selflink.tag {
    font-size:1rem;
    height:1rem;
    padding: 0 0.25rem;
}

span.selflink.help {
    display: inline-block;
    font-size: unset;
    background: #f8f8f8;
}


span.selflink.help.button {
    background: unset;
}

.loginpanelitems {
    display:none;
    margin-top: 0.2rem;
}

img.tnimage {
    height: 100px;
    min-width: 100px;
}

img.tnimage.issquare {
    margin: 0 16.5px;
}

div#statsinsert {
    min-height: 1.25rem;
}


.cattdcell .panel-heading {
    padding: 0.5rem;
    background: #f8f8f8;
}

.cattdcell .grid > .button {
    max-width: 2rem;
}

tr.help-q {
    cursor: pointer;
}
tr.help-q:hover {
    background:#f8f8f8;
}
tr.help-a {
    font-size: 0.9rem;
    background: #f8f8ff;
}

tr.help-a .selflink.tag {
    font-size:0.9rem;
}

.tableframe > tbody > tr.help-a > td {
    padding:1rem;
}

div#searchresults {
    position: absolute;
    max-width: 500px;
    right: 0px;
    top: 3rem;
    font-size: 0.8rem;
}

div#sr-body {
    overflow: auto;
    max-height:75vh;
}

span.sr-keywords {
    color: #888;
    font-size: 0.6rem;
}

span.shighlight {
    background: #ff8;
}

.searchresultrow {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    border-top: 1px solid #ddd;
}

.searchresultrow:hover {
    background: #eee;
    cursor:pointer;
}

#helptext {
    position: absolute;
    width: 500px;
    right: 0rem;
    top: 3rem;
    overflow: auto;
    max-height: 75vh;
    z-index:1;
}


.hsimage1 {
	-moz-box-shadow: 5px 5px 7px #aac;
	-webkit-box-shadow: 5px 5px 7px #aac;
	box-shadow: 5px 5px 7px #aac;
	border: 0px solid ; 
	margin: 0 50px 0.5rem ;
}


.boximage {
	-moz-box-shadow: 5px 5px 7px #aac;
	-webkit-box-shadow: 5px 5px 7px #aac;
	box-shadow: 5px 5px 7px #aac;
	border: 0px solid ; 
	width: 576px;
	height: 324px;
	padding: 0;
}

.boximage .hsimage1 {
	-moz-box-shadow: 0px 0px 7px #aac;
	-webkit-box-shadow: 0px 0px 7px #aac;
	box-shadow: 0px 0px 7px #aac;
	margin: 12px;
}

.boximage .verseboxcell {
	width: 43.8%;
	padding: 12px 8px 12px 20px;
	vertical-align: middle;
}


.boximage .ri-versetext {
	margin: 0 0 1rem 0;
	font-size: 1.0rem;
	white-space: pre-wrap;
}

.boximage .ri-verseref {
	font-size: 0.8rem;
	font-style: italic;
}

.boximagefull {
	border: 0px solid ; 
	width: 1920px;
	height: 1080px;
}

.dl_areamaster.hdp .boximagefull{ width: 1600px; height: 900px; }
.dl_areamaster.hd .boximagefull{ width: 1290px; height: 720px; }
.dl_areamaster.qhd .boximagefull{ width: 960px; height: 540px; }
.dl_areamaster.nhd .boximagefull{ width: 640px; height: 360px; }

.boximagefull .hsimage1 {
	-moz-box-shadow: 0px 0px 17px #aac;
	-webkit-box-shadow: 0px 0px 17px #aac;
	box-shadow: 0px 0px 17px #aac;
	border: 0px solid ; 
	width: 1024px; 
	height: 1024px;
	margin: 28px;
}

.dl_areamaster.hdp .boximagefull  .hsimage1 { width: 853px; height: 853px; margin: 23.33px;}
.dl_areamaster.hd .boximagefull .hsimage1{ width: 683px; height: 683px; margin: 18.67px;}
.dl_areamaster.qhd .boximagefull .hsimage1{ width: 512px; height: 512px; margin: 14px;}
.dl_areamaster.nhd .boximagefull .hsimage1{ width: 341px; height: 341px; margin: 9.333px;}


.dl_areaouter {
	margin: 1rem;
	box-shadow: 0 0 7px #aac;
	width: 1920px;
	height: 1080px;
	overflow: hidden;
	position: relative;
}

.dl_areaouter.hide {
	position:absolute;
	left:-2000px;
}

.dl_areamaster.fhd .dl_areaouter { width: 1920px; height: 1080px; }
.dl_areamaster.hdp .dl_areaouter { width: 1600px; height: 900px; }
.dl_areamaster.hd .dl_areaouter { width: 1290px; height: 720px; }
.dl_areamaster.qhd .dl_areaouter { width: 960px; height: 540px; }
.dl_areamaster.nhd .dl_areaouter { width: 640px; height: 360px; }


table.boximagefull td {
    padding: 0;
}

.boximagefull .verseboxcell {
	width: 44%;
	padding: 1.5% 2% 1.5% 3.8%;
	vertical-align: middle;
	overflow: hidden;
}

.boximagefull .ri-versetext {
	margin: 0 0 3.33rem 0;
	font-size: 3.33rem;
	overflow: hidden;
	white-space: pre-wrap;
}

.dl_areamaster.hdp .boximagefull .ri-versetext {margin-bottom: 2.78rem; font-size: 2.78rem;}
.dl_areamaster.hd .boximagefull .ri-versetext {margin-bottom: 2.35rem; font-size: 2.35rem;}
.dl_areamaster.qhd .boximagefull .ri-versetext {margin-bottom: 1.67rem; font-size: 1.67rem;}
.dl_areamaster.nhd .boximagefull .ri-versetext {margin-bottom: 1.11rem; font-size: 1.11rem;}

.boximagefull .ri-verseref {
	font-size: 2.67rem;
	font-style: italic;
	overflow: hidden;
}

.dl_areamaster.hdp .boximagefull .ri-verseref {margin-bottom: 2.78rem; font-size: 2.78rem;}
.dl_areamaster.hd .boximagefull .ri-verseref {margin-bottom: 1.88rem; font-size: 1.88rem;}
.dl_areamaster.qhd .boximagefull .ri-verseref {margin-bottom: 1.33rem; font-size: 1.3rem;}
.dl_areamaster.nhd .boximagefull .ri-verseref {margin-bottom: 0.89rem; font-size: 0.89rem;}

@font-face {
  font-family: 'artfont';
  src: url('Calligraphic_421_BT.ttf');
}

.copyrightinfo {
    position: absolute;
    bottom: 2%;
    color: #dddddd80;
	font-family: Trebuchet MS, sans-serif;
	font-size: 0.7rem;
}

.tnimagesq {
	-moz-box-shadow: 5px 5px 7px #aac;
	-webkit-box-shadow: 5px 5px 7px #aac;
	box-shadow: 5px 5px 7px #aac;
	border: 0px solid ; 
	width: 100px; 
	height: 100px;
	margin: 0 16px;
}

div#dl_res:empty:before {
    content: 'Loading Image...'; 
    margin-top: 20%;
    display: block;
    font-size: 3rem;
    color: #888;
}

#x_ri-note_table {
    display:none;
}

td.v-spacer.title.is-6 {
    background: #f4f4f4;
}

td.title.is-5 {
    background: #eee;
}

.xbuylinks {
    position: absolute;
    display: inline-block;
    right: 0.5rem;
}

.verseboxcell.large {
    display: table-cell;
}

.verseboxcell.compact,
.imagelink .compacttn {
    display: none;
}

.imagenav.left,
.imagenav.right {
    width: 25%;
    text-align:center;
}

.imagenav.center {
    width:50%;
    text-align:center;
}

#roomcontent > td {
    padding: 0;
    margin: 0;
}

.misclinks .button,
#imagetopics .button{
    margin-top: 0.25rem;
}

tr.imagelink:hover {
    cursor: pointer;
    outline: 2px solid #ccc8;
}

.section.cm-mainform {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1rem;
}

.control.is-required {
    border-left: 3px solid #f00;
    padding-left: 3px;
}

.control.is-required.is-valid {
    border-left-color: #0c0;
}

.li-maintabs {
    overflow:auto;
    max-height: calc(100vh - 12rem);
}

.checkboxes.col {
    flex-direction: column;
    text-align: left;
}

.admcontent {
    border: 1px solid #888;
    padding: 1rem;
    margin:1rem;
}

.imagenav.center > #ri-maincontent > table.box.boximage {
    margin: 0 auto;
}

.imagenav.center > #ri-maincontent {
    height: 100%;
}

span.qhd > img.hsimage1 {
    height: 300px;
    display: block;
}

div#ri-maincontent {
    min-height: 362px;
}

table.box.versebox {
    display:none; 
}

@media screen and (max-width: 1024px) {
    .hideifsmall,
    .tnimage.large {
        display: none;
    }
    .imagelink .compacttn {
        display: inline-block;
    } 
    
    table.pagecontent {
        font-size:0.9rem;
    }
    
    #ibt-maincontent > .fixed-grid.has-3-cols>.grid {
        --bulma-grid-column-count: unset;
    }
    
    #ibtopic-maincontent td.latest-verse {
        padding: 0.25rem 1rem;
    }

}


@media screen and (max-width: 768px) {
    .verseboxcell.large {
        display: none;
    }
    
    span.qhd > img.hsimage1 {
        height: unset;
    }

    table.pagecontent {
        font-size:0.8rem;
    }
    
    .verseboxcell.compact {
        display: table-row;
    }
    
    .boximage .hsimage1 {
        margin: 12px auto;
    }
    
    .image.hs, .boximage {
        height: unset;
    }
    
    .boximage {
        width: unset;
    }
    
    div#statsinsert {
        min-height: 2.5rem;
    }
    
    .fixed-grid.sitemap >.grid {
        --bulma-grid-column-count: 1;
    }
    
    .fixed-grid.sitemap .cell.is-col-span-2 {
        --bulma-grid-cell-column-span: 1;
    }
}