body {
  margin:0;
  overflow: hidden;
  font-size: 14px;
  padding: 0;
  background-color: #ececec;
}
p {
	padding: 0;
	margin: 0;
}
#leftside {
  /*! border-right: 2px solid gray; */
  padding: 0px 3px 0px 5px;
  left: 0px;
  top: 0px;
  z-index: 1;
  width: 200px;
  font-family: "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
  font-size: 14px;
  height: 99vh;
  position: fixed;
  display: table-cell;
  overflow-y: auto;
}
details {
  /*! margin: 5px 0; */
}
details[open] {
  padding: 0 0 5px;
}
details[open]:last-of-type {
  border-bottom: 2px solid lightgray;
}
summary {
  border-top: 1px solid #b3b3b4;
  border-bottom: 1px solid #adadad;
  margin: 5px 0;
  position: relative;
  font-weight: bold;
  font-size: 16px;
  color: #002371;
  text-indent: 5px;
  padding: 2px 0;
}
summary:hover {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  cursor: pointer;
  color: black;
}
#rightside {
  display: table-cell;
  padding: 0 20px 20px 220px;
}
#feedback-container {
	position: absolute;
	margin-right: 35%;
	border: 1px solid #f00;
	height: 2em;
	width: 200px;
	/*! margin-left: calc(50% - 320px); */
	background-color: #7FCDBB;
	z-index: 10;
}
#feedback-message {
	text-align: center;
}
label:hover {
  cursor: pointer;
}
.has-darrow:before {
	content: '\25BC\00A0';
}
.has-rarrow:before {
	content: '\25BA\00A0';
}
.legend {
  border: 1px solid gray;
  margin: 0px;
  padding: 5px;
  text-align: center;
  height: 1em;
  width: 1em;
  display: inline;
}
.nl, .nolink {
	white-space: nowrap;
}
.pointer {
	cursor: pointer;
}
.fl {float: left;}
.fr {float: right;}
#outputLength {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1em;
}
#output_box {
  margin-top: 5px;
}
#output, #residue {
  width: 95%;
  height: 10em;
  font-size: 1.1em;
}
#residue_wrapper {
	position: relative;
}
#residue {
  background-color: #e6e2ac;
}
#remove_residue {
	position: absolute;
	right: 0px;
	top: 5px;
	font-size: 1.5em;
	color: red;
	border: 1px solid red;
	padding: 0 7px;
  border-radius: 50%;
  background-color: yellow;
  cursor: pointer;
  font-weight: 700;
}
h4 {
  margin-bottom: 0px;
  margin-top: 0px;
  text-align: center;
}
.btn {
  padding: 2px;
  overflow: visible;
  margin: 2px 0;
  cursor: pointer;
  font-size: .9em;
  border-radius: 5px;
  background-color: #ddd;
  border: 2px outset #ddd;
}
.btn:hover {
  background-color: #bbb;
}
.new {
	background-color: #ffc600 !important;
}
.help {
  border: none;
  position: relative;
  left: 40px;
  top: 18px;
  clear: both;
}
.hidden, .is-none {
  display: none !important;
}
.spellingpatterns {
	text-align: left;
	padding-left: 5px;
	border-width: 0px;
	padding-bottom: 1px;
}
.b1 {
	border: 1px solid gray;
	padding: 6px 3px 6px 5px;
}
img {
  border: none;
}
hr {
  margin: 5px 2px;
}
h1#page_title {
  font-size: 1.5em;
  color: #005db6;
  margin: 5px 0px 0px 0px;
  font-family: "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
  text-align: left;
}
select {
  font-size: 14px !important;
}
#chart_controls {
	padding: 5px 0px;
	font-size: 14px;
	line-height: 1.3em;
	font-family: "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
}
.chart_summary {
	font-family: "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
	padding-bottom: 5px;
	height: 1.5em;
}
#chartFlipper {
	margin-left: 5px;
	/*! top: -4px; */
	border: 1px solid #9e9e9e;
	/*! padding: 9px 3px; */
	position: relative;
	display: inline-block;
}
#chart_controls + span.compact {
	display: block;
}
.inline {
	display: inline !important;
}
.compact {
	display: block !important;
}
.compact.inline {
	display: inline !important;
}
#chart_controls span.inline{
	font-size: 12px;
}

