@charset "UTF-8";

/* css reset */
/* via: http://meyerweb.com/eric/tools/css/reset */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

/* keep sizes the same, even with borders/padding */
*, *:after, *:before {
	-webkit-box-sizing:	border-box;
 	-moz-box-sizing: 	border-box;
 	box-sizing: 		border-box;
}

/* https://fonts.google.com/specimen/Space+Mono */
@font-face {
	font-family: "Space Mono";
	src: 		 url("fonts/SpaceMono-Italic.woff2") format("woff2"),
         		 url("fonts/SpaceMono-Italic.woff")  format("woff"),
		         url("fonts/SpaceMono-Italic.ttf")   format("truetype");
	font-weight: normal;
	font-style:  normal;
}

html, body {
	height:      100%;
	overflow-y:  hidden;	/* no vertical scrolling */
}
body {
	font-size:   16px;
	font-family: "Space Mono", Helvetica, Arial, sans-serif;
	font-style:  italic;
	color:       rgb(90, 86, 12);
}

a, a:visited {
	text-decoration:  underline;
	color:            rgb(90, 86, 12);
	transition:       all 0.2s;
}
a:hover, a:focus, a:active {
	color:            white;
	background-color: rgb(172, 170, 133);
}

#title {
	position:    relative;		  /* keep on top of leaf images */
	white-space: nowrap;		  /* one very long line of text */
	margin:      0.6em 0 0 -0.9em;

	font-size:   1.6em;
	line-height: 1.8em;
}
#title div {
	position:         absolute;	  /*child element so we can overlay on leaves */
}
.addPadding  {
	margin-left:      1.6em;	  /* spacing b/w chunks of text */
}
.highlight {
	padding:          0.3em 0.6em;
	background-color: rgb(172, 170, 133); /*rgb(90, 86, 12);*/
	border-radius:    6px;
	color:            white;
}
.highlightDark {
	background-color: rgb(90, 86, 12);
}

#leaves {
	display:    flex;			  /* side-by-side */
	height:     100%;			  /* responsive height */
	margin-top: -2em;			  /* needs to be moved up just a little bit */
}			
img {
	height:     auto;
	max-height: 100vh;			  /* shrink leaves slightly to avoid overlap */
}
#firstLeaf {
	margin-left: 2em;			  /* move first leaf from left edge a bit */
}
#end {
	display:         flex;
	align-items:     center;
	flex-shrink:     0;
	flex-grow:       0;
	padding:         0 6em 0 2em;
}

/* lazy-load settings (w suggested firefox fix) */
img:not([src]) {
	visibility:     hidden;
}
@-moz-document url-prefix() {
	img:-moz-loading {
		visibility: hidden;
	}
}

#credits {
	position:        relative;
	line-height:     1.4em;
	margin: 		 -2em 0 0 1.3em;
	white-space:     nowrap;
}

/* small screens in landscape orientation */
@media screen and (max-width: 700px) and (orientation: landscape) {
	html, body {
		font-size: 12px;	/* smaller font */
	}
	#leaves {
		margin-top: 0em;
	}
	img {
		max-height: 80vh;
	}
	#credits {
		margin-top: -4em;
	}
}

/* larger screens */
@media screen and (min-width: 700px) {
	#credits {
		margin-top: -3em;
	}
}

