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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: 400
}

ul {
    list-style: none
}

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

html {
    font-size: 16px;
    box-sizing: border-box
}

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

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

iframe {
    border: 0
}

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

td,
th {
    padding: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    max-width: 146px;
}

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

.box {
    color:white;
    background-color: #253060;    
    border-radius: 0.25rem;    
    margin-top:0.5rem;
}

.box .content {
    padding: 0.75rem;    
    padding-bottom:0.55rem;
}

.progress {
    background-color: rgba(255,255,255,0.5);    
    height:6px;    
}

.progress .bar {
    content:'';
    background-color: #e94c2a;
    height:6px;
    width:20%;
    border-radius: 0.25rem;
}


#app {
    position: fixed;
    width:100vw;
    height:100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, .5)
}

.app__layout {
    position: absolute;
    width: 100%;
    height: 100%;        
}

.app__footer {
    position: fixed;
    bottom:0px;
    left:0px;
    width:100vw;
    min-height: 100px;    
    background-color: white;
    padding:1rem;
    display: flex;
    z-index: 10;
    gap:1rem;    
    align-items: center;
}

.app__footer img {
    height:50px;
}

.app__header {
    width: 100%;
    min-height: 100px;
    color: #fff;
    background-color: white;
    display: flex;
    position: fixed;    
    padding-top: env(safe-area-inset-top, 0px);    
    justify-content: center;
    left: 0;
    right: 0;
    z-index: 10;    
    box-shadow: 0px 3px 15px rgba(0,0,0,0.2);
}

.app__header .logo {
    margin-top: 2rem;
    width:50vw;
    max-height: 4vh;
}

.app__header,
.app__header-icon {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.app__header-icon {        
    position: absolute;    
    right:0px;
    display: flex;        
    justify-content: center;
    cursor: pointer;    
    padding: 30px;
    box-sizing: border-box;    
}

.app__header-icon img {
    width: 1.5rem;
}

.app__header-icon.batch {
    left:50px;
    right:auto;
}

.app__header-icon:active {
    opacity: .8
}

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

.app__layout-content {
    height: inherit
}

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

.custom-menu-icon,
.custom-title {
    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 {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: block;
    height: 100%;
    width: auto;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

video.visible {
    opacity: 1;
}

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

.custom-copy-btn {
    opacity: 0
}

.hide {
    display: none
}

@keyframes scanner {
    from {
        transform:translateY(-5vh);
    }    

    to {
        transform:translateY(35vh);
    }
}

.app__scanner-img {
    opacity: 0.7;
}

.custom-scanner {
    width: 100%;    
    height: 2px;
    left:0px;
    top:0px;
    transform:translateY(-5vh);
    background: #ff9900;
    position: absolute;    
    animation: scanner 1.5s linear infinite alternate;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, .4);
    display: none;
}

.custom-scanner.visible {
    display: block;
}

#camera {
    opacity: 0
}

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

.app__snackbar {
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);    
}

.app__snackbar.visible {
    opacity: 1;
    pointer-events: auto;
}

.app__snackbar-msg {
    width: 250px;
    min-height: 80px;
    background-color: rgb(38,49,94);
    color: white;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24);
    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);   
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;    
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;    
    padding:2rem;
    padding-top:1rem;
    padding-bottom:1rem;       
    transition: all 0.5s ease-in-out;
    text-transform: none;
    margin-bottom: 10px;
    z-index: 9999;    
    transform: scale3d(0,0,0);
}

.app__snackbar.visible .app__snackbar-msg {
    transform: scale3d(1,1,1);
}

.app__dialog-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width:0;
    height: 0;
    display: flex;
    z-index: 100; 
    opacity: 0; 
    pointer-events: none;  
}

.app__dialog-wrapper.visible {
    opacity: 1; 
    width:100vw;
    height: 100vh;    
    pointer-events: all;  
}

.app__dialog-background {
    position:absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width:100vw;
    height: 100vh;    
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .3s ease-in-out;
}

.app__dialog-wrapper.visible .app__dialog-background {
    opacity: 1;
}

.app__dialog {
    z-index: 12;
    background-color: #fff;
    width: 90vw;
    height:auto;    
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    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);   
    transform: translateY(100vh);
    transition: transform .35s ease-in-out;
}

.app__dialog-wrapper.visible .app__dialog {
    transform: translateY(0vh);
}

.app__dialog h3 {        
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.app__dialog label {
    display: block;
    margin-top:1rem;
    margin-bottom:0.5rem;    
    font-size:0.75rem;
    text-transform: uppercase;
    color:#999;
}

.app__dialog-content {
    width:100%;
    padding:1rem;    
    margin-bottom: 1rem;
}

.app__dialog input, .app__dialog textarea {
    width: 100%;
    height: 30px;    
    border: 1px solid rgba(0, 0, 0, .12);
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    padding-top:1rem;
    padding-bottom:1rem;
    margin:0px;    
    padding-left:0.5rem;
    padding-right:0.5rem;    
    font-weight: 500;
    border-radius: 0.25rem;
}

.app__dialog textarea {
    padding-top:0.5rem;
    min-height: 4rem;
}

.app__dialog input[readonly] {
    background-color: #f5f5f5;
}

.app__dialog-actions {
    display: flex;    
    gap:2rem;
    justify-content: space-between;
    border-top:1px solid #eee;
    width: 100%;
    left: 0px;
    box-sizing: border-box;    
    padding:1rem;
}

button {    
    border: 0;
    height: 35px;
    width:100%;
    font-size: 16px;    
    font-weight: 500;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    border-radius: 0.25rem;
}

button:active {
    opacity: .9
}

button.debug {
    background-color: white;    
    color:black;
    font-weight: 500;
    margin-bottom: 5px;
}

.app__dialog-close {
    border: 1px solid #aaa;
    color:#666;
}

.app__dialog-save {
    background-color: #e23b17;
    background-color: #102068;
    color:white;
    font-weight: 700;
}

.app__overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    transition: all .2s ease-in;
    width: 70vw;
    height: 70vw;
    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
}

.app__help-text,
.app__select-photos {
    color: #fff;    
    font-size: 18px;    
    text-align: center;
    user-select: none;

}

/* .app__dialog-background {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 11
} */

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

.app__select-photos {
    min-width: 58px;
    min-height: 58px;
    cursor: pointer;        
    border-radius: 50%;
    background-color: #3f51b5;
    background-image: url('./res/images/photo-camera.svg');
    background-repeat: no-repeat;
    background-size: 26px;
    background-position: 16px 15px
}

.app__select-photos:active {
    opacity: .8
}

input[type=file] {
    display: none
}

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