/**
 * Stylesheet
 *
 * @namespace Lungo
 * @class Layout
 *
 * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
 */
/* DIMENSIONS */
/* COLORS */
section {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: none;
  -webkit-transition-property: opacity, z-index, -webkit-transform;
  -moz-transition-property: opacity, z-index, -moz-transform;
  -ms-transition-property: opacity, z-index, -ms-transform;
  -o-transition-property: opacity, z-index, -o-transform;
  transition-property: opacity, z-index, transform;
  -webkit-transition-duration: 300ms;
  -moz-transition-duration: 300ms;
  -ms-transition-duration: 300ms;
  -o-transition-duration: 300ms;
  transition-duration: 300ms;
  -webkit-transition-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  -moz-transition-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  -ms-transition-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  -o-transition-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  transition-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translatez(0);
  -moz-transform: translatez(0);
  -ms-transform: translatez(0);
  -o-transform: translatez(0);
  transform: translatez(0);
}
section:first-child,
section.show {
  z-index: 1;
  display: block;
}
section.hide {
  z-index: -1;
  display: none;
}
section[data-transition] {
  display: block !important;
}
section[data-transition="pop"] {
  opacity: 0;
  -webkit-transform: scale(1.15);
  -moz-transform: scale(1.15);
  -ms-transform: scale(1.15);
  -o-transform: scale(1.15);
  transform: scale(1.15);
}
section[data-transition="pop"]:first-child,
section[data-transition="pop"].show {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}
section[data-transition="pop"].hide {
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
  transform: scale(0.9);
  opacity: 0;
}
section[data-transition="slide"] {
  -webkit-transform: translatex(100%);
  -moz-transform: translatex(100%);
  -ms-transform: translatex(100%);
  -o-transform: translatex(100%);
  transform: translatex(100%);
  visibility: visible !important;
}
section[data-transition="slide"]  > header > *,
section[data-transition="slide"]  > article > * {
  opacity: 0;
  -webkit-transition: opacity 400ms cubic-bezier(0.39, 0.575, 0.565, 1);
  -moz-transition: opacity 400ms cubic-bezier(0.39, 0.575, 0.565, 1);
  -ms-transition: opacity 400ms cubic-bezier(0.39, 0.575, 0.565, 1);
  -o-transition: opacity 400ms cubic-bezier(0.39, 0.575, 0.565, 1);
  transition: opacity 400ms cubic-bezier(0.39, 0.575, 0.565, 1);
}
section[data-transition="slide"]:first-child,
section[data-transition="slide"].show {
  -webkit-transform: translatex(0%);
  -moz-transform: translatex(0%);
  -ms-transform: translatex(0%);
  -o-transform: translatex(0%);
  transform: translatex(0%);
}
section[data-transition="slide"]:first-child  > header > *,
section[data-transition="slide"].show  > header > *,
section[data-transition="slide"]:first-child  > article > *,
section[data-transition="slide"].show  > article > * {
  opacity: 1;
}
section[data-transition="slide"].hide {
  -webkit-transform: translatex(-100%);
  -moz-transform: translatex(-100%);
  -ms-transform: translatex(-100%);
  -o-transform: translatex(-100%);
  transform: translatex(-100%);
}
section[data-transition="slide"].hide  > header > *,
section[data-transition="slide"].hide  > article > * {
  opacity: 0;
}
section[data-transition="cover"] {
  -webkit-transform: translatey(110%);
  -moz-transform: translatey(110%);
  -ms-transform: translatey(110%);
  -o-transform: translatey(110%);
  transform: translatey(110%);
}
section[data-transition="cover"]:first-child,
section[data-transition="cover"].show,
section[data-transition="cover"].hide {
  -webkit-transform: translatey(0%);
  -moz-transform: translatey(0%);
  -ms-transform: translatey(0%);
  -o-transform: translatey(0%);
  transform: translatey(0%);
}
section[data-transition="fade"] {
  opacity: 0;
}
section[data-transition="fade"]:first-child,
section[data-transition="fade"].show {
  opacity: 1;
}
section[data-transition="fade"]:hide {
  opacity: 0;
}
header,
footer {
  position: absolute;
  left: 0;
  width: 100%;
  display: block;
  z-index: 2;
}
header {
  top: 0;
  height: 44px;
  line-height: 44px;
}
header .title {
  margin-left: 4px;
  float: left;
  z-index: -1;
  font-size: 1.2em;
  font-weight: bold;
}
header .title.with-subtitle {
  line-height: 34px;
}
header .title.with-subtitle .subtitle {
  position: relative;
  top: -4px;
  display: block;
  font-size: 0.7em;
  line-height: 0.7em;
}
header .title img {
  height: 24px;
}
header .title.centered {
  position: absolute;
  left: 0px;
  right: 0px;
  text-align: center;
  display: inline-block;
}
footer {
  bottom: 0;
  height: 44px;
}
