/* Fonts */

@font-face {
  font-family: 'Roboto Condensed Bold';
  src: url('../fonts/RobotoCondensed-Bold.ttf');
  font-weight: normal;
}

/* Defaults */

body {
  font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
  background-color: #27272B;
  background-image: url(img/footer-flag.jpg);
  background-repeat: repeat-x;
  background-position: center bottom;
}

h1, h2, h3, h4 {
  font-family: 'HelveticaNeue-CondensedBold','HelveticaNeueBoldCondensed', 'HelveticaNeue-Bold-Condensed', 'Helvetica Neue Bold Condensed', 'Roboto Condensed Bold', sans-serif;
  font-weight: normal;
  line-height: 1.1;
  text-rendering: optimizeLegibility;
}

h1 {
  letter-spacing: 4px;
}

p, blockquote, ol, ul {
  text-rendering: optimizeLegibility;
}

a {
 transition: all 400ms cubic-bezier(0.19, 1, 0.22, 1);
}

img {
  max-width: 100%;
  height: auto;
}

.list-inline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-inline > li {
  display: inline-block;
  padding-right: 5px;
  padding-left: 0;
}


/* Main nav */

.nav-main {
  padding-top: 30px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  border: none;
  border-radius: 0;
}

.main-logo {
  margin-top: -15px;
}

.nav-main li > a {
  color: #fff;
  font-family: 'HelveticaNeue-CondensedBold','HelveticaNeueBoldCondensed', 'HelveticaNeue-Bold-Condensed', 'Helvetica Neue Bold Condensed', 'Roboto Condensed Bold', sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  padding: 6px 8px;
}

.nav > li > a:hover,
.nav > li > a:focus {
  background-color: rgba(238, 238, 238, 0.09);
}

.donate {
  background-color: #FF911E;
  color: #fff;
  border-radius: 2px;
  margin-left: 5px;
}

.navbar-toggle {
  background-image: url(img/burger.svg);
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 0;
}

.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
  border: none;
  background-color: #eee;
}
.dropdown-menu {
  background-color: #27272B;
  border: none;
  border-radius: 0;
  padding: 0;
}

.nav-main .dropdown-toggle {
  background-image: url(img/arrow-down.svg);
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 15px;
}

@media (max-width: 992px) {
  .navbar-collapse {
    border: none;
    box-shadow: none;
    text-align: right;
  }
  .nav-main li > a {
    padding: 10px 30px;
    display: inline-block;
    background-color: #eee;
    color: #27272B;
    line-height: 1.5;
    margin-bottom: 1px;
  }
  .nav-main li > a:hover {
    background-color: #FF911E;
  }
  .nav-main .dropdown-toggle {
    background-position: right 15px center;
    padding-right: 30px;
    background-color: #fff;
    color: #27272B;
  }

  .navbar-nav .open .dropdown-menu {
    text-align: right;
  }
}

@media (max-width: 480px) {

  .navbar-nav {
    height: 100vh;
    background: rgba(39, 39, 43, 0.87);
    margin: 20px -10px
  }

}

@media (max-width: 480px) {

  .navbar-nav {
    height: 100vh;
    background: rgba(39, 39, 43, 0.87);
  }

}


/* Home jumbotron */

.jumbotron-home {
  height: 100vh;
  color: #fff;
  text-align: center;
  background-color: #27272B;
  background-image: url(img/fade-top.svg), url(img/fade-bottom.svg), url(img/home-hero.jpg);
  background-repeat: repeat-x, repeat-x, no-repeat;
  background-size: auto, auto, cover;
  background-position: center top, center bottom, center center;
}

.jumbotron-home {
  position: relative;
  padding-top: 0;
}

