@import url(http://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic);

@viewport {
    zoom: 1.0;
    width: extend-to-zoom;
}

@-ms-viewport {
    width: extend-to-zoom;
    zoom: 1.0;
}

html {
    font-size: 100%;
}

body {
    color: #222;
    background-color: white;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

::selection {
    background: #c00;
    color: white;
}

::-moz-selection {
    background: #90a4ae;
    color: white;
}

a {
    color: #0288d1;
    text-decoration: none;
}

a:hover {
    border-bottom: 1px solid #0288d1;
}

a:visited {
    color: #7772cc;
}

a:visited:hover {
    border-bottom-color: #7772cc;
}

/* anchors with this style look like buttons */
a.js, a.button, a.pythontutor, input[type=submit] {
    border: none;
    display: inline-block;
    color: #fff;
    background-color: #888;
    padding: .4em .5em;
    border-radius: 6px;
    min-width: 90px;
}

a.js:hover, a.button:hover, a.pythontutor:hover, input[type=submit]:hover {
    border-bottom: none;
    cursor: pointer;
    background-color: #999;
}

/* button links should not change color when visited */
a.php:visited {
    color: #0288d1;
}

a.php:visited:hover {
    border-bottom-color: #0288d1;
}

/* position links to Python Tutor in Codehilite blocks at the bottom right */
.codehilite {
    position: relative;
}

a.pythontutor {
    position: absolute;
    bottom: .75em;
    right: .75em;
    font-size: smaller;
    padding: .3em .4em;
    opacity: .25;
}

a.pythontutor:hover {
    opacity: .9;
}

a.pythontutor:visited {
    color: #eee;
}

a.pythontutor:visited:hover {
    color: white;
}

a strong, a b, strong a, b a {
    color: royalblue;
}

tt, pre, .pre, code {
    font-size: 0.9em;
    font-family: 'Lucida Console', Monaco, 'Courier New', monospace;
}

img {
    max-width: 100%;
}

#right {
    display: none;
}

#header {
    display: none;
}

#subheader {
    display: none;
}

nav {
    padding: 1em;
}

nav {
    font-weight: normal;
    background-color: whitesmoke;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-bottom: .5em;
}

nav a, nav a:visited {
    color: #666;
}

nav a:hover, nav a:visited:hover {
    border-bottom-color: #666;
}

nav .external a, nav .external a:visited {
    color: #999;
}

nav .external a:hover, nav .external a:visited:hover {
    border-bottom-color: #999;
}

footer {
    padding: 2em;
    text-align: center;
    color: #c3c3c3;
}

footer a, footer a:visited {
    color: #aaa;
}

footer a:hover, footer a:visited:hover {
    border-bottom-color: #aaa;
}

.main {
    position: relative;
    padding: 2em;
    padding-top: 12pt;
}

.main h1:first-of-type {
    margin-top: 0;
}

.main a:first-of-type + h1 {
    margin-top: .5em;
}


h1, h2, h5, h6 {
    line-height: 1.3;
}

/* always page title */
h1 {
    font-size: 2em;
    font-weight: 700;
    color: #c00;
}

/* in problem set: usually part I/part II heading */
h2 {
    color: #888;
    margin-bottom: 0;
}

/* in problem set: usually individual problem heading */
h3 {
    line-height: 1.3;
    color: #333;
    margin-bottom: 0;
    margin-top: 1.5em;
}

h2 + *, h3 + *, h4 + * {
    margin-top: .3em;
}

h4 {
    margin-bottom: 0;
}

pre, .pre {
    background-color: #fafafa;
    color: #000;
    line-height: 1.4;
    padding: 1em;
    overflow: auto;
}

/* in .pre DIVs: invisibles are lighter and take up no space */
.pre .tab, .pre .sp, .pre .nl {
    color: #ccc;
    display: inline-block;
    width: 0;
}

.pre .tab::after {
    content: '\2500\2500\2500\2524';
}

.pre .sp::after {
    content: '\b7';
}

.pre .nl::after {
    content: '\21a9';
}

blockquote {
    margin: 1em 0;
    padding: 1em;
    overflow: auto;
    background-color: #edeafa;
    color: #533b6c;
}

blockquote p:first-child {
    margin-top: 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin: 1em 0;
    text-align: left;
    padding-left: 1.8em;
}

ul {
    list-style-type: square;
}

ul ul {
    list-style-type: disc;
}

ul ul ul {
    list-style-type: circle;
}

ol {
    list-style-type: decimal;
}

ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: lower-roman;
}

ul li {
    margin: 0.2em 0;
}

ol li {
    margin: 0.5em 0;
}

li ul, li ol {
  margin-top: 0;
  margin-bottom: 0;
}

dt {
  font-weight: bold;
}

dl dt {
    margin-top: 1em;
}

dd p:first-of-type {
    margin-top: 0;
}

