.item fieldset {
	height: 17em;
	position: relative;
}
.item form {
	margin-bottom: 0;
}
.item-img {
display: flex;
  flex-direction: column;
  justify-content: center;
  height: 9em;
}
.item-img img {
	display: flex-item;
	max-height:8em;
}
.item-name {
	height: 4.5em;
}
.item fieldset button {
	margin: 0 auto;
	display: block;
	text-align: center;
}


	body {	
	background-color: #e9e5da;
	background-image: url(../_img/wwbg.png);
	}

img {
	max-width: 100%;
}

.text-indented {
	text-indent: 45px;
}

*, *:after, *:before {
  	-webkit-box-sizing: border-box;
  	-moz-box-sizing: border-box;
  	box-sizing: border-box;
	}

	header {
	position:relative;
	width:100%;
	background-color:#ffffff;
	padding:10px 20px 10px 20px;
	border-bottom: 1px solid #ccc;
	}
		
	.logout {
	width:27em; 
	text-align:right; 
	position:absolute;
	right:20px;
	top: 22px;
	margin:0;
	}
	
	.logout a {
	width:100px; 
	margin:0 0 0 10px;
	}
	
	.page:after, header:after, .flex-container:after {
  	content: "";
  	display: table;
  	clear: both;
	}	
	
	/* Layout for browsers that DO NOT support flexbox */
	.page {
	max-width: 1200px;
	margin:0 auto; 
	padding-left: .9em; 
	padding-top: .9em; 
	}
	
	.flex-container {
	max-width: 1200px;
	margin:0 auto; 
	padding-left: .9em; 
	padding-top: .9em; 
	}
	
	.module {
	display: inline-block; 
  	vertical-align: top;
  	zoom:1;  /*IE Fix = Has Layout*/
	min-height: 20em; 
	margin-bottom: .9em;
	margin-right: .9em;
	background: #fff;
	border: 1px solid #ccc;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	}
	
	.flex-container .module {
	border: none;
	}
	
	.one-third {
  	width:31.58% !important;
	}
	
	/* This one is not actually half, but is used on multiple pages */
	.one-half {
  	width:64.666% !important;
	}
	
	/* This one IS about half, and it should be used instead of the .one-half class above */
	.really-one-half {
  	width:47% !important;
	}
	
	.slightly-under-one-third {
  	width:31.23% !important;
	}
	
	select.block-as-inline {
	display: block;
	margin:0 auto; 
	}
	
	div.block-as-inline {
	display: block;
	margin:0 auto; 
	}
		
	/* Layout for browsers that support flexbox */
	
	.page {
	padding-left: .9em; 
	padding-top: .9em; 
	}

	.page {
	display: -webkit-box;          
    display: -ms-flexbox;   
  	display: -webkit-flex; 
  	display: -moz-flex;
  	display: flex;         
	
	-webkit-box-direction: normal;
    -ms-flex-direction: row;
	-webkit-flex-direction: row;
	-moz-flex-direction: row;
	flex-direction: row;
	
	-webkit-box-wrap: wrap;
	-ms-flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	flex-wrap: wrap;
	}
	
	.flex-container {
	padding-left: .9em; 
	padding-top: .9em; 
	}

	.flex-container {
	display: -webkit-box;          
    display: -ms-flexbox;   
  	display: -webkit-flex; 
  	display: -moz-flex;
  	display: flex;         
	
	-webkit-box-direction: normal;
    -ms-flex-direction: row;
	-webkit-flex-direction: row;
	-moz-flex-direction: row;
	flex-direction: row;
	
	-webkit-box-wrap: wrap;
	-ms-flex-wrap: wrap;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	flex-wrap: wrap;
	}
	
	
.module { /* use shorthand */
	-webkit-box-grow:1;
	-ms-flex-grow:1;
	-webkit-flex-grow:1;
	-moz-flex-grow:1;
	flex-grow:1;
	
	-webkit-box-shrink: 0;
	-ms-flex-shrink: 0;
	-webkit-flex-shrink: 0;
	-moz-flex-shrink: 0;
	flex-shrink: 0;
	
	-webkit-box-basis:auto;
	-ms-flex-basis: auto;
	-webkit-flex-basis: auto;
	-moz-flex-basis: auto;
	flex-basis: auto;
	} 
		
	/* this makes Firefox V.22 - V.28 use the fallback layout*/	
	@supports (-moz-appearance:meterbar) and (display:flex) {
		.page {
		display: inline;
		}
		
		.flex-container {
		display: inline;
		}
	}	
	
	
	/* this restores Firefox V.28+ to the flexbox layout*/	
	@supports (-moz-appearance:meterbar) and (list-style-type:japanese-formal) {
		.page {
		display: -moz-flex;
		display: flex;    
		}
		
		.flex-container {
		display: -moz-flex;
		display: flex;    
		}
	}
	
/* details or sign up page */
	.full {
	width:99%;
	height:auto;
	max-width: 1200px;
	}
	
	.module h3 {
	padding: 10px 0 10px 20px;
	margin:0;
	background:#6d7d26;
	color: #fff;
	-webkit-border-top-left-radius: 4px;
	-webkit-border-top-right-radius: 4px;
	-moz-border-radius-topleft: 4px;
	-moz-border-radius-topright: 4px;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
	
	.modhighlight h3 {
		background: #C46515;
	}
	
h3.adminSection {
	background: #f3901d;
	}
	
	.module .content {
	padding: 20px;
	}

	.module ul {
	list-style-type: none;
	padding:0;
	}

	.module li{
	border-bottom:1px dotted #eee;
	padding:.2em 0;
	}
	
	.module li:last-child{
	border-bottom:none;
	}
	
	section {
	width: 80%;
	max-width:700px;
	/*padding: 15px 0 30px 0;*/
	margin-left:20%;
	}

	footer p{
	padding:0 0 20px 0;
	text-align:center;
	font-size:.8em;
	color:#444;
	}



@media only screen and (min-width: 1700px) {

        section.options {
                position: fixed;
                right: 5%;
                width: 10%;
        }

	.categories {
		position: absolute;
		left: 5%;
		top: 20%;
		width: 12%;	
	}
}
@media only screen and (min-width: 1000px) and (max-width: 1699px) {

	.page {
		position: relative;
	}

	.categories {
		position: absolute;
		left: 5%;
		top: 4em;
		width: 15%;	
	}


}


	
/* login page layout*/
	#login .page {
	margin:40px auto 0 auto;
	max-width: 900px;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0 10px;
	}
	
	#login header {
	border-bottom: 1px solid #eee;
	padding-left:0;
	}
	
	#login header:after {
  	content: "";
  	display: table;
  	clear: both;
	}
	  	
	#login #main {
  	width:50%;
  	box-sizing: border-box;
  	float:right;
  	border-left: 1px solid #eee;
  	padding:17px 0 0 20px;
  	}
  	
  	#login aside {
  	float:left;
  	width:50%;
  	box-sizing: border-box;
  	}
  	
  	#login #pageFooter {
  	clear:both;
	border-top: 1px solid #eee;
  	}
  	
	#login div.error ul {
	list-style-type: none;
	padding: 0;
	}
	
	#login label, body#login input {
	float:none;
	width: 100%;
	}
	
	#login 	input[type="submit"] {
	margin:0;
	}
	
	.rightblock {
	float: right;
	}

/*media queries */	
@media only screen and (max-width: 60em) {	
	.one-third {
  	width:48% !important;
	}
	
	.slightly-under-one-third {
  	width:48% !important;
	}
	
	.one-half {
  	width:98% !important;
	}
			
	div.full {
	width:100%;
  	height:auto;
  	max-width: 1200px;
	}
}


@media only screen and (max-width: 40em) {	
h1  {
	margin: 10px auto;
	width: 300px;
	}

.logout {
	padding: 20px  0 10px 0;
	border-top: 1px solid #eee;
	width:100%; 
	text-align:center; 
	position:static;
	margin:0;
	}

	.one-third {
  	width:98% !important;
	}
	
	.slightly-under-one-third {
  	width:98% !important;
	}
	
	.one-half {
  	width:98% !important;
	}	

body#login #main, body#login aside {
  	width:100%;
  	float:none;
  	border:none;
  	padding:0;
  	}	
  	
body#login #main {
	padding-top:20px;
	border-top: 1px solid #eee;
  	}	
  	
#login .page {
	margin:6px auto;
  }
  
}

@media print {
/*    body {
        font-size: 0.5em;
    } */
    
    .noprint {
      visibility: hidden;
   }
}
