/* BB eBooks BoilerPlate EPUB */
/* Modify as Needed */
/* NOT SUITABLE for Kindle */
/* visit us @ http://bbebooksthailand.com/developers.html */

/* This adds margins around every page to stop ADE's line numbers from being superimposed over content  */
@page {margin: 10px;}


/*
//table
//{
//border-collapse: collapse;
//border-spacing: 0;
//}
*/
/*
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
{
margin: 0;
padding: 2;
border: 0;
font-size: 100%;
}

body{
text-align: justify;
line-height: 120%;
*/
body
{
font-family:  Arial, Helvetica, sans-serif;
padding: 5px;
}

h1{
	color: rgb(118,146,60);
}

h2{
	color: rgb(118,146,60);
}

a:link{
	text-decoration: inherit;
	color: #00007f;
}
a:visited{
	text-decoration: inherit;
	color: #007f00;
}

.genusbg{
	background-color:rgb(118,146,60);
	color: #ffffff;
	text-align: center;
	padding: 5px;
	border-radius: 5px;
}

.genus{
	color:rgb(118,146,60);
	text-align: center;
	padding: 2px;
	font-size: 18pt;
	font-weight: bold;
}
.speciesbg{
	background-color:rgb(118,146,60);
	color: #ffffff;
	text-align: center;
	padding: 5px;
	border-radius: 5px;
	font-size: 18pt;
}

.species{
	color:rgb(118,146,60);
	text-align: center;
	padding: 2px;
	font-size: 16pt;
	font-weight: bold;
}

.spsyn{
	color:rgb(128,146,80);
	text-align: center;
	padding: 2px;
	font-size: 14pt;
}

.subspecies{
	color:rgb(118,146,60);
	text-align: left;
	padding: 2px;
	font-size: 14pt;
	width:100%;
}


table.keyimpair{
	background-color:#ffeedd; 
	border-radius:5px; 
	padding:1px; 
	spacing: 2px;
	border: 1px;
	border-spacing: 6px;
	border-collapse: separate;
}

.keytextimpair1{
	background-color:#ffffee;
	border-radius:5px; 
	padding:1px; 
	spacing: 2px;
}

.keytextimpair2{
	background-color:#ffe7d7;
	border-radius:5px; 
	padding:1px; 
	spacing: 2px;
}

.keyrefimpair{
	display:inline-block; 
	background-color: #ffeedd; 
	border-radius: 5px; 
	padding: 3px; 
	float: right;
}

table.keypair{
	background-color:#eeffdd;
	border-radius:5px; 
	padding:1px; 
	spacing: 2px;
	border: 1px;
	border-spacing: 6px;
	border-collapse: separate;
}
.keytextpair1{
	background-color:#ffffee;
	border-radius:5px; 
	padding:1px; 
	spacing: 2px;
}

.keytextpair2{
	background-color:#e7ffd7;
	border-radius:5px; 
	padding:1px; 
	spacing: 2px;
}

.keyrefpair{
	display:inline-block; 
	background-color: #eeffdd; 
	border-radius: 5px; 
	padding: 3px; 
	float: right;
}


table.dettable{
	border-collapse: collapse;
	padding: 5px; 
	/*border-spacing: 0;*/
}

table.dettable tr:nth-child(even) {
    background-color:#eeffe7;
	vertical-align: top;
}
table.dettable tr:nth-child(odd) {
   	background-color:#ffeee7;
	vertical-align: top;
}

table.dettable a:link{
	display:inline-block; 
	color: #00007f;
	background-color: #e7e7e7; 
	border-radius: 5px; 
	padding: 5px; 
	float: right;
	text-decoration: inherit;
	vertical-align: top;
}
table.dettable a:visited { 
	display:inline-block; 
	color: #00007f;
	background-color: #c7ffc7; 
	border-radius: 5px; 
	padding: 5px; 
	float: right;
	text-decoration: inherit;
	vertical-align: top;
}

table.dettable a:link:active, a:visited:active { 
	display:inline-block; 
	color: #ffffff;
	background-color: #007f00; 
	border-radius: 5px; 
	padding: 5px; 
	float: right;
	text-decoration: inherit;
	vertical-align: top;
}
table.dettable a:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
	background-color: #ffffff; 
}