#chart_container {
	/*! overflow-y: scroll; */
	overflow: auto;
	width: calc( 100vw - 220px);
	position: relative;
  background-color: #fff;
	/*! padding-bottom: 0px; */
}
#chart_container.data_all {
	height: calc(100vh - 170px);
}
#chart_container.data_1 {
	height: calc(100vh - 126px);
}
#chart_container.taller {
	height: calc(100vh - 77px);
}
table.main_chart {
	margin: 0 0 2em;
}
table.main_chart thead {
	position: relative;
}
table.main_chart thead tr {
	position: fixed;
	z-index: 10;
	width: 100%;
	background-color: #ececec;
	height: 21px;
	border-bottom: 1px solid gray;
}
table.main_chart tbody {
	position: relative;
	top: 21px;
	display: block;
	border-top: 1px solid gray;
	border-left: 1px solid gray;
}
table.main_chart th {
  font-family: "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
  text-align: center !important;
  font-size: 14px;
  width: 50px;
}
table.main_chart th.spellingpatterns {
  width: 150px;
}
table.main_chart td {
	border: 1px outset #adadad;
	padding: 2px 4px;
  min-width: 40px;
}
.gtotal, .gpcRowMax, .gpcRowTotal, .gpcComplexity, .rownum, .cv {
	padding: 0px 3px;
	text-align: center;
	max -width: 3em;
}
.link {
	display: inline-block;
	padding: 0 3px;
}
.link1 {
  white-space: nowrap;
}
.link:hover, .link1:hover {
  cursor: pointer;
  outline: 1px dotted #0080C0;
}
.stats {
  text-align: center;
}
.ipa, .letter {
  font-size: 20px;
  background-color: #A0D6FE;
}
tr {
  margin-top: 0px;
  margin-bottom: 0px;
}
.phoneme {
  font-family: "Doulos SIL","Charis SIL","Times New Roman",Times,serif;
  text-align: center;
  font-weight: inherit;
  font-size: 1.4em;
  cursor: pointer;
  /*! width: 50px; */
}
.hl1 {
  border-color: red;
  background-color: #F9F45E !important;
  cursor: pointer;
}
.hl2 {
  background-color: #ffcf00 !important;
}
.collapsible {
	padding: 5px 2px 0 5px;
}
.gpc {
  box-shadow: 4px 4px 5px #ccc;
  background-color: white;
}
.grapheme {
  font-family: serif;
  font-weight: bold;
  font-size: 1.5em;
  color: #900000;
  line-height: 0.8em;
  white-space: nowrap;
}
.key, .keyword {
  color: black;
  font-size: 1.2em;
  display: block;
}
.mappedWords {
  background-color: #d8d186;
  max-height: 4em;
  overflow: hidden;
}
.low {
  background-color: #FFFFD9;
  vertical-align: top;
}
.mid {
  vertical-align: top;
  background-color: #C7E9B4;
}
.high {
  vertical-align: top;
  background-color: #7FCDBB;
}
.mid2 {
  background-color: #ff6600;
}
.gpcCellTotal {
  color: red;
  /*! padding-left: 5px; */
}
#totalHighlights {
	font-weight: bold;
}
a:link, a:active, a:visited {
  text-decoration: none;
  /*! line-height: .8em; */
  padding: 0 4px;
}
a:hover {
  background-color: #9ad2ff;
  color: black;
}
label:hover {
  cursor: pointer;
}
input[type="checkbox"] {
	display: none;
}
#homographs_wrapper {
  margin-top: 5px;
  padding: 2px;
}
#homographs_container > div {
  min-width: 3em;
  border: 1px solid gray;
  margin: 3px;
  padding: 4px;
  background-color: #e6f6f9;
  border-radius: 5px;
  display: inline-block;
}
#clear_homographs {
	cursor: pointer;
	display: block;
	text-align: center;
	margin: 0 0 5px 0;
	padding: 4px;
  border: 1px solid #c2c2c2;
  border-radius: 4px;
  background-color: #d1d1d1;
}
#clear_homographs:hover {
	color: white;
	background-color: red;
}
#syllable_buttons .syll_label, #chart_controls label, .show_rows_label, .patterns_label, #rearrangeMenuButton {
  padding: 3px 10px;
  border: 1px solid #c2c2c2;
  margin: 3px;
  display: inline-block;
  border-radius: 5px;
  background-color:#d1d1d1;
  font-family: "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
}
/*
#show_rows input[type="checkbox"]:checked + label,
#show_controls input[type="checkbox"]:checked + label,
#show_decodables input[type="checkbox"]:checked + label,*/
input[type="checkbox"]:checked + label {
	background-color: #ffc600 !important; /* ffc600 */
	border: 1px solid gray;
	box-shadow: 0 0 3px gray;
}
#syllable_buttons {
  margin: 7px 0 0 0px;
}
#fontsize_container {
	padding-left: .5em;
	white-space: nowrap;
}
.copyright {
  padding: 5px 0 20px 10px;
  margin-bottom: 2em;
}
.page_footer {
  margin-top: 1em;
  margin-bottom: 1em;
}
/**  Colours
primary-1: leftside, ipa cell
**/

