﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #0066A1;
    border-color: #03517d;
}

.loginModalSave, .addModalSave, .scanModalSave, .icnBtn {
    line-height: 2;
    font-size: x-large;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1ID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ZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/* QR Scanner css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    margin: 0
}

html {
    box-sizing: border-box
}

*,
*:before,
*:after {
    box-sizing: inherit
}

img,
embed,
object,
audio {
    height: auto;
    max-width: 100%
}

iframe {
    border: 0
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

td,
th {
    padding: 0;
    text-align: left
}

body {
    font-family: Roboto, Helvetica,Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
}

.app__layout {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.app__header {
    width: 100%;
    height: 100px;
    color: #fff;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.app__header-icon {
    width: 35px;
    height: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

    .app__header-icon:active {
        opacity: 0.8;
    }

.app__header-title {
    margin-left: 5px;
    font-size: 19px;
    user-select: none;
}

.app__layout-content {
    height: inherit;
    /*margin-top: 56px;*/
}

.custom-menu-icon {
    font-size: 28px;
    line-height: 47px;
}

.custom-title,
.custom-menu-icon {
    color: #fff;
}

.custom-btn {
    position: fixed;
    right: 26px;
    bottom: 26px;
    background: #448aff;
    border-radius: 50%;
    border: none;
    width: 56px;
    height: 56px;
    outline: none;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
    z-index: 9999;
}

    .custom-btn:active {
        box-shadow: none;
    }

.custom-msg {
    text-align: center;
    width: 90%;
    height: 50%;
    overflow: auto;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    font-size: 16px;
}

.custom-fab-icon {
    color: #fff;
    font-size: 30px;
    margin-top: 2px;
    user-select: none;
}

video {
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
}

#list li {
    list-style-type: none;
    text-decoration: underline;
    color: #00F;
}

.custom-copy-btn {
    opacity: 0;
}

.hide {
    display: none;
}

@-webkit-keyframes scanner {
    0% {
        bottom: 90%;
    }

    50% {
        bottom: 10%;
    }

    100% {
        bottom: 90%;
    }
}

@-moz-keyframes scanner {
    0% {
        bottom: 90%;
    }

    50% {
        bottom: 10%;
    }

    100% {
        bottom: 90%;
    }
}

@-o-keyframes scanner {
    0% {
        bottom: 90%;
    }

    50% {
        bottom: 10%;
    }

    100% {
        bottom: 90%;
    }
}

@keyframes scanner {
    0% {
        bottom: 90%;
    }

    50% {
        bottom: 10%;
    }

    100% {
        bottom: 90%;
    }
}

.custom-scanner {
    width: 270px;
    height: 2px;
    background: #4CAF50;
    position: absolute;
    -webkit-transition: all 200ms linear;
    -moz-transition: all 200ms linear;
    transition: all 200ms linear;
    -webkit-animation: scanner 3s infinite linear;
    -moz-animation: scanner 3s infinite linear;
    -o-animation: scanner 3s infinite linear;
    animation: scanner 3s infinite linear;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.4);
    display: none;
    left: -10px;
    right: 0;
    margin: auto;
}

#camera {
    opacity: 0;
}

/*#scanModalSave {
    margin: 4px 4px 4px 4px;
}*/

.no-support {
    font-size: 20px;
    text-align: center;
}

.app__snackbar {
    position: fixed;
    bottom: 15px;
    left: 20px;
    pointer-events: none;
    z-index: 9999;
}

.app__snackbar-msg {
    width: 250px;
    min-height: 50px;
    background-color: #404040;
    color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.24);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    padding-left: 15px;
    padding-right: 10px;
    word-break: break-all;
    -webkit-transition: opacity 3s cubic-bezier(0, 0, 0.30, 1) 0;
    transition: opacity 0.30s cubic-bezier(0, 0, 0.30, 1) 0;
    text-transform: initial;
    margin-bottom: 10px;
    z-index: 9999;
}

