html, body, header {
  position: relative;
  height: 100%;
}
header { height: 85%; min-height: 500px; }

header .main-content {
  position: absolute;
  bottom: 10%;
  width: 35%;
  margin-left: -5%;
  overflow: hidden;
}
header .main-content span:first-child { display: block; margin-bottom: 0.5em; }

header nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    line-height: 44px;
    padding-top: 0.5;
    background: #fbfcfd;
    border-bottom: 5px solid #00a4ff;
    z-index: 10;
}

header nav a {
    display: inline-block;
    margin: 0.5em 0;
    padding: 0 0.5em;
    font-size: 1.25em;
    line-height: 1.1;
    color:#0083cc;
    border-right: 1px solid #0083cc;
    vertical-align: middle;
}
header nav a:hover { color: #00a4ff; }
header nav a:last-of-type { border-right: none; }

#ebuddy-logo {
    width: 110px;
    height: 44px;
    /*vertical-align: -5px;*/
    /*margin-top: 0.5em;*/
    margin-right: 2.5em;
    border: none;
    background: url("../images/ebuddy_logo.gif");
    overflow: hidden;
    text-indent: -1000px;
}
header .language-bar{
  position: absolute;
  right: 0;
  top: 15px;
  z-index: 8;
}

header .language-bar select {
  position: relative;
  top: 0;
  right: .5em;
  font-size: 1em;
}

header .language-bar h4{
  position: absolute;
  top: 0;
  right: 0;
  width: 12em;
  padding: 0 10px;
  font-size: 1em;
  line-height: 2em;
  cursor: pointer;
  /*color: #fff;*/
  background-image: url(../images/controls-sprite.png);
  background-repeat: no-repeat;
  background-position: 145px -723px;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    /*-webkit-border-radius: 0 0 5px 5px; *//* Safari 3-4, iOS 1-3.2, Android ≤1.6 */
    /*border-radius: 0 0 5px 5px; *//* Opera 10.5, IE9+, Safari 5, Chrome, Firefox 4+, iOS 4, Android 2.1+ */

    /* useful if you don't want a bg color from leaking outside the border: */
    /*-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;*/

  border: 1px solid #ddddde;
}

header .language-bar .language-container {
  display: none;
  width: 12em;
  margin-top: 2.1em;
  /*background-color: rgba(0, 0, 0, 0.5);*/
  background-color: #fbfcfd;
  border: 1px solid #ddddde;
    border-top: none;
}
header .language-bar  a{
  display: block;
  padding: 5px 10px;
  vertical-align: middle;
  font-size: 1em;
  text-decoration: none;
  border: none;

}
header .language-bar a:hover,
header .language-bar a.current{
  background-color: #dcdddf;
}

header h1, header h2, header .button-wrapper {
  margin-bottom: 2px;
  padding: 0.4em;
  background-color:rgba(0,0,0,0.5);
  border-radius: 4px;
}
header .logo,
footer .logo {
  display: inline-block;
  margin-bottom: -6px;
  font-size: 1em;
  line-height: 1;
  background-image: url(../images/logo-sprite.png);
  background-repeat: no-repeat;
  text-indent: -10000px;
  overflow: hidden;
  cursor: pointer;
}
header .logo {
  height: 38px;
  width: 140px;
  background-position: -32px top;
}

