html, body {
  margin: 0;
	border: 0;
	font-family: serif;

/*	background: url(textures/flower-pattern-green.png); */
	background: url(textures/bg-white.png);
}

h1, h2, h3, h4 {
	font-family: "Lateef";/*, cursive;*/
	font-size: 1.8em;
	padding-bottom: 1em;
}
h1 {
	font-size: 2em;
}

/* Make ill-formed summaries not screw up the display */

.summary h1, .summary h2, .summary h3, .summary h4,
.summary iframe, .summary video, .summary audio {
	display: none;
	min-width: 0;
}

/* general */

a, a:visited {
	color: #041;
	text-decoration: none;
	border-bottom: 1px dotted #082;
	text-shadow: 1px 1px 1px #fff;
}
a:hover, a:visited:hover {
	color: #082;
}

/* Layout */

#all {
	width: 100%;
	margin: auto;
}
/* Header Stuff */

#headbanner {
	display: table;
	width: 100%;
	background-image: url(textures/photo-sunbeam-700.jpg);
	background-size:cover;
	background-position: top right;
}
#headbanner h1 {
	display: table-cell;
	color: #fff;
	text-shadow: 1px 1px 1px #000, -2px -2px 14px rgba(0,0,0,0.5);
	padding: 0.1em;
}

#headbanner h1 img {
	max-width: 15vw;
}

h1 a, h1 a:visited {
	color: #fff;
	text-decoration: none;
	text-shadow: 1px 1px 1px #000, -2px -2px 14px rgba(0,0,0,0.5);
	border: 0;
}

#navbutton, #globalsearchbox {
	display: table-cell;
	vertical-align: middle;
	text-align: left;
}
#navbutton {
	padding: 0 0.1em 0 0.3em;
	width: 1em;
	background: rgba(255,255,255,0.5);
	transition: background 0.1s;
	cursor: pointer;
	font-size: 2em;
}
#navbutton:hover {
	background: rgba(255,255,255,0.4);
}
#globalsearchbox {
	padding: 0 1.1em;
	position: relative;
}
#globalsearchbox input {
	font-size: 1.2em;
	width: 20vw;
	transition: width 0.3s, opacity 0.2s;
	float: left;
	opacity: 0.6;
	border: 1px solid #aaa;
    min-height:1rem;
}
#globalsearchbox input:focus {
	width: 50vw;
	opacity: 1.0;
}

#globalsearchbox button {
  padding: none;
  margin: 0.2em;
  height: 1.5em;
  font-size: 1.4em;
  border-radius: 2em;
  width: 1.5em;
  opacity: 0.5;
  color: #fff;
  float: left;
  position: absolute;
  left: 1em;
  border: none;
}


#navmenu {
	position: absolute;
	left: 0px;
	display: block;
	background-color: #6BAE7C;
	width: 0%;
	height: 100%;
	overflow: hidden;
	box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
#navmenu ul {
	padding: 0;
	margin:0;
	display: table;
	width: 50vw;
}
#navmenu ul li {
	display: table-row;
}
#navmenu a,#navmenu a:visited {
	display: block;
	color: white;
	text-shadow: 1px 1px 0 #082;
	padding: 0.4em 1em;
	transition: box-shadow 0.1s, background 0.2s, text-shadow 1s;
}
#navmenu a:hover, #navmenu a:visited:hover {
	color: white;
	text-shadow: 1px 1px 0 #000;
	background: rgba(255,255,255,0.1);
	box-shadow: 0px 1px 1px #082;
}

#globalsearchbox input {
	padding: 0.3em;
	margin: 0.1em;

}

#mainfooter {
  display: table;
  width: 100%;
  background: rgba(0,0,0,0.3);
  text-align: center;
  font-weight: bold;
  height: 40vh;
}

/* Main Area */

#belowbanner {
	width: 100%;
	/* background: rgba(255,255,255,0.85);*/
}

