@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,700,600);
@import url(//fonts.googleapis.com/css?family=Marcellus+SC);
@import url(normalize.css);
@import url(../js/fancybox/jquery.fancybox.css);

body {
  margin: 0;
  padding: 0;
}

body * {
  font-family: 'open sans', arial, sans-serif;
  font-size: 18px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  clear: both;
  font-weight: 300;
}

h2 {
  font-size: 32px;
}

.main-nav {
  background-color: rgba(255, 255, 255, .85);
  border-bottom: 1px solid #ccc;
  position: fixed;
  min-width: 100%;
  z-index: 1;
}

.main-nav button {
  display: none;
  border-radius: 2px;
  z-index: 2;
}

.mobile-nav {
  display: block;
}

.logo {
  background: transparent url(../images/family-crest-sml.png) no-repeat scroll 0 0;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
  float: left;
  margin: 10px 0 10px 20px;
  min-height: 55px;
  padding-left: 45px;
  text-align: center;
  width: 360px;
}

.logo a {
  color: #333;
  display: block;
  font-family: 'marcellus sc', serif;
  font-size: 21px;
  position: relative;
  text-decoration: none;
  text-shadow: 1px 0 0 rgba(0, 0, 0, .2);
  top: 3px;
  z-index: 1;
}

nav {
  color: #666;
  position: fixed;
  min-width: 100%
}

nav ul {
  list-style: none;
  float: right;
  margin: 0;
  padding: 0;
}

dt,
nav,
nav a,
nav li,
nav ul,
.donate-now,
.hero div,
.open-button,
.main-nav {
  transition: all .25s;
}

nav li {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
  float: left;
  padding: 3px 0 2px 0;
}

nav a {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
  color: #666;
  display: block;
  padding: 25px;
  text-decoration: none;
  white-space: nowrap;
}

.donate-now {
  background-color: #4173c9;
  background-image: linear-gradient(to top, #5e8ee4, #4173c9);
  min-height: 100%;
  width: 0;
}

.donate-now a {
  color: #fff;
}

.donate-now:hover {
  background-color: #396bbc;
  background-image: linear-gradient(to top, #5587d7, #396bbc);
}

nav li:hover {
  background-color: #efefef;
}

.open-button {
  width: 160px;
}

.main-nav.highlight-nav {
  background-color: #fff;
}

.app-form-thank-you {
  display: none;
  padding: 20px 0;
  text-align: center;
}

.show-thank-you {
  display: block;
}

.hide-app-form {
  display: none;
}

.background {
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

.hero {
  background: transparent url(../images/hero-home.jpg) no-repeat scroll 0 0;
  background-size: cover;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
  min-height: 550px;
  padding-top: 125px;
}

.hero.family {
  background-image: url(../images/hero-reunion.jpg);
  background-position: 0 center;
}

.hero.apply {
  background-image: url(../images/hero-application.jpg);
  background-position: 0 center;
}

.scholar-name {
  white-space: nowrap;
}

.hero.scholars {
  background-image: url(../images/hero-scholars.jpg);
  background-position: 0 center;
}

.hero.donors {
  background-image: url(../images/hero-donors.jpg);
  background-position: 0 center;
}

.hero div {
  background-color: rgba(255, 255, 255, .85);
  border: 1px solid #efefef;
  box-shadow: 1px 1px 1px #ccc;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
  float: right;
  margin-right: 4.5%;
  max-width: 300px;
  padding: 20px;
}

.hero h2,
.hero h3 {
  color: #666;
  text-align: center;
  text-shadow: 1px 0 0 rgba(0, 0, 0, .2);
}

.hero h2 {
  color: #333;
  font-size: 35px;
}

.hero h3 {
  font-size: 26px;
  margin-top: 20px;
}

.cta,
.read-more {
  background-color: #4173c9;
  background-image: linear-gradient(to top, #5e8ee4, #4173c9);
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: 'open sans', arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.54;
  padding: 7px 12px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .08);
}

.cta:hover, 
.cta:focus {
  background-color: #396bbc;
  background-image: linear-gradient(to top, #5587d7, #396bbc);
}

.read-more:hover,
.read-more:focus {
  background-color: #bbb;
  background-image: linear-gradient(to top, #bbb, #ddd);
}

.read-more {
  background-color: #ccc;
  background-image: linear-gradient(to top, #ccc, #efefef);
  border: 1px solid #ccc;
  color: #666;
  font-size: 12px;
}

.read-more span {
  font-size: 19px;
  line-height: 0;
  position: relative;
  top: 2px;
  left: 3px;
}

section {
  margin: 20px auto 40px;
  max-width: 960px;
  padding: 0 20px;
}

dt {
  font-style: italic;
}

dt a {
 display: block;
 padding: 25px;
}

dt:hover {
 background-color: #efefef;
}

dt,
dd {
  border: 1px solid #efefef;
  border-top: 0;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
  cursor: pointer;
}

dt:first-child {
  border-top: 1px solid #efefef;
}

dd {
  background-color: rgba(239, 239, 239, .3);
  box-shadow: 1px 1px 1px #ccc;
  margin: 0;
  padding: 25px;
}

.faq-selected {
  background-color: #4173c9 !important;
  background-image: linear-gradient(to top, #5e8ee4, #4173c9);
  color: #fff;
}

.album-img-container {
  border: 1px solid #ccc;
  float: left;
  height: 215px;
  line-height: 0;
  margin: 0 10px 10px 0;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 175px;
}

.album-img {
  height: 225px;
  left: -9999px;
  margin: auto;
  position: absolute;
  right: -9999px;
}

.family-history .album-img {
  bottom: -9999px;
  top: -9999px;
}

.outer-circle {
  border-radius: 50%;
  box-shadow: 0 0 21px 1px rgba(0, 0, 0, .25);
  height: 160px;
  margin: 0 auto 10px;
  width: 160px;
}
.inner-circle {
  background: #fff url(../images/stats-plant.png) no-repeat center center;
  border-radius: 50%;
  box-shadow: inset 0 0 27px 4px rgba(109, 109, 109, .69);
  height: 150px;
  margin: 0 auto;
  position: relative;
  top: 5px;
  width: 150px;
}

.stats {
  list-style: none;
  margin: 0;
  overflow: hidden;
  padding: 15px;
}

.stats a {
  color: #333;
  text-decoration: none;
}

.stats li {
  float: left;
  text-align: center;
  width: 33%;
}

.stats h3 {
  margin: 0 auto;
  max-width: 135px;
}

.family-story h3 {
  font-style: italic;
  color: #666;
}

.stats-hands {
  background-image: url(../images/stats-hands.png);
}

.stats-plant {
  background-position: center 10px;
}

.stats-books {
  background-image: url(../images/stats-books.png);
  background-position: center 15px;
  background-size: 90%;
}

.album {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
}

.donor-facts {
  overflow: hidden;
  padding-bottom: 15px;
}

.donor-facts li {
  float: left;
  height: 45px;
  list-style: none;
  margin: 15px 15px 0 0;
  outline: 1px solid #ccc;
  padding: 10px;
  position: relative;
  width: 190px;
}

.donor-facts p {
  margin: 0;
}

p.donor-count {
  bottom: 0;
  font-weight: bold;
  padding-bottom: 10px;
  position: absolute;
}

@media (max-width: 1040px) {
  nav a {
    font-size: 15px;
    padding: 27px 15px;
  }
  
  .open-button {
    width: 120px;
  }  
}

footer {
  background-color: #363636;
  background-image: linear-gradient(#333, #444 3%, #444 97%, #333 100%);
  overflow: hidden;
}

footer a, 
footer p {
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.google-utilities {
  background-color: #666;
  border-bottom: 1px dashed #ccc;
  list-style: none;
  margin: 0;
  overflow: hidden;
  padding: 20px 40px;
}

.google-utilities li:first-child {
  float: left;
  margin-top: 5px;
  width: 30px;
}

.google-utilities li {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
  float: right;
  padding-top: 3px;
  width: 300px;
}

.google-utilities * {
  font-size: medium;
}

.cse .gsc-control-cse, 
.gsc-control-cse {
  padding: 0 !important;
}

.fancybox-opened {
  min-width: 400px;
  width: 400px;
}

@media (max-width: 830px) {
  .logo {
    background: none;
    float: none;
    margin: 10px auto;
    padding-left: 0;
    width: 320px;
  }
  
  .logo a {
    padding-left: 25px;
  }
  
  nav ul {
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .6);
    display: none;
    float: none;
  }
  
  nav li {
    background-color: #fff;
    border-top: 1px solid #efefef;
    float: none;
    text-align: center;
  }
  
  .main-nav button {
    background-image: linear-gradient(to top, #5e8ee4, #4173c9);
    border: 0;
    color: #fff;
    display: inline-block;
    height: 50px;
    left: 50%;
    margin-left: -200px;
    position: absolute;
    top: 13px;
    width: 50px;
  }

  .main-nav button:active,
  .main-nav button:focus {
    outline: none;
  }
  
  .donate-now {
    width: auto;
  }   
}

@media (max-width: 750px) {
  .main-nav,
  .hero div {
    background-color: rgba(255, 255, 255, .9);
  }
  
  .hero div {
    float: none;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .stats li {
    margin-bottom: 20px;
    width: 100%;
  }
  
  .hero div {
    float: none;
    margin: 0 auto;
  }
}