/* PPM-specific styles */

@import url('https://fonts.googleapis.com/css?family=Work+Sans:400,600');
@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,600,700');

body {
    font-family: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    background-image: url("../img/crowd.jpg");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center bottom 220px;
    background-size: contain;
    /* stuff from Bootstrap's navbar-fixed-top.css */
    padding-top: 70px;
}

/* Main bootstrap .container needs buffer at bottom for crowd image. */
#main {
    padding-bottom: 150px;
}

/*
#part5 > #main {
    padding-bottom:200px;
}
*/

footer.footer {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    display: block;
    position: relative;
    bottom: 0;
    border-top: 2px solid #2f4f4f;
    width: 100%;
    height: 220px;
    background-color: #31536e;
    color: rgba(196, 225, 247, 0.75);
}

footer.footer > div.container {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    margin-left:auto;
    margin-right:auto;
    text-align: center;
}

footer.footer > div.container > p {
    letter-spacing: .35px;
}

footer > div > a > img {
    margin-top: 1em;
    width:300px;
    margin-left: auto;
    margin-right: auto;
}

/* Extra small devices (portrait phones, less than 576px) are the default in Bootstrap but it doesn't account for things that are even smaller, like iPhone SE*/
@media (max-width: 415px) {
    body {
        background-position: center bottom 250px;
    }
    footer.footer {
        height: 250px;
    }
    footer.footer > div.container {
        width:90%;
    }
    footer > div > a > img {
        width: 250px;
    }
    #home-buttons > a {
        font-size: .95em;
    }
    #main {
        padding-bottom: 100px;
    }
 }


/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    body {
        background-position: center bottom 180px;
    }
    footer.footer {
        height: 180px;
    }
 }

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    body {
        background-position: center bottom 160px;
    }
    footer.footer {
        height: 160px;
    }
    #main {
        padding-bottom: 245px;
    }
 }

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    body {
        background-position: center bottom 150px;
    }
    footer.footer {
        height: 150px;
    }
    footer.footer > div.container {
        width: 95%;
    }
    #main {
        padding-bottom: 270px;
    }
 }

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    body {
        background-position: center bottom 140px;
    }
    footer.footer {
        height: 140px;
    }
    footer.footer > div.container {
        width: 95%;
    }
    #main {
        padding-bottom: 330px;
    }
 }


/* Extra extra large devices (massive desktops, 1600px and up) */
@media (min-width: 1600px) {
    #main {
        padding-bottom: 550px;
    }
 }


p {
    letter-spacing: -.35px;
}

.qa {
    color: #336da8;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    margin-right: 15px;
}

strong {
    font-family: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
}

.question {
    margin-top: 2em;
    font-weight: 600;
}


h1, h2, h3, h4, h5, h6 {
    color: #336da8;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

h3 {
    color: darkslategrey;
}

/* (tmp hack -- should do via semantic markup) */
.caption {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: darkslategrey;
    letter-spacing: 0;
}

/* Center team photos and captions within their divs */
#team > div:nth-child(2) > div {
    text-align: center;
}

/* Center eligibility illustrations and captions within their divs */
#asd-elig > div:nth-child(2) > div:nth-child(1),
#asd-elig > div:nth-child(2) > div:nth-child(2),
#asd-elig > div:nth-child(2) > div:nth-child(3),
#asd-elig > div:nth-child(2) > div:nth-child(4),
#neer-elig > div:nth-child(3) > div:nth-child(1),
#neer-elig > div:nth-child(3) > div:nth-child(2),
#neer-elig > div:nth-child(3) > div:nth-child(3),
#neer-elig > div:nth-child(3) > div:nth-child(4) {
    text-align: center;
}

#heart-elig .eligibility-container {
    text-align: center;
}

#asd-elig p.caption {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

#neer-elig p.caption,
#heart-elig p.caption {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    min-height: 5rem;
}

#asd-partic > div:nth-child(2) > div:nth-child(1),
#asd-partic > div:nth-child(2) > div:nth-child(2),
#asd-partic > div:nth-child(2) > div:nth-child(3),
#asd-partic > div:nth-child(2) > div:nth-child(4),
#asd-partic > div:nth-child(2) > div:nth-child(5),
#asd-partic > div:nth-child(2) > div:nth-child(6) {
        text-align: center;
}

#asd-partic p.caption,
#neer-partic p.caption,
#heart-partic p.caption  {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    min-height: 8rem;
    padding-top: 10px;
}

#asd-partic > div.row.section > div > p,
#neer-partic > div.row.section > div > p {
    margin-bottom: 2rem;
}

#neer-partic > div > div.row > div:nth-child(1),
#neer-partic > div > div.row > div:nth-child(2),
#neer-partic > div > div.row > div:nth-child(3),
#neer-partic > div > div.row > div:nth-child(4),
#neer-partic > div > div.row > div:nth-child(5),
#neer-partic > div > div.row > div:nth-child(6) {
        text-align: center;
}


