﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Exam edit styles */
.edit-monospace {
    font-family: 'Courier New', monospace;
    font-size: smaller;
    font-weight: bold;
}

/* Exam styles */

.q-pad {
    -ms-flex: 0 0 30px !important;
    flex: 0 0 30px !important;
}

.q-cap {
    font-size: 22px;
    font-family: 'Book Antiqua', Times, serif;
    line-height: 24px;
    font-weight: 700;
}

.q-larger {
    font-size: larger;
}

.q-mark-missed {
    color: red;
    display: none;
}

.question-image {
    object-fit: cover;
    width: 100%;
}

.content-item {
    border-top: 1px solid gray;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    padding-left: 25px;
    padding-bottom: 0.5rem;
    padding-right: 25px;
    display: none;
}

.content-item table {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid black;
}

.content-item table td {
    padding: 5px 10px;
    text-align: center;
    border: 1px solid #808080;
}

.content-item img {
    max-width: 100%;
    margin-bottom: 1rem;
}

.exam-item table {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid black;
}

.exam-item table td {
    padding: 5px 10px;
    text-align: center;
    border: 1px solid #808080;
}

.exam-item img {
    max-width: 100%;
    margin-bottom: 1rem;
}

.score-table td:first-child {
    font-weight: bold;
}

.exam-item {
    border-top: 1px solid gray;
    padding-top: 10px;
    padding-bottom: 10px;
    display: none; /* hide initially */
}

.exam-item.missed {
background-color: #ffe3e3;
}

.exam-item.missed .q-mark-missed {
    display: inline;
}

.content-item blockquote, .exam-item blockquote {
    border: 1px solid #444;
    padding: 1rem;
    font-family: 'Book Antiqua',serif;
}

.page-tracker {
    white-space: nowrap;
}

.no-select {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}
