/* scaffolding */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-size: 16px;
  line-height: 1.42857143;
  color: #555555;
  font-family: "Source Sans Pro", "Segoe UI", "Helvetica Neue", "Helvetica", Arial, sans-serif;
  overflow-y: scroll;
}

h1, .h1 {
  margin-top: 30px;
}

a {
  color: #986dbd;
  text-decoration: none;
}

a:hover, a:focus {
  color: #724599;
  text-decoration: underline;
}

code {
  color: #666;
  background-color: #f8f8f8;
  font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Courier New", monospace;
}

kbd{
  background-color: #777;
  font-size: 80%;
}

hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #e0e0e0;
}

blockquote {
  padding: 10px 20px;
  margin: 0 0 20px;
  font-size: 14px;
  border-left: 5px solid #ccc;
}

blockquote footer, blockquote small, blockquote .small {
  display: block;
  font-size: 80%;
  line-height: 1.42857143;
  color: #999999;
}

blockquote footer:before, blockquote small:before, blockquote .small:before {
  content: '\2014 \00A0';
}

.blockquote-reverse, blockquote.pull-right {
  border-right: 5px solid #986dbd;
}

address {
  margin-bottom: 20px;
  line-height: 1.42857143;
}

ul.checkmark-list {
  position: relative;
  list-style: none;
  margin-left: 0;
  padding-left: 1.2em;
  font-size: 16px;
}

ul.checkmark-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
}

a, button {
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.required {
  color: #986dbd;
}

@media (max-width: 991px) {
  .text-center-sm {
    text-align: center;
  }
}

section, div.section {
  margin-bottom: 40px;
}

figure img{
  max-width: 100%;
}

.navbar-affixed-top {
  top: -32px;
}

.navbar-affixed-top.affix-top {
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}

.navbar-affixed-top.affix {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  -webkit-box-shadow: 0 0 5px #cccccc;
  box-shadow: 0 0 5px #cccccc;
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
}

/* buttons  */

.btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.42857143;
  border-radius: 0;
}

/*** compact sidenav, <select> ***/

.navigation-compact-select {
  margin-top: 30px;
}

.navigation-compact-select label {
  text-transform: uppercase;
  font-size: 14px;
}

.navigation-compact-select select {
  margin-left: 10px;
}

/*** override theme styles ***/

.navbar ul.nav>li>a {
  font-size: 16px;
}

@media (max-width: 768px) {
  .navbar ul.nav>li.active>a, .navbar ul.nav>li.open>a {
    border-top-color: transparent;
  }
  .navbar ul.nav>li>a:hover {
    border-top-color: transparent;
  }
}

.navbar-affixed-top.affix {
  /* TODO generate x-browser value via less/sass */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.33);
}

/*** panels ***/

.panel.sidebar-menu h3 {
  padding: 5px 0;
  margin: 0;
}

