/* ==== RESET ==== */

/* DEX LOADING CLASS */
.load
{
    display: none; /* Hidden by default done in javascript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.1); /* Black w/ opacity */
}
.loading-gif{
  width: 300px;
  height: 300px;
  margin: 0;
  position: absolute;
  top: 30%; /* 50% for center*/
  left: 95%; /* 55% for center*/
  //margin-right: -40%;
  transform: translate(-50%, -50%)

}
/* End of Dex Loading class */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	/* outline: 0; */
    /*vertical-align: baseline;*/
}
body {
	font-size: 1em;
}
ol, ul {
/*	list-style: none; */
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define focus styles! */
:focus {
	/* outline: 0; */
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
 /* border-collapse: collapse; */	/* Removing this because it creates a line in tables */
	border-spacing: 0;
}

/* === External Fonts === */

@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,300,400,600,700);

/* === FoodRisk.org Styles === */

/* General Styles */
body {
    margin: 0; 
    padding: 0; 
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    background: #222;
    color: #333;
}
a { text-decoration: none }
#content a {
    color: #499949;
    text-decoration: none;
}
p { line-height: 1.3em; margin-bottom: 1.2em; font-size: .875em; }
table { font-size: .875em; }
table p, table ul { font-size: 1em }
ul, ol { margin-bottom: 1.5em; padding-left: 2em; font-size: .875em; }
ul ul, ol ol { font-size: .86em }
ul li { margin-bottom: .5em }
h1, h2, h3 { margin-bottom: .6em }
h3 { font-size: 1.2em; color: #d06829; font-weight: normal }

/* Modifiers */

.foodrisk-green { color: #499949; }
.irac-aqua { color: #005e7c }
.full-width { width: 100% }
.content-default { width: 960px; margin: 0 auto; }
.section-padding { float: left; width: 250px; height: 400px; background: lightsalmon; margin-right: 20px; }
.separator { color: #ccc }
.overflow { overflow: auto }

/* Section Styles */

#header, #homepage-landing, #homepage-search, #footer, #search-page, #internal-page { 
    min-width: 960px;
}
#internal-page { background-color: #efefef; }
#internal-page a { color: #005e7c; }
#internal-page a:hover { text-decoration: underline }
#header {
    height: 100px;
    background: #000;
    position: relative;
    border-bottom: 10px solid #4c4c4c;
}
#logo { 
    font-size: 32px;
    font-weight: bold;
    color: white;
    position: absolute;
    top: 10px;
    left: 10px;
}
#logo a {
    color: white;
    padding: 20px;
    display: block;
}
#logo a:hover {
    background-color: rgba(255,255,255,.08);
}
#menu {
    overflow: auto;
    font-size: .84em;
    font-weight: 600;
    position: absolute;
    top: 2.5em;
    right: 2.5em;
}
#menu>div {
    float: left;
}
#menu a {
    display: block;
    padding: 10px 10px;
    color: white;
    transition: color .15s ease-in-out 0s;
}
#menu a:hover {
    color: #499949;
}
#menu .menu-separator {
    padding: 10px 0;
    color: #757575;
    color: rgba(255,255,255,.4);
}
#footer {
    background: #191e19;
    background: #222;
    height: 250px;
    color: white;
    position: relative;
}
#homepage-search { 
    background: white;
    text-align: center;
}
#homepage-landing {
    background: #eaeaea;
}
#category-showcase {
    padding: 4em 1.85em;
    text-align: center;
}
#homepage-landing p {
    text-align: center;
}
#homepage-landing p.description {
    font-size: 1.87em; margin-bottom: .8em;
}
#homepage-landing p.featured {
    margin-bottom: 2em;
}
#homepage-landing p.featured a {
    border: 1px solid #ddd;
    padding: 0 3px;
    transition: background .15s ease-in-out 0s;
}
#homepage-landing p.featured a:hover {
    text-decoration: underline;
    background: rgba(0,0,0,.04);
}
#category-tiles {
    overflow: auto;
    display: inline-block;
}
#category-tiles .tile {
    float: left;
    color: white; 
    font-weight: normal;
    margin-right: .8em;
    min-width: 9.2em;
    border: 5px solid rgba(0,0,0,.08);
    border-radius: 12px;
    transition: all 150ms ease;
}
#category-tiles .tile:hover {
    border: 5px solid rgba(0,0,0,.15);
    border-radius: 12px;
    transition: all 150ms ease;
}
#category-tiles .tile:last-child {
    margin-right: 0;
}
#category-tiles .tile a {
    display: block;
    padding: 1.7em 1.2em;
    font-size: 1em;
    transition: all 150ms ease;
    text-transform: uppercase;
    background: #171717;
    color: white;
    color: rgba(255,255,255,.8);
    border-radius: 6px;
    border: 1px solid #171717;
}
#category-tiles .tile a:hover {
    display: block;
    transition: all 150ms ease;
    background: #499949;
    color: white;
    border: 1px solid #3d803d;
}
#homepage-search form input[type="text"] {
    width: 544px; 
    height: 53px; 
    padding: 0 15px; 
    font-size: 1.2em;
    font-weight: normal;
    border: 2px solid #ccc;
    transition: all .150s ease-in-out 0s;
}
#homepage-search form input[type="text"]::-webkit-input-placeholder {
    color: rgba(0,0,0,.35);
    font-weight: normal;
}
#homepage-search form input[type="text"]:focus {
    outline: none;
    border: 2px solid salmon;
    border: 2px solid #428a42;
}
#homepage-search form input[type="submit"] {
    margin-left: -6px;
    border-radius: 0 4px 4px 0;
    height: 100%;
    font-weight: bold;
    font-size: .87em;
    color: white;
    height: 57px;
    border: 2px solid #428a42;
    padding: 19px 30px;
    cursor: pointer;
    background-color: #428a42;
}
#homepage-search form input[type="submit"]:focus {
    outline: 0;
}
#homepage-search form input[type="submit"]:hover {
    background-color: #499949;
    border: 2px solid #499949;
    transition: all .3s ease;
}