dd ul, dd ol {
    margin: 0;
}

table {
    border-collapse: collapse;
    margin: 2em 0;
}

table td, table th {
    padding: 0.5em 0.8em;
}

table td {
    vertical-align: top;
}

table th {
    text-align: left;
    background-color: #888;
    color: white;
}

table code, table tt {
    background-color: transparent;
}

table p {
    margin: 0;
}

table tr {
    background-color: #fff;
}

table tbody tr:nth-child(2n) {
    background-color: #f4f4f4;
}

table.staff img {
    width: 7em;
}

table.invisible tr {
    background-color: transparent !important;
}

table.sort-trace td i {
    color: lightgray;
}

table.sort-trace td u {
    font-weight: bold;
    color: cornflowerblue;
}

table.plain {
    background-color: white;
    width: auto;
    border: 1px solid black;
}

table.plain tr, table.plain th, table.plain td {
    background-color: white;
    border: 1px solid black;
    padding: 0.5em;
}

table.plain th {
    background-color: #666;
    color: white;
}

table.plain tt, table.plain code {
    background-color: inherit;
}

table.square th, table.square td {
    padding: 0;
    text-align: center;
    vertical-align: middle;
    width: 32pt;
    height: 32pt;
}

td ul, td ol {
    margin: 0;
}

figure {
    padding: 1em;
}

figure.center {
    text-align: center;
}

caption, figcaption {
    font-size: smaller;
}

caption:last-child, figcaption:last-child {
    border-top: 1pt solid #ccc;
    margin-top: 1em;
    padding-top: 1em;
}

hr {
    border: 0;
    width: 100%;
    color: #e1e1e1;
    background-color: #e1e1e1;
    height: 2pt;
    margin-top: 3em;
}

/* Logical operations like AND, OR, and NOT should be in small caps. */
.logicalop {
    font-size: 90%;
    text-transform: uppercase;
}

table.binary {
    font-family: 'Lucida Console', Monaco, 'Courier New', monospace;
}

table.binary td {
    padding: 3px 1px;
}

table.binary tr.last td {
    border-bottom: 2px solid black;
}

table.binary tr.carry {
    color: blue;
}

table.binary tr {
    background-color: inherit !important;
}

.footnote hr {
    color: #eee;
    background-color: #eee;
}

.toc {
    width: auto;
    margin: 1em 0;
    padding: 1em;
    background-color: whitesmoke;
}

.toc a, .toc a:visited {
    color: #666;
}

.toc a:hover, .toc a:visited:hover {
    border-bottom: none;
}

.toc li, .toc ul, .toc ul ul {
    margin: 0;
    padding: 0;
}

.toc ul {
    list-style: none;
    font-style: normal;
}

.toc ul ul ul a {
    font-size: .8em;
}

.toc a {
    display: block;
    padding: 4pt 6pt;
}

.toc a.current {
    color: #c00;
}

.toc a:hover {
    color: #333;
}

.admonition {
    padding: .8em;
    margin: 1em 0;
    color: white;
    background-color: #666;
    width: auto;
}

.admonition p.admonition-title {
    font-weight: bold;
    margin-top: 0;
}

.admonition p:last-child {
    margin-bottom: 0;
}

.admonition.warning {
    color: black;
    background-color: gold;
}

.admonition.error {
    color: white;
    background-color: #e31;
}

.admonition.info {
    color: white;
    background-color: slategray;
}

.admonition.aside {
    color: #444;
    background-color: transparent;
    border: 1px solid #999;
}

.admonition.note {
    color: white;
    background-color: rgb(88, 157, 205);
}

.admonition.note a, .admonition.note a:hover {
    color: #BDE0F9;
    border-bottom-color: #BDE0F9;
}

.masthead {
    margin-bottom: 1em;
}

.masthead .session-info {
    margin-top: 1em;
}

.masthead .log-out-button {
    min-width: 0;
    margin: 0 .5em;
    border-radius: 4px;
}

.apollo-logo {
    display: inline-block;
    padding: .5em 1em;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    background: #fff;
    border: 1.5pt solid #aaa;
}

form input[type="text"], form input[type="password"],
form input[type="file"],
form select, form textarea {
    padding: .5em;
    font-size: 1em;
}

form input[type="text"], form input[type="password"] {
    border: 2pt solid #eee;
}

form input[type="submit"] {
    font-size: 1em;
}

form textarea {
    resize: none;
    width: 30em;
    height: 15em;
    border: 2pt solid #eee;

    /* note: same as tt style */
    font-size: .9em;
    font-family: 'Lucida Console', Monaco, monospace;
}

