/* start with widths 0 through 320 */

html {
	height:100%;
	width:100%;
	font-size:100%;
	box-sizing:border-box;
	font-weight:normal;
}
* {
	/* Some elements have a weird box (e.g. <select>), this will put everything to border-box and be easier to make even */
	box-sizing:inherit;
}
h1, h2, h3, h4, h5 {
	margin:0 0 10px 0;
}

body{

	margin:0;
	padding:0;
	background:lightgray;
	min-width:640px;
}
/* Just overriding jquery min's css */
body, input, select, textarea, button, .ui-btn {
	font-family: Calibri, sans-serif;
	font-size:medium;
	line-height:normal;
}

button {
	cursor: pointer;
}

div#header {
    background: url("../images/nofa_header.png") no-repeat scroll left top / contain #00A449;
	min-height:100px;
background-image: url("../images/nofa_header.png");
background-size: contain;
    /*background: url("/common_files/images/nofa_header.png") no-repeat scroll left top #00A449;*/
	/*min-height:201px;*/
	/*background-size:cover;*/
}
div#menu-bar-prime {
	background-color:green;
	min-height:50px;
	padding-left:1em;
	padding-top:0.1em;
}
div#menu-bar-sub-prime {
	background-color:white;
	min-height:50px;
	padding-left:1em;
	padding-top:0.2em;
}
div.seperator-div {
	border-top:1px solid lightgray;
	width:90%;
	margin:0 auto;
	height:2px;
}
div.long-seperator-div {
	border-top:1px solid green;
	width:90% !important; 
	margin:0 auto;
	height:2px;
}

div.menu-bar-sub-prime {
/* This is a clone of the id=menu-bar-sub-prime*/
	background-color:white;
	min-height:50px;
	padding-left:1em;
	text-align:left;
}
/* 
hr {
	background-color:white;
}
*/
/* smallest screen's container */
div.container {
	width:100%;
	background-color:white;
	margin:0 auto;
	padding:.5em .5em 2%;
	text-align:center;
}
div.container > p{
	margin:0 0 1em 0;
	
}
.align-left {
	text-align:left;
}
.align-right {
	text-align:right;
}
.x-large-text {
	font-size:x-large;
}
.large-text {
	font-size:large;
}
.small-text {
	font-size:small;
}
.bold-text {
	font-weight:bold;
}
div#footer {
	/*background-color:#61a24f;*/
	background-color:white;
	min-height:50px;
	text-align:center;
}

div#footer div#collab-links {
	width:auto;
}
div#footer div#collab-links a {
	text-decoration:none;
	display:inline-block;
	margin:1em 8%;
	border:0;
	border-color:black;
	max-width:20%;
}
div#footer div#collab-links a img {
	max-height:200px;
	
}

span.beginning-farmer {
	border-bottom:1px dotted blue;
	color:blue;
	cursor:pointer;
}
/*used for stuff like login widgets */
/* four or even three column might not be used */
div.one-column, div.two-column, div.three-column, div.four-column  {
	width:100%;
	margin:0 auto 1em;
	vertical-align:top;
}
div.three-column-force  {
	width:31%;
	margin:0 1% 0 0;
	display:inline-block;
}

div.container p.title {
	width:100%;
	background-color:#d51f38;
	text-align:center;
	color:white;
	margin:0 0 5% 0;
}
span.login-span {
	color:white;
	background-color:black;
	background-color:rgba(0,0,0,.7);
	padding:.1em 1em;
}

p.no-top-margin {
	margin-top:0;
}


div.begin-hidden {
	display:none;
}



div.field {
	padding:0 1em;
	text-align:left;
	width:98%;
}

div.field label{
	/*font-weight:bold;*/ /* Temporarily disabled to see if I like it */
	display:inline-block;
	max-width:85%;
	min-width:25%;
}
/* SPECIAL: Span Label */
span.label-span{
	/*font-weight:bold;*/ /* Temporarily disabled to see if I like it */
	display:inline-block;
	max-width:85%;
	min-width:25%;
	margin-left:-.3em;
}

