/***********************
 * Custom Stylesheet
 *
 ***********************/

/* CUSTOM SECTION */

.ribbon, .heading {
    background: #A0AC88;
	color: white;
    text-shadow: #000000 0 1px 0;
    -o-text-shadow: #000000 0 1px 0;
    -moz-text-shadow: #000000 0 1px 0;
    -webkit-text-shadow: #000000 0 1px 0;
    -ms-text-shadow: #000000 0 1px 0;
}

.ribbon span:before, .ribbon span:after { 
    border-color: #0D3C74 transparent transparent transparent;
}

/* CUSTOM NAVBAR COLORS */

body {
 background: #ffffff;
 overflow-x: hidden;
}

.navbar, .navbar-brand {
 background: #556727;
 color: white !important;
}

/* link */
.navbar-default .navbar-nav > li > a {
    color: #fff;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #eee;
}
.navbar-default .navbar-nav > .active > a, 
.navbar-default .navbar-nav > .active > a:hover, 
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .open > a, 
.navbar-default .navbar-nav > .open > a:hover, 
.navbar-default .navbar-nav > .open > a:focus {
    color: #000;
    background-color: #fff;
}

p, .small td {
 font-size: 0.92em;
}

/* Header */

#navbar-top {
 margin-bottom: 10px;
}

.navbar-input-group {
  font-size: 0px; /*removes whitespace between button and input*/
}

.navbar-input-group input {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}
.navbar-input-group .btn {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-left: 0px;
}
.navbar-input-group .btn:hover {
  #FEFEFE;
}

#logo {
	margin-top: -.45em; 
	margin-left: 1em;
	margin-right: .45em;
	float: left;
}

/* Side Navbar */

#side-nav .text-small {
	font-size: .9em;
}

/* Navbar */

#navbar-left {

}

#navbar-left .nav-pills li a {
 padding: 3px;
 margin: 2px;
 margin: 0px;
}

#NavLogo {
 color: #8B1D18; 
 font-size: 1.2em; 
 font-weight: bold; 
 margin-top: 1em; 
 font-family: Tahoma;
}
#NavLogo img {
 margin: -.25em .25em 0 1em; 
 float: left;
}
#NavLogo + i {
 margin-left: .5em;
 font-size: 0.9em;
 color: gray;
}

/* Scaffolding */

.container {

}

#content {
 font-size: 1.2em; 
}

/* Design Elements */

.breadcrumb {
 margin-bottom: 10px;
}

.head-nav li {
 font-size: 0.9em;
 padding: 0.25em;
}

.box {
 padding: 1em;
 margin-bottom: 1em;
 border: 1px solid silver;
}

.heading {
 text-shadow: 1px 3px 2px rgba(0,0,0,0.2);
 font-size: 1.6em;
 width: calc(100% + 1.32em);
 padding: 15px;
 margin: -.65em 0em 1em -.65em;

 text-align: center;
}

h4 {
 color: #0D3C74;
 margin-top: 1em;
 padding-bottom: 0.3em;
 border-bottom: 1px solid #E5E5E5;
}

h3 {
 color: #8B1D18; 
 margin-top: 0.25em;
}

/* Ribbon Heading */

.ribbon { 
	width: calc(100% + 1.75em);
    margin: .2ex 0 1.2ex;
    text-align: center;
    position: relative;
    padding: .7ex;
    left: -0.85em;
    box-shadow: rgba(0, 0, 0, 0.3) 0 1px 1px;
    -o-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 1px;
    -moz-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 1px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 1px;
    -ms-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 1px;	
}

.ribbon span { 
    display: block;
    padding: 0;
    margin: 0;
	font-size: 0.8em;
}

.sub-ribbon {
	margin-top: .5em;
	padding: .5ex;
}

.sub-ribbon span {
	font-size: .8em !important;
}

.ribbon span:before, .ribbon span:after { 
    position: absolute;
    display: block;
    border-style: solid;
    bottom: -0.99ex;
    content: '';
}

