* {
    -webkit-overflow-scrolling: touch
}

:root {
    --main-color: #AA3434;
    --main-color-light: #BF3B3B;
    --main-bg-color: rgba(255,255,255,0.8);
}

html, body, app {
    height: 100%;
    min-height: 100%;
}

/*body {
    background-color: var(--main-color);
}*/

app {
    display: flex;
    flex-flow: column;
}

.main {
    flex: 1 1 auto;
    overflow-y: scroll;
}

    .main > * {
        -webkit-transform: translateZ(0px);
    }

.tabbar .menu {
    height: 50px;
    background: red;
    display: flex;
    flex-flow: row;
    width: 100%;
    align-items: stretch;
}

    .tabbar .menu .menu-item {
        flex: 1;
        text-align: center;
        vertical-align: middle;
    }

.nav-link.active {
    background: var(--blue);
    color: white;
}

.bm-container {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.bm-overlay {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-color: rgba(0,0,0,0.5);
}

.bm-active {
    display: flex;
}

.blazor-modal {
    display: flex;
    flex-direction: column;
    width: 50rem;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #fff;
    padding: 1.5rem;
    z-index: 4;
}

.bm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 2rem 0;
}

.bm-title {
    margin-bottom: 0;
}

.bm-close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    cursor: pointer;
}

.carousel {
    height: auto;
}

.carousel-inner {
    height: auto;
}

    .carousel-inner * {
        height: inherit;
    }

    .carousel-inner img {
        object-fit: cover;
    }

.arrow-right {
    padding-right: 13px;
    position: relative;
}

    .arrow-right::after {
        content: " ";
        display: inline-block;
        height: 10px;
        width: 10px;
        border-width: 2px 2px 0 0;
        border-color: #c8c8cd;
        border-style: solid;
        -webkit-transform: matrix(.71,.71,-.71,.71,0,0);
        transform: matrix(.71,.71,-.71,.71,0,0);
        position: relative;
        top: -2px;
        position: absolute;
        top: 50%;
        margin-top: -4px;
    }

.list-group-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.list-group-item:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

select.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

a {
    color: black;
    text-decoration: none;
}

.load-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: white;
}

.load-text {
    margin-top: 10px;
    text-align: center;
    color: Highlight;
}

.loadEffect {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto;
    margin-top: 100px;
}

    .loadEffect span {
        display: inline-block;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: Highlight;
        position: absolute;
        -webkit-animation: load 1.04s ease infinite;
    }

@-webkit-keyframes load {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.loadEffect span:nth-child(1) {
    left: 0;
    top: 50%;
    margin-top: -8px;
    -webkit-animation-delay: 0.13s;
}

.loadEffect span:nth-child(2) {
    left: 14px;
    top: 14px;
    -webkit-animation-delay: 0.26s;
}

.loadEffect span:nth-child(3) {
    left: 50%;
    top: 0;
    margin-left: -8px;
    -webkit-animation-delay: 0.39s;
}

.loadEffect span:nth-child(4) {
    top: 14px;
    right: 14px;
    -webkit-animation-delay: 0.52s;
}

.loadEffect span:nth-child(5) {
    right: 0;
    top: 50%;
    margin-top: -8px;
    -webkit-animation-delay: 0.65s;
}

.loadEffect span:nth-child(6) {
    right: 14px;
    bottom: 14px;
    -webkit-animation-delay: 0.78s;
}

.loadEffect span:nth-child(7) {
    bottom: 0;
    left: 50%;
    margin-left: -8px;
    -webkit-animation-delay: 0.91s;
}

.loadEffect span:nth-child(8) {
    bottom: 14px;
    left: 14px;
    -webkit-animation-delay: 1.04s;
}

.picker-mask {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.4);
    height: 0;
    z-index: 1000;
    /*-webkit-transform: translateZ(1px);
    transform: translateZ(1px);*/
}

.picker-wrap {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    background: white;
    animation-duration: .3s;
    z-index: 1001;
    height: 0;
    display: flex;
    flex-flow: column;
}

.picker-mask.picker-show {
    height: 100%;
}

.picker-wrap.picker-show {
    height: 200px;
}

.picker-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

    .picker-header .cancel-button, .picker-header .confirm-button {
        flex: 0 0 auto;
        color: #108ee9;
        font-size: 17px;
        padding: 9px 15px;
        height: 42px;
        box-sizing: border-box;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        justify-content: center;
    }

    .picker-header .title {
        flex: 1 0 auto;
        text-align: center;
    }

.picker-body {
    flex: 1;
    background: red;
}

.animated.fastest {
    -webkit-animation-duration: .2s;
    animation-duration: .2s;
}

.qrcode {
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    text-align: center;
}

.blazored-modal-wrapper {
    width: 90%;
}

.blazored-modal {
    width: 100%;
}

.blazored-modal-overlay {
    cursor: pointer;
}

.my-reconnect-modal > div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.8;
    text-align: center;
    font-weight: bold;
}

.components-reconnect-hide > div {
    display: none;
}

.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: block;
}

.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: block;
}

.components-reconnect-refused > div {
    display: none;
}

.components-reconnect-refused > .refused {
    display: block;
}

.select-time-weekday {
    text-align: center;
    border-bottom: 1px solid #eee;
}