.btn{
	display:inline-block; 
	border-radius: 5px; 
	padding: 5px; 
	font-size:80%;
}

.btn:link{
	display:inline-block; 
	color: #ffffff;
	background-color: #007f00; 
	border-radius: 5px; 
	padding: 5px; 
	text-decoration: inherit;
	vertical-align: top;
}
.btn:visited { 
	display:inline-block; 
	color: #ffffff;
	background-color: #007f00; 
//	background-color: #00ff7f; 
	border-radius: 5px; 
	padding: 5px; 
	text-decoration: inherit;
	vertical-align: top;
}

.btn:link:active, .btn:visited:active { 
	display:inline-block; 
	color: #ffffff;
	background-color: #00ff00; 
	border-radius: 5px; 
	padding: 5px; 
	text-decoration: inherit;
	vertical-align: top;
}
.btn:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
	background-color: #3f7f3f; 
}

.cbtn{
	display:inline-block; 
	border-radius: 50%; 
	padding: 5px; 
	font-size:80%;
	width: 10px;
	height: 10px;
	border: 1px dotted #aaaaaa;
}

.cbtn:link{
	display:inline-block; 
	color: #ffffff;
	border-radius: 50%; 
	padding: 5px; 
	text-decoration: inherit;
	vertical-align: top;
}
.cbtn:visited { 
	display:inline-block; 
	color: #ffffff;
	border-radius: 5px; 
	padding: 5px; 
	text-decoration: inherit;
	vertical-align: top;
}

.cbtn:link:active, .btn:visited:active { 
	display:inline-block; 
	color: #ffffff;
	border-radius: 5px; 
	padding: 5px; 
	text-decoration: inherit;
	vertical-align: top;
}
.cbtn:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
	border: 1px solid #ffffff;
}


img.head{
	float: left;
	display: block;
	border-radius: 10px 20px 50% 10px; 
	width: 20%;
	min-width: 80px;
	max-width: 150px;
	//margin-top: 5px;
}
img.thumb{
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
	min-width: 90px;
	max-width: 240px;
}
img.sticky{
	position: sticky;
}
div.thumbdiv{
    border: 1px solid #ded;
    border-radius: 4px;
    padding: 5px;
	width: 30%;
	max-width: 310px;
	text-align: center;
	font-size: 90%;
	background-color: #eeffdd; 
	display:inline-block; 
}
div.thumbdiv img { 
	border: 1px;
    border-radius: 4px;
    padding: 5px;
	width: 95%;
}

div.thumbdiv a:link{
	display:inline-block; 
	text-decoration: inherit;
	color: #007f00;
}
div.thumbdiv a:visited { 
	display:inline-block; 
	background-color: #00ff7f; 
	text-decoration: inherit;
}

div.thumbdiv a:link:active, a:visited:active { 
	display:inline-block; 
	color: #ffffff;
	background-color: #007f00; 
	text-decoration: inherit;
}
div.thumbdiv:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
	color: #00ff00;
	background-color: #f7ffd7; 
}

div.map{
	border: 2px solid rgb(118,146,60);
	float: left;
	width: 31%;
	min-height: 120px;
	min-width: 150px;
	max-width: 250px;
	max-height: 350px;
	padding:2px;
	font-size: 80%;
	text-align: center;
	margin: 2px;
}

div.spindex{
	border: 1px solid #cceedd;
	background-color: #ddffee;
//	box-shadow: 3px 3px 8px 2px #888888;
//	border-radius: 4px;
	float: right;
	width: 25%;
	min-width: 150px;
	max-width: 250px;
	padding:3px;
	font-size: 90%;
	text-align: center;
	margin: 5px;
}

div.qv{
	border: 3px solid rgb(118,146,60);
	float: right;
	width: 25%;
	min-height: 120px;
	min-width: 150px;
	max-width: 250px;
	max-height: 350px;
	padding:3px;
	font-size: 80%;
	text-align: center;
	margin: 5px;
}

.maptech{
	border: 3px solid #ffa500;
	background-color: #ffffff;
	min-width: 150px;
	max-width: 250px;
	width: 25%;
	font-size: 90%;
	float: left;
	margin:5px;
}