.app__snackbar--hide {
    opacity: 0;
}

.app__infodialog,
.app__dialog {
    z-index: 12;
    background-color: #fff;
    width: 290px;
    height: 180px;
    border-radius: 8px;
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
    box-shadow: 0 9px 46px 8px rgba(0,0,0,.14), 0 11px 15px -7px rgba(0,0,0,.12), 0 24px 38px 3px rgba(0,0,0,.2);
}

.app__infodialog {
    max-width: 480px;
    width: 95%;
    height: 240px;
}

.app__dialog-content,
.app__infodialog-content {
    width: 100%;
    padding: 15px;
}

.app__infodialog-subcontent {
    margin-top: 18px;
}

    .app__infodialog-subcontent a {
        color: #1b1eb5;
    }

    .app__infodialog-subcontent p:not(:first-child) {
        margin-top: 10px;
    }

.app__dialog-content h1,
.app__infodialog h1 {
    margin-top: 5px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 19px;
}

.app__dialog input {
    width: 250px;
    /*    height: 30px;*/
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.24);
    outline: none;
    /*    font-size: 15px;*/
    color: #1b1eb5;
    font-weight: 700;
}

.app__dialog-actions,
.app__infodialog-actions {
    display: block;
    position: absolute;
    bottom: 13px;
    right: 20px;
}

.app__dialog-open {
    display: none;
}

.app__infodialog--hide,
.app__dialog--hide {
    display: none;
}

.app__overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    transition: all 200ms ease-in;
    width: 310px;
    height: 310px;
    margin: auto;
}


.app__overlay-left,
.app__overlay-right {
    width: 52px;
    height: 340px;
    background: #7f7f7f;
}

.app__overlay-left {
    margin-left: -57px;
    margin-top: -10px;
}

.app__overlay-right {
    margin-right: -57px;
    margin-top: -340px;
    float: right;
}

.app__overlay {
    border: 0;
}

#addModalBtn, #loginModalBtn, #logoutBtn, #scanModalBtn, #errorModalBtn, #logoImg, #cameraToggleBtn {
    color: #fff;
    position: absolute;
    font-size: 18px;
    right: 0;
    text-align: center;
    user-select: none;
}

.app__help-text {
    display: none;
    left: 0;
}

.app__dialog-overlay,
.app__infodialog-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 11;
}

.camera__icon,
.focus__icon {
    position: relative;
    left: 10px;
    display: none;
}



#frame {
    width: auto;
    height: auto;
}

.app__scanner-img {
    z-index: 1;
    position: relative;
    display: none;
}

@media screen and (max-width: 480px) {
    .app__infodialog {
        width: 90%;
    }

    .app__infodialog-content {
        padding: 12px 13px;
    }
}


/* by me */
.modal-backdrop.show {
    opacity: .8;
}

.modal-header, .modal-footer {
    background-color: #d9f8fd;
}

.modal-footer {
    justify-content: center;
}

.showLoader {
    background-color: black !important;
    opacity: 0.8 !important;
    z-index: 9 !important;
}

#addModalBtn, #loginModalBtn, #logoutBtn, #scanModalBtn, #errorModalBtn, #logoImg, #cameraToggleBtn {
    z-index: 99;
    padding-bottom: 2px;
    padding-left: 2px;
    width: 100px;
    height: 100px;
    font-size: 35px;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    background-color: #0066A1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loginModalBtn, #logoutBtn {
    bottom: auto;
    top: 20px;
}

#cameraToggleBtn {
    right: auto;
    left: 20px;
}

#logoImg {
    background-color: transparent;
    bottom: auto;
    top: 20px;
    right: auto;
    left: 20px;
}

    #logoImg img {
        opacity: .5;
    }

#logoutBtn {
    background-color: #dc3545;
    opacity: .4;
}

    #logoutBtn:active, #logoutBtn:hover {
        opacity: .8;
    }

