@import url(https://fonts.googleapis.com/css?family=Raleway:400,600);

html,
body {
  margin: 0;
  height: 100%;
  color: #3b3b38;
}

* {
  font-family: 'Raleway';
  box-sizing: border-box;
}

p {
  font-weight: 400;
}

a {
  color: #009472;
}

a:hover {
  color: #497ab4;
}

a[title='pdf-download'] {
  background: url('/docbank/img/pdf.gif') no-repeat left;
  padding-left: 25px;
}

th,
td {
  vertical-align: top;
  text-align: left;
}

.wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.main-content,
.home-hero {
  flex: 1;
}

.end-page {
  clear: both;
  margin-bottom: 40px;
}

.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.container:before,
.container:after {
  content: ' ';
  display: table;
}

.container:after {
  clear: both;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1110px;
  }

  #SiteContainer #Body {
    width: 1520px;
    margin: auto;
  }
}

/* Header Elements */

.top-nav {
  display: flex;
  flex-direction: row;
  flex: none;
  align-items: center;
  justify-content: space-between;
  background-color: #009472;
  color: #fff;
  padding: 1em;
  font-size: 1rem;
}

#logo {
  width: 343px;
  min-width: 343px;
  margin-left: 10px;
}

#logo img {
  max-width: 100%;
  margin-left: 13px;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: -55px 5px 0 0;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
}

.menu a {
  color: #fff;
  text-decoration: none;
}

.menu a:hover {
  color: #eec9b9;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

/* The hero image */
.hero-image {
  /* Set a specific height */
  height: 335px;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.home-hero {
  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Place text in the middle of the image */
.hero-text {
  margin: 5% 10px;
  color: white;
  text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
  font-size: 3rem;
  margin-top: 0;
}

.hero-text h1::after {
  content: ' ';
  display: block;
  margin-top: 10px;
  width: 80px;
  height: 3px;
  background: #ffffff;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.6);
}

.hero-text p {
  margin: 9% 0 3px 0;
}

#login .home-hero {
  background-image: url('../img/banners/login.jpg');
}

#home .hero-image {
  background-image: url('../img/banners/home.jpg');
}

#docs .hero-image {
  background-image: url('../img/banners/docs.jpg');
}

#meter-readings .hero-image {
  background-image: url('../img/banners/meters.jpg');
}

#payments .hero-image {
  background-image: url('../img/banners/payments.jpg');
}

#faqs .hero-image {
  background-image: url('../img/banners/faqs.jpg');
}

#contact .hero-image {
  background-image: url('../img/banners/contact.jpg');
}

#profile .hero-image {
  background-image: url('../img/banners/profile.jpg');
}

.short-rule {
  border-top: 1px dotted silver;
  margin: 30px 0 10px 0;
  clear: both;
}

/* Footer Elements */
.footer-content {
  background-color: #000;
  color: #fff;
  padding: 0;
  font-size: 0.8rem;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
}

.footer-content a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-left {
  margin-top: 30px;
  float: left;
}

.footer-right {
  margin: 12px 20px 10px 20px;
  float: right;
}

.footer-left ul {
  list-style-type: none;
}

.footer-left li {
  float: left;
  margin-right: 15px;
}

#policy-text {
  padding: 20px;
  font-size: 0.9em !important;
  line-height: 1.5em !important;
  padding: 20px 30px 20px 20px;
}

#policy-text h1 {
  margin: 0 0 0.55em 0;
  padding-bottom: 15px;
  line-height: 1.2em;
  border-bottom: 1px dotted silver;
}

#policy-text .policy-meta {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px dotted silver;
  font-style: italic;
}

/* Login Page */

@media (max-width: 700px) {
  #login #logo img {
    margin: auto;
  }
}

#login-panel {
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.8);
  padding: 15px 40px;
  margin-bottom: 40px;
}

#login-panel .policy-wrapper {
  height: 200px;
  width: 100%;
  margin-bottom: 20px;
}

#login-panel iframe {
  background: #fff;
  border: 1px solid silver;
  width: 100%;
  height: 100%;
}

/* news content */
.story-panel,
.doccontainer {
  background: #f6f7f1;
  border: 1px dashed #eec9b9;
  padding: 5px 30px;
  margin-bottom: 20px;
  overflow: auto;
}

.news-meta {
  font-size: 0.8em;
  color: #d67146;
  font-style: italic;
  margin-top: -13px;
}

.record-count {
  margin-top: 5px;
}

.newsimage {
  float: right;
  margin-left: 20px;
  margin-bottom: 5px;
}

/* FAQs Page
--------------------------------------------------------------------------*/
#accordion {
  margin-left: 10px;
}

#accordion .toggler {
  line-height: 35px;
  border-top: 1px dotted silver;
  cursor: pointer;
}

#accordion .toggler:hover {
  color: #009472;
  background: #f6f7f1;
}

#accordion .element div {
  margin: 10px 0 0 0px;
  padding-bottom: 20px;
}

#accordion .faqopen {
  color: #009472;
  font-weight: 600;
}

#accordion .faqopen:hover {
  background: #fff;
  font-weight: 600;
}

.accordion-content {
  display: none;
  margin-top: 10px;
  margin-left: 0px;
}

/* News Accordian
--------------------------------------------------------------------------*/
.newscol.left {
  float: left;
  width: 49%;
}

.newscol.right {
  float: right;
  width: 49%;
}

