/*
 * HTML5 Boilerplate
 *
 * 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;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

a {
    color: #00e;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #06e;
}

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

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

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

body{
  color:#333;
  background:#fff;
  font-family: sans-serif;
  text-align:center;
}

.topbar{
  position:relative;
  width:100%; height:45px;
  background:#327fbb url(../img/bg@2x.png) repeat-x;
  -webkit-background-size:5px 320px;
  background-size:5px 320px;
}
.topbar h1{
  width:135px; height:24px;
  margin:0 auto; padding:10px 0 6px;
}
.topbar h1 a{
  display:block;
  width:135px; height:24px;
  text-align:left;
  overflow:hidden;
  text-indent:-300px;
  background:transparent url(../img/sprite@2x.png) -150px -50px no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
}
.topbar .btn{
  position:absolute;
  display:block;
  width:35px; height:30px;
  top:7px;
  background:transparent url(../img/sprite@2x.png) no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
}
.topbar .btn-nav{
  background-position:-50px 0;
  left:5px;
}
.topbar .btn-app{
  background-position:-100px 0;
  width:40px;
  right:5px; top:6px;
}

.nav{
  position:relative;
  width:100%; height:0;
  overflow:hidden;
  text-align:left;
  -webkit-transition:all .5s ease-in-out;
  -moz-transition:all .5s ease-in-out;
  -ms-transition:all .5s ease-in-out;
  -o-transition:all .5s ease-in-out;
  transition:all .5s ease-in-out;
}
.nav-on{
  height:295px;
  border-bottom:1px solid #000;
}
.nav-on:after{
  content:"";
  width:100%; height:5px;
  position:absolute;
  left:0; top:-5px;
  -webkit-box-shadow:0 2px 5px rgba(0,0,0,.25);
  -moz-box-shadow:0 2px 5px rgba(0,0,0,.25);
  box-shadow:0 2px 5px rgba(0,0,0,.25);
}
.nav ul{
  list-style:none;
  margin:0; padding:0;
  position:absolute;
  left:0; bottom:0;
  width:100%;
  border-bottom:2px solid #184585;
  -webkit-box-shadow:0px 1px #000;
  -moz-box-shadow:0px 1px #000;
  box-shadow:0px 1px #000;
}
.nav li{
  margin:0; padding:0;
  height:40px;
  background:#205e90;
  border-top:1px solid #487fad;
  border-bottom:1px solid #092f62;
  color:#fff;
  font-size:16px;
  overflow:hidden;
}
.nav li:last-child{
  border-bottom-color:#5cb2fa;
}
.nav a{
  display:block;
  line-height:1;
  height:16px;
  margin:0; padding:12px 0;
  font-weight:bold;
}
.nav a, .nav a:link, .nav a:visited{
  color:#fff;
  text-decoration:none;
}
.nav a:before{
  content:"";
  display:inline-block;
  width:26px; height:24px;
  margin:-4px 10px -4px 15px;
  background:transparent url(../img/sprite@2x.png) no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
  vertical-align:bottom;
}
.nav-home a:before{ background-position:-4px -2px }
.nav-rules a:before{ background-position:-4px -42px }
.nav-features a:before{ background-position:-4px -80px }
.nav-faq a:before{ background-position:-4px -121px }
.nav-apply a:before{ background-position:-4px -161px }
.nav-promo a:before{ background-position:-4px -201px }
.nav-fb a:before{ background-position:-4px -241px }

.title{
  margin-bottom:-4px;
  position:relative;
  width:100%; height:65px;
  z-index:100;
  background:transparent url(../img/bg@2x.png) 0 -45px repeat-x;
  -webkit-background-size:5px 320px;
  background-size:5px 320px;
  text-align:left;
}
.title:after{
  content:"";
  display:block;
  width:41px; height:41px;
  position:absolute;
  left:5px; top:10px;
  background:transparent url(../img/sprite@2x.png) -50px -100px no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
}
.title-features:after{ background-position:-50px -150px }
.title-faq:after{ background-position:-50px -200px }
.title:before{
  content:"";
  display:block;
  width:13px; height:10px;
  position:absolute;
  left:50%; bottom:-6px;
  margin-left:-7px;
  background:transparent url(../img/sprite@2x.png) -150px 0 no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
}
.title h2{
  margin:0; padding:22px 0 22px 53px;
  height:18px;
  line-height:1;
  font-size:18px;
  color:#000;
}
.page-features .title h2{
  height:48px;
  padding-top:14px;
  padding-bottom:0;
}
.title h2 .caption{
  display:block;
  line-height:18px;
  font-size:13px;
  font-weight:normal;
  color:#444;
}

.content{
  padding:20px 0;
  text-align:left;
  position:relative;
  z-index:50;
  font-size:13px;
  line-height:1.4;
}
.page-features .content{
  padding-top:0;
}
.intro{
  background:#d1e8f3;
  padding:15px 10px 10px;
}

/* accordions */
.acd{
  height:auto;
  overflow:hidden;
}
.acd-off{
  height:31px;
}
.acd h3, .fake-acd h3{
  position:relative;
  margin:10px 15px; padding:4px 0 4px;
  height:13px;
  white-space:nowrap;
  color:#fff;
  font-size:13px;
  line-height:1;
  background:transparent url(../img/bg@2x.png) 0 -150px repeat-x;
  -webkit-background-size:5px 320px;
  background-size:5px 320px;
}
.acd h3:before,
.fake-acd h3:before{
  content:"";
  display:block;
  width:10px; height:21px;
  position:absolute;
  left:-10px; top:0;
  background:transparent url(../img/sprite@2x.png) -50px -50px no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
}
.acd h3:after,
.acd-off h3:after,
.fake-acd h3:after{
  content:"";
  display:block;
  width:20px; height:21px;
  position:absolute;
  right:-10px; top:0;
  background:transparent url(../img/sprite@2x.png) -80px -50px no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
}
.fake-acd h3:after{
  width:10px;
  background-position:-90px -50px;
}
.acd h3:after{
  width:20px;
  background-position:-80px -75px;
}
.acd-off h3:after{
  width:20px;
  background-position:-80px -50px;
}
.fake-acd .bd,
.acd .bd{
  padding:0 15px;
  font-size:13px;
}
.fake-acd .p,
.acd p{
  margin:0 0 15px;
}

