@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css");

/* Clickability fix for selector on sm devices */
@media (min-width: 768px) and (max-width: 991px) {
  article h1:first-of-type:before {
    height: 0;
    margin-top: 0;
  }  
}
/*AAM increases the size of the body text */
body {
  font-size: 16px;
}

/* AAM Controls the size of the breadcrumb font*/
.breadcrumb {
  font-size: 14px;
}

/* AAM Prevents the header words from breaking */
article h1, h2, h3, h4, h5, h6 {
  word-break: keep-all;
}
/* Adjusts the formatting of the TOC, and adds level 4*/
.toc .level1 > li {
  font-weight: bold;
  margin-top: 8px;
  font-size: 14px;
  position: relative;
}
.toc .level2 {
  font-weight: normal;
  padding-top: 4px;
  padding-bottom: 4px;
  margin-left: 15px;
  font-size: 14px;
}
.toc .level3 {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 13px;
  margin-left: 20px;
}

.toc .level4 {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 13px;
  margin-left: 16px;
} 

#search {
  border: none;
}

/* AAM changed display: inline to display block. Adding padding bottom and line height. This controls the non-selected entires in the entries toc. And changed colours
below to reflect JF colours*/
.toc .nav > li > a {
  color: #666666;
  padding: 0;
  display: block;
  padding-bottom: 6px;
  line-height: 1.3
}
.toc .nav > li > .expand-stub + a {
  margin-left: 5px;
  display: block;
}
.toc .nav > li > a:hover,
.toc .nav > li > a:focus {
  color: #4d4d4f;
  background: none;
  text-decoration: underline;
}
.toc .nav > li.active > a {
  color: #337ab7;
}
.toc .nav > li.active > a:hover,
.toc .nav > li.active > a:focus {
  color: #23527c;
}

/* AAM Manually added this code from Github bug fix #2598 that hadn't made it into DocFx release as of August 10. Fixes the search, and shows the loading graphic */

#search-results p .index-loading { 
  animation: index-loading 1.5s infinite linear; 
  -webkit-animation: index-loading 1.5s infinite linear; 
  -o-animation: index-loading 1.5s infinite linear; 
  font-size: 2.5rem; 
} 

@keyframes index-loading { 
    from { transform: scale(1) rotate(0deg);} 
    to { transform: scale(1) rotate(360deg);} 
} 

@-webkit-keyframes index-loading { 
    from { -webkit-transform: rotate(0deg);} 
    to { -webkit-transform: rotate(360deg);} 
} 

@-o-keyframes index-loading { 
    from { -o-transform: rotate(0deg);} 
    to { -o-transform: rotate(360deg);} 
} 

#search-results .sr-items {
  font-size: 18px;
}

.fa-code {
  font-size: 19px;
}
/* AAM: Controls the TOC -If keep this it overwrites my formatting for .toc .level1-4
.sidetoc,
body .toc,
.sidefilter,
.sidetoggle { 
  background-color: #f9fbe7; 
}*/
/* AAM much of the below code was pulled from a DocFx custom template. Commented out but left here in case need in the future
.sidenav,
.toc-toggle {
  padding: 0;
}

.sidetoggle {
  padding-bottom: 15px;
}
*/

/* Remove center align from Navbar and Collapsible section 
.collapse.in,
.collapsing {
  text-align: unset;
}

article h4 {
  border-bottom: none;
}

@media (min-width: 768px) {
  .sidetoc, .sidefilter {
    margin-left: -15px;
  }
}

@media (max-width: 767px) {
  .navbar-collapse {
    text-align: center !important;
  }

  .navbar-collapse li .active {
    border-radius: 20px;
  }
}
*/

/* Collapsible Sections
   ------------------------------------------------------- 
.expander:after {
    font-family: 'Glyphicons Halflings';
    content: "\e260";
    margin-left: 5px;
    color: grey;
    font-size: small;
}

.expander.collapsed:after {
    content: "\e259";
}
*/
/* Floating buttons
   ------------------------------------------------------- 
.fab {
    width: 40px;
    height: 40px;
    text-align: center;
    padding: 11px 0 0 0;
    border: none;
    outline: none;
    color: #FFF;
    border-radius: 100%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    transition:.3s;
}

.fab:hover {
    transform: scale(1.1);
}

.fab + .fab {
  margin-right: 15px;
}

.contribution-panel {
    z-index: 1000;
    position: fixed;
    right: 30px;
    top: 70px;
}
*/

