/* CSS Reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}


/* Global Styles */
body {
  font-family: "Open Sans", Helvetica, Calibri, Verdana, "Sans Serif";
  font-size: 12pt;  
}


a {    
    text-decoration: none;
    border-bottom: 1px dotted rgb(162, 162, 214);
 /*   font-weight: 600;*/
    color: #383894;    
}

a:visited {
    border-bottom: 1px dotted #d891a9;
    color: #8e0033;
}


.yellow, .infovis {
    border-color: #f7941d;
    background-color: #f7941d;
    color: #f7941d;
}

.blue, .pim {
    border-color: #00adee;
    background-color: #00adee;
    color: #00adee;
}

.red, .misc {
    border-color: #d91c5c;
    background-color: #d91c5c;
    color: #d91c5c;
}

.green, .accessibility {
    border-color: #00a651;
    background-color: #00a651;
    color: #00a651;
}

.purple, .gamification {
    border-color: #c758f8;
    background-color: #c758f8;
    color: #c758f8;
}

.black {
    border-color: #000;
    background-color: #000;
    color: #000;
}

b {
    font-weight: bold;
}

li {
    line-height: 1.5em;     
    margin-bottom: 1em;
    margin-left: 2em;
}

.caption { font-size: 10pt;}

/* The Header */
#pageHeader { 
    background-color: #335;
    background-color: #333;
    height: 100px;
    border-bottom: 2px solid;    
    padding-left:4%;
    position: relative;
}
    
#pageFooter {
    background-color: #333;    
    padding: 5px; 
    padding-left: 5%; 
    padding-top: 10px; 
    margin-top: 50px;     
    height: 30px; 
    vertical-align: middle;
    border-top: 4px solid;    
    clear: both;
}

/*@media (max-width:1280px) {
    #pageFooter {
        padding-left: 5%; 
    }
    #pageHeader { 
        padding-left: 4%; 
    }
}*/

#title {
    font-size: 36pt;
    font-weight: 300;
    margin-left: 5px;
    display: inline;    
    position: absolute;
    bottom: 5px;
    color: #f7941d;
    color: white;
}
    
#subtitle {    
    margin-left: 2px;
    font-size: 11pt;    
    font-weight: 300;
}

@media (max-width:768px) {
    #title {
        font-size: 24pt;
    }

    #subtitle {    
        font-size: 10pt; 
    }
}

@media (max-width:590px) {
    #title {
        font-size: 14pt;
    }

    #subtitle {    
        display: none;
    }
}

#photo { 
    float: left; 
    margin-top: 20px; 
    border-radius: 50%;     
    border: 4px solid;
    width:100px; 
    height: 100px;
}

#nav {
    font-weight: 300;
    position: absolute;
    right: 5%;  /* was 10% */
    bottom:3px;    
}



#nav a { 
    font-weight: 300;
    font-size: 12pt;
    text-decoration: none;
    border: 0;
    background: none;
    color: white;
}

#nav li {
    margin: 0;
    padding: 0;
}

#nav a.blue:hover, #nav a.blue.selected { 
    border-color: #00adee;
    color: #00adee;
}

#nav a.yellow:hover, #nav a.yellow.selected { 
    border-color: #f7941d;
    color: #f7941d;
}

#nav a.red:hover, #nav a.red.selected { 
    border-color: #d91c5c;
    color: #d91c5c;
}
#nav a.green:hover, #nav a.green.selected { 
    border-color: #00a651;
    color: #00a651;
}

#nav a.purple:hover, #nav a.purple.selected { 
    border-color: #c758f8;
    color: #c758f8;
}


@media (min-width:900px) {
    #nav a { 
        margin-left: 1em;
    }
    
    #nav a:hover, #nav a.selected { 
        border-bottom: 6px solid;        
    }
}


@media (max-width:900px) {
    #nav a { 
        margin: 0;
        padding-right: 0.3em;        
        display: block;
        text-align: right;
    }

    #nav a:hover, #nav a.selected { 
        margin-right: -2px;
        border-right: 2px solid;        
    }
}

/*
@media (max-width:1280px) {
    #nav {
        right: 5%;
    }
}*/
 
#social_bar {
    color: grey;
    float:left;
    margin-left: 7px;
}

#social_bar a {
    text-decoration: none;
    border: 0;
}

/* The Content */

/*
@media (max-width:1281px) {
    #content {
        margin-left: 5%;
        margin-right: 5%;
        margin-top: 60px;
        position: relative;
    }
}


@media (min-width:1281px) {
    #content {
        margin-left: 10%;
        margin-right: 10%;
        margin-top: 60px;
        position: relative;
    }
}*/
    
#content {
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 60px;
    position: relative;
}




#bio {        
    line-height: 16pt;
    margin-bottom: 2em;    

}

/* The News section */
#news {            
}

#news h1 {
    font-weight: lighter;
    font-size: 16pt;
    margin-bottom: 0.5em;
}