/* page-home */
.page-home{
  background-color:#adadad;
}
.home-bd{
  margin:0 auto;
  background:#fff url(../img/bg-home.jpg) center top no-repeat;
  min-width:320px; max-width:520px;
  -webkit-background-size:520px 300px;
  background-size:520px 300px;
}
.home-bd img{
  display:block;
  margin:0 auto;
  width:340px;
  height:auto;
}
@media (max-width:340px){
  .home-bd img{
    margin:0 -10px;
  }
}
@media (min-width:520px){
  .home-bd{
    max-width:100%;
    -webkit-background-size:cover;
    background-size:cover;
  }
}
@media (min-height:500px){
  .home-bd{
    padding-top:40px;
  }
}
.tute{
  position:absolute;
  left:0; top:0;
  min-width:320px;
  width:100%;
  display:none;
}
body.show-tute .wrapper{
  display:none;
}
body.show-tute .tute{
  display:block;
}
.tute img{
  display:block;
  width:320px; height:auto;
}

/* page-features */
.feat h3{
  position:relative;
  margin:10px 10px; padding:0;
  height:50px;
  background:transparent url(../img/bg@2x.png) 0 -200px repeat-x;
  -webkit-background-size:5px 320px;
  background-size:5px 320px;
}
.feat h3 span{
  display:block;
  width:145px; height:50px;
  background:transparent url(../img/features@2x.png) 0 0 no-repeat;
  -webkit-background-size:145px 300px;
  background-size:145px 300px;
  text-indent:-300px;
  margin-left:-5px;
}
#f2 span{ background-position:0 -50px }
#f3 span{ background-position:0 -100px }
#f4 span{ background-position:0 -150px }
#f5 span{ background-position:0 -200px }
#f6 span{ background-position:0 -250px }
.feat h3:before{
  display:block;
  content:"";
  width:5px; height:50px;
  position:absolute;
  right:-5px; top:0;
  background:transparent url(../img/sprite@2x.png) -100px -100px no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
}
.feat h3:after{
  display:block;
  content:"";
  width:13px; height:9px;
  position:absolute;
  left:50%; bottom:-6px;
  margin-left:-7px;
  background:transparent url(../img/sprite@2x.png) -200px 0 no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
}
.feat .bd{
  margin:0 6px 10px 5px;
  padding:0 4px 5px 5px;
  border-bottom:1px dotted #999;
}
.feat p{
  margin:0 0 10px;
}
.feat .em{
  color:#29678e;
}

