/* Layout */
/* ======================================== */
html, body, #content-admin {
    height: 100%;
    max-height: 100%;
}

body {
    background: url('/img/dir-bg.png');
    padding-top: 51px;
}

audio {
    width: -webkit-fill-available;
    max-width: 250px;
}

#content-admin.open {
    padding-left: 200px;
    overflow: auto;
}
#content-admin #footer {
    padding-bottom: 20px;
}
#content-admin #footer footer.row {
    margin: 0;
}

#main {
    padding-top: 20px;
}

.brt-flag {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 140px;
    height: 140px;
}

.brt-flag img {
    width: 100%;
}

.navbar.navbar-fixed-top {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    background: 10px center url('/img/logo-dir-sm.png') no-repeat;
    padding-left: 80px;
}

.logout-button{
    border: none;
    background-color: transparent;
    margin-top: 14px;
    color: #777;
}

.logout-button:hover{
    color: #333;
}
#sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background-color: #333;
    background: linear-gradient(to right,#333 92%,#222 100%);
    border-right: 1px solid #e7e7e7;
    padding-top: 51px;
}

#sidebar li.user > span {
    display: block;
    padding: 10px;
    line-height: normal;
    border-bottom: 1px solid #111;
    color: #ccc;
}

#sidebar .glyphicon {
    margin-right: 8px;
}
#sidebar li {
    border-bottom: 1px solid #444;
}
#sidebar a {
    font-size: 16px;
    line-height: 2em;
    color: #999;
    border-bottom: 1px solid #111;
}
#sidebar li.active > a,
#sidebar li.active > a:hover,
#sidebar li.active > a:active,
#sidebar a:hover,
#sidebar a:active {
    color: #fafafa;
    background-color: transparent;
}

#footer > footer {
    margin-top: 20px;
    text-align: center;
    border: 1px solid #e7e7e7;
    background-color: #f8f8f8;
}

#footer > footer .link-uo,
#footer > footer .link-brt {
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
}

#footer > footer .copyright {
    padding: 5px 0 0;
}

.flag {
    position: absolute;
    right: -1px;
    border-right: 20px solid #fafafa;
    border-top: 27px solid transparent;
    border-bottom: 26px solid transparent;
}

.g-recaptcha {
    width: 50%;
    margin: 0 auto;
}


/* Components */
/* ======================================== */
hr.thin { margin: 15px 0; }
hr.thinner { margin: 10px 0; }

.panel {
    -webkit-box-shadow: 0 0px 10px rgba(0, 0, 0, .1);
    box-shadow: 0 0px 10px rgba(0, 0, 0, .1);
    border-radius: 0;
}

.panel-heading h1,
.panel-heading h2,
.panel-heading h3,
.panel-heading h4 {
    margin: 10px 0;
}
.panel-heading small.counter {
    float: right;
    margin-top: 10px;
}

.panel-login {
    margin-bottom: 60px;
}

.panel-login .checkbox {
    margin-bottom: 15px;
    text-align: center;
}

.table-delete input[type="checkbox"],
.table-delete label {
    margin-top: 0;
    margin-bottom: 0;
}

table.table {
    margin-bottom: 0;
}

table.table tbody tr td,
table.table thead tr th {
    vertical-align: middle;
}

.radio {
    margin-top: 0;
}

th {
    white-space: nowrap;
}

th a,
th a:hover {
    color: black;
    display: inline-block;
    text-decoration: none;
}


/* Admin */
/* ======================================== */
.jumbotron.splash {
    background: none;
}

.splash img.logo {
    width: 198px;
    height: 168px;
}

.table-date {
    width: 90px;
}
th.is-admin,
td.is-admin{
    width: 86px;
    text-align: center;
}
.is-admin .text-success {
    color: #7ac943;
}
.is-admin .text-danger {
    color: #ff619c;
}
.is-admin.col-sm-2 .glyphicon {
    line-height: 34px;
    font-size: 21px;
}
.table-edit,
.table-delete {
    text-align: center;
    width: 68px;
}
td.resource-type {
    width: 14px;
}

.table-created-by {
    width: 100px;
}

.table-delete label,
.table-edit a {
    display: block;
}

th.table-delete {
    cursor: pointer;
}

#paginate {
    width: 80px;
}