.panel.sidebar-menu {
  background: #fff;
  margin: 0 0 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.panel.sidebar-menu .panel-heading {
  text-transform: uppercase;
  margin-bottom: 10px;
  background: none;
  padding: 0;
  letter-spacing: 0.08em;
  border-bottom: none;
}

.panel.sidebar-menu .panel-heading h1, .panel.sidebar-menu .panel-heading h2, .panel.sidebar-menu .panel-heading h3, .panel.sidebar-menu .panel-heading h4, .panel.sidebar-menu .panel-heading h5 {
  display: inline-block;
  border-bottom: solid 3px #986dbd;
  line-height: 1.1;
  margin-bottom: 0;
}

.panel.sidebar-menu .panel-heading .btn.btn-danger {
  color: #fff;
  margin-top: 5px;
}

.panel.sidebar-menu .panel-body {
  padding: 0;
}

.panel.sidebar-menu .panel-body span.colour {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: solid 1px #555555;
  vertical-align: top;
  margin-top: 2px;
  margin-left: 5px;
}

.panel.sidebar-menu .panel-body label {
  color: #999999;
  font-size: 12px;
}

.panel.sidebar-menu .panel-body label:hover {
  color: #555555;
}

.panel.sidebar-menu ul.nav.category-menu {
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel.sidebar-menu ul.nav ul {
  list-style: none;
  padding-left: 0;
}

.panel.sidebar-menu ul.nav ul li {
  display: block;
}

.panel.sidebar-menu ul.nav ul li a {
  position: relative;
  font-weight: normal;
  text-transform: none !important;
  display: block;
  padding: 10px 15px;
  padding-left: 30px;
  font-size: 12px;
  color: #999999;
}

.panel.sidebar-menu ul.nav ul li a:hover, .panel.sidebar-menu ul.nav ul li a:focus {
  text-decoration: none;
  background-color: #eeeeee;
}

.panel.sidebar-menu ul.popular, .panel.sidebar-menu ul.recent {
  list-style: none;
  padding-left: 0;
  padding: 20px 0;
}

.panel.sidebar-menu ul.popular li, .panel.sidebar-menu ul.recent li {
  margin-bottom: 10px;
  padding: 5px 0;
  border-bottom: dotted 1px #eeeeee;
}

.panel.sidebar-menu ul.popular li:before, .panel.sidebar-menu ul.recent li:before, .panel.sidebar-menu ul.popular li:after, .panel.sidebar-menu ul.recent li:after {
  content: " ";
  display: table;
}

.panel.sidebar-menu ul.popular li:after, .panel.sidebar-menu ul.recent li:after {
  clear: both;
}

.panel.sidebar-menu ul.popular li:before, .panel.sidebar-menu ul.recent li:before, .panel.sidebar-menu ul.popular li:after, .panel.sidebar-menu ul.recent li:after {
  content: " ";
  display: table;
}

.panel.sidebar-menu ul.popular li:after, .panel.sidebar-menu ul.recent li:after {
  clear: both;
}

.panel.sidebar-menu ul.popular li img, .panel.sidebar-menu ul.recent li img {
  width: 50px;
  margin-right: 10px;
}

.panel.sidebar-menu ul.popular li h5, .panel.sidebar-menu ul.recent li h5 {
  margin: 0 0 10px;
}

.panel.sidebar-menu ul.popular li h5 a, .panel.sidebar-menu ul.recent li h5 a {
  font-weight: normal;
}

.panel.sidebar-menu ul.popular li p.date, .panel.sidebar-menu ul.recent li p.date {
  float: right;
  font-size: 12px;
  color: #999999;
}

.panel.sidebar-menu ul.popular li:last-child, .panel.sidebar-menu ul.recent li:last-child {
  border-bottom: none;
}

.panel.sidebar-menu .text-widget {
  font-size: 12px;
}

/* universal box */

.box {
  background: #fff;
  margin: 0 0 30px;
  border: solid 1px #ccc;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 20px 0;
  border-left: none;
  border-right: none;
}

.box .box-header {
  background: #f7f7f7;
  margin: -20px 0 20px;
  padding: 20px;
  border-bottom: solid 1px #eeeeee;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.box .box-header:before, .box .box-header:after {
  content: " ";
  display: table;
}

.box .box-header:after {
  clear: both;
}

.box .box-header:before, .box .box-header:after {
  content: " ";
  display: table;
}

.box .box-header:after {
  clear: both;
}

.box .box-footer {
  background: #f7f7f7;
  margin: 30px 0 -20px;
  padding: 20px;
  border-top: solid 1px #eeeeee;
}

.box .box-footer:before, .box .box-footer:after {
  content: " ";
  display: table;
}

.box .box-footer:after {
  clear: both;
}

.box .box-footer:before, .box .box-footer:after {
  content: " ";
  display: table;
}

.box .box-footer:after {
  clear: both;
}

@media (max-width: 991px) {
  .box .box-footer .btn {
    margin-bottom: 20px;
  }
}

.box.no-border {
  border: none;
}

/*
.bar {
  position: relative;
  background: #986dbd;
  padding: 60px 0;
}
*/

.img-border{
  border: 1px solid #ccc;
  margin-top: 30px;
}

/* Original Boostrap template overwrite */

.img-responsive{
  /* make it work on IE11 */ 
  width: 100%;
}

/* breadcrumbs */

.breadcrumb {
  text-transform: uppercase;
  background-color: none;
  letter-spacing: 0.08em;
}

/* nav */

.nav>li>a {
  padding: 10px 15px;
}

.nav>li.disabled>a {
  color: #999999;
}

.nav>li.disabled>a:hover, .nav>li.disabled>a:focus {
  color: #999999;
}

.nav-tabs {
  border-bottom: 1px solid #986dbd;
}

.nav-tabs>li {
  float: left;
  margin-bottom: -1px;
}

.nav-tabs>li>a {
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 0 0 0 0;
}

.nav-tabs>li>a:hover {
  border-color: #eeeeee #eeeeee #986dbd;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
  color: #555555;
  background-color: #ffffff;
  border: 1px solid #986dbd;
  border-bottom-color: transparent;
  cursor: default;
}

.nav-tabs.nav-justified {
  width: 100%;
  border-bottom: solid 1px #986dbd;
  border-bottom: 0;
}

.nav-tabs.nav-justified>li {
  float: none;
}

.nav-tabs.nav-justified>li>a {
  text-align: center;
  /*margin-bottom: 5px;*/
}

.nav-tabs.nav-justified>li>a {
  margin-right: 0;
  border-radius: 0;
}

.nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:hover, .nav-tabs.nav-justified>.active>a:focus {
  border: 1px solid #986dbd;
}

@media (min-width: 768px) {
  .nav-tabs.nav-justified>li>a {
    border-bottom: 1px solid #986dbd;
    border-radius: 0 0 0 0;
  }
  .nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:hover, .nav-tabs.nav-justified>.active>a:focus {
    border-bottom-color: #ffffff;
  }
}

.nav-pills>li {
  float: left;
}

.nav-pills>li>a {
  border-radius: 0;
}

.nav-pills>li+li {
  margin-left: 2px;
}

.nav-pills>li.active>a, .nav-pills>li.active>a:hover, .nav-pills>li.active>a:focus {
  color: #ffffff;
  /*background-color: #986dbd;*/
}

.nav-stacked>li {
  float: none;
}

.nav-stacked>li+li {
  margin-top: 2px;
  margin-left: 0;
}

.nav-justified {
  width: 100%;
  border-bottom: solid 1px #986dbd;
}

.nav-justified>li {
  float: none;
}

.nav-justified>li>a {
  text-align: center;
  /*margin-bottom: 5px;*/
}

.nav-tabs-justified {
  border-bottom: 0;
}

.nav-tabs-justified>li>a {
  margin-right: 0;
  border-radius: 0;
}

.nav-tabs-justified>.active>a, .nav-tabs-justified>.active>a:hover, .nav-tabs-justified>.active>a:focus {
  border: 1px solid #986dbd;
}

@media (min-width: 768px) {
  .nav-tabs-justified>li>a {
    border-bottom: 1px solid #986dbd;
    border-radius: 0 0 0 0;
  }
  .nav-tabs-justified>.active>a, .nav-tabs-justified>.active>a:hover, .nav-tabs-justified>.active>a:focus {
    border-bottom-color: #ffffff;
  }
}

.tab-content {
  padding: 15px;
  border: solid 1px #ddd;
  border-top: none;
}

/* navbar */

.navbar {
  border: none;
  border-radius: 0;
  position: relative;
  margin-bottom: 0;
  border-bottom: 1px solid transparent;
}

@media (min-width: 768px) {
  .navbar-header {
    float: left;
  }
}

.navbar-brand {
  height: inherit;
  padding: inherit;
  float: left;
}

.navbar-brand img {
  width: 136px;
  margin-top: 3px;
  margin-left: 10px;
  margin-right: 10px;
}

.navbar-brand:hover, .navbar-brand:focus {
  text-decoration: none;
}

@media (min-width: 768px) {
  .navbar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand {
    margin-left: -15px;
  }
}

/*** tree-nav ***/

.tree-nav, aside {
  font-size: 14px;
}

.tree-nav ul {
  list-style-type: none;
  padding-left: 8px;
}

.tree-nav li.active a {
  font-weight: bold;
  color: #3e2961;
}

.tree-nav-section {
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;  
  line-height: 36px;
  font-size: 90%;
}

.tree-nav-section i {
  float: right;
  margin-top: 8px;
  font-size: 130%;
  visibility: hidden;
}

.tree-nav-section h3, aside>h3 {
  text-transform: uppercase;
  line-height: 30px;
}

/*** aside ***/

@media (min-width: 992px) {
  .aside-box {
    margin-top: 30px;
    /* NB match with h1 */
  }
}

aside ul {
  list-style-type: none;
  padding-left: 0px;
}

aside li {
  line-height: 26px;
  margin-bottom: 2px;
}

aside li a {
  line-height: 16px;
  display: inline-block;
}

/* breadcrumbs */

.breadcrumb {
  padding: 20px 0;
  margin-bottom: 20px;
  background-color: transparent;
  border-radius: 0;
  text-align: right;
}

.breadcrumb>li+li:before {
  content: ">\00a0";
  color: #555555;
}

.breadcrumb>.active {
  color: #999999;
}

@media (max-width: 991px) {
  .breadcrumb {
    padding: 20px 0;
    text-align: center;
  }
}

/* labels */

.label {
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* forms.less */

label {
  font-weight: normal;
}

.form-control {
  -webkit-box-shadow: none;
  box-shadow: none;
  border-radius: 0;
}

.form-control:focus {
  border-color: #986dbd;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(152, 109, 189, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(152, 109, 189, 0.6);
}

.form-group {
  margin-bottom: 20px;
}

/*** error page ***/

#error-page {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 100px;
}

#error-page h4 {
  margin-bottom: 40px;
}

#error-page p.buttons {
  margin-top: 40px;
}

