/******************************************************
Style sheet for online fieldguide
Author: Geoff Shuetrim
******************************************************/

h1.compact {margin-bottom: 0.0em;}
h2.compact {margin-top: 0.5em; margin-bottom: -0.5em;}
h3.compact {margin-top: 0.5em; margin-bottom: 0.0em; }
h4.compact {margin-top: 0.5em; margin-bottom: 0.0em; }
h5.compact {margin-top: 0.5em; margin-bottom: 0.0em; }
h6.compact {margin-top: 0.5em; margin-bottom: 0.0em; }

/******************************************************
Background colour of page
******************************************************/

body {
	background-color: white;
}

body.main {
	padding-top: 2em;
}

body#tinymce {
	background-color: white;
}

div.contentBanner {
	background-color: white;
}

div.contentFooter {
	background-color: white;
}

/******************************************************
Placement of search text in search field.
******************************************************/
.input span {
  position: absolute;
  padding-top: 0.5em;
  padding-left: 0.5em;
  color: #999;
  z-index: 1;
}
.input input, .input textarea, .input select {
  z-index: 0;
}

/* Hack to remove Safari's extra padding. Remove if you don't care about pixel-perfection. */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .input input, .input textarea, .input select { padding: 4px; }
}

/******************************************************
Document margins
******************************************************/

div.doc-section {
	margin-bottom: 2.5em;
}

/*****************************************************
Styles for form field labels
*****************************************************/

div.label {
  text-align: right;
  font-weight: bold;
}

div.centre {
  margin: 0 auto;
}

div.leftlabel {
  text-align: left;
  font-weight: bold;
}

div.toplabel {
  text-align: left;
  font-weight: bold;
  margin-bottom: -1em;
}

.smaller {
	font-size: 65%;
}

/******************************************************
Navigation sidebar formats
******************************************************/
nav {	position: fixed; }
nav ul { float: left; }
nav ul li { 
	display: block; 
}
nav ul li a,nav ul li a:visited,nav ul li a:active {
	color: #338;
	text-decoration: none;
	font-weight: normal;
}
nav ul li a:hover,nav ul li a:focus {
	color: #222;
}

/* Logo placement in navigation bar */
nav ul li img {
	max-width: 140px;
	margin-bottom: 0em;
  margin-top: 0em;
  margin-left: 0em;
  margin-right: 0em;
}

table.nav {
    width: 100%;
}

td.nav {
}

td.left {
		width: 30%;
		border-right-style: solid;
		border-right-width: 1px;
		border-right-color: black;
}

td.right {
	width: 70%;
	padding-left: 7px;
}

/******************************************************
Format customisations for various screen sizes
******************************************************/
/* Mobile navigation formats */
@media only screen and (max-width: 767px) {
	header h1 {
		font-size: 34px;
		line-height: 37px;
	}
	nav {
		position: relative;
	}
	#logo {
		text-align: left;
	}
	#examples .four.columns {
		padding-top: 30px;
	}
	body.main {
	  padding-top: 0.2em;
	}
	div.label {
	  text-align: left;
	}
}

/* Mobile Landscape */
@media only screen and (min-width: 480px) and (max-width: 767px) {
	
  body.main {
    padding-top: 0.2em;
  }
  div.label {
    text-align: left;
  }
}

/* Screen smaller than 960 */
@media only screen and (max-width: 959px) {
	#logo {
		font-size: 21px;
		margin-bottom: 15px;
	}
	nav .button {
		padding: 9px 20px 11px;
	}
  body.main {
    padding-top: 0.75em;
  }
  div.label {
    text-align: left;
  }
}

/* iPad portrait mode */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	nav {
		width: 124px;
	}
  body.main {
    padding-top: 0.75em;
  }
  div.label {
    text-align: left;
  }
}

/* Mobile/Browser */
@media only screen and (max-width: 767px) {
  body.main {
    padding-top: 0.75em;
  }
}

/* Mobile Landscape/Browser */
@media only screen and (min-width: 480px) and (max-width: 767px) {
  body.main {
    padding-top: 0.75em;
  }
  div.label {
    text-align: left;
  }
}

/* Anything smaller than standard 960 */
@media only screen and (max-width: 959px) {
  body.main {
    padding-top: 0.75em;
  }
  div.label {
    text-align: left;
  }
}

/* iPad Portrait Only */
@media only screen and (min-width: 768px) and (max-width: 959px) and (max-device-width: 1000px) {
  body.main {
    padding-top: 0.75em;
  }
  div.label {
    text-align: left;
  }
}

/* Mobile Only */
@media only screen and (max-width: 767px) and (max-device-width: 1000px) {
  body.main {
    padding-top: 0.75em;
  }
  div.label {
    text-align: left;
  }
}

/* Mobile Landscape Only */
@media only screen and (min-width: 480px) and (max-width: 767px) and (max-device-width: 1000px) {
  body.main {
    padding-top: 0.75em;
  }
  div.label {
    text-align: left;
  }
}

/* Anything smaller than standard 960 on a device */
@media only screen and (max-width: 959px) and (max-device-width: 1000px) {
  body.main {
    padding-top: 0.75em;
  }
  div.label {
    text-align: left;
  }
}