#addModalBtn:active, #loginModalBtn:active, #scanModalBtn:active, #errorModalBtn:active, #cameraToggleBtn:active
#addModalBtn:hover, #loginModalBtn:hover, #scanModalBtn:hover, #errorModalBtn:hover, #cameraToggleBtn:hover {
    opacity: 0.8;
}

.gc-attendance {
    text-align: center;
    width: 200px;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -120px 0 0 -100px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* 11. Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d9f8fd;
    z-index: -3;
}

#status {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -20px 0 0 -20px;
}

.spinner-chase {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    position: relative;
    -webkit-animation: spinner-chase 2.5s infinite linear both;
    animation: spinner-chase 2.5s infinite linear both;
}

.chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-animation: chase-dot 2.0s infinite ease-in-out both;
    animation: chase-dot 2.0s infinite ease-in-out both;
}

    .chase-dot:before {
        content: '';
        display: block;
        width: 25%;
        height: 25%;
        background-color: #4CAF50;
        border-radius: 100%;
        -webkit-animation: chase-dot-before 2.0s infinite ease-in-out both;
        animation: chase-dot-before 2.0s infinite ease-in-out both;
    }

    .chase-dot:nth-child(1) {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s;
    }

        .chase-dot:nth-child(1):before {
            -webkit-animation-delay: -1.1s;
            animation-delay: -1.1s;
        }

    .chase-dot:nth-child(2) {
        -webkit-animation-delay: -1.0s;
        animation-delay: -1.0s;
    }

        .chase-dot:nth-child(2):before {
            -webkit-animation-delay: -1.0s;
            animation-delay: -1.0s;
        }

    .chase-dot:nth-child(3) {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s;
    }

        .chase-dot:nth-child(3):before {
            -webkit-animation-delay: -0.9s;
            animation-delay: -0.9s;
        }

    .chase-dot:nth-child(4) {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s;
    }

        .chase-dot:nth-child(4):before {
            -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s;
        }

    .chase-dot:nth-child(5) {
        -webkit-animation-delay: -0.7s;
        animation-delay: -0.7s;
    }

        .chase-dot:nth-child(5):before {
            -webkit-animation-delay: -0.7s;
            animation-delay: -0.7s;
        }

    .chase-dot:nth-child(6) {
        -webkit-animation-delay: -0.6s;
        animation-delay: -0.6s;
    }

        .chase-dot:nth-child(6):before {
            -webkit-animation-delay: -0.6s;
            animation-delay: -0.6s;
        }

@-webkit-keyframes spinner-chase {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner-chase {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes chase-dot {
    80%, 100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes chase-dot {
    80%, 100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes chase-dot-before {
    50% {
        -webkit-transform: scale(0.4);
        transform: scale(0.4);
    }

    100%, 0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes chase-dot-before {
    50% {
        -webkit-transform: scale(0.4);
        transform: scale(0.4);
    }

    100%, 0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.icn-spinner {
    animation: spin-animation 1s infinite;
    animation-timing-function: linear;
    display: inline-block;
}

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

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


/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    body, h5, h6 {
        font-size: 2rem !important;
    }

    .modal-dialog {
        max-width: 650px;
        margin: 2rem auto;
    }

    .w-50, .icnBtn, #loginModalUsername, #loginModalPassword, #scanModalName {
        font-size: 3rem !important;
    }

    h2, #addModalNumber, #scanModalNumber {
        font-size: 4rem !important;
    }

    #addModalBtn, #loginModalBtn, #logoutBtn, #scanModalBtn, #errorModalBtn, #logoImg, #cameraToggleBtn {
        width: 150px;
        height: 150px;
        font-size: 55px;
        bottom: 30px;
    }

    .app__snackbar {
        min-width: 500px;
        text-align: center;
        margin-left: -250px;
        bottom: 50px;
        left: 50%;
        font-size: 28px;
    }

    .gc-attendance {
        width: 300px;
        margin: -120px 0 0 -150px;
    }
}
