/*
color: #053773;
*/

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(../fonts/sourcesanspro-300.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/sourcesanspro-400.woff) format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/sourcesanspro-600.woff) format('woff');
}


/* Reset
-------------------------------------------------- */
*, *:before, *:after {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
  display: block;
}


/* Pix
-------------------------------------------------- */
img {
  display: block;
  max-width: 100%;
}


/* Links
-------------------------------------------------- */
a {
  color: #000;
  text-decoration: none;
  transition: .2s all;
}
a:hover {
  color: #053773;
  transition: .2s all;
}
a:active {
  position: relative;
  top:1px;
  left:1px;
  transition: .2s all;
}


/* Clearfix
-------------------------------------------------- */
.cf:after {
  content: "";
  display: table;
  clear: both;
}


/* Site
-------------------------------------------------- */
html {
  height: 101%;
  font-family: "Source Sans Pro", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  margin: 0 auto;
  font-size: 1.25em;
  line-height: 1.5em;
  background: #ccc;
  color: #222;
}


/* Header
-------------------------------------------------- */

.header {
  background:white;
  padding:2em;
  z-index:10;
  position:relative;

  border-bottom: 3px solid #053773;
}

.logo {
  display: block;
}
.logo img {
  width: 200px;
}

@media (max-width:640px) {
  .header {
    padding:.5em;
  }
  .logo {
    text-align: center;
    display:block;
  }
  .logo img {
    display:inline-block;
  }
}



/* Navigation
-------------------------------------------------- */

.menu {
  text-align: center;
}

.menu a {
  color: #222;
  text-transform: uppercase;
}

.menu a small {
  color:#aaa;
  text-transform: none;
  font-weight:normal;
}

.menu a:hover {
  color: #053773;
  text-decoration: none;
}

.menu .active {
  color: #053773;
  background:#eee;
}

.menu li {
  list-style: none;
  padding:0 .5em;
}


.menu > li {
  position: relative;
  display:inline;
}

.menu small {
  display:none;
}

.menu > li > a {
  padding: .5em;
  font-size:.8em;
  font-weight: 600;
  line-height:1.3;
}


@media screen and (min-width: 640px) {
  .logo {
    float: left;
  }
  .menu {
    float: right;
    text-align: left;
    margin-right: -1em;
  }
  .menu > li {
    float: left;
    padding:0 .2em;
  }

  .menu small {
    display:inline;
  }

  .menu > li > a {
    padding: 1em;
    display: block;
    border: 1px solid transparent;
    border-radius: 3px;
  }

  .menu > li > a:hover {
    border: 1px solid #053773;
  }

}


/* Headings
-------------------------------------------------- */
h1 {
  font-size: 2.2em;
  line-height: 1em;
  margin-bottom: 1em;
  text-align: center;
}
h2 {
  font-size: 2em;
  line-height: 1.25em;
  font-weight: 300;
  margin-bottom: .5em;
  color: #053773;
}
h3 {
  font-size: 1.4em;
  line-height: 1.5em;
  font-weight: 400;
  margin-bottom: .5em;
}
h4 {
  font-size: 1.125em;
  font-weight: 600;
  line-height: 1.5em;
  margin-bottom: .5em;
  color: #053773;
}
h1 a, h2 a, h3 a, h4 a {
  color: inherit;
  border: none;
}


/* Main
-------------------------------------------------- */

.banner {
  background: url(header2.jpg) no-repeat center center fixed;
/*  background: #053773;
  background:white;
*/  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;

  font-size:1.6em;
  padding:2em;
  color:white;
  text-align:center;
}

@media (max-width:640px) {
  .banner {
    padding:1em;
  }
}


.banner h1 {
  margin:0 0 .5em 0;
  text-align: center;
}

.banner .text {
  font-weight:300;
  line-height:1.2;
  text-shadow: 0px 0px 10px black;
}

.banner ul {
  list-style: none outside none;
  margin:0;
  padding:0;
  position:relative;
  height:2.6em;
}

.banner ul li {
  margin:0;
  padding:0;
  position:absolute;
  width:100%;
  font-size:1.3em;
}

@media (max-width:600px) {

  .banner {
    font-size:1em;
  }

}

.main {
  background:#fff;
  margin:0 auto;
  padding: 3em 2em 1em 2em;
  overflow:hidden;
}

