#text {
  display: block;
  font-family: Junicode;
  font-size: 1em;
  margin-left: 3em;
  margin-top: 2em;
  margin-bottom: 2em;
  text-align: left;
  line-height: 1.1;
  width: 28em;
}

.div {
    display: block;
}

.p {
    display:block;
    padding-bottom: 1em;
}

.front {

    padding-bottom: 5em;       
}

.body {
    padding-bottom: 5em;  
}

.back {
    padding-bottom: 5em;
}


/* PAGE AND PAGE IMAGES */

.page {
    display: block;
    padding-top: 1em;
    text-align: right;
    font-style: normal;    
}

.image_box {
    float: right;
    position: relative;
    margin-right: -18em;
}

 /* page numbering: need to be able to suppress if there 
 is page numbering in formwork */
 

.page:before {
    content: "[ page ";  
}

.page:after {
    content: "]";
}
 



/* ALIGNMENT ASND FORMATTING*/

*[data-place='rm'] {
    display: block;
    text-align: right;
}

*[data-place='lm'] {
    display: block;
    text-align: left;
}

*[data-rend='indent2'] {
    margin-left: 10px;
}

*[data-rend='indent4'] {
    margin-left: 20px;
}

*[data-rend='indent8'] {
    margin-left: 50px;
}

*[data-rend='indent12'] {
    margin-left: 80px;
}

*[data-rend='indent16'] {
    margin-left: 140px;
}



/* EDITORIAL REPRESENTATION */

.sic {
  display: none
  }

.expan {
  display: none;
  }
  
.orig {
      display: none;
  }
  
.del {
      text-decoration: line-through; 
  }
  
.add:before {
      content: "^"
  } 

.add:after {
      content: "^"
  } 
 


.unclear {
  text-decoration: underline    
}


/* PRELIMINARIES */

.salute {
    display: block;
    padding-top: 1em;
    padding-bottom: 1em;
}

.div[data-type='toc'] {
    display: block;
    padding-top: 10em;
}

.div[data-type='dedication'] {
    display: block;
    padding-top: 10em;
}



/* RENDERING */
*[data-rend='red'] {
	color: red;
	}
	
*[data-rend='normal'] {
	font-style: normal;
	}
	
*[data-rend='italic'] {
	font-style: italic;
	}

*[data-rend='underline'] {
	text-decoration: underline;
	}
	
*[data-rend='sup'] {
	font-size: .8em;
	vertical-align: top;
	}

*[data-rend='center'] {
    display: block;
	text-align: center;
	margin-bottom: -1em; 
	}
 
 

/* NOTES */

.note[data-type='orig'] {
    display: block;
    font-style: italic;
    font-size: .8em;
    float: right;
    width: 30em;
    margin-right: -27em;
    border: none;
    color: #000000;
    text-align: left;
}

/* EDITORIAL ANNOTATION */
.seg[data-type='annotation'] {
     color: #5566ff;
     cursor: pointer;
     z-index: 500;
}

.seg[data-type='gloss'] {
     color: #5566ff;
     cursor: pointer;
     z-index: 500;
}

.note[data-type='editorial'] {
    display: none;
    z-index: 500;
}


.seg[data-type='annotation']:hover .note[data-type='editorial'] {
    display: block;
    font-size: 10pt;
    float: right;
    width: 350px;
    margin-right: -400px;
    border: thin solid rgb(0,0,0);
    padding: 10px;
    color: #000000;
    text-align: left;
    background-color: #99C68E;
    z-index: 500;
}

.seg[data-type='gloss']:hover .note[data-type='editorial'] {
    display: block;
    font-size: 10pt;
    float: right;
    width: 350px;
    margin-right: -400px;
    border: thin solid rgb(0,0,0);
    padding: 10px;
    color: #000000;
    text-align: left;
    background-color: gray;
    z-index: 500;
}

/* TRANSLATION */

/*
.seg[data-type='translation']:before {
    content:"\a";
    white-space: pre;
} */

.seg[data-type='translation'] {
     color: #5566ff;
}

/* FORMWORK */

.fw[data-type='pageNum'] {
    display: block;
    text-align: right;
}

.fw[data-type='folioNum'] {
    display: block;
    padding-top: 3em;
}

.fw[data-type='catch']{
	float: right;
	padding-top: 2em;
}

.fw[data-type='runningTitle'] {
    display: block;
    text-align: center;
}

.fw[data-type='sermNo'] {
    display:block;
    text-align: right;
}

