html, body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
}

html {
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: #3c6e95 !important;
}

h2 {
  font-size: 130%;
}

h3 {
  font-size: 120%;
}

h4 {
  font-size: 105%;
}

h5 {
  font-size: 100%;
}

li.nav-item h1 {
  font-size: 160%;
  color: #fff !important;
  margin: 0;
  padding: 0;
  font-style: italic;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2px;
  background-color: #f5f5f5;
  text-align: center;
}

div, p, h1, h2, h3, h4, a, ul, ol, blockquote {
  font-family: sans-serif;
}

h1, h2, h3, h4 {
  font-weight: bold;
}

.header {
  background-color: #840808;
  height: 60px;
}

.title {
  font-style: italic;
  font-variant: small-caps;
  font-size: 1.25rem;
}

.title::before {
  content: "A Dictionary of Methodism";
}

.subtitle::after {
  content: "in Britain and Ireland";
}

.footer {
  line-height: 1.1;
}

body {
  background-color: #ffffc0;
  line-height: 1.2;
}

.border-info {
  border-color: #000fc6 !important;
}

.bg-primary {
  background-color: #840808 !important;
}

a.bg-primary:hover, a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
  background-color: #840808 !important;
}

.bg-info {
  background-color: #000fc6 !important;
}

a.bg-info:hover, a.bg-info:focus,
button.bg-info:hover,
button.bg-info:focus {
  background-color: #000fc6 !important;
}

.btn-info {
  color: #ffff80;
  background-color: #000080;
  border-color: #000080;
}

.btn-info:hover {
  color: #ffff80;
  background-color: #000fc6;
  border-color: #0004b4;
}

.btn-info:focus, .btn-info.focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 128, 0.5);
}

.btn-info.disabled, .btn-info:disabled {
  color: #ffff80;
  background-color: #000fc6;
  border-color: #0004b4;
}

.btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active,
.show > .btn-info.dropdown-toggle {
  color: #ffff80;
  background-color: #000fc6;
  border-color: #0004b4;
}

.btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus,
.show > .btn-info.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 128, 0.5);
}

a.entrylink {
  color: #000080;
  text-decoration: none;
  border-bottom: thin dashed #000080;
}

a.entrylink:hover {
  color: #000080;
  text-decoration: none;
  border-bottom: thin dashed #000080;
}

a.entrylink:visited {
  color: #0000C0;
  text-decoration: none;
  border-bottom: thin dashed #0000C0;
}

li.fa-ul a {
  text-decoration: none;
  color: #000080;
}

li.fa-ul a:hover {
  text-decoration: underline;
  color: #000080;
}

li.fa-ul a:visited {
  color: #0000C0;
}

h3 a, h3 a:hover {
  text-decoration: none;
  color: #3c6e95 !important;
}

a.page-link {
  font-weight: bold;
}

span.highlight {
  background-color: #ff6;
}

@media screen and (max-width: 375px) {
  .title::before {
    content: "A Dictionary";
  }
  .subtitle::after {
    content: "of Methodism";
  }
}

@media screen and (max-width: 600px) {
  .title {
    font-size: 1.0rem !important;
  }
  a.logo {
    background-image: url('../images/dmbi-48.png') !important;
    background-repeat: no-repeat;
    height: 48px !important;
    width: 48px !important;
  }
}

img {
  display: inline;
  border: none;
}

a.logo {
  background-image: url('../images/dmbi.png');
  background-repeat: no-repeat;
  height: 70px;
  width: 70px;
}

div.thumb {
  padding: 0 0.5em;
  border-style: solid;
  border-color: white;
  width: auto;
}

div.thumbinner {
  border: 1px solid #ccc;
  padding: 3px !important;
  background-color: #f9f9f9;
  font-size: 94%;
  text-align: center;
  overflow: hidden;
}

.thumbimage {
  border: 1px solid #ccc;
}

.thumbcaption {
  clear: both;
  border: none;
  text-align: right;
  line-height: 1.4em;
  padding: 3px !important;
  font-size: small;
  font-style: italic;
}

div.magnify {
  border: none !important;
  background: none !important;
}

div.magnify a, div.magnify img {
  display: inline;
  border: none !important;
  background: none !important;
}

div.tright {
  clear: right;
  float: right;
  border-width: 0 0 .8em 0.5em;
  border-color: #fff;
}

div.tleft {
  float: left;
  clear: left;
  border-width: 0 0.5em 0.8em 0;
  border-color: #fff;
}

img.thumbborder {
  border: 1px solid #dddddd;
}

.modal-body {
  background-color: rgba(0, 0, 0, 0.03);
}

.forminline {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
}

.search-nav {
  margin-top: 56px;
}

.page-letter {
  width: 2em;
}

.pagination-sm .page-item-left:last-child .page-link {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.pagination-sm .page-item-right:first-child .page-link {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