/* Item admin */
/* ======================================== */
fieldset.item-option {
    padding: 15px 15px 0 75px;
    background-color: #f5f5f5;
    position: relative;
    margin-top: 15px;
    border: 1px solid #ddd;
}
fieldset.item-option > label.radio-correct {
    position: absolute;
    margin: 0;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    font-size: 40px;
    text-align: center;
    display: table-cell;
    line-height: 168px;
    cursor: pointer;
    border-right: 5px solid #ff619c;
    color: #ff619c;
}
fieldset.item-option > label.radio-correct input[type="radio"] {
    display: none;
}
fieldset.item-option > label.radio-correct.checked {
    color: #7ac943;
    border-right: 5px solid #7ac943;
}


/* Question admin */
/* ======================================== */
#response-options table {
    width: 100%;
}
#response-options table td,
#response-options table th {
    padding: 4px 4px;
}
#response-options thead tr th:first-child,
#response-options tbody tr td:first-child input{
    text-align: center;
}
#response-options tbody tr td:first-child,
#response-options thead tr th:first-child {
    width: 50px;
}
#response-options tbody tr td:last-child,
#response-options thead tr th:last-child {
    width: 40px;
}


/* Reports admin */
/* ======================================== */

#report-accordion h3.panel-title {
    font-size: 24px;
    margin: 0;
}
#report-accordion h3.panel-title a {
    display: block;
    padding: 10px 0;
}
#report-accordion h3.panel-title a:hover,
#report-accordion h3.panel-title a:focus {
    text-decoration: none;
}

.table.report-table {
    margin-bottom: 40px;
}
.report-table thead > tr > th {
    line-height: 34px;
    font-size: 21px;
}
.report-table th.title {
    border-right: none;
    font-weight: 200;
}
.report-table th.download {
    text-align: right;
    border-left: none;
    width: 60px;
}
.report-table td.reviewer {
    width: 300px;
}
.report-table .progress {
    margin-bottom: 0;
}

#report-sortTable th:nth-child(1) {
    width: 110px;
}

#report-sortTable th:nth-child(3),
#report-sortTable th:nth-child(4) {
    width: 150px;
}


/* Checkbox List */
/* ======================================== */
.checkbox-list {
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-x: hidden;
    overflow-y: auto;
}
.checkbox-list li {
    list-style: none;
    padding: 0;
    border-top: 1px solid #e7e7e7;
}
.checkbox-list li:first-child {
    border: 0;
}
.checkbox-list li label {
    display: block;
    margin: 0;
    padding: 8px;
    font-weight: normal;
}
.checkbox-list li label:hover,
.checkbox-list li label.checked {
    background-color: #eee;
}
.checkbox-list li label input[type="checkbox"] {
    float: left;
    margin-right: 8px;
}


/* Stacked List */
/* ======================================== */
.stacked-list {
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-x: hidden;
    overflow-y: auto;
}
ul.stacked-list {
    padding: 0;
}
.stacked-list li {
    padding: 8px;
    margin: 4px;
    border: 1px solid #e7e7e7;
    background-color: #eee;
    cursor: all-scroll;
}
ul.stacked-list li {
    list-style: none;
}


/* Stacked List */
/* ======================================== */
.modal-header,
.modal-footer {
    background-color: #f5f5f5;
}
.modal-footer {
    border-top: 1px solid #ddd;
}
.modal-header {
    border-bottom: 1px solid #ddd;
}
.modal-content {
    border-radius: 0;
}


/* Reviews */
/* ======================================== */
.review.panel .panel-heading {
    position: relative;
}
.review.panel .progress {
    margin-bottom: 0;
    border-radius: 0;
    height: 30px;
}
.review.panel .progress > .progress-bar {
    line-height: 30px;
}
.review.panel .progress-bar-success {
    background-color: #7ac943;
}
.review.panel .progress-bar-danger {
    background-color: #ff619c;
}
.review.panel .page-header:first-of-type {
    margin-top: 20px;
}
.review.panel img.img-responsive {
    margin: 20px auto;
}
.placeholder {
    font-weight: 200;
    color: #bbb;
    line-height: 1.2em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    padding: 40px 0;
}
.review .item-prompt {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0, 0.1);
    padding: 20px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 18px;
}
.review .item-prompt p {
    margin-bottom: 0;
}
.review .item-option {
    width: 33.3333%;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0, 0.1);
    border-width: 5px;
    border-style: solid;
    border-color: #ff619c;
    text-align: center;
    vertical-align: bottom;
}
.review .item-option.correct {
    border-color: #7ac943;
}
.review .item-option p {
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}
.review .item-table {
    width: 100%;
    border-spacing: 20px;
    border-collapse: separate;
    table-layout: fixed;
}

