/* 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;
}


/* 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;
}

.search {
  margin:20px 0;
}


header {
  margin-bottom: 30px;
} 
.navbar {
    border-radius: 0;
    margin: 10px 0;
}
.nav-logo {
  display: inline-block;
  height: 100px;
  margin:0;
  padding:10px 15px;
  max-width: calc(100% - 120px); /* space for the menu button */
}
#logoImage {
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
}

/* inside the off-canvas nav, area for close button at top (match the navbar height/margin so that the X icon is in the right place) */
.nav-top-area {
  height: 100px;
  margin: 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 */
.navbar-toggle .toggle-text {
  display: inline-block;
  margin-right: 5px;
  font-weight: initial;
  vertical-align: middle;
}
.navbar-toggle .toggle-bars {
  display: inline-block;
  vertical-align: middle;
}

.memberbuttons {
  float: right;
}

a.backlink {
  padding-left: 0;
}


/* google translate (no longer supported but trying it out anyway!) */
#google_translate_element {
  display: inline;
  margin-right: 7px;
}
.goog-te-gadget {
  display: inline;
}


/* 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;
}

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

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

/* 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;
}

/* because in this theme we underline links then un-underline them on hover */
.relatedImageGallery .thumbnail figcaption {
  text-decoration: underline;
}
.relatedImageGallery .thumbnail:hover figcaption {
  text-decoration: none;
}

/*line up the icons a bit better as this theme has bigger fonts */
.contactInformation p svg {
  top: 6px;
  left: 2px;
}

.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;
}

@media (max-width: 767px) {
   #footer {
       text-align:center;
   }
}

/* 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%;
}