.row {
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.row:last-of-type {
    border-bottom: none;
}

.left, .right {
    margin: 1em;
}

.left {
}

.left tt, .left code {
    font-weight: normal;
}

.caption {
    margin-top: .5em;
    font-size: smaller;
    color: #666;
}

.row .admonition {
    font-size: smaller;
}

.row .right *:first-child {
    margin-top: 0;
}

.row.disabled {
    color: #666;
}

.row.late {

}

.row .caption.latecaption {
    color: #c84;
}

.row .caption.acceptingcaption {
    color: #06c;
}

/* the "Not yet graded"/"Graded" status */
.grades .status {
    font-size: larger;
}

.grades .status.early {
    color: #444;
}

.grades .status.accepting {
    color: #06c;
}

.grades .status.late {
    color: #c84;
}

.grades .status.notgraded {
    color: #a6c;
}

.grades .status.graded {
    color: #074;
}

.score {
    color: #555;
}

.score .major {
    font-size: 1.5em;
    margin-right: .05em;
    color: #222;
}

.score .minor {
    margin-left: .1em;
}

.results .successes .left {
    color: #074;
}

.results .failures .left {
    color: #b00;
}

.results .warnings .left {
    color: #fa0;
}

.grade-released {
}

@media screen and (min-width: 640px) {
    #header, #subheader, nav {
    }

    #header, #subheader {
        display: block;
        color: white;
        text-align: center;
        padding: .8em;
    }

    #header {
        font-size: larger;
        font-weight: 700;
        background-color: #c00;
    }

    #subheader {
        background-color: #444;
        padding: .5em 1em;
        text-transform: uppercase;
        font-size: smaller;
    }

    #header:hover {
        border: none;
    }

    #header.backtotop {
        font-family: sans-serif;
        font-weight: normal;
        background-color: slategray;
    }

    nav {
        padding: 1em 1.5em;
    }

    nav .external {
        margin-top: 2em;
    }

    #left {
        background-color: whitesmoke;
        position: fixed;
        top: 0;
        left: 0;
        width: 11em;
        height: 100%;
        z-index: 100;
        overflow-y: auto;
    }

    #middle {
        margin-left: 11em;
        max-width: 47em;
    }

    .main {
        margin-left: 1.5em;
    }

    .masthead {
        overflow: auto;
    }

    .masthead .apollo-logo {
        float: right;
    }

    .masthead .session-info {
        margin-top: .5em;
    }

    .masthead .log-out-button {
        font-size: smaller;
        padding: .3em .5em;
    }

    .admonition.aside {
        float: left;
        width: 30%;
        margin: 1em 2em 1em 0;
    }

    .footnote {
        font-size: smaller;
    }

    a.footnote-ref:hover, .footnote a:hover {
        border-bottom: none;
        text-decoration: underline;
    }

    .left, .right {
        float: left;
    }

    .left {
        width: 20%;
    }

    .right {
        width: 70%;
    }
}

@media screen and (min-width: 1220px) {
    #right {
        position: fixed;
        top: 0;
        right: 0;
    }

    #right .toc {
        margin-right: 12pt;
        max-width: 16em;
    }
}

@media print {
    #header, nav, footer, .toc {
        display: none;
    }

    h1, h2, h3, h4, h5, h6 {
        color: gray;
    }

    h1 {
        color: black;
    }

    h2 {
        page-break-before: always;
    }

    h1 + h2 {
        page-break-before: avoid;
    }

    a, a:visited {
        color: blue;
        text-decoration: underline;
        border: none;
    }

    .footnote-ref {
        text-decoration: none;
        color: black;
    }

    .footnote-backref {
        display: none;
    }

    table {
        color: black;
        border: 1pt solid black;
    }

    tr, td, th {
        border: 1pt solid black;
    }

    th {
        color: black !important;
        font-weight: normal;
    }
}

font[color="blue"] {
    color: #4454ff;
}


.codehilite .hll { }
.codehilite .c { color: #007c00 } /* Comment */
.codehilite .cm { color: #007c00 } /* Comment.Multiline */
.codehilite .cp { color: #007c00 } /* Comment.Preproc */
.codehilite .c1 { color: #007c00 } /* Comment.Single */
.codehilite .cs { color: #007c00 } /* Comment.Special */

.codehilite .k { color: #00f } /* Keyword */
.codehilite .kd { color: #00f } /* Keyword.Declaration */
.codehilite .kt { color: #00007c } /* Keyword.Type */
.codehilite .nc { color: #00007c } /* Name.Class */
.codehilite .s { color: #b20000 } /* Literal.String */
.codehilite .sc { color: #ff00ff } /* Literal.String.Char */

.codehilite .m { color: #00b2b2 } /* Literal.Number */
.codehilite .mf { color: #00b2b2 } /* Literal.Number.Float */
.codehilite .mh { color: #00b2b2 } /* Literal.Number.Hex */
.codehilite .mi { color: #00b2b2 } /* Literal.Number.Integer */
.codehilite .mo { color: #00b2b2 } /* Literal.Number.Oct */


