/*
    style5.css
    Dave Klick
    2017-06-02
    
    Used to add basic styling for entire instructor site. Includes
    modified style for narrow screen devices.
*/

body {
    margin-left: 7%;
    margin-right: 7%;
    background-image: url(../images/lgrey008.jpg);
    font-family: arial, courier, verdana, sans-serif;
    font-size: 10pt;
    line-height: 1.4em;
    margin-bottom: 2em;
}

.center {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}

.left {
    text-align: left;
}

.justify {
    text-align:justify;
}

.heading {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2em;
    margin-top: 1em;
    font-size: 140%;
    font-weight: bold;
}

h1, h2, h3 {
    font-weight: bold;
}

h3 {
    font-style: italic;
}

h1 {
    font-size: 120%;
    margin-top: .5em;
}

header > h1 {
    text-align: center;
}

article {
    margin-top: 1em;
}

div#schedule {
    text-align: center;
}

div#schedule table {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    border-color: #808080;
    border-width: 0 0 0 0;
    border-style: solid;
    border-spacing: 0;
    border-collapse: collapse;
}

div#schedule table td {
    vertical-align: text-top;
    border-width: 1px 1px 1px 1px;
    border-style: solid;
    border-color: #808080;
    padding: 5px;
    margin-left:5%;
    margin-right:5%;
}

div#schedule table tr td.weekNumber {
    text-align: center;
}

.tableHeadings {
    text-align: left;
    font-weight: bold;
}

td.date {
    vertical-align: top;
    white-space: nowrap;
}

div#schedule table tr td {
    text-align: left;
}

ol {
    list-style-type: decimal;
}

ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: lower-roman;
}

ul {
    list-style-type: disc;
}

ol, ul {
    list-style-position: outside;
    margin-left: 1.5rem;
}

ul {
    margin-top: 0;
}

.underline { text-decoration: underline; }

.demo { color: green; font-style: italic; }

div.menu {
    margin: .5em 0 1em 2em;
    padding: 0;
}

div.menu a {
    display: block;
    text-decoration: none;
    margin: 0;
    padding: 0;
    color: black;
}

div.menu a:hover {
    background-color: #C0C0C0;
}

div.left {
    width: 47%;
    float: left;
}

div.right {
    width: 47%;
    float: right;
}

em, i {
    font-style: italic;
}

strong, b {
    font-weight: bold;
}

header.center h2 {
    text-align: center;
}

table.center {
    margin-left:auto;
    margin-right: auto;
}

table.bordersOn td {
    border-width: 1px;
    border-style: solid;
    border-collapse: collapse;
    padding-left: .5em;
    padding-right: .5em;
}

.cellVCenter td {
    padding-top:.5em;
    padding-bottom:.5em;
    vertical-align: middle;
}

.cellHCenter th, .cellHCenter td {
    padding-left:.5em;
    padding-right:.5em;
    text-align: center;
}

thead {
    font-weight: bold;
}

.code {
    font-family: monospace;
    white-space: pre;
}

.ans { color: #0000ff; }

p { margin-bottom: .5em; }

sup {
    font-size: 66%;
    vertical-align: super;
}

sub {
    font-size: 66%;
    vertical-align: sub;
}

u { text-decoration: underline; }

.userInput {
    color: #008080;
    font-style: italic;
    font-weight: bold;
}

dd {
    font-style: italic;
    margin-left: 3em;
    margin-bottom: .5em;
}

.past { color: #999999; }
.past a { color: #999999; }
.hi { background-color: #ffffcc; }

textarea.code {
    width: 100%;
    overflow: auto;
    background-color: #ffffff;
}
figure { text-align: center; }
figcaption { font-weight: bold; font-size: 80%; }

@media screen and (max-width: 800px) {
    body {
        background-image: none;
        background-color: #215c43;
        color: #000000;
        margin-left: 2%;
        margin-right: 2%;
        font-size: 10pt;
    }

    header > h1 {
        color: #ffffff;
    }
    
    article > header > h2 {
        color: #000000;
        line-height: 120%;
        border: 1px solid black;
        border-radius: 10px;
        width: 96%;
        padding-left: 1em;
        padding-top: .5em;
        padding-bottom: .5em;
        background-color: #d3d3d3;
    }

    article > div, article > p {
        background-color: #d3d3d3;
        color: black;
        margin-left: 1em;
        margin-right: 1em;
        padding-left: 1em;
        padding-right: 1em;
    }
    article > div p[class="code"] {
        display: table;
        background-color: #d3d3d3;
    }
    article > div [class="code"] {
        background-color: #d3d3d3;
    }
    article div textarea[class="code"] {
        background-color: #ffffff;
    }

    tr:nth-child(even) {
        background-color: #eeeeee;
    }

    tr:nth-child(odd) {
        background-color: #d3d3d3;
    }
    
    div.left, div.right {
        width: 100%;
        float: left;
    }
}
