
@import '../../../styles/base';

.nav-bar {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  // background-color: $app-blue-dark;
  background: rgba(77,148,189,1);
  background: -moz-linear-gradient(top, rgba(77,148,189,1) 0%, rgba(75,181,173,1) 100%);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(77,148,189,1)), color-stop(100%, rgba(75,181,173,1)));
  background: -webkit-linear-gradient(top, rgba(77,148,189,1) 0%, rgba(75,181,173,1) 100%);
  background: -o-linear-gradient(top, rgba(77,148,189,1) 0%, rgba(75,181,173,1) 100%);
  background: -ms-linear-gradient(top, rgba(77,148,189,1) 0%, rgba(75,181,173,1) 100%);
  background: linear-gradient(to bottom, rgba(77,148,189,1) 0%, rgba(75,181,173,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7fc6bd', endColorstr='#4bb5c1', GradientType=0 );

  @media all and (max-width: 700px) {
    font-size: .875em;
  }
}

.nav-bar__logo {
  height: 2.5rem;
  margin-left: 2rem;
  margin-right: 1rem;
  opacity: .9;

  @media all and (max-width: 710px) {
    width: 100px;
    height: auto;
    margin-left: .5rem;
    margin-right: .5rem;
  }
}

.nav-bar__app-name {
  margin-bottom: .25rem;
  margin-right: 2rem;
  font-weight: 600;
  color: #eee;
}

.breadcrumbs {
  margin-top: .25rem;
  margin-bottom: .5rem;
  flex: 2;
}

.breadcrumb {
  cursor: pointer;
  padding-left: .75em;
  font-size: 1rem;
}

a.breadcrumb__link {
  color: #f8f8f8;
  font-weight: 600;
  font-size: 1rem;
}

a.breadcrumb__link:hover {
  color: #fff;
}

.breadcrumb__link.is-inactive, .breadcrumb__link.is-inactive:hover {
  text-decoration: none;
  pointer-events: none;
  font-weight: 400;
}

.route-title {
  flex: 2;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 0;
  text-align: left;
}

.nav-bar__app-control {
  margin-right: 1rem;
}

.username {
  // display: inline-block;
  font-size: 1rem;  // 16pt for accessibility
  margin-bottom: 0;
  margin-right: 1em;
  color: #fff;
}

.help-button {
  font-size: 1rem;  // 16pt for accessibility
  color: #eee;
  margin-right: 1rem;
}

.logout-button {
  padding: .5em 1em;
  font-size: 1rem;  // 16pt for accessibility
  color: #eee;
  border: 1px solid #eee;
  border-radius: 3px;
}

.logout-button:hover,
.help-button:hover {
  opacity: .8;
}

.nav-bar a:focus,
.nav-bar button:focus {
  outline-color: $app-red-dark;
  outline-offset: 0.25rem;
  outline-style: dashed;
  outline-width: 3px;
}

.element-invisible {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}

#skip-link-to-main-content {
  left: 50%;
  margin-left: -6.5em;
  margin-top: 0;
  padding: 0 0.5em;
  position: absolute;
  width: 12em;
  z-index: 1050;
}

#skip-link-to-main-content a,
#skip-link-to-main-content a:link {
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: block;
  line-height: 2;
  padding: 0;
  text-align: center;
  text-decoration: none;
}

#skip-link-to-main-content .element-focusable:active,
#skip-link-to-main-content .element-focusable:focus {
  clip: auto;
  height: auto;
  overflow: visible;
  width: 100%;
  padding: 1em;
  margin-top: -1.25rem;
}
