
@import url('https://fonts.googleapis.com/css?family=Encode+Sans:600|Lato:400,700');

html { 
  background: url(../img/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bg.jpg', sizingMethod='scale');
	-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bg.jpg', sizingMethod='scale')";
	background-color:#e7e7e7;
	height: 100%;
}

html, body, div, span, a {
  font-family: 'Lato', sans-serif;
}

img { border:none; }

body {
	height: 100%;
	margin: 0px;
	min-height: 100%;
	text-align: center;
}

div.page {
	display:inline-block;
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;
	font: 2em/1 'Lato', serif;
	color:#fff;
	background-color: #ffffff;
	background-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.7);
	text-align:center;
	text-decoration:none;
	padding:30px 50px;
	margin:175px 20px 20px 20px;
}

hr {
	color: #ffffff;
	border: 1px dotted #a7a7a7;
	border-style: none none dotted;
}

div.rsvp {
	font-size:1em;
	font-family: 'Lato', sans-serif;
	display:inline-block;
	padding:8px;
	color:#395999;
	background: -webkit-linear-gradient(#f9f9f9, #ededed);
	background: -o-linear-gradient(#f9f9f9, #ededed);
	background: -moz-linear-gradient(#f9f9f9, #ededed);
	background: linear-gradient(#f9f9f9, #ededed);
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#f9f9f9', endColorstr='#ededed');
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border: 1px solid #c6c6c6;
	margin:auto;
}

/* images */

img.register {
	max-width: 175px;
	height: auto;
	width:auto;
	padding-top:20px;
}

img.register_midwest {
	max-width: 254px;
	height: auto;
	width:auto;
	padding-top:20px;
}

img.city {
	width:100%;
	height:auto;
	margin:20px auto;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	max-width:50%;
	float:right;
	margin:0px 0px 20px 20px;
}


img.mug {
	max-width:200px;
	height:auto;
	width:auto;
	float:right;
	border:8px solid white;
	margin:0px 0px 10px 20px;
}

img.footer {
	max-width: 100px;
	height: auto;
	width:auto;
}

img.speaker {
	width:100%;
	max-width:125px;
	height: auto;
	border:5px solid #ffffff;
	float:left;
	margin: 0px 15px 10px 0px;
	-webkit-box-shadow: 0px 6px 12px -7px rgba(0,0,0,0.65);
	-moz-box-shadow: 0px 6px 12px -7px rgba(0,0,0,0.65);
	box-shadow: 0px 6px 12px -7px rgba(0,0,0,0.65);
}

/* type */

span.title {
  font-family: 'Encode Sans', sans-serif;
	font-size:1em;
	line-height:1.25;
	color:#29744e;
}

span.black {
	color:#000000;
}

span.red {
  color:#ff0000;
}

span.light {
	color:#9e9e9e;
}

span.nowrap {
	white-space:nowrap;
}

div.main {
	font-size:0.5em;
	line-height:1.5;
	color:#757575;
	max-width:750px;
	text-align:left;
	margin:auto;
}

span.small {
	font-size:0.75em;
	color:#bcbcbc;
}

a {
	text-decoration:none;
}

a.upcoming div {
	display:inline-block;
	font-size:0.7em;
	font-weight:bold;
	text-decoration:none;
	padding:10px 20px;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;
	background-color:#29744e;
	color:#ffffff;
	-webkit-box-shadow: 0px 6px 12px -7px rgba(0,0,0,0.65);
	-moz-box-shadow: 0px 6px 12px -7px rgba(0,0,0,0.65);
	box-shadow: 0px 6px 12px -7px rgba(0,0,0,0.65);
	text-decoration:none;
	margin-bottom:20px;
	line-height:1.5;
}

a.upcoming:hover div {
	background-color:#48adf5;
}

span.over {
	background-color:#cde1f3;
	color:#ffffff;
	padding:8px 12px;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;
	font-size:0.5em;
	font-weight:bold;
	line-height:2.8;
	text-decoration:line-through;
}

div.main a, footer a {
	font-weight:bold;
	color:#29744e;
}

span.city, span.date {
	white-space:nowrap;
}

span.city::after {
	content:' - ';
	padding:0px 5px;
}

/* nav */

nav {
	text-align:center;
	margin-top:15px;
	font-size:0.5em;
	white-space:nowrap;
}

nav span.spacer {
	padding:10px;
	color:#808080;
}

/*
nav a {
	color:#29744e;
	white-space:nowrap;
	cursor:pointer;
}
*/

nav a {
	color:#29744e;
	white-space:nowrap;
	cursor:pointer;
	padding:8px 10px;
}

/*
nav a:hover {
	color:#48adf5;
}
*/

nav a#active,
a.btn_sm {
	display:inline-block;
	padding:8px 10px;
	background-color:#29744e;
	color:#ffffff;
	-webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	border-radius: 7px;
}

/* header */

header {
	padding:10px 0px;
	background: #29744e;
	background: -moz-linear-gradient(top, #74b689 0%, #29744e 100%);
	background: -webkit-linear-gradient(top, #74b689 0%,#29744e 100%);
	background: linear-gradient(to bottom, #74b689 0%, #29744e 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#74b689', endColorstr='#29744e',GradientType=0 );
	-webkit-box-shadow: 0px 6px 23px -7px rgba(0,0,0,0.65);
	-moz-box-shadow: 0px 6px 23px -7px rgba(0,0,0,0.65);
	box-shadow: 0px 6px 23px -7px rgba(0,0,0,0.65);
  height: 140px;
	width:100%;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  -webkit-transition: height 0.4s;
  -moz-transition: height 0.4s;
  -ms-transition: height 0.4s;
  -o-transition: height 0.4s;
  transition: height 0.4s;
}
header img#logo {
	width:100%;
	max-width: 537px;
	height: auto;
  -webkit-transition: all 0.4s;
  -moz-transition: all 0.4s;
  -ms-transition: all 0.4s;
  -o-transition: all 0.4s;
  transition: all 0.4s;
}
header.smaller {
  height: 65px;
	padding:10px 0px;
}
header.smaller img#logo {
	width:100%;
  max-width: 250px;
  height: auto;
}

/* footer */

footer {
	text-align:center;
	font-size:0.5em;
	line-height:1.5;
	color:#808080;
	font-weight:normal;
}

/* media queries */

@media only screen and (min-width: 1000px) {
	div.main {
		min-width:750px;
	}
	div.page {
		min-width:750px;
	}
}

@media only screen and (max-width: 700px) {
  header img#logo {
		max-width: 300px;
  }
  header {
    height: 80px;
  }
  header.smaller {
    height: 45px;
  }
  header.smaller img#logo {
		width:100%;
		max-width: 175px;
		height: auto;
  }
	div.page {
		margin-top:115px;
		padding:30px;
	}
	span.title {
		font-size:0.85em;
	}
	img.speaker {
		max-width:90px;
	}

	nav span.spacer {
		display:none;
	}
	nav a, nav a#active {
		font-size:1em;
		display:block;
		width:80%;
		padding:10px 12px;
		background-color:#29744e;
		color:#ffffff;
		-webkit-border-radius: 7px;
		-moz-border-radius: 7px;
		border-radius: 7px;
		margin:5px auto 5px auto;
	}
	nav a#active {
		background-color:#74b689;
	}
	a.upcoming div {
		font-size:0.6em;
	}
}

@media only screen and (max-width: 500px) {
	span.title {
		font-size:0.75em;
	}
	div.main {
		font-size:0.45em;
	}
	span.city {
		display:block;
	}
	span.city::after {
		content:'';
	}
	img.mug {
		max-width:85px;
		margin-left:10px;
		border-width:5px;
	}
	img.city {
		display:block;
		width:100%;
		height:auto;
		margin:20px auto;
		-webkit-border-radius: 8px;
		-moz-border-radius: 8px;
		border-radius: 8px;
		max-width:none;
		float:none;
		margin:0px 0px 20px 0px;
	}
	div.page {
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
		padding:30px 20px;
		margin:100px 0px 0px 0px;
	}
	a.upcoming div {
		font-size:0.75em;
	}
}

@media \0screen {img { width: auto !important } }

	.clearfix:after {
		visibility: hidden;
		display: block;
		font-size: 0;
		content: " ";
		clear: both;
		height: 0;
	}
	.clearfix { display: inline-block; }
	/* start commented backslash hack \*/
	* html .clearfix { height: 1%; }
	.clearfix { display: block; }
