/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 3.0 License

Name       : Resolved
Description: A two-column, fixed-width design with dark color scheme.
Version    : 1.0
Released   : 20120125
*/

/*

 rkc: changing width

 content             : 595
 sidebar             : 225
 margin              : 140 = 4 * 35
 gap content-sidebar : 20 (set left margin of sidebar to 595 + 35 + 35 + 20)
 ---------------------------------------------------------------------------
 wrapper / page      : 980px

 to make everything wider,
  (A) set width of wrapper and page to some n = 980 + delta
  (B) set width of content and post1 to 595 + delta
  (C) set left-margin of sidebar to 685 + delta

 */

* {
	margin: 0;
	padding: 0;
}

a {
	/* text-decoration: underline; */
	text-decoration: none;
	color: #6B2E42;
}

a:hover {
	text-decoration: none;
}

.cite-wrap {
	font-size: 0.85em;
	margin-left: 6px;
}

.cite-link {
	color: #444;
}

.bibtex {
	background: #f7f7f7;
	border: 1px solid #ddd;
	font-size: 0.85em;
	margin-top: 6px;
	padding: 8px;
	white-space: pre-wrap;
}

body {
	 /*background: #C9CFCD url(../images/img01.gif);*/
    background: #C9CFCD;
	 color: #323232;
	 line-height: 1.75em;
}

body,input {
	 font-family: Arial, sans-serif;
	/* font-family: Verdana, sans-serif; */
	 /* font-family: Geneva, Verdana, sans-serif;*/
    /* font-family:"Trebuchet MS", Helvetica, sans-serif;*/
    font-size: 12pt;
}

strong {
	color: #222222;
}

h1,h2,h3,h4 {
   font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif;
	/* letter-spacing: -1px;*/
	font-weight: normal;
}

h2,h3,h4 {
	color: #000405;
	/* font-family: serif; */
	margin-bottom: 0.7em;
}

h2 {
	font-size: 2.25em;
}

h3 {
	font-size: 1.75em;
}

h4 {
	font-size: 1.2em;
}

p {
	 /* margin-bottom: 1.5em; */
	 margin: 0.5em 0 0.5em 0;
}

.tab {
    margin-left: 30px;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
}

ul {
	 margin-bottom: 1.5em;
}


div.float-right {
    float: right;
}

div.footer {
    font-size: 1.3em;
    margin-top: 0.5em;
    margin-bottom: 0.75em;
    text-align: center;
    color: #808384;
}
div.main_footer {
    width: 665px; /*1050px;*/
    float:left;
    font-size: 80%;
    margin-top: 1.0em;
  	 margin-bottom: 1.0em;
	 text-align: center;
	 color: #808384;
}

li.continue {
    list-style: none;
    text-indent:1.2em;
}

.content {
	 background: #FFFFFF;
	 width: 665px;
	 color: #6E6E6E;
	 padding: 35px 35px 0px 35px;
	 float: left;
	 border-bottom: solid 2px #BBC1BF;
}

.content_next {
	 background: #FFFFFF;
	 width: 665px;
	 color: #6E6E6E;
	 padding: 35px 35px 0px 35px;
	 float: left;
    margin: 15pt 0 0 0;
}

/* #content h2, #content h3, #content h4 { */
.content h2, .content h3, .content h4 {
	 color: #171717;
}


#header {
	 height: 80px;
	 position: relative;
	 padding: 35px;
}

#logo {
	 position: absolute;
	 left: 35px;
	 line-height: 110px;
	 height: 110px;
	 top: 35px;
}

#logo a {
	 text-decoration: none;
	 color: #000405;
}

#logo h1 {
	 font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	 font-size: 3em;
}

#menu {
	 line-height: 60px;
	 position: absolute;
	 font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	 background: #6B2E42;
	 top: 66px;
	 right: 0;
	 height: 60px;
	 border: solid 1px #CA8B9F;
}

#menu a {
	 font-size: 1.5em;
	 letter-spacing: -1px;
	 color: #FFFFFF;
	 text-decoration: none;
}

#menu a:hover {
    color: #6B2E42;
	 background: #FFFFFF;
	 text-decoration: none;
}

#menu ul {
	 padding: 0 15px 0 15px;
	 list-style: none;
}

#menu ul li {
	 display: inline;
	 padding: 0 10px 0 10px;
}

#page {
	 /* margin: 20px 0 20px 0; */
	 margin: 0px 0 20px 0;
	 position: relative;
	 max-width: 1050px;
	 padding: 0;
}

#page .section-list {
	 padding-left: 0;
	 list-style: none;
}

#page .section-list li {
	 clear: both;
	 padding: 15px 0 15px 0;
}

#page ul {
	 list-style: none;
}

#page ul li {
	 padding: 5px 0 5px 0;
	 border-top: solid 1px #D9D9D9;
}

#page ul li.first {
	 padding-top: 0;
	 border-top: 0;
}

.sidebar_next {
	 background: #FFFFFF;
	 color: #6E6E6E;
	 padding: 30px 30px 0px 30px;
	 width: 225px;
	 border-bottom: solid 2px #BBC1BF;
    text-align: left;
    margin: 15px 0 0 755px;
}

#sidebar {
	 background: #FFFFFF;
	 margin: 0 0 0 755px;
	 color: #6E6E6E;
	 padding: 30px 30px 0px 30px;
	 width: 225px;
	 border-bottom: solid 2px #BBC1BF;
    text-align: center;
}