#news-accordian .headline {
  margin-top: 9px;
  margin-bottom: 8px;
}

#news-accordian .toggler {
  cursor: pointer;
}

.news-accordian-content {
  display: none;
  margin-top: 10px;
  margin-left: 0px;
}

.read-more.nice-button {
  font-size: 11px;
  margin-top: 0px;
  margin-bottom: 10px;
  padding: 6px 12px;
  float: right;
}

.news-meta {
  display: block;
  margin-top: 4px;
  font-weight: 300 !important;
  font-size: 12px;
  font-style: normal;
}

/* Forms */

.nice-button {
  background-color: #009472;
  border-radius: 25px;
  border: none;
  color: white;
  margin-top: 10px;
  margin-right: 5px;
  padding: 8px 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  -webkit-appearance: none;
}

.nice-button:hover {
  background-color: #497ab4;
  color: white;
  cursor: pointer;
}

label.error {
  background: #ffffcc;
  display: inline-block;
  color: red;
  padding: 4px 7px;
  margin-bottom: 5px;
  border: 1px dashed silver;
}

/* Meter Readings */

#list-bookings-table {
  width: 450px;
  max-width: 98%;
  border-collapse: collapse;
}

#list-bookings-table th {
  text-align: left;
  padding-bottom: 3px;
}

#list-bookings-table td {
  text-align: left;
  vertical-align: middle;
  border-top: 1px dotted silver;
}

#list-bookings-table td a {
  margin: 4px 0;
}

.contact-table th {
  padding: 10px 0 10px 0;
}

.contact-table td {
  padding: 10px;
}

#meter_reading .ui-datepicker-trigger,
#register .ui-datepicker-trigger {
  position: relative;
  top: 3px;
  left: 4px;
}

/* payments */
#bank-account-table {
  width: 550px;
  margin-top: 10px;
  margin-left: 15px;
  margin-bottom: 20px;
  border-bottom: 1px dotted silver;
}

#bank-account-table th {
  font-weight: 300;
  width: 150px;
}

#bank-account-table td {
  font-weight: 600;
}

#bank-account-table th,
#bank-account-table td {
  border-top: 1px dotted silver;
}

/* Defect Reports */

#list-defects-table {
  width: 580px;
  max-width: 98%;
  margin-top: 40px;
  border-collapse: collapse;
}

#list-defects-table th {
  text-align: left;
  padding-bottom: 3px;
}

#list-defects-table td {
  text-align: left;
  vertical-align: middle;
  border-top: 1px dotted silver;
}

#list-defects-table td a {
  margin: 4px 0;
}

.defect-status-open {
  color: green;
}

.defect-status-closed {
  color: #d67146;
}

.wider-table {
  width: 90% !important;
}

.wider-table th,
.wider-table td {
  padding: 10px 0;
}

.leftcol {
  width: 65%;
  float: left;
}

.rightcol {
  width: 30%;
  float: right;
  padding-left: 25px;
  padding-right: 5px;
  border-left: 1px dotted silver;
}

/*Hide mobile only skip buttons */
#skip-buttons {
  display: none;
}

@media (max-width: 1080px) {
  #logo {
    width: 195px;
    min-width: 120px;
    margin-left: 10px;
  }
  .top-nav {
    height: 100px;
    font-size: 0.75rem;
  }
  .menu > li {
    margin: 0 0.4rem;
  }
  .hero-image {
    height: 225px;
  }
}

@media (max-width: 700px) {
  .nomobile {
    display: none;
  }

  #logo {
    margin: -10px auto;
  }

  .top-nav {
    font-size: 1rem;
  }

  .menu-button-container {
    display: flex;
    margin-top: 45px;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 100px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 200;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    opacity: 1;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #222;
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    margin-top: 0;
  }

  .footer-left {
    width: 100%;
    display: block;
    float: none;
    clear: both;
    margin-top: 0;
    text-align: center;
  }

  .footer-right {
    display: block;
    width: 100%;
    margin: 20px 0 10px 0;
    float: none;
    text-align: center;
  }

  .footer-left ul {
    width: 100%;
    margin: 13px auto 30px auto;
    padding: 0;
    list-style-type: none;
  }

  .footer-left li {
    padding: 0;
    float: none;
    margin-right: 0;
    margin-bottom: 5px;
  }

  .leftcol {
    width: 98%;
    float: none;
  }

  .rightcol {
    width: 98%;
    float: none;
    padding-left: 0px;
    border-left: none;
    border-bottom: 1px dotted silver;
  }

  .mini-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.6rem;
    clear: both;
  }

  .fullwidth-input {
    width: 100%;
  }

  #login-panel .policy-wrapper {
    height: 300px;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
  }

  #list-defects-table th,
  #list-defects-table td {
    font-size: 11px;
  }

  #list-defects-table .nice-button {
    font-size: 11px;
    padding: 10px 12px;
  }

  .newsimage {
    max-width: 90px;
  }

  /* mobile only buttons for switching between news modes */

  #skip-buttons {
    display: block;
    width: 100%;
    margin: 15px auto;
    text-align: center;
  }

  #skip-buttons a {
    line-height: 16px;
    max-width: 90%;
  }

  .newscol.left {
    float: none;
    width: 100%;
  }

  .newscol.right {
    float: none;
    width: 100%;
  }

  .story-panel {
    padding: 5px 15px;
  }

  .read-more.nice-button {
    margin-top: -15px;
    margin-right: -3px;
  }
}
