/*
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);

/*
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: 'PT Sans', sans-serif;
     */
font-family: "Times New Roman", Times, serif;
font-size: 11pt;
max-width: 92ch;
margin: auto;
padding: 1.2rem;
text-align: justify;
text-justify: 1;

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

h1 {
    font-size: 2em;
    text-align: center;
}

h2 {
    font-size: 1em;
    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 {
    max-width:100%; 
    height:auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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 #FFFFFF;
    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);
}

.block_left {
    margin-left: 3em;
    text-align: left;
}

.block_justify {
    margin-left: 3em;
    text-align: justify;
}

ul {
    margin-left: -2.5em;
    list-style-position: outside;
}

li {
    margin: 10px 0;
}

li span{
    position: relative;
    left: 0px;
}