header h2, .about h2 { color: #fff; }
header .button-wrapper {
  float: right;
  min-width: 55%;
}
header .button-wrapper .button {
  display: block;
  white-space: nowrap;
}
header .animation-content {
  display: block;
  position: absolute;
  bottom: 0px;
  width: 467px; /* fixed until max-width 676px, then hide */
  height: 500px;
  max-width: 600px;
  margin: 0 6% 0 0;
}
header .animation-content img {
  width: 100%;
}
header #android-xms { display: none; }
header .border {
  position: absolute;
  bottom: 0;
  height: 5px;
  width: 100%;
  background-color: #00a4ff;
  z-index: 10;
}
header img.bg { display: none; }

header > div {
  z-index: 5;
}
header .bg-image,
header .bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
header, header .bg-image {
  background-image: url(../images/background/onthemove.jpg);
  background-size: cover;
}
header .bg-image { z-index: 1; }
header .bg-image.nextimage{ display: none; }

header .bg-pattern {
  background-image: url(../images/bg-pattern.png);
  z-index: 2;
}

/* #xms-platforms */
.platforms {
  text-align: center;
}
.platforms li {
  display: inline-block;
  margin: 0 1.875em;
}
.platforms li a {
  display: block;
  height: 54px;
  width: 54px;
  background-repeat: no-repeat;
  background-image: url(../images/logo-sprite.png);
  background-color: #ccc;
  overflow: hidden;
  text-indent: -1000px;
}
.platforms li a:hover { background-color: #999; }
.platforms li a:active { background-color: #00a4ff; }

.platforms a.ios    { background-position: center -48px; }
.platforms a.android  { background-position: center -112px; }
.platforms a.windows  { background-position: center -176px; }
.platforms a.blackberry { background-position: center -241px; }
.platforms a.nokia   { background-position: center -306px; width: 198px; }

/* #xms-platforms */




/* #xms-features */

.features {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  background-color: #fbfcfd;
}
.features h2 {
  margin: 0 0 0.2em;
  line-height: 1;

  text-align: center;
}
.features p {
  margin: 0 0 4%;
  color: #ccc;
  text-align: center;
}
.features p.subheader{
  padding: 0 10px;
}
/* #xms-features */




/* #webxms */
.webxms {
  position: relative;
  z-index: 10;
  overflow: visible;
}
.webxms .logo {
  height: 83px;
  line-height: 83px;
}
.webxms .logo img { width: 331px; vertical-align: bottom; }

.webxms .subheader:first-of-type { margin-bottom: 1.5em; }
.webxms .button { display: block; }
.webxms .web-link { display: none; }
.webxms figure {
  position: absolute;
  height: 105%;
  bottom: 0;
  right: -10px;
  text-align: right;

}
.webxms figure .img.screens {
  xbackground-image: url(../images/screens.png)
}
/* #webxms */



/* footer */

footer, .about {
  background-color: #00a4ff;
}
footer {
  border-bottom: 1px solid #0083cc;
  /*font-size: 0.75em;*/
}
footer .content-wrapper {
  width: 94%;
  margin-bottom: 0;
}
footer nav {
    float: left;
    line-height: 2.4em;
    color:#fff;
}
footer nav a {
  display: inline-block;
  padding: 0 0.4em 0 0.5em;
  line-height: 17px;
  border-left: 1px solid;
}
footer .logo, footer .copyright {
  float: left;
  margin-right: 0.8em;
  border-left: none;
}
footer .logo {
  width: 45px;
  height: 42px;
  background-position: -82px -663px;
}

footer nav .hide-for-small { display: inline;}
.social-links { padding-top: 0.6em; float: left; }
.social-links > div {
  float: right;
  margin-left: 10px;
}
.about {
  display: none;
  position: relative;
  border-top: 1px solid #00c0ff;
}
.about figure img { margin-left: -18px; }
.about p {
  width: 85%;
  color: #fff;
}
.about .ninety { margin: 1em 0 0; }
.about .button.secondary { white-space: nowrap; font-size: 1em; }

/* footer */



.scroll-icon {
  position: absolute;
  bottom: 10px;
  overflow: hidden;
  width: 38px;
  height: 37px;
  background-color: rgba(0,0,0,0.3);
  background-image: url(../images/controls-sprite.png);
  background-repeat: no-repeat;
  border-radius: 4px;
}
.scroll-icon:hover { background-color: rgba(0,0,0,0.5); }
.scroll-icon:active { background-color: rgba(0,0,0,0.6); }

.scroll-top {
  right: 1em;
  background-position: -11px -851px;
}
.scroll-down {
  margin-right: -19px;
  background-position: -11px -893px;
  background-color: rgba(0,0,0,0.4);
  z-index: 3;
}
.popup-overlay { display: none; }




/* Small display targeting */
@media only screen and (max-width: 1010px) {

  h2 { font-size: 2.375em; }
  .button { font-size: 1.5em; }
  .global-padding { padding: 30px 0; }
  .global-half-padding { padding: 15px 0; }

  .webxms figure {
    position: absolute;
    height: 100%;
    bottom: 0;
    right: -10px;
    text-align: right;

  }
  .webxms figure .img.screens {
    position: absolute;
    bottom: 0;
    height: 0;
    padding-top: 90%;
    background-position: center bottom;
    background-image: url(../images/screens.png)
  }

  footer .row .columns { float: none; width: auto; }

  .about .button.secondary { font-size: 1em; }
  .ninety, .row .ninety { width: 100%; }

}
