body {
    margin: 0px;
    padding: 0px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
nav {
    background-color: rgb(255, 26, 26);
    min-height: 10vh;
    z-index: 100;
}
nav.navbar {
    position: fixed;
    width: 100%;
}
.navbar-title {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 2.3em;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

nav, .barcode-scanner, .navbar-title {
    transition: .2s;
}
.barcode-scanner {
    height: 100%;
}
#manual-scanner {
    display: none;
}
.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.alert {
    max-width: 570px;
    text-align: center;
    margin-bottom: 0px;
}

.scanner-background {
    background-image: url("/mobile/img_new/scanner-2-color-red-svg.svg");
    background-position: top;
    background-repeat: no-repeat;
    padding: 20%;
    padding-right: 0px;
}

.scanner-background h2 {
    font-size: 1.2em;
}

canvas.drawingBuffer, #barcode_scanner, video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 1;
}

#barcode_scanner {
    position: relative;
    background: #000;
}

canvas.drawingBuffer {
    position: absolute;
    left: 0;
    top: 0;
}

.modal-header {
    background: rgb(255, 26, 26);
    color: #fff;
}
.close {
    color: #fff;
    opacity: .9;
}

#toggle-manual {
    position: absolute;
    bottom: 5%;
    left: 5%;
    z-index: 100;
    width: 75px;
    height: 45px;

    transition: .5s;
    display: none;
    padding: 10px;
    background: #fff3cd;
    border-radius: 15px;
    text-align: center;
}
#toggle-manual img{
    max-width: 100%;
    max-height: 100%;   
}

#toggle-manual:hover{
    transform: scale(1.3);
    cursor: pointer;
}

@media ( max-width: 1000px ){
    nav {
        min-height: 15vh;
    }
}

@media ( max-width: 570px ){
    .flex {
        align-items: normal;
    }
    .alert {
        height: 100%;
        padding-top: 20vh;
    }

    .navbar-title {
        font-size: 2em;
    }
}

@media ( max-width: 475px ) {
    .navbar-title {
        font-size: 1.5em;
    }
}

@media ( max-width: 380px ) {
    .navbar-title {
        font-size: 1.5em;
        display: inline-block;
        width: 70%;
    }
}

@media ( max-width: 298px ) {
    .navbar-title {
        font-size: 1em;
    }
}