/* CRRA CUSTOMISATION: Header style */
h2
{
  font-size: 1.125rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #004800;
}

/* CRRA CUSTOMISATION: Button color */
/* svg elements need "fill" instead of "color", annoyingly */
a svg, button svg
{
  fill: #004800;  /* 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: #D8D8D8;
  color: #004800;  /* Bootstrap's "brand-primary" colour */
}

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

/* CRRA CUSTOMISATION: Main color */
div#datebrowserrichardmonthlevelcalendarheader
{
  background-color: #F7F7F9;  /* Bootstrap's "gray-lightest" colour */
  border: 1px solid #004800;  /* 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;
}

/* CRRA CUSTOMISATION: button style */
.btn-primary:hover 
{
  color: #fff;
  background-color: #004800;
  border-color: #fff;
  opacity: 0.8;
}

/* CRRA CUSTOMISATION: title style */
h2.title
{
  margin-top: 1rem;
  text-align: center;
  font-size: 1.5rem;
}

/* CRRA CUSTOMISATION: Breadcrumb style for smaller font size */
ol.breadcrumb li.breadcrumb-item:not(:first-child) 
{
  padding-top: 2px;
}

/* CRRA CUSTOMISATION: Set page width for other pages except document display */
#header.other, #navbarwrapper.other, #breadcrumbscontent.other, #content.other, #footer.other
{
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* CRRA CUSTOMISATION: Header background and border */
header#header
{
  margin-bottom: 1px;
  color: white;
  margin-top: 0px;
}
header#header a
{
  color: #CCCCCC;
  text-decoration: none;
}

/* CRRA CUSTOMISATION: donate button style */
#donatecell
{
  text-align: center;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}
#donatecell form
{
  height: 40px;
}
.donatebutton
{
  display: none;
  width: 100px;
  background-color: #FFC44B;
  color: #000;
  margin-right: 1rem; 
  border: 0px;
}
.donatebutton:hover
{
  color: #FFFFFF;
  background-color: #333333;
}

/* CRRA CUSTOMISATION: user links style */
#userlinks
{
  display: none;
  background-color: #333333;
  color: white;
  line-height: 49px;
  height: 49px;
  text-decoration: none;
  padding: 0;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-right: 1rem;
  white-space: nowrap;
}
#userlinks a
{
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}
.crra-hide-page-blocks .maincolor.overlay.pageblock.semitransparent
{
  opacity: 0.0;
}

/* CRRA CUSTOMISATION: bottom bar style */
div#headerbottomcell
{
  padding-top: 0px;
  padding-bottom: 0px;
  background-color: #B13535;
  border-bottom: 0px;
  -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}
div#headerbottomcell.documentdisplay
{
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}
div#headerbottomcell.other
{
  -webkit-box-pack: justify;
    -ms-flex-pack: justify;
      justify-content: space-between;
}

/* CRRA CUSTOMISATION: logo style */
div#bannerlogo
{
  padding-left: 0px;
  padding-right: 0px;
  -ms-flex-preferred-size: 300px;
  flex-basis: 300px;
  display: block;
}
div#bannerlogo.offsetbannerlogo 
{
  padding-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  top: 0px;
}
div#bannerlogo img 
{
  width: 100%;
}
div#titlecell
{
  display: none;
}
div#bannerlogo.documentdisplay img
{
  height: 90px;
  width: auto;
}

/* CRRA CUSTOMISATION: Dropdown list style */
div#navbarcollapsed
{
  display: block;
} 
div#headerbottomcell a svg
{
  fill: white;
}
#navbarcollapsed .dropdown-toggle
{
  float: right;
  white-space: nowrap;
  padding-right: 0.5rem;
}
#navbarcollapsed .dropdown-toggle::after
{
  color: white;
}
#header a.dropdown-item
{
  color: #404040;
}
#header a.dropdown-item.active, 
#header a.dropdown-item:hover
{
  color: white;
}

/* CRRA CUSTOMISATION: Navbar style */
#navbar
{
  height: 37px;
  background-color: #333333;
  border-bottom: 1px solid #fff;
}
#navbar a
{
  background-color: #333333;
}
#navbarentries
{
  float: left;
}
#navbarentriesextra
{
  float: right;
}
#navbarentries a.nav-link
{
  border-right: 1px white solid;
  padding: 0.4rem 1.5rem;
}
#navbarentriesextra a.nav-link
{
  border-left: 1px white solid;
  padding-bottom: 6.4px;
  padding-top: 6.4px;
}
#navbar a.nav-link.active
{
  font-weight: bold;
}
#navbar a.nav-link.active,
#navbar a.nav-link:hover
{
  color: #FFFFFF;
}

/* CRRA CUSTOMISATION: breadcrumb style */
nav#breadcrumbscell
{
  min-width: 80px;
  color: #404040;
  background-color: #F7F7F9;
}
nav#breadcrumbscell a
{
  color: #004800;
}

/* CRRA CUSTOMISATION: Bread crumb content style */
div#breadcrumbscontent
{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
}

/* CRRA CUSTOMISATION: Bread crumb style */
ol.breadcrumb
{
  border-bottom: 0px;
  -webkit-box-flex: 3;
  -ms-flex: 3;
  flex: 3;
}

/* CRRA CUSTOMISATION: Set social bookmarks height to prevent a short one before loading and showing buttons */
div#socialbookmarkscell
{
  min-height: 33px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
div#socialbookmarks
{
  float: right;
  min-width: 140px;
}
div.socialbookmarkslinks 
{
  min-width: 80px;
}
nav#breadcrumbscell .jssocials-share a
{
  color: white;
}

/* CRRA CUSTOMISATION: content style */
div#content
{
  background-color: white;
}
.card
{
  border: 0px;
}

/* CRRA CUSTOMISATION: diocese browser style */
div.diocesebrowser
{
  margin-left: auto; 
  margin-right: auto; 
  width: 100%
}
div#active_diocese_browser_link 
{
  font-weight: bold;
}
ul.dioceselist
{
  list-style-type: none; 
  position: relative; 
  padding-left: 20px; 
  margin: 0px;
}

div.diocesebrowser > div, div.diocesebrowser li {
  padding-top: 2px;
  padding-bottom: 2px;
}

div#veridianhomepagesampler img.veridianimage {
  box-shadow: 1px 1px 5px #303030;
}

td.bottombar {
  padding: 5px;
}

td.bottombar, td.bottombar a {
  color: white;
}

td#veridiancontent p {
  padding-bottom: 10px;
}