.resource-menu {
    position: absolute;
    top: 50%;
    right: 15px;
    margin-top: -17px;
}
.resource-menu .glyphicon {
    margin-right: 4px;
    color: #428bca;
}

.review-sidebar .panel-heading h2 {
    font-weight: 200;
}

.review-sidebar .panel.items .panel-body {
    padding: 0;
}

.item-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: auto;
    position: relative;
}
.item-nav li {
    border-top: 1px solid #ddd;
}
.item-nav li:first-child {
    border-top: none;
}
.item-nav li a {
    padding: 10px 20px;
}
.item-nav li.active a {
    background-color: #eee;
}
.item-nav li .glyphicon {
    margin-right: 8px;
    color: #ff619c;
}
.item-nav li.complete .glyphicon {
    color: #7ac943;
}

.item-filter {
    padding: 5px;
    border-bottom: 1px solid #ddd;
    background-color: #999;
}
.item-filter .form-group {
    margin-bottom: 0;
}
.item-filter .form-control-feedback {
    top: 0;
}

.resource-nav li .glyphicon {
    margin-right: 8px;
}

.review-video {
    border: 1px solid #ddd;
    border-radius: 5px;

}
.review-video h3 {
    text-align: center;
    font-weight: 200;
    margin: 0;
    padding: 20px 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}
.review-video video {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* iPhone 4/5 */
/* ======================================== */
@media (max-width: 360px) {

    .navbar-brand {
        padding-top: 6px;
        padding-bottom: 6px;
    }

}


/* Phones */
/* ======================================== */
@media (max-width: 767px) {

    .navbar-brand {
        margin-right: 59px;
        float: none;
        text-align: center;
        display: block;
    }

    #footer > footer {
        margin-bottom: 0;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    #footer > footer div[class^="col-"] {
        border-bottom: 1px solid #e7e7e7;
        padding: 10px;
    }
    #footer > footer.row > .copyright {
        padding: 15px;
    }

    #system-requirements .browser {
        display: block;
        padding: 10px;
        margin-bottom: 15px;
    }

    .item-nav {
        max-height: 204px;
    }

    .review .item-table {
        border-spacing: 15px;
    }
    .review .item-option .item-option-label {
        width: 30px;
    }
    .review .item-option .item-option-label h1 {
        font-size: 24px;
    }

}


/* Small devices (tablets, 768px and up) */
/* ======================================== */
@media (min-width: 768px) {

    #content-public #footer,
    #content-public .push {
        height: 92px;
    }
    .content {
        margin-bottom: -92px;
        min-height: 100%;
    }

    .panel > .panel-body {
        padding: 20px;
    }
    .panel-login {
        width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    #footer > footer .link-uo {
        text-align: right;
    }
    #footer > footer .link-brt {
        text-align: left;
    }

    .panel-register {
        width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    #system-requirements ul {
        width: 250px;
        margin: 0 auto;
    }

    .item-nav {
        max-height: 204px;
    }

    .item-option .img-responsive {
        max-width: 159px;
        max-height: 159px;
    }

}


/* Medium devices (desktops, 992px and up) */
/* ======================================== */
@media (min-width: 992px) {

    .splash img.logo {
        float: left;
        margin: 0 20px 0 140px;
    }
    .splash .title {
        text-align: left;
    }

    #footer > footer .copyright {
        padding: 15px 0;
    }

    .item-option .img-responsive {
        max-width: 151px;
        max-height: 151px;
    }

    .item-nav {
        display: block;
        max-height: 614px;
    }
    .item-nav li {
        display: list-item;
    }
    .item-nav li a {
        float: none;
        margin-left: 0;
    }

}


/* Large devices (large desktops, 1200px and up) */
/* ======================================== */
@media (min-width: 1200px) {

    .jumbotron.splash img.logo {
        margin: 0 20px 0 240px;
    }
    .item-option .img-responsive {
        max-width: 201px;
        max-height: 201px;
    }

}
