﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

ol, ul {
    list-style: none;
}

#header {
    text-align: center;
    background-color: #E15C26;
    flex: 0 1 auto;
}

#logo {
    display: inline-block;
    height: 100px;
    margin: 4px 0;
}

#content, #init-content {
    display: block;
    padding: 1rem 0;
}

@media screen and (max-width: 419px) {
    #content, #init-content {
        margin: 0 5px;
    }
}

@media screen and (min-width:420px) {
    #content, #init-content {
        width: 410px;
        margin: 0 auto;
    }
}

.form-row {
    margin-bottom: 8px;
    display: flex;
    flex-direction: row;
}

    .form-row > label {
        display: flex;
        width: 100px;
        padding-right: 10px;
        color: var(--grey);
        text-align: right;
    }

        .form-row > label.top {
            align-items: start;
            justify-content: flex-end;
            padding-top: 5px;
        }

        .form-row > label.center {
            align-items: center;
            justify-content: flex-end;
        }

    .form-row > div {
        flex: 1;
        vertical-align: middle;
    }

.self-seat-row {
    margin-bottom: 10px;
}

    .self-seat-row > label {
        display:block;
        color: var(--grey);
        text-align: center;
        margin-bottom:2px;
    }

    .self-seat-row > input {
        display:block;
        margin:0 auto;
        width:200px;
        text-align:center;
        font-size:110%;
    }

    .self-seat-row.buttons {
        text-align:center;
    }

    .self-seat-row.buttons button {
        display:inline-block;
    }

#init-content .buttons {
    margin-top: 15px;
    text-align: center;
}

    #init-content .buttons button.center {
        display: inline-block;
        margin: 10px;
    }

.upper {
    text-transform: uppercase;
}

button {
    color: var(--orange);
    padding: .4rem 1rem;
    cursor: pointer;
    border: 1px solid var(--orange);
    font-size: 13pt;
    background-color: white;
}

    button.btn-primary {
        color: #fff;
        background-color: #40ADAC; /*#1b6ec2;*/
        border: 1px solid #40ADAC;
    }

.buttons .btn:not(:last-child) {
    margin-right:.5rem;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

:root {
    --orange: #E15C26;
    --teal: #40ADAC;
    --peach: #F0AD92;
    --khaki: #F9DED4;
    --grey: #808080;
    --lightgrey: #A0A0A0;
}

.main {
    flex: 1;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

h3 {
    display: block;
    text-align: center;
    background-color: #FDCE74;
    color: white;
    padding: 10px 0 7px 0;
    margin-top: 0;
}

input[type=text] {
    padding: 6px;
}

.loading {
    margin: 2rem auto;
    align-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--orange);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: rotate(180deg);
        opacity: 0.6;
    }

    to {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

.help {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem 0;
    font-size: 80%;
    color: gray;
    background-color: #efefef;
}

    .help p {
        margin-top: 0;
        margin-bottom: .5rem;
    }

    .help button {
        padding: 4px;
        font-size: 90%;
        display: inline-block;
        color: gray;
        border: 1px solid gray;
    }

.hidden {
    display: none;
}

.btn-next * {
    vertical-align: middle;
}

.btn-next span {
    margin-left: 6px;
    margin-top: 1px;
}

.btn-next svg {
    width: 20px;
    height: 20px;
    fill: white;
}



@keyframes no-show {
    0% {
        transform: rotateX(0deg);
        height: 68px;
        width: 100%;
        padding: 6px;
    }

    49% {
        height: 68px;
        width: 100%;
        padding: 6px;
    }

    50% {
        height: 0;
        width: 0;
        padding: 0;
    }

    100% {
        transform: rotateX(180deg);
        height: 0;
        width: 0;
        padding: 0;
    }
}

@keyframes show {
    0% {
        transform: rotateX(-180deg);
        height: 0;
        width: 0;
        padding: 0;
    }

    49% {
        height: 0;
        width: 0;
        padding: 0;
    }

    50% {
        height: 68px;
        width: 100%;
        padding: 6px;
    }

    100% {
        transform: rotateX(0deg);
        height: 68px;
        width: 100%;
        padding: 6px;
    }
}

/* entire container, keeps perspective */
.item {
    perspective: 1000px;
    display: block;
    height: 69px;
}

.item {
    border-top: 1px solid #CB8851;
}

    .item:last-child {
        border-bottom: 1px solid #CB8851;
    }

/* flip speed goes here */
.flipper {
    position: relative;
}

/* hide back of pane during swap */
.card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
    perspective-origin: top center;
    animation-duration: .25s;
    animation-timing-function: linear;
    transition-property: transform;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    overflow: hidden;
    height: 68px;
}

/* front pane, placed above back */
.card.title {
    z-index: 2;
    color: var(--orange);
    padding: 6px;
}

.card.invert {
    background-color: #E5AC7F;
    color: white;
}

    .card.invert.title {
        background-color: var(--orange);
    }

/* back, initially hidden pane */
.item .transition-none {
    height: 0;
    padding: 0;
}

.item .transition-from {
    animation-name: no-show;
}

.item .transition-to {
    animation-name: show;
}

.circle {
    flex-basis: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 24px;
    color: white;
    border-radius: 50%;
}

.card .circle {
    background-color: var(--orange);
    border: 1px solid var(--orange);
}

.card.invert .circle {
    border: 1px solid white;
    background-color: #E5AC7F;
}

.card.invert.title .circle {
    background-color: var(--orange);
}

.circle svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.item-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.block  {
    width: 62px;
    min-width:62px;
    padding-left:2px;
    padding-right:10px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.size {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.sizes {
    display: flex;
    flex-direction: row;
}

    .size img {
        height: 20px;
    }

    .size label {
        display: block;
        text-transform: uppercase;
        font-size: 9pt;
        margin-top:2px;
    }

.sizes .option {
    width: 56px;
    height: 56px;
}

.sizes .size.option img {
    margin-top:10px;
    height:25px;
}

.sizes .size label {
    margin-top: 3px;
}

.item-cell {
    flex: 1;
    display: flex;
    align-items: center;
}

    .item-cell.name {
        justify-content: flex-start;
        font-size: 20px;
    }

    .item-cell.description {
        justify-content: flex-start;
        font-size: 14px;
        color: black;
        white-space:nowrap;
        overflow:hidden;
    }

    .item-cell.message {
        justify-content: flex-start;
        font-size: 14px;
        overflow: hidden;
    }

.invert .item-cell.description {
    color:white;
}

.has-item .item-cell.description {
    margin-top: 3px;
}