#rant-therapies-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#rant-therapies-list li {
    display: inline-block;
    margin: 5px;
    white-space: nowrap;
}

/* give rows more space -- but use a separate class in case not all rows actually need it */
.section {
    margin-top: 1em;
}

/* Navigation styles, including "you are here" to be set by js
-------------------------------------------------------------- */

nav ul li.youarehere a,
nav ul li.youarehere a:link,
nav ul li.youarehere a:visited,
nav ul li.youarehere a:hover {
    color: #6d7fa4;
    text-decoration: overline;
    background-color: #DBEDFA;
    font-weight: 300;
}

.navbar {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a.navbar-brand, a.navbar-social {
    padding-top: 12px;
}

a#navbar-twitter {
   color:#1DA1F2;
}

a#navbar-facebook {
  color:#3d5a98;
}

a#navbar-twitter:hover,
a#navbar-twitter:focus,
a#navbar-facebook:hover,
a#navbar-facebook:focus
{
 color:#333;
}

.navbar-default {
    background-color: #DBEDFA;
    border-color: #C4E1F7;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #6d7fa4;
    text-decoration: overline;
    background-color: #DBEDFA;
    font-weight: 300;
}

.navbar-default .navbar-nav>li>a {
    color: #336da8;
}

.navbar-default .navbar-toggle {
    border-color: #6FA1D3;
}

ul.nav.navbar-nav.navbar-right > li > a {
    color: #a5556d;
}

ul.nav.navbar-nav.navbar-right > li > a:hover {
    color: #333;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #C4E1F7;
}

.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover {
    background-color: #C4E1F7;
}
.navbar-default .navbar-toggle .icon-bar {
    background-color: #336da8;
}

.btn-ppm-default {
    color: #fff;
    background-color: #36aadb;
}

#team img {
    height: 150px;
    width: 150px;
    border-radius: 50%;
}

 @media screen and (max-width: 640px) {
 .logo {
    width: 100px;
    height: auto;
  }
  }

  @media screen and (max-width: 4000px) and (min-width: 641px) {
  .logo {
    width: 180px;
    height: auto;
  }
  }

@media screen and (max-width: 640px) {
 img.not-found {
    width: 300px;
    height: auto;
  }
  }

.well {
    background-color:#F9F8F1;
}

.well > h4:nth-child(3), .well > h4:nth-child(7)
 {
    margin-top: 1.5em;
}

/* People Heart Study
-------------------------------------------------- */

.phone-image img {
    width: 50%;
    display: block;
    margin: auto;
}

.carousel .carousel-inner img {
    margin: auto;
    width: 70%;
    max-width: 400px;
    padding-bottom: 15%;
}

.carousel a.carousel-control, a.carousel-control.right {
    background-image: none;
}

.carousel a.carousel-control.left{
    background-image: none;
}

.carousel a.carousel-control .glyphicon, .carousel-indicators .li {
    color: black;
}

.carousel a.carousel-control:hover, a.carousel-control.right:hover {
    background-image: none;
}

.carousel a.carousel-control.left:hover{
    background-image: none;
}

.carousel .carousel-indicators li {
    background-color: rgba(150, 150, 150, 0.5);
    border: 1px solid rgba(150, 150, 150, 0.5);
}

.carousel .carousel-indicators li.active {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.8);
}

#ios-image-grid-row img {
    width: 90%;
    padding: 4px 0 4px 0;
}

#ios-image-grid-row {
    display: none;
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
    #ios-image-carousel-row {
        display: none;
    }
    #ios-image-grid-row {
        display: block;
    }

    .phone-image img {
        width: 80%;
    }
}

.footnote {
    margin-top: 20px;
}

.footnote p {
    font-size: 0.75em;
}

/* Contact form
-------------------------------------------------- */

  legend {
    color: #336da8;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    border-bottom: 0;
    font-size: 30px;
 }

  input, textarea {
      border: thin solid gray;
}

input.submit {
      -webkit-appearance: none !important;
      background-color: transparent !important;
      border: none !important;
}

  /* error class gets applied by jQuery Validate */
  input.error, textarea.error { border: thin solid #e03232; }
  label.error {
      background: url('../img/svg/person-red.svg') no-repeat;
      padding-left: 25px;
      margin-left: 1em;
      color: #e03232;
      font-style: italic;
  }

#myForm label {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: darkslategrey;
    letter-spacing: 0;
}

.col-xs-5ths,
.col-sm-5ths,
.col-md-5ths,
.col-lg-5ths {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-xs-5ths {
    width: 20%;
    float: left;
}

@media (min-width: 768px) {
    .col-sm-5ths {
        width: 20%;
        float: left;
    }
}

@media (min-width: 992px) {
    .col-md-5ths {
        width: 20%;
        float: left;
    }
}

@media (min-width: 1200px) {
    .col-lg-5ths {
        width: 20%;
        float: left;
    }
}