/* CRRA CUSTOMISATION: footer link style */
footer#footer
{
  text-align: center;
  color: white;
  margin-bottom: 0px;
  background-color: #333333;  
  padding-left: 0;
  padding-right: 0;
}
footer#footer.documentdisplay
{
  display: none;
}
footer#footer a
{
  color: white;
}
#footerlinkcell
{
  background-color: #B13435;
  padding-top: 5px;
  padding-bottom: 5px;
}
#footerlinkcell a
{
  margin-left: 5px;
  margin-right: 5px;
}
div#footercontent
{
  display: block;
  min-height: 29px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-top:1px;
}

div#useraccountpagecontent
{
  border: 1px solid #c0c0c0;
}

div#home-page-sponsor-section
{
  padding-bottom: 1.25rem;
  border-bottom: 2px dotted #696969;
}
div#home-page-sponsor-section a
{
  display: flex;
  justify-content: center;
  text-decoration: underline;
}
div#home-page-sponsor-section img
{
  width: 100%;
}

/* CRRA CUSTOMISATION: Style definitions on large screen over 500px */
@media (min-width: 501px)
{
  /* CRRA CUSTOMISATION: donate button style */
  .donatebutton
  {
    display: block;
  }
}

/* CRRA CUSTOMISATION: Style definitions on large screen over 700px */
@media (min-width: 701px)
{
  /* CRRA CUSTOMISATION: Header style */
  header#header.other
  {
    margin-top: 10px;
  }

  /* CRRA CUSTOMISATION: bottom bar style */
  div#headerbottomcell.documentdisplay
  {
    -webkit-box-pack: justify;
      -ms-flex-pack: justify;
        justify-content: space-between;
  }

  /* CRRA CUSTOMISATION: user links style */
  #userlinks
  {
    display: block;
  }

  /* CRRA CUSTOMISATION: footer link style */
  footer#footer.other
  {
    margin-bottom: 10px;
  }
}

/* CRRA CUSTOMISATION: Style definitions on large screen over 850px */
@media (min-width: 851px)
{
  /* CRRA CUSTOMISATION: logo style */
  div#bannerlogo img 
  {
    width: unset;
  }

  /* CRRA CUSTOMISATION: Title style */
  div#titlecell
  {
    display: none;
  }
}

/* CRRA CUSTOMISATION: Style definitions on large screen over 850px */
@media (min-width: 950px)
{
  /* CRRA CUSTOMISATION: bottom bar style */
  div#homepagemiddlecolumn
  {
    border-radius: 0px;
    border-left: 2px dotted #696969;
    border-right: 2px dotted #696969;
  }
}

/* CRRA CUSTOMISATION: Style definitions on small screen less than 950px */
@media (max-width: 950px)
{
  /* CRRA CUSTOMISATION: Hide Navbar and show collapsed */
  div#navbarcollapsed 
  {
    display: block !important;
  }
  div#navbar
  {
    display: none !important;
  }
}

/* CRRA CUSTOMISATION: Style definitions on large screen over 950px */
@media (min-width: 951px)
{
  /* CRRA CUSTOMISATION: Title style */
  div#titlecell
  {
    display: block;
    font-size: 26px;
    font-weight: bold;
    text-shadow: 0px 0px 5px #303030;
  }
}

/* CRRA CUSTOMISATION: Style definitions on large screen over 1100px */
@media (min-width: 1101px)
{
  /* CRRA CUSTOMISATION: Title style */
  div#titlecell
  {
    display: block;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0px 0px 10px #303030;
  }
}

/* CRRA CUSTOMISATION: Style definitions on screen height under 650px so the homepage will fit under a 1366x768 screen */
@media (max-height: 650px)
{
  html
  {
    font-size: 95%;
  }
  .card-body
  {
    padding: 10px;
  }
  div#homepagemiddlecolumn
  {
    flex: 2.5;
  }
  header#header.other
  {
    margin-top: 0px;
  }
  footer#footer.other
  {
    margin-bottom: 0px;
  }
}

#searchresultyeargraphtitle
{
  background-color: #B13535;
}