/* AAM Alerts-changed so that alert heading is no longer uppercase */
.alert h5 {
  text-transform: none;
}

/* Bootstrap docs like sidebar
   ------------------------------------------------------- */
   /* AAM Hides the "In this article" heading
.affix h5 {
  display: none;
}
*/

/* AAM-"In this Article"-changed so that it's no longer uppercase and increased font size */
.affix h5 {
  text-transform: none;
  font-size: 14px;
}

/* AAM active & hover links for the sidebar */
.affix ul > li > a:hover,
.affix ul > li.active > a,
.affix ul > li > a:focus {
  color: #f04e37;                 
  text-decoration: none;          
  background-color: transparent;  
  border-left-color: #f04e37; 
  white-space: normal;
}

/* all active links */
.affix ul > li.active > a, 
.affix ul > li.active:hover > a,
.affix ul > li.active:focus >a {
    font-weight: 700;
    white-space: normal;
}

/* nested active links */
.affix ul ul > li.active > a, 
.affix ul ul > li.active:hover > a,
.affix ul ul > li.active:focus > a {
    font-weight: 500;
}

/* all links */
.affix ul > li > a {
  color: #999;
  border-left: 2px solid transparent;
  padding: 4px 20px;
  font-size: 13px;
  font-weight: 400;
}

/* nested links */
.affix ul ul > li > a {
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 30px;
  font-size: 12px;
}

/* hide inactive nested list */
.affix ul ul {
  display: none;
}

/* show active nested list */
.affix ul > li.active > ul {
  display: block;
}
/* AAM Was trying to get the In This Article list entries to break across page when minimizing the screen. 
white-space: normal did that. But then the links didn't work correctly when window was minimized.
.affix ul > li.active > ul,
.affix ul > li.active > a:before,
.affix ul > li > a:hover:before {
  display: block;
  white-space: normal;
}*/

.affix > ul > li > a:before {
  content: '';
}

.affix ul ul > li > a:before {
  content: '';
}

/* Navbar Hamburger
   ------------------------------------------------------- */
.icon-bar {
    transition: 0.4s;
}

/* Rotate first bar */
.change .icon-bar:nth-of-type(2) {
    transform: rotate(-45deg) translate(-4px, 5px) ;
}

/* Fade out the second bar */
.change .icon-bar:nth-of-type(3) {
    opacity: 0;
}

/* Rotate last bar */
.change .icon-bar:nth-of-type(4) {
    transform: rotate(45deg) translate(-4px, -5px) ;
}

/* Custom Navbar
   ------------------------------------------------------- */
/* AAM: The 4d4d4f is the colour of the nav bar.*/
.navbar-inverse {
  background-color: #4d4d4f;
  opacity: 0.95;
  border-color: #4d4d4f;
}
.navbar-inverse .navbar-brand {
  color: #ffffff;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
  color: #7bacbd;
}
.navbar-inverse .navbar-text {
  color: #ffffff;
}
.navbar-inverse .navbar-nav > li > a {
  color: #ffffff;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: #7bacbd;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
  color: #7bacbd;
  background-color: #4d4d4f;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
  color: #7bacbd;
  background-color: #4d4d4f;
}
.navbar-inverse .navbar-toggle {
  border-color: #4d4d4f;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
  background-color: #4d4d4f;
}
.navbar-inverse .navbar-toggle .icon-bar {
  background-color: #ffffff;
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
  border: none;
}
.navbar-inverse .navbar-link {
  color: #ffffff;
}
.navbar-inverse .navbar-link:hover {
  color: #7bacbd;
}

@media (max-width: 767px) {
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
    color: #ffffff;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #7bacbd;
  }
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #7bacbd;
    background-color: #4d4d4f;
  }
}
/* AAM This is the icon for the Warning message. Changed it to e107 from e127 */
.alert-warning h5:before {
  content:"\e107"
}

/* AAM This is the icon for the Important message. Changed it to e127 from e107 */
.alert-danger h5:before {
  content:"\e127"
}