#sidebar h2, #sidebar h3, #sidebar h4 {
	 color: #000000;
}

#sidebar ul {
	 list-style: none;
}

#sidebar ul li {
	 padding: 10px 0 10px 0;
	 border-top: solid 1px #D9D9D9;
}

#sidebar ul li.first {
	 border-top: 0;
	 padding-top: 0;
}

#sidebar ul li.continue {
    list-style: none;
    text-indent:1.2em;
}

#wrapper {
	 /* width: 980px; */
	 max-width: 1050px;
	 /* margin: 35px auto 0 auto; */
	 margin: 0 auto 0 auto;
	 position: relative;
}

.sidebar_img {
    border: 5px solid #c0c0c0;
    max-width: 215px;
}

.graph_container {
    display: flex;
    justify-content: space-around;
    padding: 0px 5px 0px 5px;
    max-width: 665px;
}

.image-container {
    position:relative;
    margin: 0px 15px 0px 15px;
    overflow: hidden;
    display: inline-block;
    border: 1px dashed black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    display: block;
    width: 305px;
    height: auto;
    vertical-align: top;
}

.image-container a {
    color: #333;
    width: 305px;
    height: 100%;
    padding: 0;
    background: rgba(200, 200, 200, 0.87);
    opacity:0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:40px;
    transition: opacity .5s ease-in-out;
}

.image-container:hover a {
    opacity:1 ;
}

.image-container .popup {
    position: absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

/* Year separators on research page */
#paper-list li.year-start {
    border-top: solid 2px #999;
    margin-top: 8px;
    padding-top: 10px;
}

#paper-list.filtering li.year-start {
    border-top: solid 1px #D9D9D9;
    margin-top: 0;
    padding-top: 5px;
}

/* Paper search filter */
#paper-filter {
    width: 100%;
    max-width: 400px;
    padding: 6px 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

#paper-filter:focus {
    outline: none;
    border-color: #6B2E42;
}

/* Semantic element support */
header, nav, main, footer, aside {
    display: block;
}

/* Footer element styling */
footer.main_footer {
    width: 665px;
    float: left;
    font-size: 80%;
    margin-top: 1.0em;
    margin-bottom: 1.0em;
    text-align: center;
    color: #808384;
}

/* Image responsive defaults */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================ */

/* Tablet and smaller desktop (max-width: 1050px) */
@media (max-width: 1050px) {
    #wrapper {
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    #page {
        max-width: 100%;
    }

    .content,
    .content_next {
        width: auto;
        max-width: 100%;
        float: none;
        box-sizing: border-box;
    }

    #sidebar,
    .sidebar_next {
        margin-left: 0;
        width: auto;
        max-width: 100%;
        float: none;
        box-sizing: border-box;
    }

    footer.main_footer,
    div.main_footer {
        width: auto;
        max-width: 100%;
        float: none;
    }

    .graph_container {
        max-width: 100%;
    }
}

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
    #header {
        height: auto;
        padding: 20px;
    }

    #logo {
        position: static;
        line-height: normal;
        height: auto;
        text-align: center;
        margin-bottom: 15px;
    }

    #menu {
        position: static;
        width: 100%;
        height: auto;
        line-height: normal;
        padding: 10px 0;
    }

    #menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    #menu ul li {
        padding: 5px 8px;
    }

    #menu a {
        font-size: 1.2em;
        padding: 8px 12px;
        display: inline-block;
    }

    .content,
    .content_next {
        padding: 20px;
    }

    #sidebar,
    .sidebar_next {
        padding: 20px;
    }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
    /* Reorder sections for mobile: head.jpg, publications, teaching, group, service, graphs */
    #page {
        display: flex;
        flex-direction: column;
    }

    #sidebar {
        order: 1;
    }

    .section-publications {
        order: 2;
    }

    .section-teaching {
        order: 3;
    }

    .section-service {
        order: 4;
    }

    .section-group {
        order: 5;
    }

    .section-graphs {
        order: 6;
    }

    body {
        font-size: 11pt;
    }

    #logo h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.4em;
    }

    #menu a {
        font-size: 1em;
        padding: 6px 10px;
    }

    .content,
    .content_next {
        padding: 15px;
    }

    #sidebar,
    .sidebar_next {
        padding: 15px;
    }

    .graph_container {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        margin: 10px 0;
        width: 100%;
        max-width: 305px;
    }

    .image-container img {
        width: 100%;
        max-width: 305px;
    }

    .image-container a {
        width: 100%;
        font-size: 24px;
    }

    .tab {
        margin-left: 15px;
    }

    div.float-right {
        float: none;
        margin-bottom: 5px;
    }

    table {
        display: block;
        width: 100%;
    }

    table tbody {
        display: block;
    }

    table tr {
        display: block;
        margin-bottom: 1.5em;
        border-bottom: 1px solid #D9D9D9;
        padding-bottom: 1em;
    }

    table td {
        display: block;
        white-space: normal;
        width: auto !important;
        padding: 2px 0;
    }

    table td:first-child {
        font-weight: bold;
    }
}

/* Small mobile (max-width: 400px) */
@media (max-width: 400px) {
    #wrapper {
        padding: 0 10px;
    }

    .content,
    .content_next,
    #sidebar,
    .sidebar_next {
        padding: 10px;
    }

    #menu ul li {
        padding: 3px 5px;
    }

    #menu a {
        font-size: 0.9em;
        padding: 5px 8px;
    }
}
