* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: white;
  font-family: proxima-nova, Lato, sans-serif;
}

a {
  color: #506DDB;
  text-decoration: none;
}

p {
  line-height: 150%;
}

.container {
  background: #E5E6D8;
}

.banner {
  height: 390px;
  background: url(../images/kitcoder-banner.jpg) repeat-x;
}

.intro-text {
  font-size: 18px;
  line-height: 150%;
  margin: 30px 49px 15px 0;
}

.intro-text p:first-child {
  font-size: 18px;
}

.intro-text p {
  font-size: 16px;
  margin: 0 0 10px;
}

.main-title a {
  display: block;
  text-indent: 10000px;
  overflow: hidden;
  height: 100px;
  width: 351px;
  background: url(../images/kitcoder-logo.png) no-repeat;
  margin: 44px auto 60px;
  background-size: cover;
}

.top-stuff {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
}

#work-in-progress {
  position: absolute;
  bottom: -90px;
  right: 10px;
  opacity: 0.6;
}
 
.top-stuff a.scroll-down {
  display: block;
  text-align: center;
  font-size: 20px;
  color: #063B57;
}

.video-preview {
  margin-top: 32px;
  padding: 40px 0;
  background: white;
  border-top: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
  max-width: 100%;
  overflow: hidden;
}

.video-preview h2 {
  font-size: 44px;
  margin-bottom: 0;
  line-height: 100%;
  font-weight: 700;
  text-align: center;
}

.video-preview p, .video-preview a {
  text-align: center;
  font-weight: 100;
  font-size: 24px;
  margin: 15px 0;
}

.video-preview a {
  color: #506DDB;
  text-decoration: none;
  display: block;
}

.video-preview a img {
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.video-preview .images {
  margin: 40px 0 20px -450px;
  width: 900px;
  position: relative;
  left: 50%;
}

.video-preview .images img {
  display: block;
}

#devices {
  float: right;
  margin: 30px 35px 0 0;
}

#app-screenshot {
  width: 450px;
}

#app-screenshot-mobile {
  display: none;
}

section.sign-up-form {
  border-bottom: 2px solid #bbb;
  background: #ddd;
}

section.sign-up-form > div {
  padding: 15px 20px;
  margin: 0 auto;
  text-align: center;
}

form.email {
  margin: 13px 50px 0 0;
  background: #ddd;
  display: inline;
}

form.email p {
  display: inline;
  font-size: 20px;
  font-weight: bold;
}

form.email input[type=text] {
  font-size: 18px;
  position: relative; top: 1px;
  margin-right: 5px;
  padding: 5px 8px 4px;
  font-family: proxima-nova;
  border: 1px solid #aaa;
  width: 250px;
}

form.email input[type=submit] {
  background: #063B57;
  padding: 2px 15px;
  color: white;
  font-size: 15px;
  font-family: proxima-nova;
  border: none;
  border-radius: 5px;
  height: 23px;
  margin-top: 5px;
}

section.sign-up-form .share {
  display: inline-block;
  padding: 10px 0 0;
}

section.sign-up-form .share ul {
  margin: 0;
  display: inline;
  padding: 0;
}

section.sign-up-form .share li {
  list-style-type: none;
  display: inline;
  background: #063B57;
  padding: 2px 9px 1px 13px;
  min-width: 40px;
  text-align: center;
  border-radius: 5px;
  margin: 4px 2px;
}

section.sign-up-form .share a {
  color: white;
  font-size: 13px;
}

section.sign-up-form .share i {
  font-size: 15px;
}

section.intro-and-links {
  background: #eff0e4;
}

section > div {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}

.intro-and-links {
    padding: 80px 0 60px;;
}

.introduction {
  width: 600px;
  font-size: 18px;
  float: left;
}

.introduction p {
  width: 550px;
  margin: 0 0 20px 40px;
}

.intro-text p span {
  font-family: Courier, monospace;
  background: #444;
  color: #56FF71;
  padding: 1px 3px;
  white-space: nowrap;
}

.intro-and-links .links {
  width: 320px;
  line-height: 150%;
  float: left;
  padding-left: 40px;
}

.links a {
  display: block;
  margin: 0 0 30px;
  font-size: 18px;
}

.links a i.fa {
  font-size: 70%;
  padding-left: 7px;
}

section.user-benefits {
  background: white;
  border-top: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
}

section.user-benefits > div {
  background-position: 40px -40px;
}

.user-benefits h1 {
  background: url(../images/user-rails.png) repeat-y 30px 0;
  font-size: 30px;
  margin: 0;
  padding: 30px 0 10px 280px;
}

.user-benefits .bottom-space {
  background: url(../images/user-rails.png) repeat-y 30px 0;
  height: 60px;
}

.user-benefit {
  position: relative;
}

.user-benefit > img {
  position: absolute;
  top: 0; left: 30px;
}

.user-benefit > .preview {
  padding-left: 280px;
  height: 158px;
}

.user-benefit h2 {
  font-size: 28px;
  font-weight: 100;
  margin-bottom: 6px;
  margin-top: 0;
  padding-top: 25px;
}

.user-benefit p {
  font-size: 16px;
  margin: 0 0 15px;
  max-width: 600px;
}

