@import url(https://fonts.googleapis.com/css?family=Ubuntu);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700);

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.3;
    margin: auto;
    margin-top: 5em;
    width: 600px;
    text-align: justify;
}

#main {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
    font-weight: lighter;
    font-size: 14pt;
}

/* Metadata declarations */

.title {
    font-size: 40px;
}

.author,
.date {
    font-size: 22px;
    padding-bottom: 1em;
}

.abstract {
    padding-top: 1em;
    padding-bottom: 1em;
    font-size: 14pt;
}

/* Heading declarations */

h1 {
    padding-top: 1em;
    padding-bottom: 1em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', sans-serif;
    font-weight: normal;
    line-height: 1.1;
    margin: auto;
    text-align: center;
}

nav {
    padding-top: 1em;
    padding-bottom: 1em;
}

/* Counters */

h1:not(.title){
    counter-increment: section;
}

.math {
    margin: 12pt 0 8pt;
    text-align: center;
    position: relative;
    counter-increment: equation;
}

/* Other */

figcaption {
    font-weight: bold;
    text-align: center;
}

img {
    width: 100%;
    height: 100%;
}

table {
    margin: auto;
    margin-top: 4em;
    margin-bottom: 4em;
}

.references {
    border-top: thin #CCC solid;
}

/* Printing */

@media print {
    @page {
        size: auto;
        margin: 0mm;
    }

    body {
        font-size: 12pt;
        margin-left: 1in;
        margin-right: 1in;
    }

    nav {
        display: none;
    }

    h1:not(.title) {
        page-break-before: always;
    }
}

/* Mobile */

@media screen and (max-width: 600px) {
    body {
        margin-left: 5%;
        margin-right: 5%;
        width: auto;
    }
}