.newsitem {    
    line-height: 16pt;
    margin-top: 2em;
    margin-left: 2em;
    clear: both;
}

.newsitem h2 {    
    font-weight: bold;        
}
    
.newsitem .date {
    font-size: 8pt;    
    font-weight: lighter;
    display: block;
    margin-bottom: 0.5em;    
}

.newsitem p {
    margin-bottom: 0;
}

.newsitem img {
    margin-bottom: 0.5em;
    width: 80px;
    border: 1px solid gray;
    float: right;
    margin-right: 10px;
}




/* A nice fading separator */
hr.separator {
    clear: both;
    margin: 1em 0;
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
}
    





/* The Featured cards */
#featured{
}



/* CSS flip code from David Walsh at http://davidwalsh.name/css-flip */
/* entire container, keeps perspective */
.flip-container {
    display: inline-block;
    margin-right: 16px;
    margin-top: 16px;
    
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;

    -ms-transform: perspective(1000px);
    -moz-transform: perspective(1000px);
    -moz-transform-style: preserve-3d; 
    -ms-transform-style: preserve-3d; 

    border: 1px solid;
    background-color: inherit;
}

.flip-container h1 {
    font-size: inherit;
}

.flip-container.mix {
    display: none;
}

/* START: Accommodating for IE */
.flip-container:hover .back, .flip-container.hover .back {
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.flip-container:hover .front, .flip-container.hover .front {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
/* END: Accommodating for IE */


.flipper {
    -webkit-transition: 0.6s;
    -webkit-transform-style: preserve-3d;
    -ms-transition: 0.6s;

    -moz-transition: 0.6s;
    -moz-transform: perspective(1000px);
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;

    transition: 0.6s;
    transform-style: preserve-3d;

    position: relative;
}

.front, .back {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    
    -webkit-transition: 0.6s;
    -webkit-transform-style: preserve-3d;

    -moz-transition: 0.6s;
    -moz-transform-style: preserve-3d;

    -o-transition: 0.6s;
    -o-transform-style: preserve-3d;

    -ms-transition: 0.6s;
    -ms-transform-style: preserve-3d;

    transition: 0.6s;
    transform-style: preserve-3d;

    position: absolute;
    top: 0;
    left: 0;
}

.front {
    -webkit-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    background: #ccc;
    z-index: 2;
}

.back {
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}


/* A 0.8 aspect ratio */
.flip-container, .front, .back {
    width: 200px;
    height: 250px;
}

.front-overlay {
    color: white; 
    position: absolute; 
    bottom: 0; 
    width: 188px; 
    height: 90px; 
    background-color: rgba(0,0,0,0.8);
    padding: 6px;  
    font-weight: 400;
    font-size: 10pt;
}

.front-overlay h1 {
    font-weight: bold;   
    line-height: 1.1em;
    margin: 0;
    margin-bottom:4px;
}

.front-overlay p {
    margin-bottom: 0.5em;
    line-height: 1.1em;
}

.back-overlay {
    color: black; 
    position: absolute; 
    bottom: 0; 
    width: 188px; 
    height: 238px; 
    background-color: rgba(240,240,240,0.83);
    padding: 6px;  
    font-weight: 400;
    font-size: 10pt;
}

.back-overlay a {
    font-weight: inherit;
    font-weight: inherit;
}

.back-overlay h1 {
    font-weight: bold;  
    padding-bottom:3px;
    line-height: inherit;
    margin: 0;
}

.back-overlay p {
    margin-bottom: 0.5em;
    line-height: inherit;
}



/* The "More Research" Button */
#more_research_right, #more_activities_right {
    color: gray;
    position: relative;
    top: -120px;  
    left: 20px;
}

#more_research_right:hover {
    color: hsl(196, 100%, 37%);
    transition: 1s;
}

#more_activities_right:hover {
    color: #c758f8;
    transition: 1s;  
}


#more_research_left, #more_activities_left {
    color: gray;
    vertical-align: middle;
    margin-right: 10px;
    margin-top: -15px;
    margin-bottom: inherit;
    border-bottom: 0px;
    font-size: inherit;
    display: inline;
}

#more_research_left:hover {
    color: hsl(196, 100%, 37%);
    transition: 1s;  
}

#more_activities_left:hover {
    color: #c758f8;
    transition: 1s;  
}


/* Filtering Buttons. Color are supposed to be given by .red, .blue, etc. classes */
.btn {
    display: inline-block;
    padding: 10px;
    width: 100px;
    text-align: center;   
    border-style: solid;
    border-width: 1px;
    cursor: pointer; 
}
    
.btn.active {
    color: white;    
}

.btn:not(.active) {        
    background-color: #eee;    
}

.btn.all {
    margin-left: 20px;
}

.btn.narrow {
    width: 40px;   
}

#filter_buttons {
    padding-top: 20px;
    padding-bottom: 10px;
}




