/*
A common approach is to use googleapis.com to generate css for the webfonts you want to use.
The downside of this approach is that you have to be online. So below I have simply saved
the output of the googleapis url into a file. Then you of course also have to make sure
the webfonts are locally installed to make offline usage work. For Ubuntu (or Debian) I
successfully used the script from here to do that: 
http://www.webupd8.org/2011/01/automatically-install-all-google-web.html
 */

@import url(https://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic|Cutive+Mono);
@import url(https://cdn.rawgit.com/dreampulse/computer-modern-web-font/master/fonts.css);

/*
The body background is the bacgkround of "everything". Many
impress.js tools call it the "surface". It could also be a
picture or pattern, but we leave it as light gray.
 */

body {
    font-family: "Computer Modern Sans", sans-serif;
    max-width: 80ch;
    margin: auto;
    padding: 1.2rem;
    text-align: justify;
    text-justify: 1;
    counter-reset: figures;

    /* background: rgb(215, 215, 215);
        color: rgb(70, 70, 70);*/
}

@media only screen and (max-width: 400px) {
    body {
        margin: 0px;
        padding: 0px;
        background-color: lemonchiffon;
        }
}

h1 {
    text-align: left;
}

a {
    text-decoration: inherit;
    color: rgba(100, 149, 237, 255);
    padding: 0 0.1em;
    /*background: rgba(200,200,200,0.1);*/
    text-shadow: -0.1px 0.1px 0.1px rgba(100, 100, 100, 0.2);
    border-radius: 0.2em;
    /*border-bottom: 3px solid rgba(100,100,100,0.2);*/
    /*border-left:   3px solid rgba(100,100,100,0.2);*/
    /*transition:         0.5s;*/
}

a:hover,
a:focus {
    /* background: rgba(200,200,200,1);*/
    /* text-shadow: -2px 2px 3px rgba(100,100,100,0.5);*/
}

p {
    text-align: justify;
    text-justify: 1;
    /* background: rgb(215, 215, 215);
        color: rgb(70, 70, 70);*/
}

blockquote {
    font-family: 'PT Serif';
    font-style: italic;
    font-weight: 400;
}

strike {
    opacity: 0.7;
}

small {
    font-size: 0.4em;
}

img.reset {
    display: unset;
    height: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

textarea.quicknote {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

textarea.mistakes {
    width: 100%;
}

.scrollable-div {
  /* height: auto; specify a fixed height for the div */
  overflow-y: scroll; /* show the scrollbar only when needed */
}

.mistake_item {
    border-color: gainsboro;
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .5);
    -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

td {
    padding: 0.2em;
}

/*
    Styles for specific slides.
     */

/* The bar graph for Acme Inc profits */

#acme-graph-bottom {
    position: absolute;
    bottom: 100px;
    right: 200px;
    background-color: black;
    width: 900px;
    height: 3px;
}

/* height: is set from javascript */
#acme-graph-q1,
#acme-graph-q2,
#acme-graph-q3,
#acme-graph-q4 {
    border: solid 1px black;
    width: 140px;
    margin-left: 30px;
    position: absolute;
    bottom: 100px;
}

#acme-graph-q1 {
    background-color: red;
    right: 900px;
}

#acme-graph-q2 {
    background-color: blue;
    right: 700px;
}

#acme-graph-q3 {
    background-color: green;
    right: 500px;
}

#acme-graph-q4 {
    background-color: purple;
    left: 750px;
    right: 300px;
}

/* self-defined formats by Hao Su */
table {
    border: 2px solid #000000;
    text-align: left;
    border-collapse: collapse;
}

table td,
table th {
    border: 1px solid #000000;
    padding: 3px 4px;
}

table tbody td {}

table tfoot td {}

/* self-defined formats by Hao Su */
table.bordertable {
    border: 2px solid #000000;
    text-align: left;
    /* border-collapse: collapse;*/
}

table.bordertable td,
table th {
    border: 1px solid #000000;
    padding: 3px 4px;
}

table.bordertable tbody td {}

table.bordertable tfoot td {}

.hl {
    /* background-image: url(../images/background-title.png);   */
    color: rgb(200, 0, 0);
    font-weight: bold;
}

/* acknowledgement to external sources */
.credit {
    /* background-image: url(../images/background-title.png);   */
    color: rgb(100, 100, 100);
    font-size: 16px;
    font-style: italic;
}

.ack {
    /* background-image: url(../images/background-title.png);   */
    position: absolute;
    top: 900px;
    left: 100px;
    color: rgb(100, 100, 100);
    font-size: 20px;
    font-style: italic;
}

.emph_box {
    border: 4px solid rgba(200, 0, 0, 1);
    display: inline;
}

/* two-column slides layout */
.row {
    display: flex;
}

.column {
    flex: 50%;
}

/* customized font sizes */
.large {
    font-size: 1.5em
}

.Large {
    font-size: 2em
}

/* embedded code style */
code,
pre {
    font-family: Consolas, Monaco, 'Andale Mono', 'Lucida Console', monospace;
    hyphens: none;
    overflow: auto;
}

pre {
    overflow: auto;
}

pre>code.highlight {
    outline: .1em solid red;
    outline-offset: .1em;
    font-size: 16px;
}

mark {
    background: white;
    color: rgb(139, 0, 0);
}

figure {
    padding: 0.9em;
    background: #fff;
    margin: 0 auto 1em;
}

figure img {
    margin: 0 auto;
    display: block;
    max-width: 100%;
}

figure figcaption {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8em;
    padding: .5em;
    text-align: center;
    counter-increment: figures;
}

figure figcaption:before {
    content: 'Fig. ' counter(figures) ' - ';
}

.figure-left {
    float: left;
    margin: 0 1.5em .5em 0;
    width: -webkit-min-content;
    width: -moz-min-content;
    width: min-content;
}

.figure-right {
    float: right;
    margin: 0 0 .5em 1.5em;
    width: -webkit-min-content;
    width: -moz-min-content;
    width: min-content;
}

.figure-right img,
.figure-left img {
    max-width: 300px;
}

.hspace {
    height: 8px;
}


#article {
    width: 100%;
    height: 300px;
}