* {
    margin: 0;
    padding: 0;
    cursor: inherit;
}

html,
body,
body>.root {
    width: 100%;
    height: 100%;
    font-family: Helvetica, Verdana;
    overflow: hidden;
}

canvas {
    height: 100%;
    width: 100%;
    display: block;
}

.body-view-controller,
.navigation-view-controller,
.navigation-view-controller .container-view-controller {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
}

.navigation-view-controller {
    flex-direction: row;
}

.body-title-bar {
    display: flex;
    flex-direction: column;

    width: 100%;
}

.body-view-controller .content.view-controller,
.navigation-view-controller .content.view-controller,
.navigation-view-controller .relative.view-controller {
    position: relative;

    width: calc(100% - 1em);
    height: calc(100% - 1em);

    padding: .5em;

    overflow: auto;
}

.bar-view {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;

    width: calc(100% - 1em) !important;
    height: 2.3em !important;
    padding: .5em;
}

.tab-bar-view {
    justify-content: space-between;

    width: 100% !important;

    padding: 0;
    margin: 0;
}

.bar-view .label-view {
    display: table;
    text-align: center;
}

.bar-view .label-view span {
    display: table-cell;
}

.tab-bar-view .item {
    width: 100%;
    height: 100%;
}

.tab-bar-view .item .label-view,
.menu-view .item .label-view {
    width: 100%;
    height: 100%;
}

.title-bar-view {
    justify-content: space-between;
}

.title-bar-view>.left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.title-bar-view>.middle {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}

.title-bar-view>.right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.menu-view {
    width: 10em;
    height: 100%;
}

.menu-view .item {
    width: 100%;
    padding: 0.5em;
}

.view {
    transition: all ease-in-out 150ms;
}

.label-view {
    width: 100%;
}

.label-view>span {
    vertical-align: middle;
}

.button-view {
    min-width: 6em;
    max-width: min-content;
    min-height: 1.2em;
    font-size: 1.1em;
    padding: .5em;
    margin: .3em;
    user-select: none;
    border-radius: .3em;
    text-align: center;
}


.button-view:hover {
    transform: scale(1.03, 1.03);
}

.button-view:active {
    transform: scale(1, 1);
}

.button-view.red:hover {
    transform: scale(1.03, 1.03);
}

.button-view.red:active {
    transform: scale(1, 1);
}

.button-view .label-view span {
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

.disabled {
    pointer-events: none;
}

.clickable {
    cursor: pointer !important;
}

.title-bar-view .button-view {
    min-width: min-content !important;
    max-width: min-content !important;
    height: min-content !important;
    padding: .2em;
    margin: .1em;
    border-radius: 0;
    text-align: center;
}

.title-bar-view .button-view .label-view {
    width: calc(100% - .4em);
    border-radius: .3em;
    padding: .2em;
}

.title-bar-view .title.label-view {
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    height: 100%;
}

.title-bar-view>div {
    width: min-content;
}

.popup-view-controller {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
}

.popup-view-controller>div {
    position: absolute;

    top: 50%;
    left: 50%;

    min-width: 20em;
    max-width: 80vw;

    max-height: 80vh;

    padding: .75em;
    border-radius: .5em;

    transform: translate(-50%, -50%);
}

.popup-view-controller>div>div:not(.close-button-container) {
    position: relative !important;
    overflow: auto;
}

.popup-view-controller .title-bar-view {
    border: none;
}

.popup-view-controller .close-button-container {
    position: absolute;
    width: 100%;
    z-index: 1100;
}

.popup-view-controller .close.button-view .label-view {
    display: none;
}

.popup-view-controller .close-button-container .view {
    position: absolute;

    top: -10px;
    right: -25px;

    transform: translate(-50%, -50%);

    border-radius: 50%;
    padding: 0;
    margin: 0;

    min-width: 34px;
    max-width: 34px;

    min-height: 34px;
    max-height: 34px;

    border-width: 4px;
    border-style: solid;
}

.popup-view-controller .close.view::before,
.popup-view-controller .close.view::after {
    content: " ";
    position: absolute;
    display: block;
    width: 4px;
    left: 15px;
    top: 4px;
    bottom: 4px;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.popup-view-controller .close.view::before {
    transform: rotate(45deg);
}

.popup-view-controller .close.view::after {
    transform: rotate(-45deg);
}

.login-view-controller .button-view {
    min-width: calc(100% - 1.6em) !important;
    max-width: calc(100% - 1.6em) !important;
}

.titled-label-view {
    padding: .2em;
}

.titled-label-view>span {
    display: block;
    padding: .2em;
}

.text-field-view,
.switch-view,
.dropbox-view {
    width: 100%;
    user-select: none;
}

.text-field-view>span,
.switch-view>span,
.dropbox-view>span,
.titled-label-view>span:first-child {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .9em;
    padding: 0;
    margin: 0;
}

.text-field-view input,
.switch-view input,
.dropbox-view>select {
    width: calc(100% - 1em);
    border: none;
    font-size: 1em;
    padding: .5em;
    border-radius: .3em;
}

.dropbox-view>select {
    width: 100%;
}

.text-field-view input::placeholder {
    text-transform: lowercase;
    /* font-style: italic; */
}

.switch-view {
    padding: 0 0 .5em 0;
}

.switch-view span {
    display: inline-block;
    padding: 1.1em 0 0 0;
}

.switch-view label {
    float: right;
    position: relative;
    /* display: inline-block; */
    width: 4em;
    height: 2.2em;
    margin: .2em;
}

.switch-view input {
    display: none;
}

.switch-view input:checked+span span {
    transform: translate(1.8em, 0);
}

.switch-view>label>span {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: block;
    transition: all 250ms;
    border-radius: 2.2em;
}

.switch-view>label>span>span {
    position: absolute;
    content: "";
    width: 1.7em;
    border-radius: 100%;
    display: block;
    top: .25em;
    left: .25em;
    bottom: .25em;
    transition: all 250ms;
}

.table-view {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: .5em 0;
}

.table-view-controller>.title.label-view {
    width: calc(100% - 3em);

    padding: .3em 1em;
    margin: 0 0 1em .5em;
}

.table-view>.header {
    width: calc(100% - 1em);
}

.table-view>div {
    display: table-row;
}

.table-view>div>div {
    display: table-cell;
    width: auto;
    padding: .3em .5em;
}

.table-view .cell span {
    display: inline;
}

.table-view .category>div {
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 144px;
    height: 144px;
}

.spinner:after {
    content: " ";
    display: block;
    width: 128px;
    height: 128px;
    margin: 8px;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (orientation: landscape) {
    .navigation-view-controller .navigation-tab-bar {
        display: none;
    }
}

@media (orientation: portrait) {
    .navigation-view-controller .navigation-menu-view {
        display: none;
    }
}