.color-primary-1 { /*! background-color: #A0D6FE; */ }
.color-primary-2 { background-color: #C5C5C5; }
.color-primary-0 { background-color: #49B0FF }	/* Main Primary color */
.color-primary-3 { background-color: #1E9DFF }
.color-primary-4 { background-color: #0891FB }

summary:hover {
  background-color: #a6a8ab; /* 1E9DFF */
}

label:hover {
  background-color: #efd077 !important;
}

#spellingPatterns {
  margin: auto;
}
#spellingPatterns th a {
  display: block;
  width: 99%;
}
#gpcs_wrapper {
  text-align: center;
}
.ui-control {
  padding: 5px;
  border: 1px solid gray;
  margin: 0 1em;
}
/* Print definitions */
@media print {
  #leftside,
  #output,
  #outputLength,
  #chart_controls,
  #fontsize_container,
  #syllable_buttons,
  table.main_chart thead ,
  .stats,
  .rownum,
  .gTotal,
  .gpcRowMax,
  .gpcRowTotal,
  .l2, .l3, .l4, .l5, .l6,
  .sortarrow {
   display: none;
  }
  .chart_summary {
    margin-bottom: 5px;
  }
  #rightside {
    position: static;
    padding: 10px;
  }
  table.main_chart {
  	padding-top: 5px;
  	margin: 0 0 1em;
  	/*height: 100% !important;*/
  	border-top: 1px solid gray;
  }
  table.main_chart tbody {
  	height: 100%;
  	position: relative;
  	top: 3px;
  }
  table td {
    margin: 0px;
    padding: 2px 0px 2px 5px;
  }
  body {
    background: #ffffff none repeat scroll 0%;
    color: #000000;
    font-family: "Times New Roman",Times,serif;
    font-size: 10pt;
  }
  h1 {
    font-size: 3em;
  }
  #chart_container {
    height: 100%;
    margin: 0;
    padding: 0;
    border-width: 0px;
    overflow: visible;
  }
  .chart_summary {
  	padding: 0;
  }
  table.main_chart tbody {
    border-width: 0px;
  }
  /*
  table.main_chart thead tr {
    position: relative;
    background-color: #fff;
    width: calc(50%);
    border-width: 0px;
    height: 20px;
    display: none;
  }
  table.main_chart thead th.ipa {
    width: 50px !important;
    height: 20px;
  }
  table.main_chart tbody {
    top: 0;
  }
  table.main_chart thead th.spellingpatterns {
    width: 200px !important;
  }
  */
}

#rearrangeMenuButton {
  float: right;
  margin: 0.5em 15px 0 0;
  cursor: pointer;
  border: 1px solid darkgray;
  /*! border-radius: 5px; */
  /*! padding: 3px; */
}

#rearrangeMenuButton:hover {
  background-color: #efd077;
}

.grapheme_wrapper {
  display: block;
  margin-right: 18px;
}

#web_link {
	margin: 0 3em;
	font-size: 16px;
	float: none;
}