@font-face {
    font-family: 'roboto';
    src: url('../fonts/roboto.ttf') format('truetype');
}

body {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 620px;
    height: 100%;
    width: 100%;
    flex-direction: row-reverse;
    font-family: 'roboto';
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    font-size: 0.3cm;
    outline: none !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

body.mobile.landscape {
    min-height: auto !important;
}

body.mobile.landscape>div {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 1em;
}

/* Track */

::-webkit-scrollbar-track {
    background: #4c5465;
}

/* Handle */

::-webkit-scrollbar-thumb {
    background: #2a3440;
}

::-webkit-scrollbar-corner {
    background: #4c5465;
}

.mobile {
    font-size: 4vw !important;
}

input {
    outline: none !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    font-family: 'roboto' !important;
    font-size: inherit !important;
    height: 2em;
    padding: 0 0.8rem;
    margin: 0.1rem 0;
    border-radius: 0 !important;
    background-color: #313c4a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input:-moz-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

label {
    cursor: pointer;
    position: relative;
    padding-left: 1.5rem;
}

button {
    outline: none !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    color: white;
    background-color: #419ad4;
    border: none;
    padding: 0.45rem 1rem;
    transition: background-color 0.3s;
    cursor: pointer;
    font-size: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.2s;
}

button:active {
    filter: brightness(1.3);
}

button:hover {
    background-color: #368bc4;
}

button.cancel {
    background-color: #a53825;
}

button.cancel:hover {
    background-color: #97301d;
}

button.config {
    background-color: #313c4a;
}

button.config:hover {
    background-color: #2d3844;
}

button.save {
    background-color: #259063;
}

button.save:hover {
    background-color: #1e7f56;
}

button.disabled {
    opacity: 0.8;
    filter: grayscale(1);
}

input[type=checkbox] {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    display: none;
}

fieldset {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.2em 0.4em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

fieldset legend {
    padding: 0 0.3em;
}

fieldset .legend {
    margin-right: 0.7em;
}

fieldset>* {
    display: inline-block;
}

label:before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #313c4a;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
}

label:after {
    opacity: 0;
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: #dd9853;
    top: 0;
    left: 3px;
    bottom: 0;
    margin: auto;
    border: 1px solid #dd9853;
    transition: all 0.1s;
}

input[type=checkbox]:checked+label:after {
    opacity: 1;
}

.disabled {
    pointer-events: none;
}

#block-ui {
    width: 100%;
    height: 100%;
    display: flex;
    position: fixed;
    cursor: wait;
    z-index: 10000;
}

/* Slider */

input[type="range"] {
    -webkit-appearance: none;
    width: 160px;
    height: 20px;
    margin: 10px 50px;
    background: #313c4a;
    background: linear-gradient(to right, #313c4a 0%, #313c4a 100%);
    background-size: 100% 0.5em;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    overflow: visible;
    border: none;
    cursor: pointer;
    outline: none;
}

input[type="range"]:first-of-type {
    margin-top: 30px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.3em;
    height: 1.3em;
    background: #dd9853;
    position: relative;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

input[type="range"]::-webkit-slider-thumb:after {
    content: " ";
    width: 160px;
    height: 10px;
    position: absolute;
    right: 20px;
    top: 5px;
    background: #dd9853;
    background: linear-gradient(to right, #f088fc 1%, #AC6CFF 70%);
}

.slider {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 0 0 0.5em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

.slider span {
    margin: 0 0.5em 0 0;
    white-space: nowrap;
}

.slider input[type="range"] {
    margin: 0 0.5em;
    flex: 1;
}

.slider input[type="text"] {
    margin: 0;
    width: 5em;
    padding: 0 0.6em;
    text-align: center;
}

/* Slider end */

p {
    width: 100%;
    text-align: center;
    color: white;
    font-family: 'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight', Roboto, Arial, Sans-serif;
    font-size: 32px;
    margin-top: 30px;
}

pre {
    color: #fdba41;
    padding: 0.1em 0.3em;
    display: inline;
}

.black-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

/* ================== MOBILE  ================== */

.mobile label {
    padding-left: 2.5rem;
}

.mobile label:before {
    width: 25px;
    height: 25px;
}

.mobile label:after {
    width: 15px;
    height: 15px;
    left: 4px;
}

.mobile .slider {
    width: 100%;
    flex-wrap: wrap;
    padding: 0.5em 0 0 0.5em;
}

.mobile input[type="range"] {
    flex: 1;
}

.mobile .slider span {
    width: 100%;
}

.mobile .legend {
    margin-bottom: 0.5em;
}

.mobile fieldset {
    width: 100%;
    margin-bottom: 0.5em !important;
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
}

.mobile fieldset>input {
    display: block;
    width: 100%;
    margin-bottom: 0.5em !important;
}

.mobile input {
    width: 100%;
    margin: 0.1em 0;
    height: 2.5em;
}

.mobile button {
    padding: 0.7em;
}

.mobile button:active {
    filter: brightness(1);
}

.mobile button:hover {
    background-color: #419ad4;
}

.mobile button.cancel:hover {
    background-color: #a53825;
}

.mobile button.config:hover {
    background-color: #313c4a;
}

.mobile button.save:hover {
    background-color: #259063;
}#login {
    background-image: url("../images/login-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #425269;
    padding: 1rem 1.5rem;
    box-shadow: 0.4rem 0.4rem #353e4f;
}

#login-form input {
    width: 15rem;
    max-width: 100%;
}

#login-form button {
    width: 100%;
}

#form-logo-wrapper {
    height: 3rem;
    width: 100%;
    display: flex;
    margin-bottom: 1rem;
}

.form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form.hidden,
#warning-safari-modal.hidden {
    display: none;
}

.form-logo {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
    flex: 1;
    margin: 0 1rem;
}

.form-logo:nth-child(1) {
    background-image: url("../images/logo.png");
}

.form-logo:nth-child(2) {
    background-image: url("../images/fazi-logo.png");
}

#login-remember-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    margin: 2em 0 1.5em 0;
}