#sidebar {
	vertical-align: top;
	padding: 0 1em ;
	text-align: center;
	width: 88%;
	margin: auto;

}
#sidebarbox {
	display: inline-block;
	width: 100%;
}
#sidebar h2 {
	font-size: 1.1em;
	font-weight: bold;
}
#sidebar h2.sectionlink, #sidebar h2.sectionlink a {
	font-size: 30pt;
	padding: 0;
	margin: 0;
	border: 0;
	text-align: center;
}
#sidebar ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
	line-height: 2em;
}
#sidebar ul li a {
	display: block;
	color: #222;
}

#contentarea {
	vertical-align: top;
	line-height: 1.5em;
	width: 100%;
}

article, #sidebar > div {
	background: #fff;
	border-radius: 0.2em;
	box-shadow: 0 0.15em 0.2em rgba(0,0,0,0.3);
	padding: 1.1em;
	margin: 0.4em 0 ;
	display: block;
	position: relative;
	direction: rtl;
}
article img.featured_default, article img.featured_portrait {
  float: left;
  clear: both;
  margin: 0 1em 1em 0;
  width: 30%;
  height: auto;
}
article img.featured_portrait {
    width: 50%;
}
article img.featured_banner, article img.featured_panorama {
  clear: both;
  margin: 0;
  width: 100%;
  height: auto;
}

article iframe {
	width: 100%;
	min-height: 90vh;
}

article h2 {
	margin: 0.3em 0 0.6em;
}

article.material.mp3 {
	background-color: #fffff4; /* TODO */
}
article.material.video {
	background-color: #fff4ff; /* TODO */
}
article.material.pdf {
	background-color: #f4ffff; /* TODO */
}

article .sharing {
	background: #fff;
	padding: 1em;
	/* TODO - make dropdown below article?? */
}

audio, video {
	width: 100%;
	min-width: 30vw;
}

article.material .type {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0.2;
}
article.material.html .type {
	display: none;
}

.fullwidthpromo {
	display: table;
	width: 100%;
	background-color: #c8e6c9;
	border-radius: 0.2em;
	box-shadow: 0 0.15em 0.2em rgba(0,0,0,0.3);
	position: relative;
}

.splitpromo {
	display: table;
	width: 100%;
	/* background-color: #2196f3; */
	background-color: #c8e6c9;
}

#resetclosedpromos {
	display: none;
}

.promo h3 {
	text-align: center;
}
.promo .promo_content {
	padding: 0 1em;
}

.closebox {
	background: rgba(255,255,255,0.2);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	position: absolute;
	top:0;
	right: 0;
	width: 2em;
	height: 2em;
	padding 0;
}
.closebox:hover {
	background: rgba(255,255,255,0.6);
}


ul.keywords {
	width: 90%;
	margin: auto;
	text-align: center;
}
ul.keywords li {
	display: inline-block;
	padding: 0.1em 0.3em;
	background: #4a6;
	margin: 0.4em 0.1em;
	border-radius: 0.4em 0 0.6em 0;
	white-space: nowrap;
}


/*  Some Style stuff from the old content: */

.smaller { font-size: 90%% }
.larger { font-size: 120% }
.muchlarger { font-size: 180% }
.huge { font-size: 220% }

