html {
    display: block;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
    color: #444444;
    font-family: "Merriweather", Georgia;
}

/*** Layout ***/

body,
.container {
    display: block;
}

.container div.main {
    overflow: auto !important;
    position: absolute;
}

.container nav {
    overflow-y: auto;
    order: -1;
    display: none;
}

.container nav ul {
    display: block !important;  /* fix for Chrome */
}

@media (min-width: 900px) {
    body {
        overflow:hidden;
    }

    .container div.main {
        position: absolute;
        overflow-y: auto;
        left: 330px;
        right: 0px;
        top: 0px;
        height: 100vh;
    }

    .container nav {
        /* 12em is the width of the columns */
        overflow-y: auto;
        display: block;
        width: 300px;
        height: 100vh;
        position: absolute;
        top: 0px;
        left: 0;
    }
}

@media (min-width: 1100px) {
    .container div.main {
        left: 360px;
    }
    .container nav {
        width: 350px;
    }
}

.container nav {
    background-color: #f0f0f0;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 25px;
    border-right: 1px solid #ccc;
}

.container div.main article {
    margin: 40px auto;
    max-width: 750px;
    line-height: 1.6;
    padding: 0 20px;
    font-size: 17px;
    counter-reset: task;
}

/*** Text ***/

h1,h2,h3 {
    line-height: 1.2;
    margin-top: 2rem;
    font-family: "Merriweather Sans";
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 220%;
}

h2.task  {
    counter-increment: task;
    /*content: 'Task ' counter(task) ': ';*/
}

code {
    font-family: "Source Code Pro";
    display: inline-block;
    background-color: #f7f7f7;
    line-height: 1.3;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 0 4px;
}

a {
    color: #5D96B0;
    text-decoration: none;
}

.main a {
    font-weight: bold;
}

.checkpoint::before {
    content: 'CHECKPOINT ' counter(task);
    font-family: "Merriweather Sans";
    padding-right: 10px;
    color: #e44;
    font-weight: bold;
}

.tip::before {
    content: 'TIP';
    font-family: "Merriweather Sans";
    color: #48B;
    padding-right: 10px;
    font-weight: bold;
}

.checkpoint {
    padding: 15px 25px;
    border: 1px solid #e44;
    background-color: #f7f7f7;
    border-radius: 5px;
}

.tip {
    padding: 15px 25px;
    border: 1px solid #48b;
    background-color: #f7f7f7;
    border-radius: 5px;
}

hr::before {
    content: '.\00a0\00a0\00a0.\00a0\00a0\00a0.';
}

hr {
    margin-top: 20px;
    text-align: center;
    color: gray;
    border: none;
}

ul li {
    margin: 5pt 0;
}

table {
    border: 1px solid gray;
    width: 100%;
    margin: 25px 0px;
}

table td {
    padding: 5px;
}

table thead td {
    font-weight: bold;
    border-bottom: 1px solid gray;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

#generated_toc_d_toggle, .hidden {
    display: none;
}
