html, div, span, img, ul, li, h1, h2, h3, a
{
    border: none;
    margin: 0;
    padding: 0;
}

body 
{
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;

    margin: 0 auto;
    max-width: 45em;
    line-height: 1.4em;

    text-align: justify;

    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;

    color: var(--primary);
    background: var(--secondary);
}

small
{
    font-size: 0.8em;
}

strong 
{
    font-weight: bold;
}

em
{
    font-weight: bold;
    font-style: normal;
    color: var(--highlight-contrast);
}

blockquote 
{
    padding: 0.1em 0.8em;
    border-left: 0.4em solid;
    font-style: italic;
    border-color: var(--primary);
    background-color: var(--secondary-light);
}

h1, h2, h3, h4, h5
{
    font-family: 'BankGothicLt', sans-serif;
}




/* TOP */

#top 
{
    clear: both;
    text-align: left;
    display: block;
    margin-bottom: 1.4em;
    padding-top: 8em;
    font-family: 'BankGothicLt', sans-serif;
}

#logo
{
    float: left;
    line-height: normal;
}

#logo h1
{
    text-transform: uppercase;
    text-shadow: 0 0 0.15em;
    font-size: 7em;
    display: block;
    line-height: 0.9em;
    color: var(--primary-contrast);
    text-shadow-color: var(--primary-contrast);
}

#logo h2
{
    font-size: 1.4em;
    line-height: 0;
    text-transform: uppercase;
    display: block;
    font-weight: 200;
    padding-left: 0.65em;
    color: var(--primary-light);
}

#avatar 
{
    width: 5.2em;
    float: right;
}

#avatar img 
{
    border-radius: 50%;
    width: 5.2em;
    height: 5.2em;
}




/* MENU */

#menu 
{
    border-bottom: 1px solid;
    border-top: 1px solid;
    text-transform: uppercase;
    border-color: var(--border);
}

#menu ul 
{
    margin: 0;
    list-style: none;   
}

#menu ul li 
{
    font-size: 1.2em;
    font-weight: normal;
    float: left;
}

#menu ul a
{
    text-decoration: none;
    line-height: 0;
    display: inline-block;
    color: var(--primary);
}

#menu ul a:hover
{
    background-color: var(--secondary-light);
}

#menu ul.links 
{
    float: left;
}

#menu ul.links a 
{
    padding: 0.46em 1em;
}

#menu ul.links li.selected a
{
    background-color: var(--secondary-contrast);
    color: var(--primary-contrast);
}

#menu ul.links li.selected a:hover
{
    background-color: var(--secondary-light);
}

#menu ul.social 
{
    font-size: 1.2em;
    float: right;
}

#menu ul.social a
{
    padding: 0.3em 0.5em;
}




/* MAIN */

#main 
{
    clear: both;
    overflow: hidden;
}

#main h1, #main h2, #main h3
{
    clear: both;
    font-weight: normal;
    text-transform: uppercase;
}

#main h1 
{
    font-size: 1.3em;
    line-height: 1.3em;
    margin-top: 2em;
    width: 100%;
    border-bottom: 1px solid;
    margin-bottom: 0.8em;
    color: var(--primary);
    border-color: var(--border);
}

#main h2
{
    font-size: 1.2em;
    color: var(--highlight-contrast);
    margin-top: 1.1em;
    margin-bottom: 0.8em;
}

#main ul
{
    list-style: square;
}

#main li
{
    margin-left: 15px;
}

#main p, #main ul
{
    margin-bottom: 0.8em;
}

#main a 
{
    text-decoration: none;
    color: var(--highlight-light);
}

#main a:hover
{
    text-decoration: underline;
    color: var(--highlight);
}

#main h1 a:hover
{
    text-decoration: none;
}

.title:first-child 
{
    margin-top: 0;
}

.images
{
    margin: auto;
    margin-top: 1em;
    text-align: center;
    padding: 0.4em;
}

.images a:hover
{
    text-decoration: none;
}

.highlight 
{
    padding: 0.4em;
    overflow: hidden;
    margin-bottom: 0.8em;
}

.teaserR, 
.teaserL
{
    padding: 0;
    margin: 0;
    margin-bottom: 1.2em;
}

.download
{
    margin-bottom: 0.5em;
}

.teaserR
{
    float: right;
    margin-left: 0.8em;
}

.teaserL
{
    float: left;
    margin-right: 0.8em;
}

.teaserL p, 
.teaserR p
{
    width: 14em;
    margin: auto;
    text-align: center;
    color: var(--primary);
}




/* POST */

#main .post
{
    margin-bottom: 2em;
}

#main .post h1
{
    font-size: 1.2em;
    color: var(--highlight-contrast);
    margin-top: 1.1em;
    margin-bottom: 0.8em;
    border: 0;
}

#main .post ul
{
    margin-left: 1.1em;
}

