:root {
    --app-bg-color: #1C1D21;
    --app-dark-color: #31353D;
    --app-accent-color: #445878;
    --app-alt-color: #92CDCF;
    --app-light-color: #EEEFF7;
}

html, body {
    min-height: 100%
}

body {
    font-family: 'Roboto', sans-serif;
    color: #444;
    background-color: #EEEFF7;
    background-image: url(bg.jpg);
    background-size: 24%;
}

body.confirmed {
    background-image: url(bg-c.jpg);
}

.wrap {
    background-color: #1C1D21;
    position: relative;
    display: block;
    width: 365px;
    margin: calc(50vh - 310px) auto;
    box-shadow: 0px 2px 0px 2000px rgba(0, 0, 0, .1);
}

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

.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%);
}

.header .bg,
.header .filter {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(68, 88, 120, .5)
}

.confirmed .header .bg {
    background-image: url(./noi.gif);
    background-size: cover;
    background-position-y: initial;
}

.header .bg {
    background-image: url(./noi.jpg);
    background-position-y: -42px;
    background-size: cover;
    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 .4s ease;
    position: absolute;
    transition: all .4s ease;
}

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

.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, .25);
}

div.rotate span {
    animation: rotate .6s linear
}

div.rotate span:nth-child(2) {
    animation-delay: .1s
}

div.rotate span:nth-child(3) {
    animation-delay: .3s
}

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

.title .separator i {
    transform: rotate(90deg);
    font-size: .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 .content > section {
    transform: translateX(0)
}

.content > section > div {
    opacity: 0;
}

.wrap .content > section > div:nth-child(1) {
    opacity: 1;
    transition: opacity .8s ease;
}

.wrap .btnBack {
    display: none;
}

.wrap .header .title {
    display: flex
}

.wrap .header .bg {
    opacity: 1
}

.wrap .header .map {
    opacity: 0
}

.wrap .header {
    height: 170px
}

.wrap .content {
    height: calc(100% - 200px);
    transition: all 0.8s ease;
}

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

.control {
    position: relative;
    top: 0;
    height: 60px;
    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 .4s ease;
}

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

.control:empty {
    height: 0 !important;
}

/*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;
    flex-grow: 1;
}

.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 .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;
}

.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 .6s ease;
}

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

.select ul.select-data li:hover,
.select ul.select-data li.selected {
    background-color: rgba(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: .9em;
    background-color: var(--app-accent-color);
    cursor: pointer;
}

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

.dateinput.open .control-body {
    opacity: 1;
    transition: opacity .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: .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 .4s ease;
    cursor: pointer;
}

.dateinput .calendar .days span.checked:before {
    background-color: rgba(112, 225, 245, 0.3);
    border-radius: 50%;
    transition: all .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: .75em;
    color: var(--app-alt-color);
    letter-spacing: .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 .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 .4s ease;
}

.radio label > div {
    display: inline-block;
    text-align: center;
    margin-right: 30px;
}

.radio label > div small {
    display: block;
    font-size: .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, .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, .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: 48px;
    height: 48px;

}

.list article .info {
    padding: 10px;
    width: 100%;
    color: #e5e5e5;
    font-size: .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: .12s
}

.list article:nth-child(3) > div {
    transition-delay: .24s
}

.list article:nth-child(4) > div {
    transition-delay: .36s
}

.list article:nth-child(5) > div {
    transition-delay: .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: .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;
    }
}

span a {
    color: inherit;
    text-decoration: none;
}

span a:hover {
    text-decoration: underline;
}

.airport-name.smaller {
    font-size: 14px;
}

.destination-time {
    float: right;
    margin-right: 10px;
}

#book {
    cursor: pointer;
}

.qr {
    height: 50px;
    width: 50px;
    margin-right: 15px;
}