/* Contact Page */
#contact-left {
    float: left;
    width: 400px;
    margin-top: 20px;
}


#contact-left p {
    padding: 0;
    margin-top: 0;
    margin-bottom: 2em;
    line-height: 16pt;
}

strong { 
    font-weight: 600;
}

#contact-left a {
    margin-right: 1em;
}

#contact-left .imglink {
    margin-left: 1em;
}

#contact-left img,i {
    vertical-align: middle;
}

#contact-right {
    margin-left: 550px;
    padding-top: 15px;
}

#contact-map {
    -webkit-filter: grayscale(50%);
    -moz-filter: grayscale(50%);
    -ms-filter: grayscale(50%);
    -o-filter: grayscale(50%);
    filter: grayscale(50%);
    filter: gray; /* IE 6-9 */
    border: 1px solid gray;
    width: 400px;
}


#contact-email {
    font-size: 18pt;
    font-weight: normal;
}


h1 {
    font-size: 28pt;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 1em;    
    display: inline-block;
}

h2 {
    font-size: 18pt;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.2em;
}

h3 {
    font-size: 16pt;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.2em;
}

h4 {
    font-size: 14pt;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.2em;
    font-style: italic;
}



p { 
    margin-bottom: 0.5em;
    line-height: 1.5em;
}


/* A Project Page */

#left-pane {
    padding-right: 15px;
    margin-right: 230px;
    border-right: 1px dotted gray;
}


.left {
    margin: 10px 10px 10px 0;
    float: left;
}

.right {
    margin: 10px 0px 10px 10px;
    float: right;
}

.center {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    display:block;
    width:60%;
}


.center-narrow {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    display:block;
    width:40%;
}

.center-wide {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    display:block;
    width:80%;
}


#left-pane img {
    border: 1px solid gray;
}

#right-pane {
    float: right;
    padding-left: 15px;
    width: 200px;
    position: absolute;
    right: 0;
}


#right-pane .photo  { 
    margin: 5px 10px 5px 0;
    border-radius: 50%;     
    border: 4px solid;
    width:72px; 
    height: 72px;
}


#team { 
    padding:0;
    margin: 0;
}

#team a {
    border: 0;
}



/* The Publications Page */

.year_item {
    margin-bottom: 2em;
    /*margin-left: 40px;*/
    clear: both;
}

.year_item.mix, h3.mix {
    display: none;
    background-color: inherit;
    color: inherit;
}

h3.mix {
    font-weight: normal;
    font-size: 18pt;
    padding-bottom:0.5em;
    padding-top: 1em;
    display: none;
}


.ui-slider-wrapper {
    margin-bottom: -3em;   
}

.pub_author, .pub_isbn, .pub_issn, .pub_doi {
    display: block;
}

.pub_author {
    font-weight: normal;
}

.pub_title {
    font-size: 14pt;
    margin-bottom:0.3em;
    display: block;
}

.pub_booktitle {
    font-style: italic;
    display: block;
}

.pub_awards {
    color: red;
    font-style: italic;
    font-variant: small-caps;
}

.pub {
    margin-left: 151px;
    line-height: 1.3em;
}


.paper_image_wrapper { 
    width: 140px;
    float: left;
    text-align: right;
}

.paper_image { 
    max-width:140px;
    max-height: 110px;
    border: 1px solid gray; 
    margin-right: 10px; 
    margin-bottom:5px; 
}

.tag { 
    font-size: 8pt;
    color: white;
    padding: 2px 5px 2px 5px;
    margin-right: 1em;
    border-radius:10px;
}

.pub_tag {
    margin-bottom: 20px;
}

.bibtex-box {
    display: none;
    background-color: #eef;
    font-family: "courier new", courier, monospace;
    font-size: 10pt;
    border-top: 1px dotted grey;
    border-bottom: 1px dotted grey;
    padding: 1em;
}

.bibtex-link {
    font-size:10pt;    
    margin-right: 0.5em;
}

.ui-slider-wrapper { position: relative; font-size: 10pt;}

/*.ui-slider-label-ticks span { font-size: 0.8em; min-width: 1.2em; }*/


.graph_bar_wrapper {
    padding:0;
    margin:0;
    margin-bottom:-3px;
}


.graph_label {
    width:3em; 
    padding:0; 
    margin:0; 
    font-size:10pt;
    text-align: right;
    display: inline-block; 
    margin-right:0.2em;
    vertical-align: bottom;
}


.graph_bar {
    display: inline-block;
    background-color: #00a651;
    color: white;
    padding:0;
    margin:0;
    font-size: 8pt;
    text-align:right;
    height: 14px; 
}

.graph_value {
    vertical-align: middle;
    margin-right: 0.5em;
}

.item_name {        
    font-weight: lighter;
}

.item_value {
    width: 2em;
    display: inline-block;     
    text-align: right;
    margin-right: 0.5em;
}

em {
    font-style: italic;
}