/* 
    This stylesheet was created to help maintain a similar layout between idmax and id.nasa.gov projects,
    since they both share the same Header/Footer design.
*/


/* header */
#header {
	height: 92px;
	margin-bottom: 12px;
	/* background same as #header-content */
	background: #708290; /* Old browsers */
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzcwODI5MCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0YTVjNmEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top, #708290 0%, #4a5c6a 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#708290), color-stop(100%,#4a5c6a)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #708290 0%,#4a5c6a 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #708290 0%,#4a5c6a 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #708290 0%,#4a5c6a 100%); /* IE10+ */
	background: linear-gradient(to bottom, #708290 0%,#4a5c6a 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#708290', endColorstr='#4a5c6a',GradientType=0 ); /* IE6-8 */
}

#header-content {
	display: flex;
	align-items: center;
	
    height: 92px; 
	min-width: 1170px; 
    margin: auto; 
    padding-left: 14px;
    padding-right: 14px;
    /* background same as #header */
    background: #708290; /* Old browsers */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzcwODI5MCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0YTVjNmEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, #708290 0%, #4a5c6a 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#708290), color-stop(100%,#4a5c6a)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #708290 0%,#4a5c6a 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #708290 0%,#4a5c6a 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #708290 0%,#4a5c6a 100%); /* IE10+ */
    background: linear-gradient(to bottom, #708290 0%,#4a5c6a 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#708290', endColorstr='#4a5c6a',GradientType=0 ); /* IE6-8 */
}

#header-navbar {
	height: 92px;
	width: 100%;
}

#header .dropdown-menu {
	z-index: 1020;
}

#header ul.navbar-nav {
	height: 100%;
}

#header .ribbon {
	margin-left: 0px;
	
/* 	ie7 only  */
	*width : 129px;
	*margin-left: 3px;
}

#header .ribbon .nav-button-title {
	margin-top: 3px;
}

#header .ribbon > a.btn {
	height: 100%;
	width: 150px;
	margin-left: 1px;
	margin-right: 1px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
}

#header .ribbon > a.btn > .subheading {
    font-size: 9px;
    line-height:13px;
    margin-top:6px;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;
}

#header .ribbon > a.btn > .subheading.break {
    display: block; /* Fallback for non-webkit */
    height: calc(9px * 13 * 2); /* Fallback for non-webkit */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* #header #action-btn-group { */
/* 	margin-left: 60px; */
/* 	margin-top: 11px; */
/* } */

#masthead {
	display: flex;
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
}

.masthead-container {
	align-items: center;
}

#masthead > img {
    width: 80px;
    height: 80px;
    float: left;
    margin-right: 8px; 
    margin-top: 5px;
    margin-bottom: 5px;
    border: 0;
}

#masthead > .masthead-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* USER BLOCK */
#user-block {
    float: right;
    font-size: 12px;
    max-width: 130px;
    min-width: 102px;
    margin-left: 8px;
    margin-right: 8px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#user-block > a:not(.btn) {
    color: #b2d8f4;
    margin: 4px;
}

#footer {
    background-color:white;
    color: silver;
    font-size: 10px;
    line-height: 13px;
}

#footer > .container > .row > .span12 {
    border-top: 1px solid silver;
    margin-top: 20px;
    padding-top: 10px;
}


.popover.right .arrow {
	border-right-color: rgba(0, 0, 0, 1.0);
}

.btn-inverse {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #363636;
  *background-color: #222222;
  background-image: -moz-linear-gradient(top, #444444, #222222);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
  background-image: -webkit-linear-gradient(top, #444444, #222222);
  background-image: -o-linear-gradient(top, #444444, #222222);
  background-image: linear-gradient(to bottom, #444444, #222222);
  background-repeat: repeat-x;
  border-color: #222222 #222222 #000000;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  
}

.btn-inverse:hover,
.btn-inverse:focus,
.btn-inverse:active,
.btn-inverse.active,
.btn-inverse.disabled,
.btn-inverse[disabled] {
  color: #ffffff;
  background-color: #222222;
  *background-color: #151515;
}

.white-icon {
	color: #fff;
}

.white-icon:hover,
.white-icon:focus,
.white-icon:active,
.white-icon.active,
.white-icon.disabled,
.white-icon[disabled] {
  color: #fff;
  opacity: .75;
}

.fa.fa-asterisk.required {
   vertical-align: top;
   color: red;
   font-size: 7px;
}

.overlay {
    position: fixed;
    filter:alpha(opacity=75);
    -moz-opacity:0.75;
    -khtml-opacity: 0.75;
    opacity: 0.75;
    z-index: 10000;
}

.bg-primary {
	color: white;
	background-color: #427aa1 !important;
}

/* replacing bootstrap 3's btn-xs */
.tiny-button {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* extending bootstrap 5's font sizing */
.fs-7 {
	font-size: 0.75rem!important;
}

.fs-8 {
    font-size: 0.7rem!important;
}

/* Bootstrap's default btn-light:hover color is nearly indistinguishable from the non-hover color */
.btn-light:hover {
	background-color: #e0e0e0;
	border-color: #e0e0e0;
}