/*****************************************************
Banner warning
*****************************************************/
.error {
    color: red;
}

/*****************************************************
Page footer text size
*****************************************************/

div.footer {
  text-align: left;
  font-weight: bold;
  font-size:0.7em;
}

/******************************************************
Form button formats 
******************************************************/

/* Make sure all form buttons have the same width */
input[type='submit'].standardised {
	width: 5em;
  margin-right: 0.2em;
  font-size: 0.8em;
}

input[type='button'].standardised {
	width: 5em;
  margin-right: 0.2em;
  font-size: 0.8em;
}

input[type='submit'].bigStandardised {
	width: 10em;
  margin-right: 0.2em;
  font-size: 0.8em;
}

input[type='submit'].textLinkButton {
   background:none!important;
   border:none; 
   padding:0!important;
   font: inherit;
	 color: #338;
   cursor: pointer;
}

/******************************************************
Basic formatting for headings etc.
******************************************************/
div.groupHeading {
	font-size: 1.5em;
}

div.commonNameHeading {
	margin-top: 0.5em;
	font-size: 1.2em;
}

/******************************************************
Format for pages that allow a list reordering 
******************************************************/
#groupSortlist {  
  cursor: pointer;
}
#sortlist {  
  cursor: pointer;
}
div.groupNames {
}

/******************************************************
Format for hierarchy breadcrumbs 
******************************************************/
div.roundedCorners {
  border-radius: 8px; 
  -moz-border-radius: 8px; 
  -webkit-border-radius: 8px; 
}

div.breadcrumbsBox {
	font-size:0.8em;
}

div.breadcrumbContainer {
  padding-left:0.5em;
  line-height: 1.4em;
}

.padBreadcrumb {
}

span.currentLevel {
  text-decoration: underline;
}

div.inFieldGuide {
	background-color: #B7E9FF;
}

div.inTaxon {
	background-color: #D0F5A9;
}

div.notInTaxon {
	background-color: #F5ABB0;
}

div.nameBox {
	line-height: 1.25em;	
	font-size: 0.9em;
	background-color: #D0F5A9;
	padding-top:0.25em;
	padding-bottom:0.25em;
	margin-bottom: 1em;
}

div.lineCombo {
	margin-left:0.5em;
	display: table;	
}

span.lineName {
	width:5em;
 	display:table-cell;
 	text-align: left;
	padding-right:0.5em;
}

div.controlsBox {
	line-height: 1.25em;
	font-size: 0.9em;
	background-color: #EEEEEE;
	padding-top:0.25em;
	padding-bottom:0.25em;
	margin-bottom: 1em;
}

div.guidesBox {
	line-height: 1.25em;	
	font-size: 0.9em;
	background-color: #B7E9FF;
	padding-top:0.25em;
	padding-bottom:0.25em;
}

span.lineValue {
	display:table-cell;
}

div.lineItem {
	margin-left:0.5em;
}

div.recordButton {
	margin-bottom: 0.5em;
  background-color: #338;
  text-align:center;
  font-weight: bold;
  font-size: 1.5em;
  border: 3px solid; 
  border-color: #338;
  border-radius: 8px; 
  -moz-border-radius: 8px; 
  -webkit-border-radius: 8px; 
}

a.recordButton {
  color: #FFFFFF;
}

div.recordButton:hover {
  color: #FFFFFF;
	background-color: #338;
  border-color: #FF0000;
}

/******************************************************
DIV that contains the images and links to child groups
within a field guide.
******************************************************/
div.childGroups {
	margin-top: 1em;	
}

blockquote.identificationImageCaption {
	background-color: rgba(255, 255, 255, 0.75);
}
div.descendantLinkCaption {
	display: inline-block;
  font-size:0.8em;
}
div.captionWrap {
  display: table;
	min-height: 3em;
  margin-bottom: 0.2em;
  padding: 0;
  line-height: 0.9;
}

div.captionContent {
  display: table-cell;
  vertical-align: bottom;
}

span.commonCaption {
#  color: #666666;
}

span.auxiliaryName {
  font-size: smaller;
}

span.mainName {
}

span.captionCount {
  font-size: smaller;
}

/*
div.thumbnailImage {
  width:120px;
}

div.mediumImage {
  width:300px;
}

div.smallImage {
  width:200px;
}

div.fullImage {
  width:800px;
}
*/

img.tinyImage {
  width:110px;
  max-width:100%;
}

img.thumbnailImage {
  width:110px;
  max-width:100%;
}

img.mediumImage {
  max-width:520px;
  width:100%;
}

img.smallImage {
  max-width:120px;
  width:100%;
}

img.fullImage {
	max-width:800px;
	width:100%;
}

.smallText {
	font-size: 80%;
}

div.colourPalette {
	margin-top: 0.35em;
}

/******************************************************
Cursor styles for the colour picker page - for images
******************************************************/

.clickable {
	cursor:pointer;
	color: #338;
}

.eyedropper {
	cursor:crosshair;
}

