html {
  overflow-y: scroll
}

body {
  background-color: #ddd;
  padding-top: 20px;
}

/* Target iOS - https://stackoverflow.com/questions/30102792/css-media-query-target-only-ios-devices */
@supports (-webkit-overflow-scrolling: touch) {
  /* https://stackoverflow.com/questions/9145084/prevent-ios-webkit-long-press-on-link */
  .disable-touch-ios {
    -webkit-touch-callout: none;
      -webkit-user-select: none;
  }
}

body.showNavbar {
  padding-top: 70px;
}

.sr-only {
  background-color: #fff !important;
  color: #333 !important
}

/* Run the content up against the edge (Bootstrap override) */
.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.alert {
  margin-left: 15px;
  margin-right: 15px;
}

.form-control:focus {
  border-color: #444;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(51, 51, 51, .6);
          box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(51, 51, 51, .6);
}

/* Search --------------------------------------------------------------------- */
.socsapp-user-search {
  padding: 0 1em;
}

.socsapp-user-search input[type="search"] {
  border-radius: 25px;
  text-align: center;
  font-family: "Font Awesome 5 Pro","Helvetica Neue",Helvetica,Arial,sans-serif;
}

/* Navbar --------------------------------------------------------------------- */
.navbar-inverse {
  background-color: #555;
  border-color: #333;
  box-shadow: 0 0 8px rgba(0,0,0,.5);
}
.navbar-inverse .navbar-text {
  color: #fff; /* #9d9d9d; */
  margin-left: 15px;
  margin-right: 15px;
}
.navbar-inverse .navbar-text-title {
  margin-left: 0;
  margin-right: 0;

  /* Prevent word-wrapping when the text is long */
  max-width: calc(100% - 95px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navbar-inverse a {
  color: #fff;
}
.navbar-left {
  float: left !important;
}
.navbar-right {
  float: right !important;
}

.btn-footer {
  margin-bottom: 1.5em;
  padding: 0 1em;
}

/* List group (common rules) -------------------------------------------------- */

/* Remove the border around the items (Bootstrap override) */
.list-group-item {
  border: none;
}
.list-group-item:first-child, .list-group-item:last-child {
  border-radius: 0;
}

.list-group-item + .list-group-item {
  margin-top: .5em;
}

.list-group a, .list-group a:hover, .list-group a:focus {
  color: #000;
}

.list-group-item-title {
  font-weight: bold;
}

.list-group-item-footer {
  clear: both;
  padding-top: 1em;
  position: relative;
}

/* Featured News page --------------------------------------------------------- */
.news .list-group-item .list-group-item-heading.list-group-item-section { /* Top-level section name */
  color: #999;
  font-weight: bold;
  text-transform: uppercase;
}

.news .list-group-item-img {
  margin-bottom: 1em;
}

.news .list-group-item-img .img-responsive {
  max-height: 300px;
}

@media (min-width: 576px) {
  .news .list-group-item-img {
    float: right;
    margin: 0 0 1em 1em;
    max-width: 50%;
  }

  .news .list-group-item-img .img-responsive {
    max-height: 400px;
  }
}

.news .list-group-item-footer a {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* Search Results page (article) ---------------------------------------------- */
.article-search-results {
  background-color: #fff;
}

.article-search-results .search-results fieldset {
  padding: 0 1em;
}

.article-search-results .search-results-count em {
  display: block;
}

.article-search-results .list-group-item + .list-group-item {
  border-top: 5px solid #ddd;
  margin-top: 0;
}

.article-search-results .list-group-item-footer a {
  position: absolute;
  right: 0;
  bottom: 0;
}

.search-results-buttons {
  margin-bottom: 1.5em;
  padding: 0 1em;
  text-align: center;
}

@media (min-width: 480px) {
  .search-results-buttons .btn-block,
  .search-results-buttons input[type=submit].btn-block {
    display: inline-block;
    width: 45%;
    max-width: 250px;
  }

  .search-results-buttons .btn-block + .btn-block {
    margin-top: 0;
    margin-left: 1em;
  }
}

/* Notifications page --------------------------------------------------------- */
.notifications .form-group {
  padding: 0 1em;
}

.notifications .list-group-item .well {
  margin-top: .5em;
  margin-bottom: 0;
  padding-left: 0;
}

/* Calendar page -------------------------------------------------------------- */
.filter-options > a[data-toggle] {
  margin-bottom: .5em;
}

@media (min-width: 480px) {
  .filter-options > .btn-block {
    display: inline-block;
    margin-bottom: .5em;
    width: 45%;
    max-width: 250px;
  }

  .filter-options > .btn-block + .btn-block {
    margin-top: 0;
    margin-left: 1em;
  }
}

.filter-options .show-selected {
  margin-bottom: .5em;
  text-align: center;
}

.filter-options .show-selected .btn + .btn {
  margin-left: 1em;
}

.calendar .list-group-item {
  padding-right: 5px;
}

/* Details toggle link */
.calendar .list-group-item-inner a {
  color: inherit;
}

.calendar .list-group-item-inner em {
  float: right;
  height: 43px;
  line-height: 43px;
  -webkit-transition: -webkit-transform .3s ease;
     -moz-transition: -moz-transform .3s ease;
      -ms-transition: -ms-transform .3s ease;
          transition: transform .3s ease;
}

/* Details toggle link - open */
.calendar .list-group-item-inner .open em {
  -webkit-transform: rotate(90deg) translate(-10px, 3px);
     -moz-transform: rotate(90deg) translate(-10px, 3px);
      -ms-transform: rotate(90deg) translate(-10px, 3px);
          transform: rotate(90deg) translate(-10px, 3px);
}

.calendar .list-group-item-heading {
  margin-right: 2em; /* Keep the text off the "details" toggle link */
  text-align: center;
}

.calendar .event-time {
  margin-left: 1em;
}

.calendar .event-title {
  margin-bottom: 0;
}

.calendar .dl-horizontal {
  margin-top: 1em;
  margin-bottom: 0;
}

.calendar .dl-horizontal dt {
  float: left;
  width: 30%;
  overflow: hidden;
  clear: left;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar .dl-horizontal dd {
  margin-left: calc(30% + 1em);
}

/* Contact Us page ------------------------------------------------------------ */
.contact-us {
  background-color: #fff;
}

.contact-us .list-group {
  padding-left: 2em;
}

.contact-us .list-group-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 0;
  padding-left: 0;

  display: flex;
  align-items: center; /* Vertical Align */
  justify-content: space-between; /* Text along left, icon along right */
}

.contact-us .list-group-item.contact-map {
  display: block; /* Google Maps won't display if flexbox */
}

.contact-us .list-group-item + .list-group-item {
  margin-top: 0;
}

.contact-us .list-group-item-title {
  padding-right: .5em; /* Make room for fa-chevron-right */
}

/* Contact Us - Item page ----------------------------------------------------- */
.contact-us-item .list-group {
  padding-left: 0;
}

.contact-us-item .list-group-item {
  padding-left: 15px;
}

.contact-us-item .media-left {
  padding-left: 15px;
  padding-right: 15px;
}

.contact-us-item .media-heading-alone {
  margin-top: 5px;
}

.contact-us-item .media-body a {
  word-break: break-all;
}

/* Group Item --------------------------------------------- */
.contact-us-item .contact-group {
  background-color: #333;
  color: #fff;
}

.contact-us-item .contact-group .media-body {
  padding-left: 20px;
}

/* Address Item ------------------------------------------- */
.contact-us-item .contact-map-wrapper { /* Single map marker - Embed API */
  max-width: 800px;
  max-height: 450px;
}
.contact-us-item #map { /* Multiple map makers - JS API */
  height: 53vw; /* Makes the map responsive */
  max-width: 800px;
  max-height: 450px;
}

