/* erikadoss.org: plain-CSS replacement for Bootstrap 4.5 + J2020_0003.css.
   Only the parts of Bootstrap that the templates and page content use are
   reproduced here, with the same class names and values. */

/* ---- Base (Bootstrap reboot) ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
    margin: 0;
    font-family: "Crimson Text", serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
}
article, footer, main, section { display: block; }
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
p, ul, ol { margin-top: 0; margin-bottom: 1rem; }
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
a { color: #007bff; text-decoration: none; background-color: transparent; }
a:hover { color: #0056b3; text-decoration: underline; }
/* <a name="..."> anchors in page content wrap whole paragraphs. */
a:not([href]), a:not([href]):hover { color: inherit; text-decoration: none; }
img { vertical-align: middle; border-style: none; }
button {
    margin: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    text-transform: none;
    overflow: visible;
}

/* ---- Typography helpers ---- */
.display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; }
.lead { font-size: 1.25rem; font-weight: 300; }
.font-weight-light { font-weight: 300 !important; }
.font-italic { font-style: italic !important; }
.text-center { text-align: center !important; }
.text-muted { color: #6c757d !important; }
.list-unstyled { padding-left: 0; list-style: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.img-fluid { max-width: 100%; height: auto; }

/* ---- Grid ---- */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.col-auto, .col-2, .col-6, .col-8, .col-10,
.col-md-auto, .col-md-2, .col-md-8, .col-md-9, .col-md-11 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
.col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
@media (min-width: 768px) {
    .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
}

/* ---- Layout utilities ---- */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
@media (min-width: 992px) { .d-lg-flex { display: flex !important; } }
.flex-column { flex-direction: column !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-middle { vertical-align: middle !important; }
.float-right { float: right !important; }
.w-100 { width: 100% !important; }
.mh-100 { max-height: 100% !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.bg-light { background-color: #f8f9fa !important; }
.bg-white { background-color: #fff !important; }
.border-left { border-left: 1px solid #dee2e6 !important; }
.border-primary { border-color: #007bff !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-1 { margin-top: .25rem !important; }
.mr-1 { margin-right: .25rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-5 { margin-left: 3rem !important; }
.pt-0 { padding-top: 0 !important; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color .15s ease-in-out,
                border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn:focus { outline: 0; }
.btn-dark { color: #fff; background-color: #343a40; border-color: #343a40; }
.btn-dark:hover { color: #fff; background-color: #23272b; border-color: #1d2124; }
.btn-dark:focus { box-shadow: 0 0 0 .2rem rgba(82, 88, 93, .5); }
.btn-outline-dark { color: #343a40; border-color: #343a40; }
.btn-outline-dark:hover { color: #fff; background-color: #343a40; border-color: #343a40; }
.btn-outline-dark:focus { box-shadow: 0 0 0 .2rem rgba(52, 58, 64, .5); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---- Nav ---- */
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
.nav-link { display: block; padding: .5rem 1rem; color: #000; }
.nav-link:hover, .nav-link:focus { text-decoration: none; }
ul.nav { font-size: .9rem; }
ul.nav a:hover { color: #a9a9a9; }

/* ---- Site layout ---- */
.masthead {
    height: 145px;
    background-repeat: no-repeat;
    background-position: center;
}
h1 > a { color: #000; }
h1 > a:hover { color: #a9a9a9; text-decoration: none; }

.middle {
    height: calc(100vh - 195px);
    display: flex;
    align-items: stretch;
    overflow-y: hidden;
}
main {
    padding: 20px;
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
}
main.flush-top { padding-top: 0; }
article { max-width: 700px; }
footer { min-height: 50px; }
p.indent { margin: 0 0 .5rem 3rem; }

#sidebar {
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
}
#sidebar ul.nav { max-width: 250px; }
#close_menu { position: fixed; top: 150px; right: 0; }

@media screen and (min-width: 601px) {
    #sidebar { width: 250px; }
    #close_menu, #open_menu { display: none; }
}
@media screen and (max-width: 600px) {
    #sidebar {
        width: 40px;
        z-index: 0;
        overflow-x: hidden;
        transition: .5s;
    }
    #close_menu { display: none; }
    #open_menu {
        position: fixed;
        z-index: 2;
        top: 200px;
        left: -12px;
        margin: 0;
        transform: rotate(270deg);
    }
    #sidebar ul.nav { display: none; }
    #sidebar.menu_active { width: 100%; z-index: 1; }
    #sidebar.menu_active ul.nav { display: block; }
    #sidebar.menu_active #close_menu { display: block; }
    #sidebar.menu_active #open_menu { display: none; }
}