.detail {
  padding: 30px 0 30px 280px;
  border-top: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
}

.detail.hidden {
  display: none;
}

footer > div {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 40px 30px;
  overflow: hidden;
}

footer .links {
  float: left;
  width: 50%;
  min-width: 300px;
}

footer .links a {
  display: block;
  font-size: 16px;
  padding-right: 80px;
}

footer .keep-in-touch {
  min-width: 300px;
  float: left;
}

footer .keep-in-touch a {
  display: block;
  margin: 0 0 15px;
  font-size: 18px;
}

footer .keep-in-touch a i {
  width: 25px;
}

/* ARTICLE PAGES */

nav {
  overflow: hidden;
  background: #eee;
  text-align: center;
}

nav a {
  display: inline;
}

section.article {
  border-top: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
  background: white;
  padding: 60px 0;
}

.article img {
  width: 100%;
}

section.article > div {
  max-width: 790px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
  font-size: 20px;
}

a.home {
  font-size: 80%;
}
a.home i {
  font-size: 80%;
}

/* MOBILE */

@media (max-width: 825px) {
  .top-stuff {
    display: block;
  }
  .intro-text {
    margin: 0;
  }
  #work-in-progress {
    bottom: -147px;
  }
  .main-title a {
    margin: 44px auto 55px;
  }
  
}

@media (max-width: 400px) {
  .container {
    min-width: 100%;
  }
  section > div {
    width: 100%;
  }
  .banner {
    height: 230px;
    background: url(../images/kitcoder-banner-mobile.jpg) no-repeat left bottom;
    background-size: cover;
    margin-bottom: -20px;
  }
  .top-stuff {
    margin: 0 auto;
  }
  .main-title a {
    height: 64px;
    width: 220px;
    margin: 28px auto 20px;
    background-size: 216px 64px !important;
    order: -2;
  }
  #work-in-progress {
    position: static;
    display: block;
    margin: 20px auto 0;
    z-index: 2;
  }
  .intro-text {
    font-size: 18px;
    padding: 0 20px;
    width: 100%;
  }
  .intro-text p {
    margin: 10px 0;
  }
  .top-stuff a.scroll-down {
    display: none;
  }
  .video-preview .images {
    display: none;
  }
  .video-preview h2 {
    font-size: 22px;
  }
  .video-preview p {
    font-size: 16px;
    padding: 0 10px;
    font-weight: normal;
  }
  .video-preview a {
    font-size: 22px;
  }
  #app-screenshot-mobile {
    display: block;
    width: 100%;
    margin-top: 20px;
  }
  .sign-up-form > div {
    width: 100%;
  }

  .intro-and-links {
    padding: 20px 0;
  }

  .introduction {
    width: 100%;
    padding-bottom: 30px;
  }
  .introduction p {
    width: 100%;
    padding: 10px;
    margin: 0;
  }

  .intro-and-links .links {
    display: none;
  }

  section.user-benefits > div {
    width: 100%;
  }

  .user-benefits h1 {
    background: none !important;
    padding: 40px 10px 10px;
    background: none;
  }

  .user-benefit {
    height: auto;
    margin-bottom: 40px;
  }
  .user-benefit p {
    width: 100%;
    padding-right: 10px;
  }
  .user-benefit > .preview {
    padding-left: 10px;
    height: auto;
  }

  .user-benefit h2 {
    font-size: 26px;
  }
  .user-benefit .detail {
    padding: 10px;
    border: none;
  }
  .user-benefit img {
    display: none;
  }
  .user-benefits .bottom-space {
    background: none !important;
  }

  footer > div {
    width: 100%;
    padding: 40px 0 10px 20px ;
  }

  section.article {
    padding-top: 20px;
  }

  section.article > div {
    width: 100%;
    padding: 10px;
    font-size: 18px;
  }

}

input, input:before, input:after {
  -webkit-user-select: initial;
  -khtml-user-select: initial;
  -moz-user-select: initial;
  -ms-user-select: initial;
  user-select: initial;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-moz-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 240dpi) {
   .banner                      { background: url(../images/kitcoder-banner@2x.jpg) repeat-x; background-size: 1300px 372px; } /*400px 230px*/
   .user-benefits h1            { background: url(../images/user-rails@2x.png) repeat-y 30px 0; background-size: 226px 21px; }
   .user-benefits .bottom-space { background: url(../images/user-rails@2x.png) repeat-y 30px 0; background-size: 226px 21px; }
}
@media only screen and (max-width: 400px) and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (max-width: 400px) and (min-moz-device-pixel-ratio: 1.5),
       only screen and (max-width: 400px) and (min-resolution: 240dpi) {
   .banner { background: url(../images/kitcoder-banner-mobile.jpg) repeat-x; background-size: 400px 230px; }
}


#lightbox {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.8);
}

#lightbox > div {
  position: fixed; top: 20%; left: 50%; width: 80%;
  padding-top: 45%;
  margin-left: -40%;
}

#lightbox iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
}

#top-message {
  background: yellow;
  text-align: center;
  padding: 0.2rem 1rem 0.3rem;
  border-bottom: 2px solid #9e9e00;
}