.cornor {
    position: absolute;
    width: 18px;
    height: 18px;
    display: block;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAABz0lEQVRo3u2Zv0oDQRCHfwmHIlgEiwtpJVeEXJdGEdQX8A1s7SzyCBE709r4ABapbSwUFATTpJtuGyvRJViIoiCizYVs1nMTL3/W3cwHBzM3e8t+3CTc3uWkoC9MhqUwit97iRQUAnic0NyZydteAAuOSaAmYRTn/nKxFHQLYG2EoY0wig9sCHp/B1nQdQJTUQpaBLBqGFJQ4g0p6F7Jq0pck4IqGdf4Fkbx3VQEAZQB0IhzXRhqO8mRhTaA9ayC892iGmcAWtq5JoBSEtcBdJVaGUAjidsAjjOu8WFWgq0wik/VE1LQviJ4kvKo1hM816+dFd63KAu6zsBvUAq60upFJW5KQXtaXX0OvZGCXpR82bbcD0EAW4axJfT/UNKo2ZZJw/sWzQNYMBybyth6Sr2j1IuGeQ5tCQZhFH/8VpSCnpS0q4+VgtT82TSXLeaiRb0mkIJWDHV1i1NOGVuwLTCM3LReG/4X/G9RLT/S8gr6G9UOgEvDXJ+2ZdIYaFH9taEUVEV/R79ra8szDt63KAu6Dgu6Dgu6Dgu6Dgu6Dgu6zrCPL68ArpN4rK88/1Iw+bK6bXuR4+B9i7Kg67Cg67Cg67Cg67Cg67Cg63gv+A0tZ2bsNd1OUQAAAABJRU5ErkJggg==);
    background-size: cover;
}

    .cornor.lt {
        top: 0;
        left: 0;
    }

    .cornor.lb {
        transform: rotate(270deg);
        bottom: 0;
        left: 0
    }

    .cornor.rt {
        transform: rotate(90deg);
        top: 0;
        right: 0;
    }

    .cornor.rb {
        transform: rotate(180deg);
        bottom: 0;
        right: 0;
    }

.hr-border {
    border-top: 1px solid var(--main-color-light);
}

.inner-addon {
    position: relative;
}

    /* style icon */
    .inner-addon .oi, .inner-addon .fa {
        position: absolute;
        padding: .375rem .75rem;
        height: calc(1.5em + .75rem);
        pointer-events: none;
        top: 2px;
    }

/* align icon */
.left-addon .oi, .left-addon .fa {
    left: 0px;
    line-height: 2;
}

.right-addon .oi, .right-addon .fa {
    right: 0px;
}

/* add padding  */
.left-addon input {
    padding-left: 2em;
}

.right-addon input {
    padding-right: 2em;
}

.common-margin {
    margin: .25rem 1.25rem;
}

.form-control {
    line-height: 2;
    height: unset;
}
/*.form-control:focus {
    border-color: #fff;
    webkit-box-shadow: none;
    box-shadow: none;
}*/

.form-confirm-button {
    width: calc(100% - 2.5rem);
    border: none;
    background: var(--main-color);
    display: block;
    color: white;
}

    .form-confirm-button:focus {
        box-shadow: none;
        color: white;
    }

.identity-header {
    width: 100%;
}

.inner-addon input.with-send-code {
    flex: 1 1 auto;
    border-radius: .25rem 0 0 .25rem;
}

.inner-addon button.send-code {
    flex: 0 0 auto;
    background-color: var(--main-color);
    color: white;
    border-radius: 0 .25rem .25rem 0;
    border: none;
}

.time-table {
}

    .time-table th, .time-table td {
        vertical-align: middle;
        text-align: center;
    }

.error-hint {
    text-align: center;
    color: lightgray;
    margin: 10px;
}

.text-indent {
    text-align: left !important;
}

.text-indent-2char {
    text-indent: 2em;
}

.page-nav {
    min-height: 100%;
    padding-bottom: 10px;
    background-color: var(--main-color);
    overflow-y: scroll;
}

.page.flex {
    display: flex;
    flex-flow: column;
}

    .page.flex .page__hd {
        flex: 0 1 auto;
    }

    .page.flex .page__bd {
        flex: 1 0 auto;
    }

.color01 {
    background: #00aeeb;
}

.color02 {
    background: #35afce;
}

.color03 {
    background: #00c293;
}

.color04 {
    background: #ff5290;
}

.color05 {
    background: #fb722d;
}

.color06 {
    background: #a747ff;
}

.color07 {
    background: #ae6e60;
}

.color08 {
    background: #3b9d42;
}

.color08 {
    background: #486bc4;
}

.color99 {
    background: #999999;
}

.media-i {
    display: block;
    margin: 0 auto;
    width: 60px;
    height: 60px;
    text-align: center;
    /*background: #fff;*/
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

    .media-i img {
        width: 36px;
        height: 36px;
        margin-top: 12px;
    }

.identity-little-hint {
    font-size: .9em;
}

.winter-summer-calendar-row {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
}

.winter-summer-calendar-col {
    flex: 0 1 14.2857%;
    text-align: center;
    border-bottom: 1px solid lightgray;
    cursor: pointer;
}

    .winter-summer-calendar-col.weekend {
        color: red;
    }

    .winter-summer-calendar-col.cannot-select {
        opacity: .3;
    }
