*{
    box-sizing: border-box;
    font-family: "Arimo", Sans-serif;
    font-weight: 400;
}
html,body{
    margin: 0;
    padding: 0;
    width: 100vw;
    background-color: #002c64;
    overflow: hidden;
}

.lock{
    overflow: hidden !important;
}

#preloader{
    display: table;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 106px);
    overflow-x: hidden;
}

#preloader .content{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

#preloader .content img{
    width: 90%;
    max-width: 300px;
}

#main{
    display: none;
    min-height: calc(100vh - 106px);
    height: 100%;
    margin-top: 80px;
    padding: 30px 20px 180px 20px;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: scroll;
}
#main.home-screen{
    padding: 30px 10px 80px 10px !important;
    background-color: #fff;
    background-image: url('https://app.mcbimo.com/assets/images/mcbimo-bg-min.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    margin-bottom: 60px;
}

#header{
    display: table;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    width: 100%;
    height: 80px;
    background-color: #002c64;
    padding: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}

#footer{
    display: table;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 99;
    width: 100%;
    height: 26px;
    background-color: #002c64;
    border-top: 1px solid #0061AB;
    padding: 8px 20px;
    text-align: center;
    font-size: 10px;
    font-weight: 300;
    color: #fff;
}

.footer-left{
    display: inline;
    float: left;
    text-align: left;
}
.footer-right{
    display: inline;
    float: right;
    text-align: center;
}


.footer-img{
    display: block;
    height: 70px;
    max-height: 70px;
    width: auto;
}

.home-link{
    display: inline;
    width: 40px;
    height: 40px;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    text-align: center;
    line-height: 40px;
    float: left;
    cursor: pointer;
}
.home-link i{
    margin-top: 10px;
}

.camera-link{
    display: inline;
    width: 40px;
    height: 40px;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    text-align: center;
    line-height: 40px;
    float: right;
    cursor: pointer;
}
.camera-link i{
    margin-top: 10px;
}

#qr-reader-container {
    top: 0;
    width: 100vw;
    height: 100%;
    min-height: 100vw;
    background-color: #fff;
    display: table;
    position: absolute;
    z-index: 2;
    margin-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

#qr-reader-container.show {
    opacity: 1;
    visibility: visible;
}


#qr-reader{
    width:100vw;
    height:auto;
    display: block;
    border: 0 !important;
}
/*
#qr-reader__dashboard,
#qr-reader__header_message{
    opacity: 0;
}

#qr-reader__dashboard_section{
    height: 0px !important;
    padding: 0px !important;
    margin: 0px !important;
}

img[alt="Info icon"],
img[alt="Camera based scan"]{
    display: none !important;
}
*/
.stop-scan{
    display: block;
    width: 100%;
    height: 45px;
    padding: 11px 15px;
    color: #fff;
    background-color: #0061AB;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
}
.stop-scan i{
    margin-left: 10px;
    font-size: 16px;
}

#menu-icons{
    display: table;
    table-layout: fixed;
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
    margin: 0 auto;
}

.menu-icons-row {
    display: table-row;
}

.menu-icon{
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    color: #fff;
    /*border: 1px solid #fff;*/
    background-color: #002c64;
    border-radius: 10px;
    padding: 50px 30px;
    opacity: 0.9;
    cursor: pointer;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}
.menu-icon i{
    font-size: 30px;
    opacity: 1;
}
.menu-icon p{
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    margin-top: 20px;
    opacity: 1;
}
.menu-icon.has-img{
    background-color: #d2e6ff;
}
.menu-icon img{
    display: block;
    width: 80%;
    margin: 0 auto;
}

.menu-separator{
    font-size: 18px;
    font-weight: 600;
    background-color:#002c64;
    color: #fff;
    display: block;
    padding: 10px;
    opacity: 0.9;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border-radius: 10px;
    margin-top: 40px;
}

.entity-heading{
    margin: 0;
    padding: 0;
    display: table;
    width: 100%;
}
.entity-separator{
    display: block;
    width: 100%;
    height: 1px;
    background-color: #002c64;
    margin: 10px 0px;
}
.entity-image{
    margin: 0;
    padding: 0;
    display: table;
    width: 100%;
}

.entity-text{
    margin: 30px 0px;
    padding: 0;
    display: table;
    width: 100%;
    line-height: 26px;
    font-size: 18px;
}

.entity-term{
    color:#002c64;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.entity-group{
    min-height: 30vh;
    height: 30vh;
    background-size: cover;
    padding: 0px !important;
    vertical-align: bottom !important;
}

.entity-group.brodovi{
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #fff !important;
    padding: 0px !important;
}

.menu-icon-title{
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 300;
    background-color: rgba(0, 0, 26, 0.8);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.back-link{
    display: inline-block;
    width: auto;
    padding: 10px 15px;
    background-color: #002c64;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    z-index: 9;
}
.back-link i{
    font-size: 20px;
    color: #fff;
    display: inline-block;
}
.back-link i:first-of-type{
    margin-right: 10px;
}
.back-link span{
    font-size: 20px;
    color: #fff;
    display: inline-block;
    font-weight: 300;
    margin-left: 10px;
}

.youtube-heading{
    display: table;
    width: 100%;
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: #002c64;
}

.youtube-video{
    display: table;
    width: 100%;
    margin: 40px auto;
}
.youtube-video iframe{
    width: calc(100vw - 40px);
}

.pdf-container {
    width: 100%;
    height: 60vh;
    overflow: auto;
    position: relative;
}

canvas {
    width: 100% !important;
    height: auto !important;
}
.controls {
    display: table;
    margin: 30px 0px 10px 0px;
}
.controls button {
    margin-right: 5px;
}

#prev,
#next{
    display: inline-block;
    padding: 15px 25px;
    background-color: #002c64;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* QUIZ */
#question-buttons{
    display: table;
    width: 100%;
    padding: 20px 0px;
}
#question-previous{
    display: inline;
    float: left;
    width: auto;
    text-align: left;
    background-color: #002c64;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
}
#question-next{
    display: inline;
    float: right;
    width: auto;
    text-align: right;
    background-color: #002c64;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
}
#question-finish{
    display: inline;
    float: right;
    width: auto;
    text-align: right;
    background-color: #002c64;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
}

.question{
    display: none;
    width: 100%;
}

.question p{
    font-weight: 600;
    font-size: 18px;
}

.result-summary{
    display: table;
    width: 100%;
    font-weight: 600;
    font-size: 32px;
    text-align: center;
    padding: 20px 0px;
}

.question-result{
    display: block;
    width: 100%;
}
.question-result p{
    font-weight: 600;
    font-size: 18px;
}

.answer{
    display: table;
    width: 100%;
    background-color: #002c64;
    color: #fff;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.answer.selected{
    background-color:#e7b13d;
    color: #000;
}
.answer.correct{
    background-color:#52df77;
    color: #000;
}
.answer.wrong{
    background-color:#e73d3d;
    color: #000;
}

/* Hide previous button on first question and next button on last */
#question-previous.hide,
#question-next.hide,
#question-finish.hide{
    display: none;
}

/* Hide the body content in landscape mode */
.switch-mode{display: none;}
@media screen and (orientation:landscape) {
    #main, 
    #header, 
    #footer,
    #qr-reader-container {
        display: none !important;
    }

    .switch-mode {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 999;
        width: 100vw;
        height: 100vh;
        text-align: center;
        padding: 20px;
        font-size: 18px;
        color: #fff;
        background-color: #002c64;
        overflow: hidden;
    }
}