body {
	margin: 0;
	padding: 0;
	position: absolute;
	width: 100%;
	background-color: #E5F5FC;
	background-image: url("iceland.jpg");
	background-attachment: fixed;
	background-position: center;
	font-family: sans-serif;
}

/* links */

a:link, a:visited {
	text-decoration: none;
	border-bottom: 1px dotted #FF0030;
	color: black;
}

a:hover {
	color: #FF0030;
	border-bottom: 1px solid;
}

.text sup a:link, .text sup a:visited, .text a:link sup, .text a:visited sup {
	font-weight: normal;
	font-style: normal;
	border: 1px solid #FF0030;
	text-decoration: none;
	font-size: 80%;
	color: black;
	padding: 0 2px 0 2px;
}

.text sup a:hover, .text a:hover sup {
	background-color: #E5F5FC;
	color: #FF0030;
}

.places:link, .places:visited {
	border-bottom: 1px dotted blue;
}

.places:hover {
	color: blue;
	border-bottom: 1px solid blue;
}

.persons:link, .persons:visited {
	border-bottom: 1px dotted green;
}

.persons:hover {
	color: green;
	border-bottom: 1px solid green;
}

.commodities:link, .commodities:visited {
	border-bottom: 1px dotted orangered;
}

.commodities:hover {
	color: orangered;
	border-bottom: 1px solid orangered;
}

.vessels:link, .vessels:visited {
	border-bottom: 1px dotted purple;
}

.vessels:hover {
	color: purple;
	border-bottom: 1px solid purple;
}

/* structure */

#tags {
	display: none;
}

p:empty {
	display: none;
}

#sourceDesc, #titleStmt, #notesStmt, .text {
	margin: 0 auto 40px auto;
	width: 75%;
	background-color: white;
	padding: 20px 50px;
}

#summary {
	clear: both;
	font-size: 120%;
}

#date {
	display: inline;
	font-weight: bold;
	float: left;
	width: 49%;
	font-size: 160%;
	position: relative;
	top: -20px;
	margin-bottom: 0px;
}

#date:empty {
	display: none;
}

#place {
	display: inline;
	font-weight: bold;
	font-size: 160%;
	float: right;
	text-align: right;
	width: 49%;
	position: relative;
	top: -20px;
	margin-bottom: 0px;
}

#place:empty {
	display: none;
}

#publicationStmt {
	display: none;
}

/*Sources section*/

#sourceDesc:before {
	content: "Sources";
	display: block;
	font-weight: bold;
	font-size: 150%;
	margin-top: 20px;
}

.msDesc {
	display: table;
	width: 90%;
	margin: 20px;
}

.srcId, .msIdentifier, .institution, .idno {
	display: inline;
	font-weight: bold;
}

.srcId::after {
	content: ". ";
}

.institution {
	margin-right: -5px;
}

.idno:not(:empty)::before {
	content: ", ";
}

.physDesc p {
	display: table-row;
}

.physDesc p:before {
	display: table-cell;
	padding-right: 10px;
	width: 200px;
}

.altIdentifier:before {
	content: "Former identifier: ";
}

.extent:before {
	content: "Extent: ";
}

.collation:before {
	content: "Collation: ";
}

.dimensions:before {
	content: "Dimensions: ";
}

.material::before {
	content: "Material: ";
}

.condition::before {
	content: "Condition: ";
}

.foliation::before {
	content: "Foliation: ";
}

.handDesc:before {
	content: "Script: ";
}

.bindingDesc:before {
	content: "Binding: ";
}

.sealDesc:before {
	content: "Seal: ";
}

.version:before {
	content: "Version: ";
}

.textLang:before {
	content: "Language: ";
}

.additions:before {
	content: "Contemporary notes: ";
}

.remarks:before {
	content: "Remarks: ";
}

.facsimile::before {
	content: "Digital facsimile: ";
}

.edition::before {
	content: "Editions: ";
}

.altIdentifier:empty:before, .extent:empty:before, .collation:empty:before, .dimensions:empty:before, .material:empty:before, .condition:empty:before, .foliation:empty:before, .handDesc:empty:before, .bindingDesc:empty:before, .sealDesc:empty:before, .version:empty:before, .textLang:empty:before, .additions:empty:before, .remarks:empty:before {
	display: none;
}

/* links to other documents */

.accompanyingDoc:first-of-type:not(:empty):before {
	content: "Accompanying documents: ";
}

.referredDoc:first-of-type:not(:empty):before {
	content: "Documents referred to in the text: ";
}

.relatedDoc:first-of-type:not(:empty):before {
	content: "Related documents: ";
}

.accompanyingDoc, .referredDoc, .relatedDoc {
	display: inline-block;
	margin: 0px;
}

.accompanyingDocs, .referredDocs, .relatedDocs {
	margin-bottom: 10px;
}

.accompanyingDoc:not(:empty)::after, .referredDoc:not(:empty)::after, .relatedDoc:not(:empty)::after {
	content: ",\00a0";
}

.accompanyingDoc:not(:empty):last-of-type::after, .referredDoc:not(:empty):last-of-type::after, .relatedDoc:not(:empty):last-of-type::after {
	content: ".";
}

/* transcript layout */

.text:before {
	content: "Transcript";
	display: inline-block;
	font-weight: bold;
	font-size: 150%;
	margin-top: 20px;
}

.title {
	font-weight: bold;
	font-size: 150%;
	display: inline;
}

.title:not(:empty):before {
	content: ": ";
}

.body:empty:before {
	content: "Transcript not available";
}

.comment {
	font-style: italic;
}

.subdiv {
	margin-top: 40px;
	font-size: 100%;
	font-weight: bold;
}

table tr td {
	vertical-align: top;
}

table tr td:not(:last-of-type) {
	padding-right: 0.5em;
}

table tr td:not(:first-of-type) {
	padding-left: 0.5em;
}

#tableContents:before {
	content: "Contents";
	font-style: italic;
	font-weight: bold;
}

#tableContents {
	margin-top: 20px;
}

.text ul {
	list-style-type: none;
	margin-left: 0;
	padding: 0;
}

.text mark {
	background-color: transparent;
	text-decoration: underline;
}