.home-intro {
  position: absolute;
  bottom: 3rem;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.jumbotron-home h1 {
  font-size: 40px;
  text-transform: uppercase;
}
.jumbotron p {
  font-size: 16px;
  font-weight: bold;
}

/*  phone 480px */
@media only screen and ( max-width: 480px ) {
  .jumbotron-home {
    height: 90vh;
    background-image: url(img/fade-bottom.svg), url(img/home-hero-small.jpg);
    background-position: center bottom, center top;
    background-size: auto,cover;
    background-repeat: repeat-x,no-repeat;
    margin-bottom: 20px;
  }

}


/* News grid */

.grid-news-link {
  color: #2B2B2B;
  text-transform: uppercase;
  display: block;
  background-color: #eee;
  position: relative;
  padding-bottom: 3rem;
}
.grid-news-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.grid-news-link:active {
  transform: translateY(0);
}

.grid-news-link img {
  max-width: none;
  width: 100%;
}

.grid-news h2 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: bold;
  font-family: sans-serif;
  margin: 2rem;
}
.grid-news time {
  display: block;
  color: #8A8A8A;
  font-size: 12px;
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}

/* row-flex */

.row-flex {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.row-flex > * {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 20px;
}

/*  tablet: 768px */
@media only screen and ( max-width: 768px ) {

  .grid-news-link {
    width: 100%;
  }
	.row-flex > * {
    width: 100%;
  }
	.row-flex-2 > * {
    width: 50%;
  }

}

/* Home gallery */

.gallery-home a {
  display: block;
  margin-bottom: 20px;
  position: relative;
}

.gallery-home figcaption {
  opacity: 0;
  position: absolute;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  flex-direction: column;
  top: 0;
  left: 10px;
  right: 10px;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: center;
  text-transform: uppercase;
  transition: all 400ms cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-home figure:hover figcaption {
  opacity: 1;
}

/* Home carousel*/

.home-carousel {
  margin-bottom: 20px;
}

.arrow {
  background-image: url(img/arrow-left.svg);
  background-repeat: no-repeat;
  background-position: center center;
  display: block;
  width: 60px;
  height: 60px;
  position: absolute;
  left: 2rem;
  top: 50%;
}
.carousel-control:active .arrow {
  transform: translateY(1px);
}

.arrow-right {
  background-image: url(img/arrow-right.svg);
  left: auto;
  right: 2rem;
}
.carousel-indicators li {
  border-width: 2px;
}
.carousel-indicators .active {
  background-color: #FF911E;
}

/* home video */

.home-video {
  margin-bottom: 20px;
}

.home-video .video {
  width: 100%;
  height: auto;
}

.home-video .play-video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  display: block;
}

.home-video .play-video-button {
  font-family: 'HelveticaNeue-CondensedBold','HelveticaNeueBoldCondensed', 'HelveticaNeue-Bold-Condensed', 'Helvetica Neue Bold Condensed', 'Roboto Condensed Bold', sans-serif;
  font-weight: normal;
  line-height: 1;
  font-size: 46px;
  text-transform: uppercase;
  text-align: center;
  height: 100%;
  display: block;
  padding-top: calc(25% - 46px);
  color: #fff;
}

/*  phone 480px */
@media only screen and ( max-width: 480px ) {

  .home-video .play-video {
    display: none;
  }

}


/* home stats */

.home-stats {
  margin-bottom: 20px;
}

.row-stats,
.stats {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: stretch;
  flex-grow: 1;
}

.stats-box {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #212121;
  width: 100%;
  min-height: 300px;
}

.raised {
  font-size: 50px;
  color: #FF911E;
  font-weight: 100;
  line-height: 1;
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
  margin: 0;
}

.over {
  display: block;
  font-size: 42px;
  color: #A1A1A1;
  margin-bottom: .2em;
}
.by {
  display: block;
  font-size: 16px;
  margin: 1em 1em 0;
  color: #A1A1A1;
  font-weight: 500;
  line-height: 1.4;
}

/*  tablet: 768px */
@media only screen and ( min-width: 768px ) {
  .raised {
    font-size: 80px;
  }
}


/* Home results */

.home-results {
  margin-bottom: 20px;
}

.row-results,
.results {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: stretch;
  flex-grow: 1;
}

.home-results-box {
  background-color: #474747;
  color: #D4D4D4;
  width: 100%;
  padding: 30px 20px;
}
.home-results-box h2 {
  color: #D4D4D4;
  font-size: 16px;
  margin-top: 0;
  text-align: center;
  text-transform: uppercase;
}

.home-results-table {
  text-align: right;
  margin: 0 auto;
  width: 85%;
  font-size: 14px;
  font-family: Consolas, "Andale Mono", "Liberation Mono", monospace;
}

.home-results-table th {
  text-transform: uppercase;
  color: #FF911E;
}

.home-results-table td {
  padding: .3em 0;
}
.home-results-table td:empty {
  width: 50px;
}
.home-results-table th:first-child,
.home-results-table td:first-child,
.home-results-table tr th:nth-child(5),
.home-results-table tr td:nth-child(5)  {
  text-align: left;
}

/*  phone 480px */
@media only screen and ( max-width: 480px ) {
    .home-results-table {
      font-size: 12px;
      width: 98%;
    }
    .home-results-table td:empty {
      width: 20px;
    }
}

/* Social footer */

.social-footer {
  margin-bottom: 20px;
}

.social {
  display: block;
  width: 100%;
  height: 80px;
  font-size: 0;
  color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
}

.social:hover {
  transform: translateY(-1px);
}
.social:active {
  transform: translateY(0);
}

.facebook {
  background-color: #36609D;
  background-image: url(img/social-icon-facebook.svg);
}
.twitter {
  background-color: #2AA7DE;
  background-image: url(img/social-icon-twitter.svg);
}
.youtube {
  background-color: #EB3437;
  background-image: url(img/social-icon-youtube.svg);
}
.instagram {
  background-color: #517FA4;
  background-image: url(img/social-icon-instagram.svg);
}

/* Join us */

.join-us-box {
  background-image: url(img/join-us-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  color: #fff;
  padding: 3em;
  margin-bottom: 20px;
  display: block;
}

.join-us-box:hover,
.join-us-box:focus,
.join-us-box:active {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.join-us-box h2 {
  font-size: 63px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0;
  margin-top: .5em;
}

.join-us-box h3 {
  font-size: 28px;
  margin-top: 0;
  text-transform: uppercase;
}
.join-us-box p {
  max-width: 700px;
  margin: 0 auto
}

/* Footer */

.main-footer {
  color: #D4D4D4;
  font-size: 12px;
  margin-top: 6em;
  margin-bottom: 3rem;
}
.main-footer a {
  color: #D4D4D4;
}

.main-footer .row-flex > div {
  -ms-align-self: flex-end;
  -webkit-align-self: flex-end;
  align-self: flex-end;
  -ms-flex-flow: column;
  -webkit-flex-flow: column;
  flex-flow: column;
}

.footer-nav li {
  width: 50%;
  float: left;
  text-transform: uppercase;
}
.footer-nav a {
  display: block;
  padding: 5px 0;
}

.footer-donate {
  text-align: center;
}

.footer-donate-link {
  margin: 1rem 2rem 0;
  padding: 1em;
  display: block;
  border: 1px solid #888888;
  background-color: rgba(240, 240, 240, 0.2);
  border-radius: 2px;
  text-transform: uppercase;
  position: relative;
}

.footer-donate-link:hover {
  background-color: rgba(240, 240, 240, 0.1);
  text-decoration: none;
}

.footer-donate-link:active {
  transform: translateY(1px);
}

.footer-colophon {
  text-align: right;
}

.footer-logos li {

  margin-top: 1em;
}

.copyright {
  text-transform: uppercase;
}


/*  tablet: 768px */
@media only screen and ( max-width: 768px ) {
  .main-footer > * {
    text-align: center;
  }

  .footer-nav a {
    display: block;
    padding: 1em .5em;
    font-size: 15px;
  }

  .footer-colophon {
    text-align: center;
  }

}


/* Internal Page */

.internal {
  background-image: url(img/internal-header-bg.jpg), url(img/footer-flag.jpg);
  background-repeat: no-repeat, repeat-x;
  background-position: center top, center bottom;
}

.container-internal {
  background-color: #fff;
  margin-top: 10rem;
}

.internal-content {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.internal-content > h1 {
  text-align: center;
  margin-bottom: 2em;
  letter-spacing: 2px;
}

/*  tablet: 768px */
@media only screen and ( max-width: 768px ) {
  .internal-content {
    padding: 4rem 2em;
  }
.internal-content > h1 {
    margin-bottom: 1em;
  }
}


/* Image gallery */

#imageContainer div {
  margin-bottom: 2rem;
}
#imageContainer figcaption {
  padding: 1rem 0;
}