/*
 * GLOBAL NAVBAR at the top
 * see sitewide.js highlightNavbarOption() which adds the .active class to the appropriate heading
 * see 
 */

/** expanded wide-screen mode + dropdown menus **/

/** styling for Log In and Sign Up buttons found in bootstrapbuttons.css **/

/** functions for log in log out buttons found in loginlogout.php **/

.navbar-brand {
  font-family: "Crimson Text", Georgia, "Times New Roman", Times, serif;
  font-size: 1.777rem;
  text-decoration: none !important;
  font-weight: 400;
  color: black !important;
  line-height: 1;
}

/* there is some space to the left of the logotype on small screens */

@media screen and (max-width: 575px) {
  .navbar-brand {
    padding-left: 2rem;
  }
  .nav-link,
  .dropdown-item {
    text-align: center;
    margin: 0.25rem;
    padding: 1rem;
  }
}

.login-nav {
  position: static;
}

.navbar {
  height: 5em;
  padding: 0;
  font-weight: 600;
  /* more words => smaller font to fit into 1000px width */
  color: black;
}

.navbar.navbar-light .navbar-nav a.nav-link {
  color: inherit;
  margin-right: 0.5em;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0;
}

.logged-in #menu-item-signup {
  /* hides Sign Up button when user logged in */
  display: none !important;
}

.navbar .dropdown-menu li a.dropdown-item {
  /* color: #707070 !important; */
  text-decoration: none;
  background-color: white;
}

.navbar .dropdown-item.active,
.dropdown-item:active {
  background-color: #ccd1ff;
}

.navbar.navbar-light .navbar-nav a.nav-link.active {
  /* see highlightNavbarOption() on every page */
  border-bottom: 2px solid #707070;
}

/** collapsed hamburger mode **/

.navbar-toggler,
.navbar-light .navbar-toggler {
  font-family: inherit;
  color: black;
  background-color: #ccd1ff;
}

.navbar .navbar-toggler {
  margin-right: 10px;
  padding: 0.5rem;
  /* border: 2px solid black; */
}

.navbar-toggler:focus {
  background-color: #a4adff;
  outline: none;
}

.navbar .navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-collapse.collapse.show {
  padding-bottom: 20px;
  text-align: left;
  z-index: 10;
  background-color: white;
  border-radius: 0.25rem;
  color: #000;
}

.navbar-collapse.collapse.show a.nav-link {
  padding: 0.5rem 1rem;
  /* background-color: #e4e3e8; */
  outline: none;
}

.navbar .navbar-collapse.collapse.show .dropdown-menu {
  text-align: right;
  background-color: transparent;
  border: none;
  margin: 0;
}

.dropdown-menu {
  border: 0.15rem solid black;
}

.navbar.navbar-light .navbar-nav a.nav-link {
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.navbar .navbar-collapse.collapse.show .dropdown-menu li a.dropdown-item {
  padding: 0.5rem 3rem 0.5rem 0.5rem !important;
  color: black !important;
  background-color: transparent;
}

/* the menu icon is next to the logotype  */

@media screen and (max-width: 991px) {
  .navbar .container,
  .navbar .container-fluid,
  .navbar .container-lg,
  .navbar .container-md,
  .navbar .container-sm,
  .navbar .container-xl {
    justify-content: flex-start;
  }
}

/*
 * SKIP NAVIGATION
 * we never do SEE it, but screenreaders will pick it up and report it; thus the transparent color and no positioning 
 */

#skip-navigation a {
  color: transparent;
  /* invisible unless tab-focused */
  cursor: default;
}

#skip-navigation a:focus,
#skip-navigation a:hover,
#skip-navigation a:active,
#skip-navigation a:visited {
  color: transparent;
  cursor: default;
  outline: 0;
  border: none;
  -moz-outline-style: none;
  outline-style: solid;
}

/*
 * bottom spacing
 */

.toptopnav a {
  font-size: 0.75em;
  color: #021140;
}

.navbar {
  margin-bottom: 0.5em;
}

/**
 * GTRANSLATE
 */

div.gtranslate-embed-here {
  text-align: right;

  z-index: 1;
  /* so it doesn't fall behind the navbar and get difficult to click */
}

div.gtranslate-embed-here.glink {
  text-decoration: none !important;
}

@media screen and (max-width: 500px) {
  div.gtranslate-embed-here {
    top: 0;
    right: 0.75em;
  }
}