.maptech img{
	border: 0px;
}
div.tech{
	border: 3px solid #ffa500;
	background-color: #ffc922;
	min-width: 150px;
	max-width: 400px;
	font-size: 90%;
	float: left;
	margin:5px;
	
}
div.tech2{
	border: 3px solid #ffa500;
	background-color: #ffc922;
	min-width: 150px;
	max-width: 400px;
	font-size: 90%;
	float: left;
	margin:5px;
	
}
table.techd{
	border-collapse: collapse;
	padding: 5px; 
	width: 100%;
	text-align:center;
	/*border-spacing: 0;*/
}
div.gallery{
	float: left;
	margin:5px;
	width: 100%;
}
table.techd td:nth-child(1) {
	text-align:left;
}
table.techd tr:nth-child(even) {
    background-color:rgb(253,233,217);
	vertical-align: top;
}
table.techd tr:nth-child(odd) {
   	background-color:rgb(255,243,227);
	vertical-align: top;
}

table.techd2{
	border: 3px solid #ffa500;
	text-align:right;
}
table.techd td:nth-child(1) {
	text-align:right;
}
table.techd2 tr:nth-child(even) {
    background-color:rgb(254,243,227);
	vertical-align: top;
}
table.techd2 tr:nth-child(odd) {
   	background-color:rgb(255,253,237);
	vertical-align: top;
}


table.pheno{
    border-collapse: collapse;
	border: 2px solid #007f33;
	table-layout: fixed;
	padding: 15px;
	font-size: 80%;
   	//overflow-x: scroll;
	/*white-space: nowrap;*/
	//width: 700px;
}
table.pheno thead{
	display: block;
	//width: 700px;
}
table.pheno	thead tr{
/*	position: relative;*/
}

table.pheno th{
	background-color: #88dd88;
	text-align: center;
	padding: 5px;
	//width: 29px;
}

table.pheno	th:nth-child(1) {
	//width:160px;
}

table.pheno tbody{
	display:block;
    //height: 75vh; /* For 100% screen height */
	text-align: center;
   	//overflow-y: scroll;
	width: 100%;
}

table.pheno	td {
	padding: 5px;
	//width: 20px;
}
table.pheno	td:nth-child(1) {
    font-style: italic;
	text-align: left;
	//width:200px;
	font-weight: bold;
}

table.pheno tbody tr:nth-child(even) td:nth-child(even) {
    background-color: #aaffbb;
}

table.pheno tbody tr:nth-child(even) td:nth-child(odd){
    background-color: #aaffcc;
}

table.pheno tbody tr:nth-child(odd)  td:nth-child(even){
    background-color: #bbffcc;
}

table.pheno tbody tr:nth-child(odd)  td:nth-child(odd){
    background-color: #bbffdd;
}


table.chart{
	width:100%;
	max-width:800px;
	font-size:80%;
	border: 1px solid #ddd;
}
table.chart th{
}
table.chart td{
	border-left-style:dashed;
	border-left: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	border-bottom-style:dotted;
}

table.chart td:nth-child(1){
	border-left-style:none;
	border-left:0px;#fff;
	text-align:right;
	border-bottom: 1px solid #ddd;
	border-bottom-style:dotted;
}

table.chart tbody tr:nth-child(odd){
    background-color: #ffffff;
}
table.chart tbody tr:nth-child(odd){
    background-color: #eeeeee;
}

	.fchart-fl{
		background-color:#eeccff;
		padding:2px;
		border-color:#7f7f7f;
		box-shadow: 3px 3px 8px 2px #888888;	
		margin-top: 3px;
	}
	.fchart-fr{
		background-color:#cc8800;
		padding:2px;
		border-color:#7f7f7f;
		box-shadow: 3px 3px 8px 2px #888888;	
		margin-bottom: 3px;
	}
	.fchart-l{
		float:left;
		font-weight:bold;
		font-size:80%;
	}
	.fchart-r{
		float:right;
		font-weight:bold;
		font-size:80%;
	}
	.fchart-label{
		width:30%;
		min-width: 80;
		float:right;
		text-decoration:none;
		font-size:80%;
	}
	.fchart-area{
		float:right;
		text-decoration:none;
		font-size:80%;
		width:60%;
		min-width: 200;
	}

