@media screen and (min-width: 981px) {
	#transcription, #normtrans, #metadata, #letterpdf {
		width: 49.5%;
	}
	
	#selector {
		display: block;
	}

	#selector-links {
		width: 49.5%;
		position: relative;
		left: 50.5%
	}
	
	#trans-link { display: none; }
	
	#metadata, #normtrans, #letterpdf {
		position: absolute;
		top: 0;
		left: 50.5%;
	}
	
	#transcription {
		position: relative;
		top: 0;
	}
	
	#panels {margin-top: 20px;}
}

@media screen and (max-width: 980px) {
	#metadata, #letterpdf , #normtrans{
		width: 100%;
		position: absolute;
		top: 0;
		left: 0;
	}
	
	#transcription {
		width: 100%;
		position: relative;
	}
	#selector {
		display: block;
	}

	#panels {margin-top: 20px;}
}

article h1
{
    font-size: 32px;
    text-align: left;
}

article h1.letter-panel
{
	text-align: center;
}

article h2
{
    font-size: 15px;
}

article h3
{
    font-size: 16px;
    text-align: left;
}

article h3.letter-panel
{
	text-align: center;
}

article h4
{
    font-size: 20px;
    text-align: left;
}

article h4
{
    text-align: center
}
article div { z-index: 0; }

article hr {
	margin-left: 0;
	width: 300px;
	border: 1px solid #6b2c91;
}

article hr.milestone {
	opacity: 0.50;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	margin-bottom: 0;
    height: 0px;
    border: none;
    border-top: 1px solid #6b2c91;
}

article hr.milestone[style="100%"] {
	width: 100%
}

article hr.milestone[style="50%"] {
	width: 50%;
}

article hr.milestone[style="20% align-left"] {
	width: 20%;
	margin-left: 5%;
}

article hr.milestone[style="20% align-right"] {
	width: 20%;
	margin-right: 20%;
}

article hr.milestone[style="20%"] {
	width: 20%;
}

article b.meta
{
    color: #6b2c91;
    font-size: 14px;
}

article a:link, article a:visited
{
	color: #bb4dff;
	text-decoration:none;
}

article a:hover 
{
	text-decoration:underline;
	cursor: pointer;
}

article a.current { 
	background: #ddd; 
	padding: 2px;
}

#title {
	width: 100%;
	background: white;
}

#previous {
	display: block;
	float: left;
}

#next {
	display: block;
	float: right;
}

#previous[href=''], #next[href=''] {
	display: none;
}

#transcription, #normtrans, #metadata, #letterpdf {
	border: 2px solid #ddd;
	border-radius: 10px;
	height: 800px;
	overflow: auto;
	background: #fff;
	display: inline-block;
	padding-top: 1em;
}

#transcription p {
	margin: auto;
}

#letterpdf object {
	width: 99%;
	height: 720px;
}

article .ham-container {
	padding: 1.5em;
}

article .top {
	z-index: 1;
}

#selector
{
    font-size: 16px;
    padding-bottom: 3px;
	text-align: center;
	margin: auto;
}

#message
{
    font-size: 14px;
    text-align: center;
    color: #522900;
    padding-top: 25px;
}


#panels
{
    position: relative;
}

#panels div {
	vertical-align: text-top;
}

/* Added normtrans for message at foot. DD 2019-08-16	*/
#transcription .annotation, #normtrans .annotation {
	font-family: "Georgia", serif;
	font-size: 95%;
	font-style: italic;
	color: green;
}

article sup, article sub {
	font-size: 75%;
}

#transcription .rend-above {
	position: relative;
	top: -0.8em;
}

#transcription .rend-below {
	position: relative;
	top: 0.8em;
}

article span > span.reg {
  display: none;
  position: absolute;
  padding: 3px;
  background: #fff;
  color: #666;
  border: 1px solid #1a1a1a;
  z-index: 2;
}

article span:hover > span.reg {
	display: block;
}

article span:hover > span > span.reg {
	z-index: 3;
}

article span > span.inline {
  display: none;
}

/* wordpress design changes for presence of a letter */

#main-content.hasletter h1.entry-title, #main-content.hasletter #sidebar, #main-content.hasletter .container:before  {
	display: none;
}

#main-content.hasletter #left-area {
	width: 100%;
	padding-right: 0;
	float: none;
}