.ribbon span:before { 
    border-width: 1ex 0 0 1ex;
    left: 0;
}

.ribbon span:after { 
    border-width: 1ex 1ex 0 0;
    right: 0;
}

.ribbon:before { 
    border-left-color: transparent;
}

.ribbon:after { 
    border-right-color: transparent;
}

/* Helper CSS */

.less-padding {
 padding: 8px 15px 8px 15px;
}

.no-side-padding {
 padding-left: 0px;
 padding-right: 0px;
}

.less-margin {
 margin: 5px 0px 5px 0px;
}

.spaced {
 margin-top: .75em;
 margin-bottom: .75em;
}

.top-spaced {
 margin-top: 1em;
}

.bottom-spaced {
 margin-bottom: 1em;
}

.right-spaced {
 margin-right: .75em;
}

.left-spaced {
 margin-left: .75em;
}

.padded {
 padding-top: 10px;
 padding-bottom: 10px;
}

.rounded {
 border-radius: 1%;
}

.whitebg {
 background: white;
}

.silverbg {
 background: #E5E5E5;
}

.lightgraybg {
 background: #fefefe;
}

.grey {
 color: #E5E5E5;
}

.green {
 color: #00AB00;
}

.darkgrey {
 color: #707070;
}

.strong {
 font-weight: bold;
}

/* Footer */

footer {
 color: gray;
 background: #E5E5E5;
 text-align: center;
 padding: 2em;
}

.printFooter {
 display: none;
}

.learnmore {
 font-size: 0.9em;
}
.learnmore ul {
 list-style: none;
 padding-left: 0;
 margin-top: .5em;
}

.badge {
 background: #115A8F;
 padding: 1.5em;
 border-radius: 1em;
 color: white;
 font-size: 1.2em;
 width: 100%;
 margin-bottom: 2em;
}
.badge img {
 margin-top: -.5em;
}

/* Site-Specific */

.term {
 margin-top: 0;
 padding-top: 0;
 font-size: 2.5em;
 color: #666666;
}

.definition {
 font-size: 1em;
 color: gray;
 margin: .75em 1em .75em 0;
}

.term_of_day {
 font-size: 2.4em;
 margin-top: 0;
}

.subhead {
 font-size: 1.25em;
 color: gray;
}

.nav-alphabet  {
 margin-bottom: 1em;
}
.nav-alphabet li a {
 padding: 0em !important;
}

.rightbox {
 padding: 1em;
 border: 1px solid #DEDEDE;
}

.glyphicon-random {
 margin: .25em .2em 0 0;
}

.btn-primary {
 background: #556727;
}
.btn-primary:hover {
 background: #6F8141;
}

.btn-default {
 white-space: normal !important;
 background: #A0AC88;
 color: white;
}
.btn-default:hover {
 background: #BAC6A2;
 color: white;
}

span.question {
cursor: pointer;
display: inline-block;
width: 1.4em;
height: 1.4em;
margin-top: -1.25em !important;
background-color: #89A4CC;

color: White;
font-size: 15px;
font-weight: bold;
border-radius: 10px;
text-align: center;
position: relative;
font-style: normal;
text-decoration: none!important;
}

/* Ads */

.ResponsiveLinkUnit {
	margin-top: 1em;
	width: 100%;
	overflow: hidden;
}

.ResponsiveAd {
	margin: .5em 0 .5em 0;
}

.SpacedAd {
	margin: 1em 0 1em 0;
}

.AdBox {
	background: #F9F9F9;
}

/* Sortable Table */

th.sort-header::-moz-selection { background:transparent; }
th.sort-header::selection      { background:transparent; }
th.sort-header {
  cursor:pointer;
  }
th.sort-header::-moz-selection,
th.sort-header::selection {
  background:transparent;
  }
table th.sort-header:after {
  content:'';
  float:right;
  margin-top:7px;
  border-width:0 4px 4px;
  border-style:solid;
  border-color:#404040 transparent;
  visibility:hidden;
  }