.red { color: #a40}
.green { color: #0a4}
.blue { color: #02a}
.purple { color: #a2a}
.yellow { color #0ee000}
.black { color: #000}

.alignleft {display:block; text-align: left;}
.alignright {display:block; text-align: right;}
.aligncenter {display:block; text-align: center;font-size: 130%;} /* usually poetry... */
.alignjustify {display:block; text-align: justify;}


.fb-share-button {
	border-radius: 5px;
	background-color: #4267b2;
	display: inline-block;
	color: #fff;
	padding: 0 0.4em;
	text-shadow: none;
	cursor: pointer;
}
.fb-share-button:hover {
	color: #fff;
	background-color: #71acff;
}
#fb_comments {
	overflow: scroll;
}

.sharingbox {
min-height: 30px;
}

article.child {
  display:block;
	/*display: table;*/
}
article.child .row {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	-js-display: flex;
	display: flex;
	width: 100%;
}
article.child h2 {
	vertical-align: top;
	width: 100%;
}
article.child img.thumbnail {
	width: 100px;
	padding-left: 0.5em;
}
a.thumbnail {
	border: 0;
}

article table {
	border-spacing: 0;
	border-collapse: collapse;
}
article tr:nth-of-type(odd) {
	background: #eee;
}
article td {
	padding: 0.1em 1em;
	vertical-align: middle;
}

/* Now for some USH specific hacks, this should be refactored out */
/* TODO */
article.section69 {
	text-align: center;
}

/* If you change 600px, also update JS onresize */
@media only screen and (min-width: 600px) {

	h1 { font-size: 3em;}
	h2 { font-size: 2em;}
	h3 { font-size: 1.5em;}
	h4 { font-size: 1em;}

	#sidebar, #contentarea {
		display: block;
		width: 70vw;
	}
	#content_and_sidebar {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: -webkit-flex;
		-js-display: flex;
		display: flex;
		flex-direction: row;
	}
	#sidebar {
		width: 30vw;
		text-align: inherit;
	}
	#sidebar ul {
		font-size: 80%;
		line-height: 1.9em;
	}

	.splitpromo .promo {
		display: table-cell;
		width: 50%;
	}
	.splitpromo .promo:hover {
		background-color: #66BB6A;

	}

	#navbutton {
		display: none;
	}
	#headbanner {
		background-image: url(textures/photo-sunbeam-1920.jpg);
		background-size:cover;
		background-attachment: fixed;
		background-position: top;
	}
	#headbanner h1 {
		vertical-align: middle;
		text-align: center;
	}
	
	#headbanner h1 img {
        max-width: 25vw;
    }
	
	.bigbanner #headbanner h1 {
		font-size: 6em;
		width: 1em;
		/* padding: 1em;*/
		padding-right: 10vw;
		line-height: 0.7em;
	}
	#navmenu {
		background-image: url(textures/photo-sunbeam-1920.jpg);
		background-size: cover;
		background-attachment: fixed;
		background-position: top;
		box-shadow: none;
	}
	#navmenu ul {
		background: rgba(255,255,255,0.6);
	}
	#navmenu a, #navmenu a:visited {
		color: #000;
		text-shadow: none;
		font-family: sans-serif;
		font-size: 120%;
	}

	#navmenu {
		display: table;
		position: relative;
		width: 100%;
		text-align: center;
		left: 0vw;
		box-shadow: 0;
    z-index: 10;
	}
	#navmenu ul {
		width: 100%;
	}
	#navmenu ul li {
		display: inline-block;
	}
  #navmenu a {
    border-bottom: none;
  }
	#navmenu a:hover,#navmenu a:visited:hover {
		box-shadow: none;
		text-shadow: 0px 0px 8px #fff;
		background-color: rgba(0,0,0,0.2);
	}

	#globalsearchbox input {
		top: 0.9em;
	}

  #contentarea, #sidebar {
    margin: auto;
	margin-top: 0;
    padding: 0.7 0;

  }

}

@media only screen and (min-width: 800px) {
	/*#all {
		width: 90%;
	}*/
	#belowbanner {
		/* box-shadow: 0 0 1em rgba(0,0,0,0.5);*/
		width: 90%;
		margin: auto;
	}
	.bigbanner #headbanner {
		height: 14em;
	}
	article {
		padding-right: 1vw;
	}
	.rowbox {
		display: table;	
		width: 100%;
	}
	.row_of_3 {
		display: table-row;
	}
	.row_of_3 .col {
		display: table-cell;
		padding: 1em;
		min-width: 28%;
	}
}

@media only screen and (min-width: 1900) {
	#all {
		width: 1000px;
		margin: auto;
	}

}