.colorSwatch {
	cursor:pointer;
}

/******************************************************
Inline cross links to other groups
******************************************************/

body#tinymce span.scientificName {
  color: #338;
}

body#tinymce span.commonName {
  color: #338;
}

body#tinymce span.scientificName {
  color: #338;
}

span.commonName {
  color: #338;
}

div.fancybox-caption__body span.commonName {
  color: white;
}

span.generic {
	font-style : italic;
}


span.groupNameHighlight {
  font-weight : bold;
}

/* Obsolete stuff */
span.blueGenusOrSpeciesScientificName {
	font-style : italic;
	color: #338;
}
span.blueOtherName {
  color: #338;
}
span.genusOrSpeciesScientificName {
  font-style : italic;
}
span.otherName {
}

/******************************************************
Bibliographic reference styles
******************************************************/
span.reference {}
span.referenceAuthors {font-weight: bold;}
span.referenceDate {font-weight : bold;}
span.bookTitle {font-style : italic;}
span.bookPartTitle {font-style : italic;}
span.bookChapter {font-style : italic;}
span.conferenceVolumeTitle {}
span.conferenceVolumeConferenceTitle {}
span.conferenceVolumeNumber {}
span.conferenceVolumeLocation {}
span.conferenceVolumeInstitution {}
span.journalTitle {}
span.journalName {}
span.journalVolume {font-style : italic;}
span.journalNumber {font-style : italic;}
span.unpublishedTitle {}
span.unpublishedInstitution {}
span.thesisTitle {}
span.thesisQualification {}
span.thesisInstitution {}
span.workingPaperTitle {}
span.workingPaperSeriesName {}
span.workingPaperNumber {}

/*****************************************************
Sizes for text fields
*****************************************************/
input[type="text"].wide {
	width: 97%;
}

textarea.wide {
	width: 97%;
	height: 10em;
}
select.wide {
  width: 97%;
}
input[type="text"].wide-with-gap {
  width: 80%;
}
input[type="text"].wide-with-button {
  width: 60%;
}

input[type="text"].long {
	width: 30em;
}

input[type="text"].short {
	width: 12em;
}

/* Put spacing before text and selection box inputs in forms */
input.spacedout {
	margin-left: 1em;
}
.spacedout {
	margin-left: 1em;
}

span.spacedout {
	margin-left: 2.4em;
}

div.fieldCluster {
	margin-bottom: 0.5em;	
}

.aligntop {
    vertical-align: top;
}

/*****************************************************
Image formats
*****************************************************/
img.webImage {
  max-width: 800px;
  width: expression(this.width > 800 ? "800px" : true);
}

img.border  {
/*	width: 100%; */
	border: 2px solid #338;
}

img.help {
  vertical-align:middle;	
  height: 12px;
  width: 12px;
}

img.sound {
  vertical-align:bottom;  
  height: 20px;
}

.stretch {
	width: 100%;
}

.divb {
    border: 1px solid red;
}

.centerImage {
	display:block;
  margin-left: auto;
  margin-right: auto;
}

img.rotationImage {
  width: 2em;
}
/*****************************************************
Specialised form input fields
*****************************************************/

input#siteSearch {
  width: 110px;
}

/*****************************************************
Stripes form validation styles and messages
and formats for required fields
*****************************************************/
ul.messages, ul.messages li {
    list-style: none;
    color: green;
    font-style: italic;
    font-size: 11pt;
}

input.error, textarea.error {
    color: red;
    background-color: yellow;
}

input.error[type="radio"], input.error[type="checkbox"], select.error {
    background-color: white;
    border: 2px solid red;
}

label.error {
    color: #b72222;
    border-bottom: 1px dashed #b72222;
}

/* class to use on required form fields */
.required {
  border-width: 2px;
  border-color: blue;
}


/*****************************************************
Google map formatting
*****************************************************/
#canvas { 
  width: 100%;
  height: 25em; 
  -webkit-box-shadow: 0 0 3px 2px #338;
  -moz-box-shadow: 0 0 3px 2px #338;
  box-shadow: 0 0 3px 2px #338;
  margin-bottom: 1em;  
}

/*****************************************************
Styles for rendering raw XML
*****************************************************/
div.xml {
  color: blue;
  margin: 0px;
  padding: 0px;
}
span.attribute { color: red; }
span.attribute_name { color: darkblue; }
span.attribute_value { color: purple; }
span.element {}
span.element_left_bracket {}
span.element_right_bracket {}
span.element_slash {}
span.element_equals {}
span.element_name { color: green; }
span.element_text { color: red; }

/**
 * Additional styles for the login page.
 * @author Geoff Shuetrim
 */

#loginInfo, #loginInfo a {
    text-align: right;
    color: #0065cc;
}

/*****************************************************
Styles for rendering quotes/captions
*****************************************************/
blockquote {
  font-size: 0.8em;
}

/*****************************************************
Left align slick carousel content.
https://stackoverflow.com/questions/47015203/left-align-images-with-fewer-images-than-slidestoshow
*****************************************************/
.left-align-slick > .slick-list > .slick-track {    
    margin-left:0;
}