@media (max-width:640px) {
  .main {
    padding: 1em;
  }
}


.main hr {
  margin: 3em 0;
  height: 2px;
  background: #ddd;
}
.main p,
.main figure,
.main ul,
.main ol {
  margin-bottom: 1.5em;
}
.main a {
  border-bottom: 2px solid #ddd;
}
.main a:hover {
  border-color: #222;
}

/* Text blocks */
.text ul,
.text ol {
  margin-left: 1em;
}

@media (max-width:900px) {
  .text {
    font-size: .9em;
    line-height: 1.4;
  }
}

@media (max-width:640px) {
  .text {
    font-size: .8em;
    line-height: 1.4;
  }
}

.text-center {
  text-align: center;
}

.text figure{
  float:right;
  margin: 0 0 1em 1em;
}

.text figure img{
  max-width:500px;
}

.text figure1{
  float:right;
  margin: 0 0 1em 1em;
}

.text figure1 img{
  max-width:400px;
}

@media (max-width:800px) {
  .text figure {
    width:100%;
    margin:0 0 1em 0;
    text-align: center;
  }
  .text figure img{
    max-width:300px;
    width:100%;
    display:inline-block;
  }
}

@media (max-width:600px) {
  .text figure img{
    width:100%;
    max-width:none;
    float:left;
  }
}

hr {
  overflow: hidden;
  clear:both;
  margin:1em 0;
}

.icons-row {
  list-style: none outside none;
  margin:0;
  padding:0;
}

.icons-row li {
  width:33%;
  float:left;
  text-align:center;
  padding:1em;
}

.icons-row img {
  display:inline-block;
}

@media (max-width:700px) {

  .icons-row li {
    width:100%;
    padding: 1em 0;
  }

  .icons-row img {
    width:33%;
    vertical-align: middle;
  }

  .icons-row p {
    width:60%;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
  }

}

/* Aside
-------------------------------------------------- */

aside {
  padding:3em 2em;
  border-top: 3px solid #053773;
}

@media (max-width:640px) {
  aside {
    padding: 1em;
  }
}

aside h2 {
  font-weight:bold;
  margin:0 0 1em 0;
  text-align: center;
}

.aside-block {
  float:left;
  text-align: center;
  padding:0 0 .5em 0;
}

.third {
  width:33%;
}

.full {
  width:100%;
}

.half {
  width:50%;
}

@media (max-width:640px) {
  .third, .half {
    width:100%;
  }
}

.aside-block img {
  width:50px;
  height:auto;
}

.aside-block figcaption,
.aside-block img {
  display:inline-block;
  vertical-align: middle;
}


/* Footer
-------------------------------------------------- */
.footer {
  padding: 1em 0 3em;
  font-size: .8em;
  background:#053773;
  color:white;
}

.footer a {
  color:white;
  text-decoration: underline;
}

.footer .footer-wrap {
  margin:auto;
  padding: 0 2em;
}

.footer-text {
  text-align: center;
  line-height:1.3;
}

.colophon {
  float: right;
}
.colophon a b {
  color: white;
  padding-left: .25em;
}

.footer-logo {
  text-align:center;
  padding:1em;
}

.footer-logo img {
  display:inline-block;
}


/*

Animations

*/

.animated {
  -webkit-animation-duration: 1s;
  -moz-animation-duration: 1s;
          animation-duration: 1s;
  -moz-animation-fill-mode: both;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}


@-webkit-keyframes fadeInLeftBig {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-2000px, 0, 0);
            transform: translate3d(-2000px, 0, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes fadeInLeftBig {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-2000px, 0, 0);
            transform: translate3d(-2000px, 0, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

.fadeInLeftBig {
  -webkit-animation-name: fadeInLeftBig;
  -moz-animation-name: fadeInLeftBig;
          animation-name: fadeInLeftBig;
}


@-webkit-keyframes bounceInUp {
  0%, 60%, 75%, 90%, 100% {
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 3000px, 0);
            transform: translate3d(0, 3000px, 0);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, -20px, 0);
            transform: translate3d(0, -20px, 0);
  }

  75% {
    -webkit-transform: translate3d(0, 10px, 0);
            transform: translate3d(0, 10px, 0);
  }

  90% {
    -webkit-transform: translate3d(0, -5px, 0);
            transform: translate3d(0, -5px, 0);
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}
