/*** Common ***/

html {
    height: 100%;
}

body.quiz-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    position: static;
    background-color: #f5f5f5;
}

.navbar.navbar-inverse {
    background-color: #3a5795;
}

footer {
    background-color: #3a5795;
    bottom: auto;
    color: #fff;
    left: auto;
    min-height: auto;
    position: static;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-container-custom {
    font-size: 16px;
    padding-top: 19px;
    text-align: right;
}

.footer-comp-name {
    text-align: left;
}

.footer-menu {
    text-align: right;
}

.link-footer-custom {
    color: #fff;
}

.link-footer-custom:hover {
    color: #faebd7;
}

.form-group .checkbox label,
.form-group .radio label,
.form-group label {
    color: #666;
}

.radio input[type=radio]:checked~.check,
label.radio-inline input[type=radio]:checked~.check {
    background-color: #f80;
}

.radio input[type=radio]:checked~.circle,
label.radio-inline input[type=radio]:checked~.circle {
    border-color: #f80;
}

.checkbox input[type=checkbox]:checked+.checkbox-material .check,
label.checkbox-inline input[type=checkbox]:checked+.checkbox-material .check {
    border-color: #f80;
    color: #f80;
}

.checkbox input[type=checkbox]:checked+.checkbox-material .check:before,
label.checkbox-inline input[type=checkbox]:checked+.checkbox-material .check:before {
    color: #f80;
}

.form-group.is-focused .radio label,
.form-group.is-focused label.radio-inline,
.form-group.is-focused .checkbox label,
.form-group.is-focused label.checkbox-inline {
    color: #666;
}

.form-group.is-focused .radio label:focus,
.form-group.is-focused .radio label:hover,
.form-group.is-focused label.radio-inline:focus,
.form-group.is-focused label.radio-inline:hover,
.form-group.is-focused .checkbox label:focus,
.form-group.is-focused .checkbox label:hover,
.form-group.is-focused label.checkbox-inline:focus,
.form-group.is-focused label.checkbox-inline:hover {
    color: #222;
}


/*** Loading ***/

.loading-container {
    left: 40%;
    position: fixed;
    top: 50%;
    z-index: 9999;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.8);
}

.loading-backdrop {
    background-color: rgba(0, 0, 0, .3);
    bottom: 0;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
}

.loading-open {
    overflow: hidden;
}


/*** Quiz ***/

.checkbox {
    margin-left: 8px;
}

span.checkbox-material {
    margin-right: 14px;
}

.pagination {
    margin: 0;
}

@media (min-width: 768px) {
    .pagination {
        width: 68px;
    }
}

/*** Quiz page layout ***/

.quiz-page-wrap {
    flex: 1 0 auto;
    padding-bottom: 12px;
}

.quiz-alert {
    margin: 8px 8px 0;
}

.quiz-layout-row {
    margin-top: 8px;
}

.quiz-question-panel {
    margin: 0 8px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.quiz-question-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 64px;
}

.quiz-question-header h4 {
    flex: 1;
    margin: 0;
    padding-right: 72px;
    font-size: 17px;
    line-height: 1.45;
    word-break: break-word;
}

.countdown-timer {
    flex-shrink: 0;
    line-height: 0;
    position: absolute;
    top: 0;
    right: 0;
}

#choice-container .radio {
    margin: 0 0 4px;
    padding: 10px 8px 10px 0;
    border-radius: 4px;
}

#choice-container .radio label {
    font-size: 15px;
    line-height: 1.4;
}

.quiz-question-panel .panel-footer {
    padding: 12px 16px 16px;
    background: #fff;
    border-top: none;
}

.quiz-question-panel .panel-footer .btn {
    min-width: 140px;
    font-size: 15px;
}

#status-panel-container .panel {
    margin: 0 8px;
}

@media (max-width: 767px) {
    .footer-menu {
        display: none;
    }

    .footer-container-custom {
        padding: 10px 12px;
        text-align: center;
    }

    .footer-comp-name {
        text-align: center;
        font-size: 12px;
    }

    .quiz-pagination {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        padding: 0 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .quiz-pagination > li {
        display: inline-block;
        float: none;
    }

    .quiz-pagination > li > a {
        min-width: 44px;
        text-align: center;
        padding: 10px 12px;
    }

    #pagination-container {
        margin-bottom: 10px;
    }

    .quiz-question-header h4 {
        font-size: 16px;
    }

    .loading-container {
        left: 50%;
        transform: translateX(-50%);
    }
}

/*** Android WebView ***/

body.android-app {
    background-color: #f0f0f0;
}

body.android-app .quiz-alert {
    margin: 6px 8px 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.35;
}

body.android-app .quiz-alert .close {
    font-size: 18px;
    top: 4px;
    right: 8px;
}

body.android-app .footer-container-custom {
    padding: 8px 12px;
    font-size: 12px;
}

body.android-app .footer-comp-name {
    text-align: center;
}

body.android-app .quiz-page-wrap {
    padding-bottom: 8px;
}

body.android-app .quiz-question-panel {
    margin: 0 6px;
}

/*** Main app header inside Quiz4Money Android WebView ***/

body.quiz-body.android-app {
    margin-bottom: 0 !important;
}

body.quiz-body.android-app .quiz-app-header.top-navbar {
    margin-bottom: 0;
}

body.quiz-body.android-app .quiz-app-header .navbar-brand img {
    max-height: 48px;
    width: auto;
}

body.quiz-body.android-app .quiz-app-header .navbar-header {
    width: 100%;
}

body.quiz-body.android-app .quiz-app-header .navbar-toggle.sideNavToggle {
    float: right;
    margin-right: 0;
    padding: 15px 12px;
}

body.quiz-body.android-app .quiz-app-header .navbar-toggle.wallet {
    float: right;
    margin-right: 4px;
    padding: 15px 8px;
    font-size: 14px;
}

body.quiz-body.android-app .quiz-app-header .navbar-brand {
    float: left;
    padding: 8px 12px;
}