table th.sort-header:hover:after {
  visibility:visible;
  }
table th.sort-up:after,
table th.sort-down:after,
table th.sort-down:hover:after {
  visibility:visible;
  opacity:0.4;
  }
table th.sort-up:after {
  border-bottom:none;
  border-width:4px 4px 0;
  }

/* Responsive Tables - INCREDIBLE SEXINESS! */

@media only screen and (max-width: 800px) {

	/* Force table to not be like tables anymore */
	.responsive-table table, 
	.responsive-table thead, 
	.responsive-table tbody, 
	.responsive-table th, 
	.responsive-table td, 
	.responsive-table tr { 
		display: block !important; 
	}
 
	/* Hide table headers (but not display: none;, for accessibility) */
	.responsive-table thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
 
	.responsive-table tr { border: 1px solid #ccc; }
 
	.responsive-table td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative !important;
		padding-left: 50% !important; 
		white-space: normal !important;
		text-align:left !important;
	}
 
	.responsive-table td:before { 
		/* Now like a table header */
		position: absolute !important;
		/* Top/left values mimic padding */
		top: 6px !important;
		left: 6px !important;
		width: 45% !important; 
		padding-right: 10px !important; 
		white-space: nowrap !important;
		text-align:left !important;
		font-weight: bold !important;
	}
 
	/*
	Label the data
	*/
	.responsive-table td:before { content: attr(data-title); }
	
	.ResponsiveAd {
		margin: 1em 0 1em 0;
	}
}

/* Custom Responsive Code */
@media (max-width: 1052px) {
	html, body, container {
	 padding: 0px;
	 margin: 0px;
	 overflow-x: hidden;
	}
 #NavLogo img, #NavLogo + i {
	margin-left: 0;
 }
  .table-responsive {
    width: 100%;
    margin-bottom: 15px;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border: 1px solid #ddd;
  }
  .navbar-form { /* Hide Search Form */
	display: none;
  }
}

@media screen and (max-width: 767px) 
{
	html, body, container, #content {
	 padding: 0px;
	 margin: 0px;
	 overflow-x: hidden;
	}
	h1 {
	 font-size: 0.9em !important;
	}	
	.navbar-default .navbar-nav .open .dropdown-menu>li>a, li.divider {
		color: #fff;
		background: #448DC2 !important;
		margin: 0 !important;
	}
	.navbar-default .navbar-nav > .active > a, 
	.navbar-default .navbar-nav > .active > a:hover, 
	.navbar-default .navbar-nav > .active > a:focus,
	.navbar-default .navbar-nav > .open > a, 
	.navbar-default .navbar-nav > .open > a:hover, 
	.navbar-default .navbar-nav > .open > a:focus {
		background-color: transparent;
		color: #fff;
		font-weight: bold;
	}

	.box {
	 border-radius: 2px;
	}
	
	.heading {
		font-size: 1.5em;
	}
	
	.search-button, .btn-default, .head-nav li  {
		width: 100% !important;
	}
}

/* Old iPhones, etc */
@media screen and (max-width: 320px) 
{
	html, body, container, #content {
	 font-size: 0.975em;
	}
}

/* Print Stylesheet */
@media print {
    body {
		font-size: 1em;
	}
	.table-responsive {
		overflow-x: hidden;
	}
	table tr td {
		font-size: 0.95em !important;
		padding: 0.25em !important;
	}
	.rightbar, .btn, .ResponsiveAd, .ResponsiveLinkUnit, footer, select, .breadcrumb, .print-button ,.mobileNav {
		display: none !important;
	}
	.heading {
		margin-bottom: 0;
	}
	h3 {
		font-size: 1.5em;
	}

	/* Stop bootstrap from adding href to printed pages */
	a[href]:after {
		content: none;
	}
	
	/* Add Footer */
	.printFooter {
		text-align: center;
		display: block !important;
	}
}