
@font-face {
  font-family: "Noto Serif";
  src: local(Noto Serif Bold),
  local(NotoSerif-Bold),
  url("ThirdParty/Noto_Serif_4-3-14/NotoSerif-Bold.ttf");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Noto Serif";
  src: local(Noto Serif Bold Italic),
  local(NotoSerif-BoldItalic),
  url("ThirdParty/Noto_Serif_4-3-14/NotoSerif-BoldItalic.ttf");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "Noto Serif";
  src: local(Noto Serif Italic),
  local(NotoSerif-Italic),
  url("ThirdParty/Noto_Serif_4-3-14/NotoSerif-Italic.ttf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Noto Serif";
  src: local(Noto Serif Regular),
  local(NotoSerif-Regular),
  url("ThirdParty/Noto_Serif_4-3-14/NotoSerif-Regular.ttf");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  font-family: "Noto Serif", serif;
  
  background-color: white;
  
  margin: 0;
  padding: 0;
  border: 0;
  
  width: 100%;
  height: 100%; 
}

#XanaEnclosingDiv {
  position: absolute;

  width: 100%;
  height: 100%;
  
  overflow: hidden;
  /* fixes the unusual gap generated by .XanaDivDoc below when its height is >= 100%, as long as elements tagged with .XanaDivDoc are within #XanaEnclosingDiv */
}

#XanaUnderDiv {
  position: absolute;
  z-index: 1;

  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

#XanaCanvas {
  position: absolute;
  z-index: 2;

  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

#XanaOverDiv {
  position: absolute;
  z-index: 3;

  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.XanaDivOverDoc {
  position: absolute;
  
  border: 2px solid transparent;
  width: 40%;
	top: 6em;
  height: calc(100% - 6em); /* adjusting for the height taken by .XanaDivOverHeader and .XanaDivOverSubHeader */
  
  overflow-x: hidden;
  overflow-y: scroll;
  
  display: inline-block;
}

.XanaDivOverHeader {
  position: absolute;
	height: 2em;
	width: 40%;
	border: 2px solid black;
	background-color: white;
	z-index: 1;
	
	overflow: hidden;
}

.XanaDivOverSubHeader {
  position: absolute;
	height: 4em;
	top: 2em;
	width: 40%;
	border: 2px solid black;
	background-color: white;
	z-index: 1;
	
	overflow: hidden;
}

.XanaDivOverDocTextDiv {
	padding: 5px 10px;
}

.XanaDivOverDocHeaderTextDiv {
	padding: 3px 10px;
	overflow: hidden;
}

.XanaDivOverDocSubHeaderTextDiv {
	padding: 3px 10px;
	overflow: hidden;
}

.XanaDivUnderDoc {
  position: absolute;
  
  border: 2px solid black;
	padding: 6em 0 0 0; /* adjusting for the height taken by .XanaDivOverHeader and .XanaDivOverSubHeader */
  width: 40%;
  height: 100%;
  
  overflow-x: hidden;
  overflow-y: scroll;
  
  display: inline-block;
}
