 
  @font-face {
    font-family: 'GandhariPlugins';
    src:    url("../resources/guplug.ttf"); 
  }

  body {
    color: black;
    background-color: white;
    font-family: "DejaVu Sans", "Noto Sans", "Segoe UI", sans-serif, "Gandhari Unicode";
    line-height: 160%;
    margin: 0px;
  }
  
@media only screen and (max-device-width: 480px) {
  body {
    line-height: 140%;
  }
}

  div.title {
    position: static;
    display: block;
    text-align: center;
    padding-top: 10px;
  }

  span.title {
    font-style: normal;
    font-size: 17pt;    
    font-weight: bold;
  }
  
@media only screen and (max-device-width: 480px) {
  div.title {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  span.title {
    font-size: 12pt;    
  }
}

  div.byline {
    position: static;
    display: block;
    vertical-align: top;
    padding-top: 5px;
    padding-bottom: 30px;
    font-size: 14pt;    
    font-variant: small-caps;
    text-align:center;
  }

@media only screen and (max-device-width: 480px) {
  div.byline {
    padding-top: 5px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 15px;
    font-size: 12pt;    
  }
}

  div.fixedBottomLeft {
    background-color: white;
    position: fixed;
    left: 0px;
    padding-left: 20px;
    right: 34%;
    bottom: 0px;
    height: 25px;
    padding-top: 1pt;
    font-size: 8pt;
  }

  div.fixedBottomCenter {
    background-color: white;
    position: fixed;
    left: 35%;
    right: 35%;
    bottom: 0px;
    height: 25px;
    text-align: center;
    padding-top: 1pt;
    font-size: 8pt;
  }

  div.fixedBottomRight {
    background-color: white;
    position: fixed;
    right: 0px;
    padding-right: 20px;
    bottom: 0px;
    height: 25px;
    left: 66%;
    text-align: right;
    padding-top: 1pt;
    font-size: 8pt;
  }

   span.scaps {
    font-variant: small-caps;
  }
  
  span.notsmallcaps {
    font-variant: normal;
  }
  
  .pointer {
    cursor: pointer;
  }
  
  div.content {
    top: 0px;
    bottom: 25px;
    left: 0px;
    right: 0px;
    padding-top: 80px;
    text-align: justify;
    font-size: 12.5pt;
  }

@media only screen and (max-device-width: 480px) {
  div.content {
    bottom: 15px;
    padding-top: 50px;
    font-size: 11pt;
  }
}

  div.preface {
    padding-left: 2em;
    padding-right: 2em;
  }
  
  div.dismisslayer {
    position: fixed;
    top: 29pt;
    left: 0px;
    right: 0px;
    bottom: 0px;
    cursor: pointer;
    background: black;
    opacity: 0.5;
  }

  div.busy {
    cursor: wait;
  }

  .editable {
    cursor: pointer;
  }

  .editable:hover {
    color: #2db578;
  }

  .longpressed {
    -webkit-animation: 1s longpress;
            animation: 1s longpress;
  }

  @-webkit-keyframes longpress {
      0%, 20% { background-color: #656565; }
      100% { background: green; }
  }

  @keyframes longpress {
      0%, 20% { background-color: #656565; }
      100% { background: green; }
  }

  div.table {
    display: table;
    width: 95%;    
    margin-left: auto;
    margin-right: auto;
    left: 0px;
    right: 0px;
    text-align: left;
  }
  
  div.subtable {
    display: table;
    width: 100%;
  }

  div.rowhead {
    display: table-header-group;
    border: 1px solid #d5d5d5;
    background-color: #d5d5d5;
    font-weight: bold;
  }

  div.row {
    display: table-row;
    border: 1px solid #d5d5d5;
    background-color: #f5f5f5;
    cursor: pointer;    
  }

  div.subrow {
    display: table-row;
    background-color: #e5e5e5;
    cursor: pointer;    
  }

  div.sylbrow:nth-child(3n+0) {
    background-color: #e5e5e5;
  }
  
  div.catrow:nth-child(4n+0) {
    background-color: #e5e5e5;
  }
  
  div.catrow:hover {
    background-color: #a5a5a5;
  }

  div.cell {
    vertical-align: top;
    display: table-cell;
    text-align: left;
    padding: 3px;
  }
 
  div.selectedrow {
    font-weight: bold;
    background-color: #a5a5a5;
  }

  div.crossref {
    display: table-cell;
    padding: 3px;
    background-color: #e9f1f5;
  }
 
  div.metadata {
    position: fixed;
    top: 150px;
    left: 15%;
    right: 15%;
    background-color: white;
    color: black;
    padding: 22px 8px 10px 8px;
    height: 60%;
    max-height: 70%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  div.metadataCKN {
    display: table-cell;
    padding: 3px;
    font-size: 12pt;
    font-style: normal;
    font-weight: bold;
    width: 14%;
    text-align: left;
    vertical-align: middle;
  }
  
  div.metadataHeading {    
    display: table-cell;
    font-weight: bold;
    font-style: normal;
    height: 30px;
    width: 80%;
    vertical-align: middle;
  }

  div.textmd {
    background-color: #94b1d4;
  }

  div.metadataTitle {    
    float: left;
    padding: 3px;
    font-size: 17pt;
    font-weight: bold;
    font-style: normal;
    text-align: left;
    vertical-align: middle;
  }

  div.metadataNav {    
    float: right;
    padding: 3px;
    font-size: 17pt;
    font-style: normal;
    font-weight: lighter;
    text-align: center;
    width: 20px;
    vertical-align: middle;
    cursor: pointer;
  }

  div.disabledNav {    
    float: right;
    padding: 3px;
    color: #a5a5a5;
    font-size: 17pt;
    font-style: normal;
    font-weight: lighter;
    text-align: center;
    width: 20px;
    vertical-align: middle;
    cursor: default;
  }

  div.metadataNav:hover {
    text-decoration: underline;
    color: #ba4200;
  }

  div.preview {    
    background-color: #ececec;
  }

  div.metadataSubHead {    
    vertical-align: top;
    display: table-cell;
    padding: 3px;
    font-size: 12pt;
    font-weight: 500;
    height: 30px;
    text-align: left;
  }
  
  div.metadataLabel {    
    vertical-align: top;
    display: table-cell;
    padding: 3px;
    font-size: 12pt;
    font-style: normal;
    height: 30px;
    text-align: left;
    width: 30%;
  }
  
  div.metadataValue {    
    display: table-cell;
    padding: 3px;
    font-size: 12pt;
    font-style: normal;
    text-align: left;
  }
  
@media only screen and (max-device-width: 480px) {
  div.metadata {
    position: fixed;
    top: 120px;
    left: 5%;
    right: 5%;
  }
  div.metadataCKN {
    font-size: 11pt;
  }
  div.metadataTitle {    
    font-size: 11pt;
  }
  div.metadataNav {    
    font-size: 11pt;
  }
  div.metadataLabel {    
    font-size: 10pt;
  }
  div.metadataValue {    
    font-size: 10pt;
  }
}

  div.icon {
    font-family: GandhariPlugins;
    font-size: 18pt;
    text-align: center;
    font-weight: normal;
    font-style: normal;    
  }
  
  div.icon:hover {
    text-decoration: underline;
    color: #ba4200;
  }
  
  div.disabledicon {
    font-family: GandhariPlugins;
    font-size: 18pt;
    text-align: center;
    font-weight: normal;
    font-style: normal;    
    color: #a5a5a5;
  }

  div.errormsg {
    color: #850b0b;
  }

  span.themedark {
    color: #94b1d4;
  }

  span.bold {
    font-weight: bold;
  }
  
  span.txtabbrev {
    font-weight: 400;
    font-variant: small-caps;
  }

  span.super {
    font-size: 8pt;
    letter-spacing: 1px;
    position: relative;
    bottom: 3pt;
  }

  span.flourish {
    <!-- see PTSD p. 5 Agha2, always in J P T S -->
  }

  span.subscript {
    font-size: 8pt;
    letter-spacing: 1px;
    position: relative;
    bottom: -3pt;
  }

  .link:hover {
    text-decoration: underline;
    color: #ba4200;
  }

  div.subtable {
    display: table;
    width: 95%;    
  }
  
  div.subrow {
    display: table-row;
    border: 1px solid #d5d5d5;
    background-color: #f5f5f5;
    cursor: pointer;    
  }

  div.subrow:hover {
    background-color: #a5a5a5;
  }

  input.editTitle {
    font-size: 15pt;
    font-weight: bold;
    border: solid black 1pt;
    margin-top: 4px;
    padding-left: 3px;
    width: 75%;
    height: 22pt;
    box-sizing: border-box;
  }

  input.editBox {
    width: 100%;
  }

  textarea.editArea {
    width: 100%;
    font-family: "DejaVu Sans", "Noto Sans", "Segoe UI", sans-serif, "Gandhari Unicode";
    font-size: 12pt;
  }

  select.selectbox {
    width: 100%;
  }

  input.submitBtnTitle {
    font-size: 14pt;
    border: solid black 1pt;
    margin-top: 4px;
    background-color: green;
    color: white;
    height: 22pt;
    padding-left: 5px;
    padding-right: 5px;
    cursor: pointer;
    box-sizing: border-box;
  }

  input.submitBtnReg {
    font-size: 10pt;
    font-weight: bold;
    border: solid black 1pt;
    background-color: green;
    color: white;
    cursor: pointer;
    box-sizing: border-box;
  }

  input.uploadBtnReg {
    font-size: 10pt;
    font-weight: bold;
    border: solid black 1pt;
    background-color: green;
    color: green;
    cursor: pointer;
    box-sizing: border-box;
  }

  input.cancelBtnReg {
    font-size: 10pt;
    font-weight: bold;
    border: solid black 1pt;
    background-color: #bf7e03;
    color: white;
    cursor: pointer;
    box-sizing: border-box;
  }

  input.red {
    color: #850b0b;
  }

  input.submitBtnDisabled {
    font-size: 10pt;
    font-weight: bold;
    border: solid black 1pt;
    background-color: #a5a5a5;
    color: white;
    cursor: pointer;
    box-sizing: border-box;
  }

  span.addBtnReg {
    font-size: 10pt;
    border: solid black 1pt;
    background-color: green;
    color: white;
    cursor: pointer;
    box-sizing: border-box;
  }

  input.deleteBtnReg {
    font-size: 10pt;
    border: solid black 1pt;
    background-color: #850b0b;
    color: white;
    cursor: pointer;
    box-sizing: border-box;
  }

  span.attneds {
    display: none;
  }

  span.easian {
    font-variant: small-caps;
  }

  span.biblink {
    text-decoration: none;
    color: black;
    cursor: pointer;
  }
  
  span.biblink:hover {
    text-decoration: underline;
    color: #ba4200;
  }

  .bold {
    font-weight: 600;
  }

  span.egyp {
    font-family: "eot";
  }

  span.egypShow {
    font-family: "eot";
    font-size: 34pt;
	  line-height: 44pt
  }

  img.thumbnail {
    border: 1px solid #d5d5d5;
    max-height: 150px;
  }

  img.minithumbnail {
    border: 1px solid #d5d5d5;
    width: 70px;
  }

  img.preview {
    border: 1px solid #d5d5d5;
    max-width: 70px;
    max-height: 70px;
  }

  div.imagecell {
    width: 125px;
    max-height: 125px;
  }

  div.citeascontainer {
    position: absolute;
    display: block;
    float: right;
    right: 0px;
    margin-right: 24px;
    text-align: center;
  }

  span.citeas {
    font-size: 9pt;
    font-weight: 400;
    line-height: 14pt;
    font-variant: normal;
    color: #a5a5a5;
    border: 1px solid #a5a5a5;
    border-radius: 5px;
    padding-left: 4px;
    padding-right: 4px;
    cursor: pointer;
  }

  span.citeas:hover {
    color: #ba4200;
    border: 1px solid #ba4200;
  }  

  div.msgbox {
    background-color: white;
    border-radius: 4px;
    position: fixed;
    text-align: left;
    top: 80px;
    right: 24px;
    width: 60%;
    background-color: #e6ebf1;
    color: black;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  div.introbox {
    background-color: white;
    border-radius: 4px;
    position: fixed;
    text-align: left;
    top: 80px;
    right: 24px;
    left: 24px;
    bottom: 24px;
    background-color: #e6ebf1;
    color: black;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  div.introquote {
    padding-left: 4em;
    padding-right: 4em;
    font-size: 10.5pt;
  }

  div.flex-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: baseline;
    margin-left: 5%;
  }

  div.flex-cell {
    width: 3em;
    border-top: 1px solid white;
    border-right: 1px solid white;
    padding: 8pt 3pt 3pt 3pt;
    background-color: #f5f5f5;
    text-align: center;
    cursor: pointer;
  }

  div.flex-cellw {
    width: 5em;
    border-top: 1px solid white;
    border-right: 1px solid white;
    padding: 8pt 3pt 3pt 3pt;
    background-color: #f5f5f5;
    text-align: center;
    cursor: pointer;
  }

  div.flex-cellg {
    width: 5em;
    padding: 8pt 3pt 3pt 3pt;
    text-align: center;
    cursor: pointer;
  }

  div.flex-cellg:hover {
    background-color: #a5a5a5;
  }

  div.imgflex-container {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
  }

  div.imgflex-cell {
    width: 3em;
    height: 70px;
    width: 70px;
    padding: 8pt 3pt 3pt 3pt;
    background-color: #f5f5f5;
    text-align: center;
    cursor: pointer;
  }

  div.imgflex-cell:hover {
    background-color: #a5a5a5;
  }

  span.lozenge {
    font-size: 9pt;
    margin: 0pt 1pt 0pt 1pt;
    padding: 1pt 3pt 1pt 3pt;
    border-radius: 5px;
    border-color: #0d3673;
    border-style: solid;
    border-width: 1px;
    background-color: #d5d5d5;
  }

  .button {
    -webkit-column-break-inside:avoid;
    -moz-column-break-inside:avoid;
    -o-column-break-inside:avoid;
    -ms-column-break-inside:avoid;
    column-break-inside:avoid;
    border-color: #0d3673;
    border-style: solid;
    border-width: 1px;
    background-color: #656565;
    color: white;
    height: 14pt;
    margin-bottom: 3px;
    padding: 3px;
    cursor: pointer;
    width: 98%;
    font-size: 9pt;
    text-decoration: none;
    line-height: 14pt;
    vertical-align: text-top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .button:hover{
    background: #e6ebf1;
    color: black;
  }

  span.link {
    cursor: pointer;
  }

  span.flex-value {
    font-size: 28pt;    
  }

  span.flex-label {
    font-size: 10pt;
  }

  span.flex-token {
    font-size: 14pt;
  }

  div.flex-cell:hover {
    color:  white;
    width: 3em;
    background-color: #a5a5a5;
  }

  div.flex-cellw:hover {
    color:  white;
    background-color: #a5a5a5;
  }

  div.flex-celltoken {
    border-top: 1px solid white;
    border-right: 1px solid white;
    padding: 8pt 3pt 3pt 3pt;
    background-color: #f5f5f5;
    text-align: center;
    cursor: pointer;
  }

  div.flex-celltoken:hover {
    color:  white;
    background-color: #a5a5a5;
  }

  div.selected {
    color:  black;
    background-color: #94b1d4;
  }

  div.selected:hover {
    color:  white;
    background-color: #0d3673;
  }

  .hide {
    display: none;
  }

  div.floatbibref {
    display: block;
    position: absolute;
    float: left;
    padding: 3px;
    font-weight: 400;
    left: 80px;
    right: 50px;
    text-decoration: none;
    background-color: #e6ebf1;
    color: black;
    box-shadow: 4px 3pt 10pt #888888;
  }

  div.upzone {
    outline: black solid 1pt;
    display: inline-block;
    width: 1.5cm;
    height: 1.5cm;
    position: relative;
  }

  div.upzone.highlight {
    background: #e6ebf1;
  }

  div.upstat {
    display: none;
  }

  .uploader {
    display: block;
    clear: both;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
  }

  div.boxtext {
    position: absolute;
    font-size: 9pt;
    text-align: center;
    line-height: 11pt;
    padding-top: 7px;
  }

  .svglemma {
    width: 1.5cm;
    height: 1.5cm;
  }

  div.imagepanel {
    position: fixed;
    top: 150px;
    left: 15%;
    right: 15%;
    height: 70%;
    max-height: 70%;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: black;
  }

  div.imgeditpanel {
    position: relative;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 100px;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color:  #e5e5e5;
  }

  div.imglabels {
    margin: 5px;
    color: white;
    height: 40px;
  }

  div.imgno {
    text-align: left;
    width: 20%;
  }

  div.imgtitle {
    text-align: center;
    width: 60%;
  }

  .imginput {
    font-size: 15pt;
    border: solid #e5e5e5 1pt;
    margin: 10px;
    width: 60%;
    box-sizing: border-box;
  }

  div.imgatb {
    text-align: right;
    width: 20%;
  }

  div.imgflex {
  }

  div.imgregion {
    position: fixed;
    background-color: white;
    display: block;
    opacity: 0;
    width: 150px;
    top: 150px;
    height: 60%;
  }

  div.imgnav {
    position: fixed;
    color: white;
    background-color: black;
    display: block;
    text-align: center;
    width: 50px;
    height: 100px;
    opacity: 0.8;
  }

  div.imgnav:hover {
    color: black;
    background-color: #ba4200;
    opacity: 0.9;
  }
 
  div.navprv {
    float: left;
    left: 15%;
    top: 40%;
    font-size: 50pt;
    line-height: 75px;
  }
  
  div.navnxt {
    float: right;
    right: 15%;
    top: 40%;
    font-size: 50pt;
    line-height: 75px;
  }
  
  div.imgbtnregion {
    position: fixed;
    display: block;
    top: 150px;
    left: 20%;
    right: 20%;
    height: 150px;
    background-color: black;
    opacity: 0;
  }

  div.imgbtns {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 3px;

    top: 150px;
    left: 20%;
    right: 20%;
    height: 50px;
    width: 200px;
    margin: auto;
    opacity: 1;
  }
  
  div.imgbtn {
    display: inline-block;
    width: 50px;
    height: 50px;
    font-size: 30pt;
    line-height: 30pt;
    color: white;
    background-color: black;
    text-align: center;
    opacity: 0.8;
  }

  div.imgbtn:hover {
    color: black;
    background-color: #ba4200;
    opacity: 0.9;
  }

  div.imgclsregion {
    position: fixed;
    background-color: white;
    display: block;
    opacity: 0;
    width: 150px;
    top: 150px;
    height: 150px;
  }

  div.navcls {
    float: right;
    right: 15%;
    top: 150px;
    width: 50px;
    height: 50px;
    font-size: 30pt;
    line-height: 30pt;
  }

  .fadeout {
    opacity: 0;
    transition: opacity 2s;
  }