div.field label.long-label{
	min-width:55%;
}
div.field input{
	/*font-weight:bold;*/
	display:inline-block;
	margin:.25em;
}
div.field input.short-input{
	/*font-weight:bold;*/
	display:inline-block;
	margin:.25em;
	max-width:25%;
}
div.field input.long-input{
	/*font-weight:bold;*/
	display:inline-block;
	margin:.25em;
	min-width:50%;
}

div.field input[type="checkbox"]{
	width:auto;
	display:inline-block;
	
}

div.field select{
	/*font-weight:bold;*/
	display:inline-block;
	
	margin:.25em;
	
}

div.field button{
	/*font-weight:bold;*/
	display:block;
	margin:1%;
	
}

div.field button.inline-button{
	display:inline-block;
}
div.field textarea{
	/*font-weight:bold;*/
	display:block;
	width:98%;
	resize:none;
	max-width:98%;
	min-width:98%;
	height:9em;
	margin:1%;
	
}

div.inline-checks {
	display:inline-block;
	width:14%;
	margin:0 1em .25em 0;
	vertical-align:middle;
}
div.inline-checks.wider {
	display:inline-block;
	width:22%;
	margin:0 1em 1em 0;
	vertical-align:middle;
}
div.inline-checks input{
	vertical-align:middle;
}

div.inline-checks input[type="text"]{
	width:100%;
}

div.inline-checks label{
	vertical-align:middle;
	display:inline-block;
	width:75%;
}
div.inline-checks.wider label{
	text-align:left;
}


/* These differ slightly from the above form elements since these  have icons to give the user immediate feedback. */
div.field-container {
	width:100%;
	padding: .5em 1em;
}
div.field-container p{
	margin:0;
}
div.field-container div.label-container {
	display:inline-block;
	width:20%;
	vertical-align:middle;
}
div.field-container div.input-container {
	display:inline-block;
	width:auto;
	vertical-align:middle;
}
div.field-container div.icon-container {
	display:inline-block;
	vertical-align:middle;
}
div.field-container div.add-info-container {
	display:inline-block;
	max-width:47%;
	vertical-align:middle;
	padding-left:1em;
}
div.field-container div.add-info-container.no-max-width {
	max-width:none;
}
div.terms-of-use-text {
	background-color:lightgray;
	padding:0 .5em;
}



p.no-margin {
	margin:0;
}





button, a.button {
	box-shadow: 2px 2px 5px black;
	border-radius: 5px;
	padding:5px;
	text-transform: uppercase;
	margin:5px;
	border:0;
	color:white;
}
a.button {
	text-decoration:none;
	
}
button.float-right {
	float:right;
}

button.float-left {
	float:left;
}

/*Special label buttons for input*/

label.button-label {
	box-shadow: 2px 2px 5px black;
	border-radius: 5px;
	padding:5px;
	text-transform: uppercase;
	margin:5px;
	border:0;
	color:white;
	background-color:#f2a929;
	min-width:0 !important;
	max-width:none !important;
}


/* */

button.menu-button {
	background-color:#f2a929;
}
button.menu-button:hover {
	background-color:sandybrown;
}
button.menu-button.pushed-in {
	background-color:#e66c25;
}

button.submenu-button {
	background-color:#61a24f;
}
button.submenu-button:hover {
	background-color:forestgreen;
}
button.submenu-button.pushed-in {
	background-color:#00612e;
}

button.utility-button,
a.button.utility-button {
	background-color:#eb2626;
}
button.utility-button:hover,
a.button.utility-button:hover {
	background-color: crimson;
}

button.orange-button,
a.button.orange-button {
	background-color:#f2a929;
}













button.gold-button {
	background-color: gold;
}



button.green-button {
	background-color: green;
}
button.green-button:hover {
	background-color: lightgreen;
}
button.green-button:click {
	background-color: darkgreen;
}