.chart-red{
	background-color:#ff0000;
	border-color:#7f7f7f;
	box-shadow: 3px 3px 8px 2px #888888;
}
.chart-yellow{
	background-color:#eeee00;
	border-color:#7f7f7f;
	box-shadow: 3px 3px 8px 2px #888888;
}
.chart-green{
	background-color:#00ff00;
	border-color:#7f7f7f;
	box-shadow: 3px 3px 8px 2px #888888;
}
.chart-blue{
	background-color:#0088ff;
	border-color:#7f7f7f;
	box-shadow: 3px 3px 8px 2px #888888;
}

.chart-cyan{
	background-color:#00ffff;
	border-color:#7f7f7f;
	box-shadow: 3px 3px 8px 2px #888888;
}

.chart-orange{
	background-color:#ff8800;
	border-color:#7f7f7f;
	box-shadow: 3px 3px 8px 2px #888888;
}

#myInput {
  width: 200px;
  font-size: 16px;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

.sp-toc {
	font-style: italic; 
	font-weight: bold;
	background-color: #ffdd00;
	float: left;
	padding: 5px;
	vertical-align: middle;
	border-radius: 5px;
	height: 50px;
	min-width: 160px;
	white-space: nowrap;
}

.sp-toc img{
	border-radius:5px; 
	width: 40px; 
	height: 40px;
	float:left;
}

.qvalt{
	background-color: #ccffaa;
}
.qvflo{
	background-color: #ffffaa;
}
.qvfru{
	background-color: #666633;
	color: #ffffff;
}
.qvfrm{
	color: #007f00;
}
.qvm1000{
	background-color: #eeeeee;
	color: #887700;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}
table.muchdata{
	font-size:75%;
}

@media screen and (max-width: 480px) {
	img.head{
		display: none;
	}
	table.pheno{
		font-size: 50%;
	}	
	
	div.thumbdiv{
		float: none;
    	border: 2px solid #ded;
	    border-radius: 4px;
    	padding: 1px;
		width: 100%;
		text-align: center;
		font-size: 70%;
		background-color: #eeffdd; 
		display:inline-block; 
	}
	img.thumb{
	    border: 1px solid #ddd;
    	border-radius: 4px;
	    padding: 5px;
		width: 100%;
	}

	div.spindex{
		float: none;
		width: 100%;
		min-width: 50px;
		padding:3px;
		font-size: 70%;
		text-align: center;
		margin: 1px;
	}
	div.qv{
		border: 2px solid rgb(118,146,60);
		float: none;
		width: 100%;
		min-width: 50px;
		padding:3px;
		font-size: 70%;
		text-align: center;
		margin: 1px;
	}
	div.tech{
		border: 3px solid #ffa500;
		background-color: #ffc922;
		width: 99%;
		font-size: 80%;
		float: left;
		margin:5px;
	}
	div.tech2{
		border: 3px solid #ffa500;
		background-color: #ffc922;
		width: 99%;
		font-size: 80%;
		float: left;
		margin:5px;
	
	}
	table.muchdata{
		font-size:50%;
	}
}
@media screen and (min-width: 480px) and (max-width:640px) {
	table.pheno{
		font-size: 70%;
	}	
	div.thumbdiv{
    	border: 2px solid #ded;
	    border-radius: 4px;
    	padding: 1px;
		width: 47%;
		text-align: center;
		font-size: 70%;
		background-color: #eeffdd; 
		display:inline-block; 
	}
	img.thumb{
	    border: 1px solid #ddd;
    	border-radius: 4px;
	    padding: 5px;
		width: 45%;
	}

	div.spindex{
		float: right;
		width: 40%;
		padding:3px;
		font-size: 80%;
		text-align: center;
		margin: 1px;
	}
	div.qv{
		border: 2px solid rgb(118,146,60);
		float: right;
		width: 40%;
		padding:3px;
		font-size: 70%;
		text-align: center;
		margin: 1px;
	}
	div.tech{
		border: 2px solid #ffa500;
		background-color: #ffc922;
		width: 100%;
		font-size: 80%;
		float: left;
		margin:5px;
	}
	div.tech2{
		border: 2px solid #ffa500;
		background-color: #ffc922;
		width: 100%;
		font-size: 80%;
		float: left;
		margin:5px;
	
	}
	table.muchdata{
		font-size:60%;
	}

}

