/*
 * Main style sheet for PortNumber.co.uk
 */

body {
  position: relative;
  overflow-y: scroll;  /* Reserve space for scrollbar to prevent page shift */
  min-height: 100vh;  /* Fullscreen */
  padding-top: 60px;  /* Header height */
  padding-bottom: 200px;  /* Footer height */
  background-color: #f9f9f9;
  line-height: 1.5;
  /* Wrap long words onto multiple lines to prevent overflow */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

footer > .container {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-top: 1em;
  border-top: 1px solid #ccc;
  color: #333;
  background-color: #e0e0e0;
  font-size: small;
  text-align: center;
  line-height: 1.8em;
}

h1, .h1 { font-size: 1.6em; line-height: 1.2; margin-top: 16px; }
h2, .h2 { font-size: 1.5em; line-height: 1.2; margin-top: 16px; }
h3, .h3 { font-size: 1.4em; line-height: 1.2; margin-top: 16px; }
h4, .h4 { font-size: 1.3em; }
h5, .h5 { font-size: 1.2em; }
h6, .h6 { font-size: 1.1em; }

p > a {
  font-weight: bold;
  font-size: 110%;
}

a.image-link {
  margin: 0.3em;
  text-decoration: none;
}

.navbar {
  min-height: 60px;
  font-size: 1.2em;
  font-weight: bold;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.navbar-nav > li > a {
  padding-top: 20px;
  padding-bottom: 20px;
}
.navbar-brand {
  padding: 0 8px;
  height: 60px;
  line-height: 60px;
  font-size: 1.4em;
  font-weight: bold;
}
.navbar-inverse {
  background-color: #666699;
  background-image: none;
  border-color: #505080;
}
.navbar-inverse .navbar-brand {
  color: #fff;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
  color: #ccccff;
}
.navbar-inverse .navbar-text {
  color: #fff;
}
.navbar-inverse .navbar-nav > li > a {
  color: #fff;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: #ccccff;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
  color: #ccccff;
  background-color: #505080;
  background-image: none;
}

.navbar-logo {
  margin: 5px 8px 0 0;
  float: left;
}

/* Non-JavaScript navbar menu */
.navbar-toggle {
  cursor: pointer;
}
#navbar-toggle-menu:checked ~ .collapse {
  display: block;
}
#navbar-toggle-menu {
  display: none;
}

/* Non-JavaScript content collapse toggle */
.collapse-toggle {
  margin: 0;
  display: block;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: normal;
}
.collapse-toggle:after {
  font-size: 1.2em;
  content: "\2807";
  float: right;
}
.collapse-toggle + input{
  display: none;
}
.collapse-toggle + input + * {
  display: none;
}
.collapse-toggle + input:checked + * {
  display: block;
}

.btn {
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Fix: prevents in-page anchor content being overlapped by the fixed navbar */
:target {
  scroll-margin-top: 66px;  /* scroll passed fixed header */
}
:target.target-highlight {  /* highlight target with a border */
  outline: 4px solid #ffcc66;
}
:target.target-shake {  /* shake target with an animation */
  transform: translateX(0);
  animation: shake 1s;
  z-index: 1;
}
@keyframes shake {
  20%, 60% {
    transform: translateX(-4px);
  }
  40%, 80% {
    transform: translateX(4px);
  }
}

section#join h2, section#leave h2 {
  border-bottom: 1px solid #505080;
  font-weight: bold;
  padding-bottom: 0.5em;
  line-height: 2em;
  display: inline;
}

img.merchant-logo {
  padding: 0.2em;
}
section img.merchant-logo {
  float: left;
  padding: 0.5em;
  margin: 0.2em 1em 0.5em 0;
}
section a > img.merchant-logo {
  -webkit-box-shadow: 2px 2px 4px #999;
  box-shadow: 2px 2px 4px #999;
}

.charity-logo {
  float: left;
  padding: 5px 15px;
}

article section a {
  font-size: 1.2em;
  font-weight: bold;
}

.alert-default {
  color: #555;
  background-color: #f9f9f9;
  border-color: #ddd;
}

.panel {
  border: none;
  border-radius: 2px;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.panel-default > .panel-heading {
  color: #fff;
  background-image: none;
  background-color: #666699;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
}
.panel-heading h1,
.panel-heading h2,
.panel-heading h3 {
  margin: 1px;
}
.panel-footer {
  font-size: small;
}
.panel-transparent {
  background-color: transparent;
}

.jumbotron {
  margin-bottom: 1em;
  padding: 0;
  border-bottom: 1px solid #ccc;
  color: #333;
}
.jumbotron h1 {
  font-size: 1.8em;
  font-weight: bold;
}
.jumbotron small {
  color: inherit;
}
.jumbotron p {
  font-size: 1.2em;
  font-weight: normal;
}

.up-top:before {
  content: "\25B2";
  padding-right: 4px;
}

.list-group-card {
  padding: 0;
  text-align: center;
}
.list-group-card > .list-group-item {
  height: 200px;
  padding: 1em;
}
.list-group-item {
  padding: 5px 20px;
  font-size: larger;
}
.list-striped-even li:nth-child(even) {
  background-color: #fafafa;
}
.list-striped-odd li:nth-child(odd) {
  background-color: #fafafa;
}

fieldset
{
  margin: 1em;
  padding: 2em;
  border: 10px solid #e0e0e0;
}
legend
{
  margin: 0;
  padding: 2px 10px;
  width: auto;
  background: #666699;
  color: #fff;
  font-weight: bold;
  border: 1px solid #666699;
}
.form-inline label {
  margin-right: 0.5em;
}
.form-inline select {
  margin-right: 1em;
}

.checklist > li {
  display: block;
}
.checklist > li:before {
  content: "\2714";
  margin-left: -1.4em;
  margin-right: 0.4em;
  color: #398439;
  font-size: 1.2em;
}
.checkmark-yes {
  color: #339933;
  font-weight: bold;
}
.checkmark-yes::before {
  content: "\2714";
  margin-right: 0.3em;
}
.checkmark-no {
  color: #cc3333;
  font-weight: bold;
}
.checkmark-no::before {
  content: "\2718";
  margin-right: 0.3em;
}
.checkmark-maybe {
  color: #cc9900;
  font-weight: bold;
}
.checkmark-maybe::before {
  content: "?";
  margin-right: 0.3em;
}

/* Responsive Tables */
@media screen and (max-width: 768px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }
  .table-responsive thead tr {
    display: none;
  }
  .table-responsive tr {
    border: 1px solid #ccc;
  }
  .table-responsive td:before {
    font-weight: bold;
  }
  .table-responsive td:before {
    content: attr(data-title);
  }
}

.responsive-iframe {
  position: relative;
  padding-top: 56.25%;
  margin: 1em 0;
  overflow: hidden;
}
.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sticky-top {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0px;
  z-index: 1035; /* Higher than navbar */
}
.sticky-bottom {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  bottom: 0px;
  z-index: 1035; /* Higher than navbar */
}