button.blue-button {
	background-color: blue;
}
button.blue-button.pushed-in{
	background-color: darkblue;
}
button.blue-button:hover {
	background-color: lightblue;
}

button.orange-button {
	background-color: darkorange;
}
button.orange-button.pushed-in{
	background-color: orange;
}
button.orange-button:hover {
	background-color: sandybrown;
}

button.red-button {
	background-color: red;
}
button.red-button:hover {
	background-color: crimson;
}

button.pale-yellow{
	color:#000;
	background-color:khaki;
}

table.std-table {
	width:100%;
	border-collapse:collapse;

}
table.std-table td,
table.std-table th {
	color:inherit;
	border:2px solid white;
}
table.std-table thead{
	
}

table.std-table thead tr{
	color:#fff;
	background-color:#00612e;
}

table.std-table tbody tr{
	color:#000;
	background-color:#d5e3cf;
	/*background-color:#078241;*/
}
table.std-table tbody tr.alt{ /* use jquery to figure out 'every other' row incl.  hidden*/
	background-color:#ebf1e9;
	/*background-color:#61a24f;*/
}


table.sortable th.sort-col {
	background-repeat:no-repeat;
	background-image: url('../images/asc_desc_arrows.png');
	background-position: right;
	cursor:pointer;
	padding-right:16px;
}
table.sortable th.sortASC {
	background-color:#61a24f;
	background-image: url('../images/asc_arrows.png');
}
table.sortable th.sortDESC {
	background-color:#61a24f;
	background-image: url('../images/desc_arrows.png');
}

tbody tr:first-child button.ascArrow,
tbody tr:last-child button.descArrow {
	display:none;
}	
button.ascArrow {
	padding: .25em .75em;
	background-repeat:no-repeat;
	background-image: url('../images/asc_arrows.png');
	background-position: center;
}
button.descArrow {	
	padding: .25em .75em;
	background-repeat:no-repeat;
	background-image: url('../images/desc_arrows.png');
	background-position: center;
}





ul.inline-items {
}
ul.inline-items li{
	
	width:41%;
	float:left;
}




/* Special for find farmland map and most recent listings */
#map-div {
/* for the div for map-div */
	width:75%;
	display:inline-block;
	height:500px;
	text-align:left; /* for proper alignment of maps and controls */
}
#most-recent-listings {
	width:24%;
	display:inline-block;
	vertical-align:top;
}
#map-div #map{
/* the actual map */
	width:100%;
	height:500px;
}

#map.square{ /* farmland op details */
	width:100%;
	height:285px;
}

img {
	max-width:100%;
}


/*  Resources divs for /resources/ */

div.resource-container {
	border:1px solid darkgray;
	text-align:left;
	padding:.5em;
	margin:0 auto 1em;
	width:97%;
}
div.resource-container h2.resource-title{
	padding: .5em .25em;
	margin:0;
}

div.resource-container div.resource-button-div{
	display:inline-block;
	vertical-align:middle;
	width:20%;
		
}

div.resource-container div.resource-desc-div{
	display:inline-block;
	padding: .5em 1em;
	width:79%;
	border: 1px solid darkorange;
	background-color:wheat;
}

.leaflet-popup-content {
	margin-bottom:0 !important;
}

/* Just for the modal window stuff, will*/
.modal-overlay {
	position: fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:#000;
	opacity: 0.5;
	filter:alpha(opacity=50);
}
.modal-background {
	position: absolute;
	padding:8px;
	background:none repeat scroll 0 0 rgba(0,0,0,0.2);
	max-width:890px;
z-index:9999;
}
.modal-content {
	color:#000;
	background-color: #ebf1e9;/*#ddd9c3;*/
	border:3px solid #d5e3cf;/*#948a54;*/	
	padding:25px;
	max-width:890px;
}
.modal-content h2{
	padding:0 100px 0 0;
	margin:0;
}
.modal-content p{
	padding:5px 0;
	margin:0;
}
a.modal-close-icon {
    background: url("../images/delete.png") no-repeat scroll left top transparent;
    display: block;
    height: 16px;
    width: 16px;
    position:absolute;
    right:20px;
    top:20px;
}