/* === Search Page Styles === */

#search-page { background: white; }
.page-content { padding: 0 10px; overflow: auto; padding-top: 1.25em; }
#results-filters { float: left; width: 248px; margin-right: 20px; border: 1px solid #ddd; }
#results-filters .section-title {
    color: white; background: #555; text-align: center; height: 46px; line-height: 46px; margin-bottom: 0;
}
#results-filters .filter {
    
}
#results { float: left; width: 670px; background: none; overflow: auto; }
#results .UserQuery {
    margin-bottom: 1.5em; font-size: 1.05em; font-style: italic;
}
/* Filter Selections */
#results .FilterSelections {
    background-color: white; margin-bottom: 1.5em; border: 1px solid #ccc; font-size: .75em;
}
#results .FilterSelections .content {
    overflow: auto; line-height: 1.5em; padding: 15px;
}
#results .FilterSelections .filter-type {
    float: left; width: 6.5em; color: #a3a3a3; font-weight: bold; text-transform: uppercase; text-align: right;
}
#results .FilterSelections .filter-list {
    float: left; padding-left: 15px;
}
#results .FilterSelections .filter {
    float: left; margin-right: 0em;
}
#results .FilterSelections .filter-label {
    float: left; font-weight: bold; margin-right: .3em; text-transform: uppercase;
}
#results .FilterSelections .remove-button, #results .FilterSelections .remove-button-cat, #results .FilterSelections .remove-button-key {
    float: left; background-color: #a4cca4; font-weight: bold; color: white; width: 1.5em; text-align: center; cursor: pointer; margin-right: 1em; border-radius: 10px;
}
#results .FilterSelections .remove-button:hover, #results .FilterSelections .remove-button-cat:hover, #results .FilterSelections .remove-button-key:hover  {
    background-color: #499949;
}
#results .FilterSelections .remove-button>div, #results .FilterSelections .remove-button-cat>div, #results .FilterSelections .remove-button-key>div, {
    padding-bottom: .2em; line-height: 1.3em;
}
#results .FilterGroup {
    background: white; overflow: auto; margin-bottom: .5em;
}
#results .FilterGroup:last-child {
    margin-bottom: 0;
}

/* Results Filter List */
#results .ResultsFilters { 
    background-color: #a4cca4; background: white; margin-bottom: 1.1em; overflow: auto; 
}
#results .ResultsFilters .filter {
    float: left; overflow: auto; font-size: .81em; line-height: 1.8em; margin-right: 2em;
}
#results .ResultsFilters .filterLabel {
    float: left; color: #a3a3a3; font-weight: bold; margin-right: .5em;
}
#results .ViewToggle, #results .SortBy {
    float: left;
}
#results .ViewToggle { border: 1px solid #c7c7c7; border-radius: 6px }
#results .ViewToggle .simpleView, #results .ViewToggle .detailView {
    float: left; padding: 0 1em; font-weight: 600;
}
#results .ViewToggle .simpleView {
    border-radius: 5px 0 0 5px; cursor: pointer; color: #999;
}
#results .ViewToggle .detailView {
    border-radius: 0 5px 5px 0; background: #499949; cursor: pointer; color: white;
}
#results .ViewToggle .inactive {
    border: 1px solid #a3a3a3; color: #bfbfbf;
}
#results .ViewToggle .active {
    border: 1px solid #499949; color: white;
}
#results .SortBy select {
    font-weight: bold; height: 1.8em; cursor: pointer
}

/* Results Display */
#results .ResultsDisplay {
    background-color: #dadada; margin-bottom: 1.5em; padding: .8em .66em;
}

/* Search Result Block */
.borderHover {
    border: 2px solid #c6c6c6;
    transition: border .15s ease-in-out 0s;
}
.borderHover:hover { 
    border: 2px solid #499949;
}
#results .Result {
    display: block;
    margin-bottom: .8em; background-color: white;  padding: 1.25em; padding-bottom: 0;
}
#results .Result:last-child {
    margin-bottom: 0;
}
#results .Result { color: #333 }
#results .Result .title {
    font-size: 1.88em; font-weight: 600; line-height: 1.2em;
    transition: color .15s ease-in-out 0s;
}
#results .Result:hover .title {
    color: #499949;
}
#results .Result .subtitle { 
    font-size: 1.1em; margin-bottom: .4em
}
#results .Result .collaborators { 
    font-size: .81em; margin-bottom: .5em 
}
#results .Result .metadata {
    font-size: .7em; margin-bottom: 1em
}
#results .Result .shortDescription {
    font-size: .88em; border-bottom: 3px solid #dadada; padding-bottom: .7em; margin-bottom: .7em;
}
#results .KeywordTags { 
    overflow: auto;
    margin-bottom: .75em;
}
#results .KeywordTags .tag {
    font-size: .68em; float: left; line-height: 16px; margin-right: 10px; display: block; color: #868686; padding: 0 7px; border: 1px solid #dadada; text-transform: uppercase; font-weight: 600; margin-bottom: .5em;
}

