html {
  overflow-y: scroll;
}

body {
  background: #fff url(../media/body-bg2.jpg) repeat scroll 50% 0;
}

.footer {
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 40px;
  border-top: 1px solid #eee;
}

/* Main marketing message and sign up button */
.jumbotron {
  text-align: center;
  background-color: transparent;
}
.jumbotron .btn {
  padding: 14px 24px;
  font-size: 21px;
}

/* Customize the nav-justified links to be fill the entire space of the .navbar */

.nav-justified {
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}
.nav-justified > li > a {
  padding: 15px 5px;
  white-space: nowrap;
  margin-bottom: 0;
  font-weight: bold;
  color: #4d3559;
  text-align: center;
  background-color: #e5e5e5; /* Old browsers */
  background-image:    -moz-linear-gradient(top, #f5f5f5 0%, #e5e5e5 100%); /* FF3.6+ */
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
  background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Chrome 10+,Safari 5.1+ */
  background-image:      -o-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Opera 11.10+ */
  background-image:         linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
  background-repeat: repeat-x; /* Repeat the gradient */
  border-bottom: 1px solid #d5d5d5;
}
.nav-justified > .active > a,
.nav-justified > .active > a:hover,
.nav-justified > .active > a:focus {
  background-color: #ddd;
  background-image: none;
  box-shadow: inset 0 3px 7px rgba(0,0,0,.15);
}
.nav-justified > li:first-child > a {
  border-radius: 5px 5px 0 0;
}
.nav-justified > li:last-child > a {
  border-bottom: 0;
  border-radius: 0 0 5px 5px;
}

.nav-justified > li > a:hover {
  background-color: #e5e5e5; /* Old browsers */
  background-image:    -moz-linear-gradient(top, #e5e5e5 0%, #f5f5f5 100%); /* FF3.6+ */
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(100%,#f5f5f5)); /* Chrome,Safari4+ */
  background-image: -webkit-linear-gradient(top, #e5e5e5 0%,#f5f5f5 100%); /* Chrome 10+,Safari 5.1+ */
  background-image:      -o-linear-gradient(top, #e5e5e5 0%,#f5f5f5 100%); /* Opera 11.10+ */
  background-image:         linear-gradient(top, #e5e5e5 0%,#f5f5f5 100%); /* W3C */
}

@media (min-width: 768px) {
  .nav-justified {
    max-height: 52px;
  }
  .nav-justified > li > a {
    border-right: 1px solid #d5d5d5;
    border-left: 1px solid #fff;
  }
  .nav-justified > li:first-child > a {
    border-left: 0;
    border-radius: 5px 0 0 5px;
  }
  .nav-justified > li:last-child > a {
    border-right: 0;
    border-radius: 0 5px 5px 0;
  }
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
  /* Remove the padding we set earlier */
  .masthead,
  .marketing,
  .footer {
    padding-right: 0;
    padding-left: 0;
  }
}

#header {
  height: 165px;
}

.img-text {
  padding: 5px;
  border: 1px solid #ddd;
  background: #fff;
  margin-top: 5px;
  text-align: center;
}

.footer-img img,
.img-text img {
  max-width: 100%;
  display: block;
  height: auto;
  margin: 0 auto;
}

#footer {
  border-top: 1px solid #ddd;
  background: #fff;
  color: #999;
}

.news-item {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #ddd;
}

#content {
  background: #f3f3f3;
  padding-top: 15px;
  padding-bottom: 15px;
}

#content p {
  margin: 10px 0;
}

#navigation ul {
  list-style: none;
  margin: .5em 0 2.5em;
  overflow: hidden;
  padding: 0;
  text-align: center;
}

#navigation ul li {
  display: inline-block;
  padding: 0;
  margin: 0;
}

#navigation ul li a {
  color: #707070;
  font-family: "Open Sans";
  font-weight: 600;
  display: block;
  padding: 5px 14px;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0.1em 0.1em #ddd;
  outline: 0;
  margin: 0 5px;
}

#navigation ul li.active a,
#navigation ul li a:hover {
  color: #404040;
}