.sprite-link {
	width:30px;
	height:30px;
	display:inline-block;
	vertical-align:middle;
}
a.sprite-link {
	display:block;
	margin:0 auto;
}
a.sprite-link.a-inl-blk {
	display:inline-block;
}
a.sprite-link.float-left {
	float:left;
}

a.sprite-link.float-right {
	float:right;
}

.delete-icon {
	background:url('../images/delete.png') no-repeat 0 0;
	width:16px;
	height:16px;
}
.loader-icon {
	background:url('../images/loader.gif') no-repeat 0 0;
	width:16px;
	height:16px;
}
.view-icon {
	background:url('../images/view.png') no-repeat 0 0;
	width:16px;
	height:16px;
}
.check-icon {
	background:url('../images/check.png') no-repeat 0 0;
	width:16px;
	height:16px;
}
.edit-icon {
	background:url('../images/edit.png') no-repeat 0 0;
	width:16px;
	height:16px;
}



.clear-both {
	clear:both;
}

div#footer > div {
	min-width:717px;
	width:80%;
	margin:0 auto;
}

div#footer a {
	vertical-align:middle;
}
div#footer  a > img {
	vertical-align:middle;
}
div#footer  a > img.float-left {
	margin-left: .25em;
	float:left;
}
div#footer  a > img.margin-top {
	margin-top: 1em;
}



fieldset {
	margin-bottom:1.5em;
}
fieldset > legend {
	font-weight:bold;
}

fieldset.filter-cols {
	width:90%;
	margin:0 auto 1.25em;
}

div.radio-buttons {
	padding-left: .5rem;
	padding-right: .5rem;
}
div.radio-buttons > div {
	padding-bottom:  .5rem;
}

div.survey-section:not(:last-child) {
	margin-bottom:1rem;
	border-bottom:1px dotted black;
	padding-bottom:1rem;
}
table.survey-table thead tr th{
	background-color: green;
	color:white;
	padding-left: .5rem;
	padding-right: .5rem;
	margin-bottom:1rem;
}
table.survey-table tbody tr{
	background-color: rgb(213, 227, 207);
}
table.survey-table tbody tr:nth-child(even){
	background-color: #ebf1e9;
}



@media print {
    div#header{
        display:none;
    }
	div#menu-bar-prime{
		display:none;
	}
    div#footer{
        display:none;
    }
	.hide-from-print {
		display:none;
	}
	img{
		max-height:400px;
	}
	table.std-table td,
	table.std-table th {
		color:inherit;
		border:2px solid black;
	}
	#map.square {
		width:7in;
	}
}
				
				

@media screen and (min-width:320px) {
	body{
		width:100%;
		margin:0;
	}
}
/*
@media screen and (min-width:533px) {
	html {
		font-size:110%;
	}
	body{
		width:100%;
		margin:0;
	}
}
*/
@media screen and (min-width:480px) {
	html {
		/*font-size:110%;*/
	}
	body{
		width:100%;
		margin:0;
	}
	div.two-column  {
		width:48%;
		margin:0 1% 0 0;
		display:inline-block;
	}
	div.three-column  {
		width:31%;
		margin:0 1% 0 0;
		display:inline-block;
	}
}
/* desktops */
@media screen and (min-width:960px) {
	html {
		font-size:100%;
	}
	body{
		width:100%;
		margin:0 auto;
		max-width:1024px;
	}
	div.header {
		height:70px;
	}
	div.content {
		padding:70px 0 0 0;
	}
	div.two-column  {
		width:48%;
		margin:0 1% 0 0;
		display:inline-block;
	}
	div.three-column  {
		width:31%;
		margin:0 1% 0 0;
		display:inline-block;
	}
	
	
	
	
	
	
	
}
