.wrap {
  background-color: #1c1d21;
  position: relative;
  display: block;
  height: 500px;
  width: 365px;
  margin: 10px auto;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
  /*border-radius: 5px;*/
}

.headbar {
  width: calc(100% - 15px);
  height: 60px;
  color: #fff;
  background-color: var(--app-accent-color);
  display: flex;
  align-items: center;
  padding-left: 15px;
  font-size: 1.1em;
  font-weight: 500;
}

.headbar .btnBack {
  margin-right: 15px;
  cursor: pointer;
}

.header {
  width: 365px;
  height: 150px; /*200px;*/
  position: relative;
  transition: all 0.8s ease-in-out;
  background-image: linear-gradient(45deg, #445878 0%, #92cdcf 100%);
  /*background: var(--app-accent-color);*/
  transition: all 0.8s ease;
}

.header .bg,
.header .filter {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(112, 225, 245, 0.25);
}

.header .bg {
  background-image: url(https://dl.dropbox.com/s/8bg4zheauoyudeo/bg-city.jpg);
  background-size: 380px;
  opacity: 0;
  transition: all 0.8s ease;
}

.header .map {
  width: 100%;
  height: 100%;
  background-image: url(https://dl.dropbox.com/s/kvg6ykrz66kn9oe/map2.png);
  background-position: -110px -150px;
  /*background-position: -120px -120px;
    background-size: 680px;*/
  opacity: 1;
  transition: all 0.4s ease;
  position: absolute;
  transition: all 0.4s ease;
}

.header .title {
  display: none;
  align-items: center;
  justify-content: space-around;
  font-size: 2em;
  color: #fff;
  height: 100%;
}

.title > div {
  z-index: 10;
}
.title span {
  display: inline-block;
  font-weight: 400;
  font-size: 1.2em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

div.rotate span {
  animation: rotate 0.6s linear;
}
div.rotate span:nth-child(2) {
  animation-delay: 0.1s;
}
div.rotate span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes rotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.title .separator i {
  font-size: 0.7em;
}

.content {
  height: calc(100% - 210px);
  background-color: var(--app-bg-color);
  position: relative;
  overflow: hidden;
  transition: all 0.8s ease;
}

.content > section {
  position: relative;
  width: 300%;
  height: 100%;
}

.wrap[data-pos="0"] .content > section {
  transform: translateX(0);
}
.wrap[data-pos="1"] .content > section {
  transform: translateX(-365px);
}
.wrap[data-pos="2"] .content > section {
  transform: translateX(-730px);
}

.content > section > div {
  opacity: 0;
}
.wrap[data-pos="0"] .content > section > div:nth-child(1) {
  opacity: 1;
  transition: opacity 0.8s ease;
}
.wrap[data-pos="1"] .content > section > div:nth-child(2) {
  opacity: 1;
  transition: opacity 0.8s ease;
}
.wrap[data-pos="2"] .content > section > div:nth-child(3) {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.wrap[data-pos="0"] .btnBack {
  display: none;
}
.wrap[data-pos="0"] .header .title {
  display: flex;
}
.wrap[data-pos="0"] .header .bg {
  opacity: 1;
}
.wrap[data-pos="0"] .header .map {
  opacity: 0;
}

.wrap[data-pos="0"] .header {
  height: 140px;
}

.wrap[data-pos="0"] .content {
  height: calc(100% - 200px);
  transition: all 0.8s ease;
}

.wrap[data-pos="1"] .content .list article .img,
.wrap[data-pos="1"] .content .list article .info {
  opacity: 1;
  transform: translateX(0);
}

.wrap[data-pos="2"] .header {
  height: 0px;
}
.wrap[data-pos="2"] .content {
  height: calc(100% - 80px);
}

.form,
.list,
.ticket {
  float: left;
  width: 33.33333%;
  height: 100%;
  padding: 0;
  margin: 0;
  color: #e5e5e5;
  position: relative;
}

.control {
  position: relative;
  top: 0;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 5px;
  background: #1c1d21; /*var(--app-bg-color);*/
  border-bottom: solid 1px rgba(255, 255, 255, 0.05);
  /*border-top: solid 1px rgba(0, 0, 0, 0.4);*/
  transition: all 0.4s ease;
}

.control:last-child {
  height: 55px;
  border-bottom: none;
  padding: 0;
}

/*Preview hack*/
.control-head > * {
  float: left;
}

.control-head > i,
.control > i {
  font-size: 1.5em;
  margin-left: 15px;
}

.control-head > div,
.control > .control-item {
  margin-left: 20px;
}

.control h6 {
  margin: 5px 0;
  font-weight: 400;
  color: #bbb;
}

.control.open:nth-child(2) {
  top: -72px;
}
.control.open:nth-child(3) {
  top: -144px;
}

.control.open {
  height: 100%;
  transition: all 0.4s ease;
}

.control .control-head {
  display: flex;
  align-items: center;
  margin-top: 5px;
  cursor: pointer;
}

.control .control-body {
  height: calc(100% - 72px);
  margin-top: 20px;
}

.control.open .control-body {
  margin-top: 8px;
}

.control.dateinput,
.control.select {
  display: block;
}

.control .close {
  display: none;
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 20px;
}
.control.open .close {
  display: block;
  cursor: pointer;
}

/*** Begin Select Input ***/
.select .nano {
  width: 304px;
  height: 418px;
  margin-left: 50px;
  height: 100%;
}

.select ul.select-index,
.select ul.select-data {
  margin: 0;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.select.open ul.select-data li {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s ease;
}
.select ul.select-data li {
  margin: 5px 0;
  padding: 3px 15px;
  font-size: 0.85em;
  opacity: 0;
  transform: translateY(700px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.select ul.select-data li:hover,
.select ul.select-data li.selected {
  background-color: rgba(0, 0, 0, 0.4);
}

.select ul.select-data li.sep {
  background-color: var(--app-accent-color);
}

.select ul.select-index {
  position: absolute;
  left: 15px;
}

.select ul.select-index li {
  margin: 8px 0;
  padding: 2px 6px;
  border-radius: 50%;
  text-align: center;
  font-size: 0.9em;
  background-color: var(--app-accent-color);
  cursor: pointer;
}

/*** Begin Date Input ***/
.dateinput .control-body {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.dateinput.open .control-body {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.dateinput .calendar {
  margin-top: 10px;
}

.dateinput .calendar .month,
.dateinput .calendar .week,
.dateinput .calendar .days {
  display: flex;
  width: 100%;
  padding: 5px;
}

.dateinput .calendar .month {
  justify-content: space-around;
  background-color: var(--app-accent-color);
  margin-left: -5px;
}

.dateinput .calendar .week,
.dateinput .calendar .days {
  flex-wrap: wrap;
}

.dateinput .calendar .week span,
.dateinput .calendar .days span {
  width: 40px;
  padding: 5px;
  text-align: center;
  font-weight: 300;
  font-size: 0.85em;
  position: relative;
}

.dateinput .calendar .week span {
  color: var(--app-alt-color);
  font-weight: 400;
}

.dateinput .calendar .days span:before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 14px;
  top: 3px;
  border-radius: 1px;
  background-color: transparent;
  transition: all 0.4s ease;
  cursor: pointer;
}

.dateinput .calendar .days span.checked:before {
  background-color: rgba(112, 225, 245, 0.3);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.dateinput .calendar .days span:first-child {
  color: transparent;
}

.info-message {
  margin-top: 30px;
  padding: 0 5px 0 15px;
  font-weight: 400;
  font-style: italic;
  font-size: 0.75em;
  color: var(--app-alt-color);
  letter-spacing: 0.06em;
}
.info-message i {
  margin-right: 5px;
  font-size: 1.2em;
}

/*** Begin Radio Input ***/
.radio label input[type="radio"] {
  display: none;
}

.radio label > span,
.radio label > div {
  cursor: pointer;
  margin-right: 4px;
  padding: 4px 8px;
  border-radius: 3px;
  background-color: transparent;
  transition: background 0.4s ease;
}

.radio label input[type="radio"]:checked ~ span,
.radio label input[type="radio"]:checked ~ div {
  background-color: rgba(0, 0, 0, 0.4);
  transition: background 0.4s ease;
}

.radio label > div {
  display: inline-block;
  text-align: center;
  margin-right: 30px;
}
.radio label > div small {
  display: block;
  font-size: 0.75em;
}
.radio label > div span {
  margin-right: 4px;
}
.radio label > div i {
  margin-left: 4px;
}

/*** Begin Spinner Input ***/
.spinner {
  height: 100%;
  position: absolute;
  right: 0;
}
.spinner button {
  width: 42px;
  height: 50%;
  display: block;
  padding: 5px;
  border: none;
  color: #fff;
  background-color: var(--app-dark-color);
  outline: none;
}

.spinner button:first-child {
  border-bottom: solid 1px #444;
}

.control > button {
  width: 100%;
  height: 100%;
  padding: 10px 2px;
  border: none;
  border-radius: 2px;
  color: #fff;
  background-color: var(--app-dark-color); /*#2196F3*/
  outline: none;
  text-transform: uppercase;
}

.control button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.list article {
  display: flex;
  width: 100%;
  height: 100px;
  transition: all 0.4s ease;
}

.list article:nth-child(2n + 1) {
  background-color: rgba(255, 255, 255, 0.04);
}

.list article div.img {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 10px;
  opacity: 0;
  transform: translateX(-1000px);
  transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.list article img {
  width: 350px;
  height: 48px;
}

.list article .info {
  padding: 10px;
  width: 100%;
  color: #e5e5e5;
  font-size: 0.8em;
  position: relative;
  opacity: 0;
  transform: translateX(1000px);
  transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.list article:nth-child(2) > div {
  transition-delay: 0.12s;
}
.list article:nth-child(3) > div {
  transition-delay: 0.24s;
}
.list article:nth-child(4) > div {
  transition-delay: 0.36s;
}
.list article:nth-child(5) > div {
  transition-delay: 0.48s;
}

.info span {
  display: block;
}
.info b {
  font-weight: 400;
}
.info .time {
  color: #bbb;
  position: absolute;
  right: 10px;
  top: 10px;
}
.info .airline {
  display: block;
  font-size: 1.4em;
}

.info h5 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 500;
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.info h5 small {
  color: #bbb;
  font-size: 0.6em;
}

.ticket {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket section {
  background-color: var(--app-dark-color);
  height: 350px;
  margin: 10px 20px;
  border-radius: 2px;
}

.ticket .title {
  display: flex;
  justify-content: space-around;
  margin: 15px 10px;
}

.ticket .title > div {
  text-align: center;
}

.ticket .title span {
  font-size: 2em;
  text-shadow: none;
  display: block;
}

.ticket .title small {
  display: block;
}

.ticket .separator i {
  position: relative;
  top: 10px;
}

.ticket .row {
  display: flex;
  justify-content: space-around;
  width: calc(100% + 40px);
  margin-top: 20px;
}

.ticket .cell {
  width: 140px;
}

.ticket .cell small {
  display: block;
  color: var(--app-alt-color);
}

.ticket .total {
  margin: 25px 40px 0;
  text-align: right;
}

.ticket .total span {
  font-size: 1.7em;
}

.ticket .total small {
  margin-right: 10px;
  color: #92cdcf;
}

.ticket button {
  height: 40px;
  padding: 10px 2px;
  margin: 10px 20px;
  border: none;
  border-radius: 2px;
  background-color: var(--app-accent-color);
  outline: none;
  color: var(--app-light-color);
  text-transform: uppercase;
  cursor: pointer;
}

.ticket button i {
  font-size: 16px;
  margin-right: 5px;
}

.btnHome {
  background-color: #432;
}

/** Loader **/
.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 1.8em;
  height: 1.8em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loader {
  display: none;
  color: #ffffff;
  font-size: 10px;
  margin: 5px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: "";
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