#pin-btn {
    margin-top: 2em;
}

#login-forgot-password {
    width: 100%;
    text-align: center;
    margin-top: 1em;
    color: white !important;
}

#warning-safari-modal {
    position: absolute;
    display: flex;
    width: 80%;
    margin: auto;
    flex-direction: column;
    background-color: #425269;
    border: 1px solid #313c4a;
    box-shadow: 0 0 0.8em 0.1em #353e4f;
    box-sizing: border-box;
    padding: 1em;
}

#warning-modal-title {
    height: 3em;
    display: flex;
    align-items: center;
}

#warning-modal-title b {
    color: #fdba41;
    font-size: 2em;
    line-height: 1em;
    margin-right: 0.5em;
}

/* ================== MOBILE  ================== */

.mobile #login-form {
    width: 100%;
    height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    padding: 1rem 2rem;
}

.mobile .form-logo:nth-child(2) {
    display: none;
}

.mobile .form-logo:nth-child(1) {
    background-image: url("../images/logo2.png");
}

.mobile #form-logo-wrapper {
    height: 45%;
    margin-bottom: 3rem;
}

.mobile #login-form input {
    width: 100%;
}

.mobile label {
    padding-left: 2.5rem;
}.toast {
    position: fixed;
    bottom: 0;
    width: 40em;
    padding: 1em;
    display: flex;
    justify-content: center;
    left: 0;
    right: 0;
    margin: auto;
    box-shadow: 0.2em 0.2em #353e4f;
    color: white;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.5s;
    z-index: 4;
}

.toast.show {
    transform: translate3d(0, -100%, 0);
}

.toast.info {
    background: #425269;
}

.toast.warning {
    background: #735325;
}

.toast.error {
    background: #694242;
}

.toast.success {
    background: #259063;
}

/* MOBILE */

.mobile .toast {
    width: 80%;
}@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.loading {
    border-radius: 50%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-top-color: white;
    -webkit-animation: spin 1s infinite linear;
    animation: spin 1s infinite linear;
    display: inline-flex;
}

#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 5;
    background-color: #434a5c;
    color: white;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading-log {
    margin-top: 1em;
}

#loading-log pre {
    display: block;
}

#loading.hidden {
    display: none;
}#rotate-device {
    background-color: #434a5c;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    color: #dd9853;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
}

.mobile.landscape #rotate-device {
    display: flex;
}

#rotate-device #device-image {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    height: 46vw;
    width: 46vw;
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    animation: rotate-device 2s ease-out infinite;
}

#rotate-device #device-image #phone-back,
#rotate-device #device-image #phone-back #phone-speaker,
#rotate-device #device-image #phone-back #phone-screen,
#rotate-device #device-image #phone-back #phone-button {
    position: absolute;
    background: #dd9853;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    height: 70%;
    width: 40%;
    border-radius: 2vw;
}

#rotate-device #device-image #phone-back #phone-speaker {
    background: #434a5c;
    top: 5%;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    height: 5%;
    width: 8.9%;
    border-radius: 2vw;
}

#rotate-device #device-image #phone-back #phone-screen {
    background: #434a5c;
    top: 13%;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    height: 71%;
    width: 86%;
    border-radius: 1vw;
}

#rotate-device #device-image #phone-back #phone-button {
    background: #434a5c;
    top: auto;
    bottom: 3%;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    height: 10%;
    width: 20%;
    border-radius: 0.7vw;
}

@-moz-keyframes rotate-device {
    0% {
        -moz-transform: scale3d(0.5, 0.5, 0.5) rotate(90deg);
        opacity: 0;
    }
    15% {
        -moz-transform: scale3d(1, 1, 1) rotate(90deg);
        opacity: 1;
    }
    25% {
        -moz-transform: rotate(90deg);
    }
    100% {
        -moz-transform: rotate(0deg);
    }
}

@-webkit-keyframes rotate-device {
    0% {
        -webkit-transform: scale3d(0.5, 0.5, 0.5) rotate(90deg);
        opacity: 0;
    }
    15% {
        -webkit-transform: scale3d(1, 1, 1) rotate(90deg);
        opacity: 1;
    }
    25% {
        -webkit-transform: rotate(90deg);
    }
    100% {
        -webkit-transform: rotate(0deg);
    }
}

@keyframes rotate-device {
    0% {
        transform: scale3d(0.5, 0.5, 0.5) rotate(90deg);
        opacity: 0;
    }
    15% {
        transform: scale3d(1, 1, 1) rotate(90deg);
        opacity: 1;
    }
    25% {
        transform: rotate(90deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

#rotate-text {
    position: absolute;
    text-align: center;
    bottom: 1%;
    left: 0;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
}