a, a:visited {
    color: blue;
    text-decoration: underline;
}

a:active {
    color: red;
}

blockquote {
    background-color: #f1f1f1 !important;
    border-left: 6px solid #ccc !important;
    color: #000000 !important;
    padding: 0.01em 16px;
    margin-bottom: 16px;
    margin-top: 16px;
}

body {
    font-family: "Liberation Sans", sans-serif;
    font-size: 125%;
    line-height: 1.5;
    font-weight: normal;
}

figure {
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.16), 0 4px 20px 0 rgba(0,0,0,0.19);
    display: block;
    margin-top: 20px;
    margin-left: auto;
    margin-bottom: 50px;
    margin-right: auto;
    padding: 5px;
    width: 80%;

    img {
        @extend .w3-padding, .w3-image;
        display: block;
        margin-left: auto;
        margin-right: auto;
        border-width: 2px;
        border-style: solid;
    }

    table {
        display: table;
        margin-left: auto;
        margin-right: auto;
        border-width: 2px;
        border-style: outset;
        padding: 5px;
        width: 100%;

        th,td {
            border-width: 1px;
            border-style: solid;
        }
    }
}

figcaption {
    background-color: Linen;
    margin: 5px;
    padding: 5px;
}

hr {
    height: 0;
    border: 0;
    border-top: 1px solid #555;
    margin: 20px 0;
}

main {
    min-height: calc(100vh - 8em);
}

mark {
    background-color: AntiqueWhite;
    font-style: italic;
}

table {
    border: 1px solid #ccc !important;
    display: table;
    width: 100%;
}

table tr {
    border-bottom: 1px solid #ddd;
}

.article-foot {
    margin-top: 10px;
}

.center {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.ia-link {
    font-size: 0.75em;
}

.office-hours {
    color: #ffffff;
    background-color: #006f71;
    font-size: 125%;
    font-weight: bold;
}

.in-class {
    color: #ffffff;
    background-color: #a27752;
    font-size: 125%;
    font-weight: bold;
}

.oer-video {
    max-width: 100%;
    width: 600px;
}

.screenreader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.site-color, .hover-site-color:hover {
    color: #ffffff !important;
    background-color: #006f71 !important;
}

.small {
    font-size: 0.875em !important;
}

/* used for yt embeds */
.spaced {
    margin-top: 30px;
    margin-bottom: 50px;
}

.toc {
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.16), 0 4px 20px 0 rgba(0,0,0,0.19);
    display: block;
    margin-top: 20px;
    margin-left: 30px;
    margin-bottom: 50px;
    padding: 5px;
    width: 80%;
}

.toctitle {
    font-size: 1.1em;
    font-weight: bold;
}

a.footnote-backref {
    margin-right: 5px;
}

a.wrapper {
    text-decoration: none;
}

div.ccfoot {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

div.footnote hr {
    display: none;
}

div.footnote ol li p {
    margin-top: 0px;
    margin-bottom: 0px;
}

div.schedule {
    @extend .w3-container, .w3-responsive;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Liberation Sans", sans-serif;
    font-weight: bold;
    line-height: 1;
    margin: 20px 0;
}

h2, h3 {
    margin-top: 40px;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    font-weight: inherit;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.25em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.25em;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: 1em;
}

span.overline {
    text-decoration: overline;
}

table.schedule {
    @extend .w3-table, .w3-border, .w3-bordered, .w3-card, .w3-small, .w3-centered;
    table-layout: fixed;
    border-spacing: 25px;
}

ul.breadcrumb {
    text-align: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.breadcrumb li {
    display: inline;
}

#main-header {
    height: 5em;
}

#main-footer {
    height: 3em;
    font-size: 0.875em;

    a, a:visited {
        color: white;
    }
}

#main-menu {
    overflow: hidden;
}

#post-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#post-list li {
    margin: 5px 0 20px 0;
}

/* Menu */

.home-link {
    font-size: 25px;
}

.menu-overlay {
    display: none;
}

.main-menu a,
.main-menu a:visited {
    color: #ffffff;
    text-decoration: none;
}

ul.outer-menu {
    list-style-type: square;
    margin-top: 0;
    margin-left: 2em;
    padding: 0;
}

ul.outer-menu > li {
    margin-top: 15px;
}

ul.outer-menu > li:first-child {
    margin-top: 0;
}

ul.outer-menu li a {
    font-size: 125%;
    text-decoration: underline;
}

ul.inner-menu {
    list-style-type: square;
    margin-left: 3em;
    padding: 0;
}

ul.inner-menu li {
    margin-top: 5px;
}

ul.inner-menu li a {
    font-size: 100%;
    text-decoration: none;
}

div.pagenav {
    @extend .w3-row;
    background-color: #cccccc;
    padding-top: 10px;
    padding-bottom: 20px;
    margin-top: 40px;
    margin-bottom: 10px;
}

div.pagenav a {
    @extend .w3-btn;
    @extend .w3-round-xlarge;
    background-color: #006f71;
    color: white;
}

div.pageprev {
    @extend .w3-col;
    @extend .l4;
    @extend .s12;
    margin-top: 10px;
}

div.pageprev a {
    margin-top: 0.5em;
    margin-left: 10px;
}

div.pageparent {
    @extend .w3-col;
    @extend .l4;
    @extend .s12;
    @extend .center;
    margin-top: 10px;
}

div.pagenext {
    @extend .w3-col;
    @extend .l4;
    @extend .s12;
    text-align: right;
    margin-top: 10px;
}

div.pagenext a {
    margin-top: 0.5em;
    margin-right: 10px;
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

#menu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
    opacity: 0;
}

#menu-toggle:checked ~ .menu-overlay {
    display: block;
    position: absolute;
    width: 100%;
    z-index: 1;
    top: 56px;
    padding: 10px;
    border: 8px ridge #a27752;
    margin: 0;
    min-height: calc(100vh - 56px);
    animation: fadein 0.4s;
}

@font-face {
    font-family: "Liberation Sans";
    font-weight: normal;
    font-style: normal;
    src: url('../fonts/LiberationSans-Regular.ttf');
}

@font-face {
    font-family: "Liberation Sans";
    font-weight: normal;
    font-style: italic;
    src: url('../fonts/LiberationSans-Italic.ttf');
}

@font-face {
    font-family: "Liberation Sans";
    font-weight: bold;
    font-style: normal;
    src: url('../fonts/LiberationSans-Bold.ttf');
}

@font-face {
    font-family: "Liberation Sans";
    font-weight: bold;
    font-style: italic;
    src: url('../fonts/LiberationSans-BoldItalic.ttf');
}

@font-face {
    font-family: Inconsolata;
    font-weight: normal;
    font-style: normal;
    src: url('../fonts/Inconsolata-Regular.ttf');
}

@font-face {
    font-family: Inconsolata;
    font-weight: bold;
    font-style: normal;
    src: url('../fonts/Inconsolata-Bold.ttf');
}

@media screen and (max-width: 800px) {
    main {
        min-height: calc(100vh - 60px - 5em);
    }

    #main-header {
        height: calc(60px + 2em);
    }

    #main-footer {
        height: 3em;
        font-size: 0.875em;
    }
}