/*** pagination ***/

.pager {
  margin: 20px 0;
}

.pager li {
  display: inline;
}

.pager li>a, .pager li>span {
  background-color: #ffffff;
  border: 1px solid #986dbd;
  border-radius: 0;
}

.pager li>a:hover, .pager li>a:focus {
  text-decoration: none;
  color: #fff;
  background-color: #986dbd;
}

.pager .disabled>a, .pager .disabled>a:hover, .pager .disabled>a:focus, .pager .disabled>span {
  color: #999999;
  background-color: #ffffff;
  border-color: #ddd;
}

.pagination {
  margin: 20px 0;
  border-radius: 0;
}

.pagination>li>a, .pagination>li>span {
  padding: 6px 12px;
  line-height: 1.42857143;
  text-decoration: none;
  color: #986dbd;
  background-color: #ffffff;
  border: 1px solid #dddddd;
}

.pagination>li>a:hover, .pagination>li>span:hover, .pagination>li>a:focus, .pagination>li>span:focus {
  color: #986dbd;
  background-color: #e2d6ed;
  border-color: #dddddd;
}

.pagination>.active>a, .pagination>.active>span, .pagination>.active>a:hover, .pagination>.active>span:hover, .pagination>.active>a:focus, .pagination>.active>span:focus {
  z-index: 2;
  color: #ffffff;
  background-color: #986dbd;
  border-color: #986dbd;
}

