/* Templating */
html {
    min-height: 100%;
    background-color: rgb(245, 245, 245);
    background: rgb(245, 245, 245);
    margin: 0;
    padding: 0;
}
body {
    font-size: 14px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    background: transparent;
}
code {
    width: 100%;
    display: block;
    background-color: #f1f1f1;
    font-family: 'Courier New', sans-serif;
}
.login {
    position: relative;
    margin-top: 100px;
    padding: 40px;
    background-color: rgb(255, 255, 255);
    background: rgb(255, 255, 255);
    max-width: 400px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.login img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}
.login h1 {
    margin: 20px 0;
    text-align: center;
}

.page__schoolClasses input[type=text] {
    /* max-width: 150px; */
}

.page {
    padding: 40px;
}

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

.table td .form-group {
    margin-bottom: 0;
}

.table tr td {
    min-width: max-content;
}

.table tr td p {
    margin-bottom: 0;
    max-width: 400px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.page__content-container {
    padding: 40px;
    background-color: rgb(255, 255, 255);
    background: rgb(255, 255, 255);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.actions-column {
    display: flex;
    justify-content: flex-end;
}

.actions-column .btn {
    margin-left: 5px;
}
.navbar-brand {
    position: relative;
}
.bg-primary {
    background-color: #00334d !important;
    background: #00334d !important;
}

.btn {
    display: flex;
    align-items: center;
}

.btn i.fa {
    margin-right: 10px;
}

/* Button styles */
.btn.btn-primary {
    background-color: #005a87;
    background: #005a87;
    border-color:#005a87;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.btn.btn-primary:hover {
    background-color: #014364 !important;
    background: #014364 !important;
    border-color:#014364 !important;
}

.btn.btn-primary:active, .btn.btn-primary:focus {
    background-color: #00334d !important;
    background: #00334d !important;
    border-color:#00334d !important;
}

.page-item.active .page-link {
    background-color: #005a87;
    background: #005a87;
    border-color:#005a87;
}

.page-link, .btn-link, a {
    color: #005a87;
}

.page-link:hover, .btn-link:hover, a:hover {
    color: #014364;
}

th.actions {
    text-align: right;
    padding-right: .75rem !important;
}

th.actions::before, th.actions::after {
    display: none !important;
}

h1 {
    font-size: 2rem;
}

.navbar .logout {
    float: right;
    padding: 0;
    color: rgba(255,255,255,.5);
}

.navbar .logout:hover {
    color: rgba(255,255,255, .75);
    text-decoration: none;
}

.welcome-user {
    color: rgba(255,255,255,.75);
    margin-right: 20px;
    font-style: italic;
    font-size: .75rem;
}

.slideUp {
    animation: slideUp 150ms ease-in-out forwards;
}

/* Quiz answer results page */
.col.answer-is-correct, .col.answer-is-wrong, .col.answer-not-selected {
    text-align: right;
    font-weight: bold;
}
.col.answer-is-correct {
    color: #138000;
}
.row.answer-is-wrong {
    background: rgba(121, 0, 0, 0.025);
}
.col.answer-is-wrong {
    color: #790000;
}
.col.answer-not-selected {
    /*color: #00334d;*/
    color: transparent;
}
.endgame-results-question {
    break-inside: avoid;
    padding-bottom: 1em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.24);
}
.endgame-results-question:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}
.table-result-print {
    text-decoration: none;
}
.table-result-print .fa {
    float: right;
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

@media only screen and (max-width: 991px) {
    .welcome-user {
        text-align: right;
        padding-right: 0;
        margin-right: 0;
    }
    .navbar-toggler {
        margin-left: auto;
        display: block;
    }
    .nav-item .nav-link {
        text-align: center;
    }
    .navbar-brand {
        margin: 0 auto;
        display: block;
        text-align: center;
    }
    .navbar .logout {
        float: none;
        margin-top: 10px;
        padding-top: 15px;
        padding-bottom: 15px;
        border-top: 1px solid rgba(255,255,255,.5);
        text-align: right;
    }
}

@media only print {
    html {
        background: white;
    }
    /* Remove margins from wrapper elements when printing */
    body,
    body > .page,
    body > .page > .page__content-container {
        background: transparent;
        margin: 0;
        padding: 0;
    }
    body {
        margin: 1cm;
    }
    /* Hide main navigation */
    body > nav {
        display: none;
    }
    .omit-from-printing {
        display: none;
    }
    /* On the results page, don't break inside a cell */
    .endgame-results-question, .endgame-results-question .col {
        break-inside: avoid;
    }

}
