/* SENYLRC CUSTOMISATION: Set page width */
header, footer, div#navbar, div#content
{
  width: 100%;
}

/* SENYLRC CUSTOMISATION: Set paddings for navbar and footer */
div#navbar, footer#footer
{
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

/* svg elements need "fill" instead of "color", annoyingly */
/* SENYLRC CUSTOMISATION: Button colors */
a svg, button svg
{
  fill: #387180;  /* Bootstrap's "brand-primary" colour */
}

/* Re-style bootstrap's ".btn-light" button a little. Since bootstrap-4.0.0-beta button's borders and backgrounds are the same color, but in the case of .btn-light I think it needs a darker border or it nearly vanishes.
 *    Note that rgb(0,0,0,.15) (#d8d8d8) is the same color used for the border of a .form-control */
.btn-light
{
  border-color: #D6D6D6;
  color: #387180;  /* Bootstrap's "brand-primary" colour */
}

/* SENYLRC CUSTOMISATION: Main color */
.maincolor, .textcorrectblockcolor
{
  background-color: #387180;  /* Bootstrap's "brand-primary" colour */
}

/* SENYLRC CUSTOMISATION: Main color for date browser */
div#datebrowserrichardmonthlevelcalendarheader
{
  background-color: #F7F7F9;  /* Bootstrap's "gray-lightest" colour */
  border: 1px solid #387180;  /* Bootstrap's "brand-primary" colour */
  border-radius: 0.25rem;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  -webkit-box-align: center;
    -ms-flex-align: center;
      align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-top: 0.75rem;
  padding-left: 0.5rem;
}

/* SENYLRC CUSTOMISATION: Set header top padding, conent right align */
div#headertopcell
{
  padding-top: 0.5rem;
  text-align: right;
  float: right;
}

/* SENYLRC CUSTOMISATION: Hide user links on small screens */
div#userlinks
{
  display: none;
}

/* SENYLRC CUSTOMISATION: Set links style on navbar and user links */
div#navbarcollapsed > a,
div#userlinks > a,
a.registerlink
{
  display: inline-block;
  background-color: #387180;
  margin: 0.2rem 0.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: .25rem;
  text-decoration: none;
}

/* SENYLRC CUSTOMISATION: Move logo upward to the top line background */
div#bannerlogo.offsetbannerlogo 
{
  margin-bottom: 5px;
  top: 5px;
  position: relative;
}

/* SENYLRC CUSTOMISATION: Set logo transition */
div#bannerlogo img 
{
  transition: 0.3s;
}

/* SENYLRC CUSTOMISATION: Hide header search on small screens */
div#bannersearch
{
  margin-right: 0.5rem;
  display: none;
}

/* SENYLRC CUSTOMISATION: Remove exra line below header */
div#headerbottomcell
{
  border-bottom: none;
}

/* SENYLRC CUSTOMISATION: Set search form on small screens */
div#navbannersearch
{
  width: 100%;
  margin-bottom: 5px;
}

/* SENYLRC CUSTOMISATION: Set shadows of navbar, menu and user links */
div#navbarcollapsed > a,
ul#navbarentries,
div#userlinks > a
{
  box-shadow: #7F7F7F 0 1px 2px;
}

/* SENYLRC CUSTOMISATION: Set links theme of navbar, menu, user links and register link */
div#navbarcollapsed > a,
ul#navbarentries a.nav-link,
div#userlinks > a,
a.registerlink
{
  color: white;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
}
ul#navbarentries .nav-link:hover, 
ul#navbarentries .nav-link.active,
div#userlinks > a:hover
{
  background-color: black;
}
a.registerlink:hover
{
  background-color: #2c5a65;
}

/* SENYLRC CUSTOMISATION: Hide hint */
div.hintcell
{
  display: none;
}

/* SENYLRC CUSTOMISATION: Fix box shadow of search submit button covered by another button */
div.input-group>.input-group-btn:first-of-type
{
  z-index: 50;
}

/* SENYLRC CUSTOMISATION: Set footer style */
footer#footer
{
  font-size: 0.75em;
  border-top: none;
  background-color: #F7F7F9;
}

/* SENYLRC CUSTOMISATION: Set footer items style */
div#footercontent
{
/*  border-top: 4px solid #DDDDDD; */
  background-color: #FFF;
  position: relative;
  display: flex;
}

div.copyrightcell,
div#footersocialbookmarks,
div.poweredbycell,
div.poweredbycelldocument,
div.privacyandterms
{
  text-align: center;
  margin: 0.5rem 2rem;
}
div.copyrightcell
{
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  order: 2; 
  margin-top: 0rem;
}
div.poweredbycell
{
  -webkit-box-flex: 1.5;
  -ms-flex: 1.5;
  flex: 1.5;
  flex-basis: 100%;
  order: 1;
}
div.poweredbycelldocument
{
  -webkit-box-flex: 1.5;
  -ms-flex: 1.5;
  flex: 1.5;
  display: none;
  order: 2;
}
div#footersocialbookmarks
{
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  order: 4; 
  margin-top: 0rem;
}

/* SENYLRC CUSTOMISATION: The <ul> tags in the region browser need to appear different*/
ul.regionbrowserlist
{
  margin: 0px;
  line-height: 23px;
  list-style-type: none;
  padding-left: 3px;
}

/* SENYLRC CUSTOMISATION: Set publication metadata display as table */
div.publicationinfo
{
  display: table;
  margin: 1em 0em;
}
div.publicationinfo > div
{
  display: table-row;
}
div.publicationinfo > div > div
{
  display: table-cell;
  vertical-align: top;
  padding-right: 1rem;
}

/* SENYLRC CUSTOMISATION: Style for large screens */
@media only screen and (min-width: 701px)
{
  /* SENYLRC CUSTOMISATION: Show user links */
  div#userlinks
  {
    display: block;
  }
  /* SENYLRC CUSTOMISATION: Show hint */
  div.hintcell
  {
    display: block;
  }
}

/* SENYLRC CUSTOMISATION: Style for larger screens */
@media only screen and (min-width: 960px)
{
  /* SENYLRC CUSTOMISATION: Adjust user links top margin for the banner height has changed. */
  div#headertopcell
  {
    padding-top: 1rem;
  }

  /* SENYLRC CUSTOMISATION: Show banner search and hide nav search and align */
  div#bannersearch
  {
    display: block;
  }
  div#navbannersearch
  {
    display: none;
  }
  div#bannersearch,
  div#userlinktop
  {
    display: inline-block;   
    vertical-align: middle;
  }
}

/* SENYLRC CUSTOMISATION: Style for larger screens */
@media only screen and (min-width: 1200px)
{
  /* SENYLRC CUSTOMISATION: Adjust footer items order */
  div.copyrightcell
  {
    order: 1;
    margin: 0.5rem 2rem;
  }
  div.poweredbycell
  {
    order: 2;
    flex-basis: unset;
  }
  div.poweredbycelldocument
  {
    display: block;
  }
  div#footersocialbookmarks
  {
    margin: 0.5rem 2rem;
  }
} 

#searchresultyeargraphtitle
{
  background-color: #387180;
}

div.privacyandterms
{
  order: 3;
}

/* SENYLRC CUSTOMISATION: For some reason the Recaptcha slider goes behind the footer (it doesn't do this in the other sites). This z-index tweak is a hack, but some day someone might find the real cause of this problem. */
div.grecaptcha-badge
{
  z-index: 100;
}