.fw[data-type='sig'] + .fw[data-type='catch'] {
	padding-top: 1em;
	display: inline;
	text-align: right;
	position: relative;
	top: -1.2em;
	color: black;
	}

.fw[data-type='sig'] {
    display:block;
    text-align: center;
}



.list {
	list-style-type: none;
	}

.item {
    display:block;
    padding-bottom: 12pt;
    margin-left: 10px;
}

.q[data-type='block'] {
    display:block;
    padding: 6pt;
}

/* LINES OF VERSE */
.l {
    display: block;
}

.lg {
    display: block;
    padding-top: 2em;
}

 /* FIGURE*/

.figure {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center; 
    padding-top: 5em;
    padding-bottom: 5em;

}



/*  ID nos  */

.objectID {
    display: none;
}
/*
.objectID {
    display: block;
    color: blue;
    padding-top: 5px;
}

.coinID {
    display: block;
    color: green;
    padding-top: 5px;
}

.medalID {
    display: block;
    color: purple;
    padding-top: 5px;
}

.itemID {
    display: block;
    color: grey;
    padding-top: 5px;
} */








/* HEADER */

#teiHeader {
  display: block;
  font-family: Junicode;
  font-size: 1em;
  margin-left: 3em;
  margin-top: 2em;
  margin-bottom: 2em;
  text-align: left;
  line-height: 1.1;
  width: 32em;
}

.head {
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 120%;
    color: grey;
    padding-bottom: 2em;
    padding-top: 1em;
}

.reg-unclear {
    color: grey;
    text-decoration: underline;
}

.respname:after {
    display: block;
}

#titleStmttitle {
    display: block;
    font-weight: 600;
    font-size: 140%;
    padding-top: 12pt;
    padding-bottom: 6pt;
    color: grey;
}

.objectDesc:before {
    content: "Object Description: ";
    display: block;
    font-weight: 600;
    font-size: 120%;
    display: block;
    padding-top: 2em;
}

.support:after {
    content: "; ";
}

.extent:after {
     content: "; ";   
}

.condition {
    
}

#sourceDesc {
    display: block;
    padding-top: 1em;
}

.msIdentifier:before {
    content: "Source: ";
    font-weight: 600;
    font-size: 120%;
    display: block;
}

.settlement:after {
    content: ", ";
}

.institution:after {
    content: ", ";
}

.msContents:before {
    display: block;
    content: "Contents: ";
    padding-top: 1em;
    font-size: 120%;
    font-weight: 600;
}

.msItem:before {
    content: "item: ";
    display: block;
    font-style: italic;  
    padding-top: 10pt;
}

.msItem .bibl .title:after {
    content: ", ";
}

.biblScope:after {
    content: ". ";
}

.resp:before {
    content: ", "
}

.respStmt {
    display: block;
}

.handDesc:before {
    display: block;
    padding-top: 1em;
    content: "Hand Description: ";
    font-size: 120%;
    font-weight: 600;
}

.handNote {
    display: block;
}

.bindingDesc:before {
    display: block;
    padding-top: 1em;
    content: "Binding Description: ";
    font-size: 120%;
    font-weight: 600;
}


.history:before {
    content: "History: ";
    display: block;
    padding-top: 1em;
        font-size: 120%;
    font-weight: 600;

}

.origin:before {
    content: "Date: ";
    display: block;
    padding-top: 1em;
    font-size: 120%;
    font-weight: 600;

}


.sourceDesctitle {
    display: inline;
    font-style: italic;
}

.sourceDesctitleArt {
    font-style: normal;
}

.sourceDesctitleJournal:after {
    content: " ";
}

.sourceDesctitleJournal {
    font-style: italic;
}

.sourceDescbibl .date:after {
        content: "."
    }
    
.sourceDescbibl .author:after  {
    content: ". ";
}

.sourceDesctitle:after {
    content: ". ";
}
.sourceDesc bibl date:after  {
    content: ". ";
}


.measure:after {
    content: ". ";
}




.pubPlace {
    display: inline;
}
.pubPlace:after {
    content: ": ";
}
.publisher {
    display: inline;
}
.publisher:after {
    content: ", ";
}
.pubdate:after {
    content: ". ";
}



.publicationStmt {
    display: block;
    padding-top: 5em;
    padding-bottom: 12pt;    
}




/* TABLE */

.table {
	border-collapse: collapse;
}

.row {
    display: block;
}

.cell[data-n='1'] {
	margin-left: 30px;
}

.cell[data-n='2'] {
	margin-left: 140px;
}


.seg[data-type='reverse'] {
    display:block;
}

.seg[data-type='reverse']:before {
    content: "reverse: ";
}