.pagination>.disabled>span, .pagination>.disabled>span:hover, .pagination>.disabled>span:focus, .pagination>.disabled>a, .pagination>.disabled>a:hover, .pagination>.disabled>a:focus {
  color: #999999;
  background-color: #ffffff;
  border-color: #dddddd;
}

/*** responsive utilities ***/

@media (max-width: 767px) {
  .text-center-xs {
    text-align: center !important;
  }
  .text-center-xs img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .text-center-sm {
    text-align: center !important;
  }
  .text-center-sm img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px; height: 0; overflow: hidden;
  margin-bottom: 10px;
}
  
.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  line-height: 1.1;
  color: #333333;
}

h1, h2, h3, .h1, .h2, .h3 {
  font-weight: bold;
}

p {
  margin: 0 0 10px;
}

.lead {
  margin-bottom: 20px;
  /*font-size: 18px;*/
}

@media (min-width: 768px) {
  .lead {
    font-size: 21px;
  }
}

.text-small {
  font-size: 12px;
}

.text-large {
  font-size: 18px;
}

.text-xlarge {
  font-size: 24px;
}

.text-italic {
  font-style: italic;
}

.text-primary {
  color: #986dbd;
}

a.text-primary:hover {
  color: #7f4daa;
}

.bg-primary {
  color: #fff;
  background-color: #986dbd;
}

a.bg-primary:hover {
  background-color: #7f4daa;
}

abbr[title], abbr[data-original-title] {
  border-bottom: 1px dotted #999999;
}

.panel {
  margin-bottom: 20px;
  background-color: #ffffff;
  border: 1px solid transparent;
  border-radius: 0;
  -webkit-box-shadow: 0 0 0;
  box-shadow: 0 0 0;
}

.panel-heading {
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 15px 15px;
}

.panel-group {
  margin-bottom: 20px;
}

.panel-group .panel {
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
}

.panel-group .panel+.panel {
  margin-top: 5px;
}

.panel-group.accordion .panel {
  border-color: #ccc;
}

.panel-primary {
  border-color: #986dbd;
}

.panel-primary>.panel-heading {
  color: #ffffff;
  background-color: #986dbd;
  border-color: #986dbd;
}

.panel-primary>.panel-heading+.panel-collapse>.panel-body {
  border-top-color: #986dbd;
}

.panel-primary>.panel-heading .badge {
  color: #986dbd;
  background-color: #ffffff;
}

.panel-primary>.panel-footer+.panel-collapse>.panel-body {
  border-bottom-color: #986dbd;
}

.panel-primary .panel-title {
  font-weight: 300;
}

.panel-primary .panel-title a:hover {
  color: #fff;
  text-decoration: none;
}

a.badge:hover, a.badge:focus {
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

a.list-group-item.active>.badge, .nav-pills>.active>a>.badge {
  color: #986dbd;
  background-color: #ffffff;
}

.nav-pills>li>a>.badge {
  margin-left: 3px;
}

