/* Sticky footer styles
-------------------------------------------------- */

html,body {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: black;
  height: 100%;
  background-color: white;
}

a {
  color: blue;
}
a:focus, a:hover {
  color: blue;
  text-decoration: underline;
}

#wrap {
  max-width: 860px;
  background-image: url('../img/paper.png');
  min-height: 100%;
  height: auto !important;
  height: 100%;
  /* Negative indent footer by its height */
  margin: 0 auto -40px;
  /* Pad bottom by footer height */
  padding: 0 0 40px;
}

.elem {
  max-width: 860px;
  margin: 0;
}

.container {
  max-width: 860px;
  margin: 0;
  padding: 0 30px;
}

#masthead {
  margin-bottom: 10px;
}
.container-fluid {
  margin: 0;
  padding: 0;
}

.navbar {
  background-image: url('../img/paper.png');
  font-family: 'IM Fell English', serif;
  font-size: 30px;
  font-weight: 500;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
  border: none;
}

.navbar-toggle {
  float: left;
  margin-left: 15px;
  border: 1px solid #333;
}
.navbar-toggle .icon-bar {
  background-color: black;
}

.navbar-nav>li>a {
  border: none;
  color: darkslategrey;
  margin-right: 15px;
}

.navbar-nav>li>a:focus, .navbar-nav>li>a:hover {
  color: #FA0401;
  background: transparent;
}
.nav>li.active>a {
  color: #FA0401;
  background: none;
}

.cd-top {
  display: inline-block;
  height: 40px;
  width: 40px;
  position: fixed;
  bottom: 40px;
  right: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  /* image replacement properties */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: rgba(232, 98, 86, 0.8) url(../img/cd-top-arrow.svg) no-repeat center 50%;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s;
}
.cd-top.cd-is-visible, .cd-top.cd-fade-out, .no-touch .cd-top:hover {
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s;
}
.cd-top.cd-is-visible {
  visibility: visible;
  opacity: 1;
}
.cd-top.cd-fade-out {
  opacity: .5;
}
.no-touch .cd-top:hover {
  background-color: #e86256;
  opacity: 1;
}
@media only screen and (min-width: 768px) {
  .cd-top {
    right: 20px;
    bottom: 20px;
  }
}
@media only screen and (min-width: 1024px) {
  .cd-top {
    height: 60px;
    width: 60px;
    right: 30px;
    bottom: 30px;
  }
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

#wrap > .container {
}

.container .credit {
  font-family: 'Raleway', sans-serif;
  font-size: 75%;
  margin: 9px 0;
}

#footer > .container {
  height: 30px;
  padding-left: 25px;
  padding-right: 25px;
  margin: 0 auto;
}

.anchor {
  padding-top: 60px;
  margin-top: -60px;
}

.error {
  font-weight: bold;
  color: red;
}

#formpage {
  max-width: 600px;
  margin: 0 auto;
}

#formpage h1 {
  font-size: 180%;
}
#formpage hr {
  margin: 0;
  padding: 0;
}
#formpage p {
  margin: 10px 0 30px 0;
}

.videoContainer {
  width: 80%;
  margin: 30px auto;
}
.videoWrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 25px;
  height: 0;
}
.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}