/* page-rules */
.page-rules ol{
  margin:5px 0; padding:0;
  list-style:decimal;
}
.page-rules ol ol{
  list-style:upper-alpha;
}
.page-rules ol li{
  margin:0 0 0 30px; padding:3px 0;
}
.page-rules .em{
  color:#c50000;
}
ul.gifts{
  list-style:none;
  margin:0 auto; padding:0;
  width:300px;  
}
@media (max-width:340px){
  ul.gifts{
    margin:0 -5px;
  }  
}
ul.gifts:after{
  content:" ";
  line-height:1px;
  height:1px;
  clear:both;
}
ul.gifts li{
  margin:6px 4px; padding:0;
  width:90px; height:105px;
  -webkit-border-radius:5px;
  -moz-border-radius:5px;
  border-radius:5px;
  border:1px solid #d4d4d4;
  color:#494949;
  background:#ebebeb;
  float:left;
}
ul.gifts img{
  display:block;
  width:86px; height:66px;
  -webkit-border-radius:5px 5px 0 0;
  -moz-border-radius:5px 5px 0 0;
  border-radius:5px 5px 0 0;
  border:2px solid #fff;
}
ul.gifts .caption{
  padding-top:5px;
  width:90px;
  font-size:12px;
  line-height:1;
  text-align:center;
  overflow:hidden;
}
ul.gifts .hide{
  display:none;
}
a.gifts-more, a.gifts-less{
  margin:5px;
  display:block;
  color:#494949;
  font-size:12px;
  line-height:14px;
  height:14px;
  text-align:right;
  text-decoration:none;
}
a.gifts-more:after,
a.gifts-less:after{
  content:" ";
  width:13px; height:13px;
  display:inline-block;
  margin-left:5px; margin-top:1px;
  background:transparent url(../img/sprite@2x.png) -150px -25px no-repeat;
  -webkit-background-size:320px;
  background-size:320px;
  vertical-align:bottom;
}

/* page-faq */
.page-faq .bd{
  padding:0 10px;
}
.page-faq .bd p{
  margin:0 0 5px;
  padding:3px 5px;
}
.page-faq p.q{
  margin-bottom:1px;
  color:#000;
  background:#d1e8f3;
}
.page-faq p.em{
  color:#29678e;
}
.page-faq .bd ul{
  margin:5px 0; padding:0;
  list-style:square;
}
.page-faq .bd li{
  margin:0 0 0 30px; padding:3px 0;
}


.footer{
  position:relative;
  width:100%;
  text-align:left;
  font-size:9px;
  line-height:1.25;
  color:#fff;
  background:#adadad;
}
.footer p{
  margin:0;
}
.footer p.notes{
  padding:10px 5px 0 70px;
}
.footer p.sosume{
  padding:5px 5px 10px;
}
.footer .slogan{
  position:absolute;
  left:5px; top:10px;
  width:60px;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
}
.footer a, .footer a:link, .footer a:visited{
  color:#fff;
}










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

/* Prevent callout */

.nocallout {
    -webkit-touch-callout: none;
}

.pressed {
    background-color: rgba(0, 0, 0, 0.7);
}

/* A hack for HTML5 contenteditable attribute on mobile */

textarea[contenteditable] {
    -webkit-appearance: none;
}

/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if
   they have been set as display: none */

.gifhidden {
    position: absolute;
    left: -100%;
}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    background-repeat: no-repeat;
    border: 0;
    direction: ltr;
    display: block;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
}

.ir br {
    display: none;
}

/*
 * 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 helper
 * Used to contain floats: h5bp.com/q
 */

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.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.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

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

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for viewports that meet the condition */
}