#main .post ul, 
#main .publication ul
{
    list-style: disc;
}




/* MATH */

.mjpage 
{
    display: inline;
    font-style: normal;
    font-weight: normal;
    line-height: normal;
    font-size: 100%;
    font-size-adjust: none;
    text-indent: 0;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    float: none;
    direction: ltr;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    border: 0;
    padding: 0;
    margin: 0;
}

.mjpage__block {
    text-align: center;
    margin: 1em 0em;
    position: relative;
    display: block !important;
    text-indent: 0;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    width: 100%;
}




/* PUBLICATION */

.publication
{
    margin: 1.2em 0;
}

.description 
{
    font-size: 0.92em;
    line-height: 1.4em;
}

#main .description h2
{
    margin-top: 0;
    font-size: 1.2em;
    text-transform: uppercase;
}

.publication .authors
{
    margin-bottom: 0.5em;
    margin-top: 1.3em;
    text-align: left;
    display: block;
}

.publication .journal 
{
    display: block;
    margin-bottom: 1.2em;
    color: var(--highlight-contrast);
}

.publication .links
{
    margin-top: 1em;
}

#main .publication ul.links 
{
    border: none;
}

#main .publication .links li:first-child
{
    margin: 0;
    margin-right: 0.5em;
}

#main .publication .links li 
{
    margin-left: 0;
    list-style: none;
    float:left;
    margin: 0;
    margin-right: 0.5em;
}

#main .publication .links li img
{
    vertical-align: top;
}

.publication .teaser 
{
    float: left;
    margin-right: 0.8em;
    margin-bottom: 1.1em;
    width: 9em;
}

.publication .description 
{
    float: left;
    width: 75%;
    padding:0;
}

.publication:after
{
    content: "";
    clear: both;
    display: block;
}

.publication .authors, .publication .journal
{
    font-size: 1em;
    line-height: 1em;
}





/* TWITTER */
 
.tweet
{
    width: auto;
    display: block;
    margin-top: 0.1em;
}

.tweet:after 
{
    content: "";
    display: table;
    clear: both;
    padding-bottom: 0.5em;
}

.tweet .avatar
{
    border: 1px solid;
    width: 3em;
    height: 3em;
    float: left;
    margin: 0;
    margin-top: 0.4em;
    margin-right: 0.5em;
    padding: 0;
    background-size: 3em 3em;
    border-color: var(--border);
    background-color: var(--secondary-contrast);
}

.tweet .default
{
    background-image: url('../thumbcache/twitter.png');
}

.tweet .tob
{
    background-image: url('../icons/fav.png');
}

.tweet .content
{
    padding: 0;
    margin: 0;
    float: left;
    width: 75%;
    text-align: left;
}

.tweet .media
{
    padding: 0;
    margin: 0;
    float: right;
    width: 7em;
    height: 7em;
}

.tweet .media img
{
    width: 7em;
    height: 7em;
    overflow: hidden;
    object-fit: cover;
}

.tweet p
{
    margin: 0;
    padding: 0.1em 0;
}

.tweet h4, .tweet h5
{
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    display: inline;
    padding-right: 0.4em;
}

.tweet h5
{
    font-weight: normal;
    color: var(--highlight-contrast);
}

.tweet h4, .tweet em
{
    color: var(--highlight-light);
}

.tweet .content
{
    text-decoration: none;
    color: var(--primary);
}

.tweet .reply
{
    background-position: 0 0.1em;
    margin-right: 1.4em;
}




/* VIDEO */

.video
{
    position: relative;
    margin: 0.5em auto;
}

.figure
{
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
}

.figure img
{
    margin: auto;
    max-width: 100%;
    display: block;
    background-color: var(--primary-contrast);
}

.figure a
{
    display: block;
    margin-bottom: 0.5em;
}

.default-size
{
    width:640px;
    height:360px;
}

.video img 
{
    max-width: 100%;
    margin: 0;
}

#main .video a:before 
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

#main .video a
{
    font-size: 5em;
    position: absolute;
    top: 0; 
    left: 0;
    transition: color 1s ease;
    text-decoration: none;
    color: var(--highlight-contrast);
}

#main .video a:hover 
{
    color: var(--primary-contrast);
}



/* BOTTOM */

#bottom 
{
    clear: both;
    background-position: center;
    background-repeat: no-repeat;
    width: 15em;
    height: 1.8em;
    background-size: 100% 100%;
    margin: 100px auto 100px auto;
    background-image: url('//tobias-franke.eu/layout/bottom.png');
}

#bottom p
{
    display: none;
}




/* GENERIC EFFECTS */

img, 
.video,
.highlight,
blockquote
{
    transition: box-shadow .25s ease-in-out;
    box-shadow: 0 0 3px var(--shadow);
}

img:hover, 
.video:hover,
.highlight:hover,
blockquote:hover
{
    box-shadow: 0 0 8px var(--shadow);
}
