/* main site */

html {
    height: 100%;
    /* can't set a colour here as full-width images then break putting image behind content */
}
body {
    overflow-x: hidden;
    position: relative;
}
body.mainnavpos-bottom {
    margin-top:20px;
}
body.mainnavpos-bottom.navstyle-bar,
body.mainnavpos-bottom.navstyle-bar-inverse,
body.mainnavpos-bottom.navstyle-bar-right-inverse {
    margin-top:0;
}

/* so that it sits next to the standard buttons nicely */
.banner-html {
  display: inline-block;
  margin-top: 20px;
}
.banner-html p {
  display: inline;
  margin: 0;
}
.header-buttons .buttons {
  display: inline-block;
  white-space: nowrap;
  margin-top: 20px;
}

#mainContent {
    margin-bottom:20px;
}

h1.community-name {
    font-size: 40px;
    margin: 20px 0 0 0;
    text-align: center;
} 
.haslogo h1.community-name {
    text-align: right;
} 

/* use the colour specified in bg-primary style */
.bg-primary h1.community-name {
  color: inherit;
}

@media (max-width: 767px) {
    .banner-html {
        margin-top:20px;
    }
    .search {
        margin-top:20px;
    }
    .logo,
    .header-buttons,
    h1.community-name,
    .haslogo h1.community-name {
      text-align: center;
    } 
}

@media (min-width: 768px) {
    /* we hide the breadcrumb on big screens */
    .package-gcms-mount .breadcrumb {
        display: none;
    }
    /* unless it's a private area */
    .privatearea .package-gcms-mount .breadcrumb {
        display: block;
    }
}

header {
  margin: 0;
  padding-bottom: 20px;
} 
#search-collapse-large .search {
  padding: 20px 0;
}
#search-collapse-small .search {
  padding: 10px 0;
}

.logo {
  overflow:hidden;
  margin-top:20px;
}
#logoImage {
    max-width:100%;
    max-height:150px;
    width:auto;
    height:auto;
}
.navbar {
    border-radius: 0;
    margin-bottom: 20px;  /* always 20, not theme margin, so we can remove it in some cases */
}
.navbar .nav-logo #logoImage {
    float: left;
    margin-top: 5px;
    padding: 0 15px;
    max-height: 40px;
    width: auto;
}

@media (min-width: 768px) {
  .navbar > .container .nav-logo #logoImage,
  .navbar > .container-fluid .nav-logo #logoImage {
    padding-left: 0;
  }
  .navbar ul.nav {
    width: 100%;
    text-align: center;
  }
  .navbar ul.nav li {
    float: none;
    display: inline-block;
  }
  /*TODO HAS SUBNAV THING*/
  .navigation.has-subnav .navbar.navbar-default {
    margin-bottom: 0;
  }
}

.nav-type-block .nav-logo #logoImage {
    float: left;
    max-height: 40px;
    margin-right:15px;
    width: auto;
}
.well .nav-type-block .nav-logo #logoImage {
    margin:-6px 10px -6px 0;
}
.nav-type-list .nav-logo #logoImage {
    margin-bottom:10px;
}


/* animate the three hamburger bars into an X */
.navbar-toggle .icon-bar {
  transition: all 0.2s;
}
.navbar-toggle .top-bar {
  transform: rotate(45deg);
  transform-origin: 10% 10%;
}
.navbar-toggle .middle-bar {
  opacity: 0;
}
.navbar-toggle .bottom-bar {
  transform: rotate(-45deg);
  transform-origin: 10% 90%;
}
.navbar-toggle.collapsed .top-bar {
  transform: rotate(0);
}
.navbar-toggle.collapsed .middle-bar {
  opacity: 1;
}
.navbar-toggle.collapsed .bottom-bar {
  transform: rotate(0);
}
/* and ensure the button background is transparent */
.navbar-default .navbar-toggle,
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: transparent;
  background-image: none;
  border: none;
  outline: 0;
}

/* to add 'Menu' word and align it nicely */
/* uses navbar-text to get colour/styling, but override margin */
.navbar-toggle .toggle-text {
  display: inline-block;
  margin: 0 5px 0 0;
  vertical-align: middle;
}
.navbar-toggle .toggle-bars {
  display: inline-block;
  vertical-align: middle;
}

#banner {
  overflow:hidden; /* so bg on inner doesn't protrude rounded corners */
  background-repeat:no-repeat;
  -ms-behavior:url(/resources/PIE.htc);
}

/* general gubbins */

h2.page-title {
    margin-top:0;
}

.col.top {
  margin-bottom:20px;
}

/* if a background-image includelet is the first thing in the 'top' column then
 * add a negative margin to squish it up against the navbar */

/* (do this manually with margin-top--20 class in includelet
.col.top > .background-image-content {
  margin-top: -20px;
}
*/

/* navigation */

ul.nav li.title {
  padding:10px 15px;
  font-weight:bold;
}

ul.nav a.dropdown-name {
  padding-right:5px;
}
ul.nav a.dropdown-caret {
  padding-left:5px;
}

/* hide unselected bits of list navs */
ul.sidenav li ul {
  display:none;
  padding-left:15px;
  margin-top:2px;
  font-size:90%;
}
ul.sidenav li.active ul {
  display:block;
}
/* fix for pulling right the carets */
ul.sidenav .fa.pull-right {
    line-height: inherit;
}

.nav-block {
    margin-bottom:20px;
}

ul.nav-tabs {
    margin-bottom:15px;
}


.panel {
  margin: 20px 0;
}

/* panels in Highlighted area need to be unstyled but full width */
.highlighted .panel {
    background: none;
    border: none;
    border-radius: 0;
    -webkit-border-radius:0;
    -moz-border-radius:0;
    box-shadow:none;
    -webkit-box-shadow:none;
    margin:0;
    
    /* from .container */
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.highlighted .panel-heading {
    background: none;
    border: none;
}

.page-content {
    min-height: 300px;
}

.footer {
    border-radius:0;
    min-height:200px;
    border-left:0;
    border-right:0;
    border-bottom:0;
    margin-bottom:0;
    margin-top:60px;
    color: #eee;
    border-color: #333;
    background-image: none;
    /* extend colour to bottom of screen */
    background-color: #555;
    box-shadow: 0 50vh 0 50vh #555;
}
.footer a,
.footer a:visited {
    color: #fff;
    font-weight: bold;
}
/* so when it wraps the links don't get too close together to tap on */
#footerLinks a {
    line-height: 2em;
    white-space: nowrap;
}
#footerImage {
    max-width:100%;
    height:auto;
    margin-bottom:20px;
}

.social-media {
    font-size: 40px;
    margin-bottom: 10px;
}
.social-media a:not(:last-child) {
    margin-right: 20px;
}

#manage {
  border-radius: 0;
  margin-bottom: 0;
}


.footer .search {
  margin: 0 0 20px 0;
}

@media (min-width: 768px) {
  .footer .search-button-col {
    text-align: right;
  }
  .footer .search-button {
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
   #footer {
       text-align: center;
   }
   .footer .search-button {
       margin: 0 0 20px 0
   }
}

/* some extra aspect ratios */
.embed-responsive.embed-responsive-1by1 {
  padding-bottom: 100%;
}
.embed-responsive.embed-responsive-2by1 {
  padding-bottom: 50%;
}
.embed-responsive.embed-responsive-3by1 {
  padding-bottom: 33.33%;
}
.embed-responsive.embed-responsive-4by1 {
  padding-bottom: 25%;
}
.embed-responsive.embed-responsive-5by1 {
  padding-bottom: 20%;
}
