/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
  font-size: 1em;
  line-height: 1.4;

  background: url(http://kidsplayusafoundation.org/psa/img/bkgd.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bkgd.jpg', sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../img/bkgd.jpg', sizingMethod='scale')";
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.container {
  width: 100%;
  margin: 0;
  padding: 0;
  float: left;
}

#top-bar {
  position: relative;
}

.logo {
  width: 20%;
  background: #ffffff;
  float: left;
}

.logo img {
  display: block;
  width: 80%;
  margin: 6% auto 10% auto;
}

.top-right {
  position: absolute;
  left: 20%;
  display: block;
  background: #c10b0b;
  height: 100%;
  width: 80%;
}

.top-right h1 {
  display: block;
  font-family: 'museo', serif;
  font-weight: 100;
  font-size: 1.8em;
  color: #ffffff;
  margin: 4.5% 3%;
}

#main-content {
  position: relative;
  margin-bottom: 10%;
}

#main-content:after {
  content: '';
  width: 100%;
  background: #333333;
  position: absolute;
  bottom: -13px;
  height: 15px;
  z-index: 2;
}
  
#video-contain {
  width: 70%;
  float: left;
}

.button {
  display: block;
  position: absolute;
  height: 50%;
  width: 30%;
  left: 70%;
  color: #ffffff;
  text-decoration: none;
}

.button h2 {
  display: block;
  font-family: 'museo', serif;
  font-weight: 500;
  font-size: 2.5em;
  line-height: 1em; 
  margin: 20% 15%;
}

#learn-more-btn {
  top: 0;
  background: rgba(19, 120, 213, .8);
  -webkit-transition: background-color .5s ease, color .5s ease;
     -moz-transition: background-color .5s ease, color .5s ease;
      -ms-transition: background-color .5s ease, color .5s ease;
       -o-transition: background-color .5s ease, color .5s ease;
          transition: background-color .5s ease, color .5s ease;
}

#learn-more-btn:hover {
  background: #ffffff;
  color: rgb(19, 120, 213);
}

#donate-now-btn {
  top: 50%;
  background: rgba(54, 54, 54, .8);
  -webkit-transition: background-color .5s ease, color .5s ease;
     -moz-transition: background-color .5s ease, color .5s ease;
      -ms-transition: background-color .5s ease, color .5s ease;
       -o-transition: background-color .5s ease, color .5s ease;
          transition: background-color .5s ease, color .5s ease;
}

#donate-now-btn:hover {
  background: #ffffff;
  color: rgb(54, 54, 54);
}

#back-video-btn {
  display: none;
  position: absolute;
  height: 50%;
  width: 30%;
  left: 70%;
  color: #ffffff;
  text-decoration: none;
  background: rgba(193, 11, 11, .8);
  -webkit-transition: background-color .5s ease, color .5s ease;
     -moz-transition: background-color .5s ease, color .5s ease;
      -ms-transition: background-color .5s ease, color .5s ease;
       -o-transition: background-color .5s ease, color .5s ease;
          transition: background-color .5s ease, color .5s ease;
}

#back-video-btn h2 {
  display: block;
  font-family: 'museo', serif;
  font-weight: 500;
  font-size: 1em;
  line-height: 1em; 
  margin: 20% 15%;
}

#back-video-btn:hover {
  background: #ffffff;
  color: #C10B0B;
}

.back-btn { top: 50%; }
.learn { top: 0; }

.active {
  background: #ffffff;
  color: rgb(54, 54, 54);
  cursor: default;
}

#donate-now{
  display: none;
  float: left;
  width: 70%;
  height: 100%;
  background: #ffffff;
  text-align: center;
  font-family: 'museo', serif;
  padding: 5% 0;
}

#learn-more {
  display: none;
  width: 64%;
  float: left;
  background: #FFFFFF;
  padding: 1% 3%;
  text-align: left;
  font-family: 'museo', serif;
}

#learn-more ul {
  padding: 0 0 0 3%;
  margin: 2% 0 4% 0;
  font-size: 1em;
}

#learn-more li {
  margin: 0 0 .5% 0;
}

#learn-more h3 {
  margin: 2% 0 0 0;
  color: #c10b0b;
  font-size: 2em;
  line-height: 1.2em;
}

#learn-more p {
  margin: 0 0 2% 0;
  font-size: 1em;
}

#donate-now h3 {
  display: block;
  margin: 6% 8% 3% 8%;
}

#donate-now a, #learn-more a {
  text-decoration: none;
  color: rgb(19, 120, 213);
  font-weight: 500;
  font-size: 1.8em;
  line-height: 1em;
  -webkit-transition: color .5s ease;
     -moz-transition: color .5s ease;
      -ms-transition: color .5s ease;
       -o-transition: color .5s ease;
          transition: color .5s ease;
}

#donate-now a:hover, #learn-more a:hover {
  color: rgb(54, 54, 54);
}

#learn-more a {
  display: block;
  width: 100%;
  margin: 1% 0 3% 0;
}

.or {
  font-weight: 700;
  color: #666666;
  font-size: 1.4em;
}

.mail-info {
  display: block;
  margin: 3% 8% 3% 8%;
  color: #c10b0b;;
  font-weight: 500;
  font-size: 1.5em;
  line-height: 1em;
}

.mail-address {
  color: #333333;
  font-size: 1.2em;
  margin: 2% 8% 8% 8%;
}

#ren-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 6%;
  background: #ffffff;
  text-align: right;
  z-index: 6;
}

#ren-footer img {
  position: fixed;
  height: 4%;
  max-width: 200px;
  bottom: 1%;
  right: 1%;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

@media only screen and (min-width: 1300px) {
  #video-contain, #donate-now {
    width: 60%;
  }

  #learn-more { width: 54%; }

  .button, #back-video-btn {
    width: 40%;
    left: 60%;
  }

  .button h2, #back-video-btn h2 {
    margin: 15% 5% 15% 15%;
  }

  .logo img {
    width: 60%;
    margin: 4% auto 6% auto;
  }

  .top-right h1 {
    margin: 2.5% 3%;
  }
}

@media only screen and (max-width: 900px) {
  
  #video-contain {
    width: 100%;
  }

  .invisible {
    display: none;
  }

  .button, #back-video-btn {
    position: relative;
    float: left;
    width: 50%;
    height: auto;
    left: 0;
    text-align: center;
  }

  .button h2, #back-video-btn h2 {
    font-size: 2em;
    line-height: 1em; 
    margin: 10% 15%;
  }

  #donate-now {
    position: relative;
    float: left;
    height: auto;
    width: 100%;
  }

  #learn-more {
    width: 94%;
  }

  .top-right {
    display: none;
  }

  .logo {
    width: 100%;
  }

  .logo img {
    width: 15%;
    margin: 2% auto;
  }

  #ren-footer {
  text-align: center;
}

#ren-footer img {
  position: relative;
  height: 85%;
  max-width: 200px;
  margin-top: .3%;
}


}

@media only screen and (max-width: 700px) {
  .logo img {
    width: 25%;
  }
}
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}