/**
 * @Author: davidbenque
 * @Date:   2018-05-11 11:35:04
 * @Last modified by:   davidbenque
 * @Last modified time: 2018-05-18 2:39:03
 */

body {
    margin: 10px;
    font-family: "tuner-regular", sans-serif;
    font-size: 18px;
    line-height: 130%;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

a {
    color: black;
    text-decoration: underline;
}

a:hover {
    color: blue;
}

header, footer, div.page {
    margin: 0 auto;
    /* background: #daeef3; */
}

header h1 {
    color: #169bbd;
    margin: 0;
    font-weight: normal;
    font-size: 42px;
}

header{
  position: static;
}

nav{
  display: grid;
  display: grid;
  grid-gap: 10px 40px;
  grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
  text-transform: uppercase;
}

nav > ul.navbar-nav > li > a{

  color:#626262;
  text-decoration: none;
}

nav > ul.site-title{
  grid-column-start: 1;
}

nav > ul.site-sections{
  grid-column-start: 2;
}

nav > ul.social{
  grid-column-start: 3;
}

ul.site-sections > li.active > a{
  color:rgba(0, 0, 255, 0.5);
}


ul.nav > li > a:hover{
  color:blue;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;

}

header nav ul li {
    display: inline-block;
    margin: 0 8px 0 0;
    padding: 0;
}



/* nav icons */
nav > ul > li > a > .fa {
    font-size: 1.5em;
    margin: 5px;
    vertical-align: middle;
}


/* Page */

div.page {
  margin-top: 30px;
    /* background: #f1fbfe; */
}

/* for about page */
div.page-body{
  margin-top: 100px;
}

/* text pages - CV listings & PhD */
div.text-page-body{
  max-width: 750px;
}

h1{
  line-height: 110%;
}

h2{
  /* font-family: "tuner-light", sans-serif; */
  font-size: 2em;
  line-height: 120%;
  margin-top: 0;
  margin-bottom: 10px;
}

ul {
  list-style-position: inside;
}

img {
  max-width: 100%;
}

video {
  max-width: 100%;
}

.body_ref {
  background-color: white;
  font-size: 0.85em;
  line-height: 120%;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.projects{
  display: grid;
  grid-gap: 40px;
  grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
  grid-auto-rows: 10px;
}

.news_box{
  padding: 10px 5px 20px 5px;

}

.news_box>.content>p {
  font-size: 0.8em;
  line-height: 130%;
}

.news_box>.content>p>a {
  text-decoration: underline;
}

.project_thumbnail{
  /* background-color: #a7f2d3; */
  position: relative;
}

/* .project_thumbnail.wide{
  background-color: #a7f2d3;
  grid-column-end: span 2;
} */

.project_thumbnail > .content > a > p{
  margin: 0;
  padding: 0;
}

.project_thumbnail > .content > a:hover{
  color:white;
}

.IDS_card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.IDS_card > a {
  width: 100%;
  height: 100%;
}

.wip_label {
  position: absolute;
  padding: 6px;
  background-color: #c1c1c1;
  right: -7px;
  top: -10px;
  /* width: 50px; */
  /* height: 50px; */
  /*! background: red; */
  /*! -moz-border-radius: 50px; */
  /*! -webkit-border-radius: 50px; */
  border-radius: 10px;
  text-align: center;
  /*! line-height: 50px; */
  transform: rotateZ(-30deg);
  font-size: 1em;
}


.project-page{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "title title title"
    "before before before"
    "main main credits"
    "after after after";
  grid-gap: 20px;
}
.project-page > h2 {
  font-size: 2.5em;
  grid-area: title;
}

.wip_badge{
  background-color: #6F7074;
  color: white;
  padding:5px;
  display: inline-block;
  border-radius: 5px;
  margin-bottom: 10px;
}

.project-body{
  grid-area: main;
  padding-right: 10px;
}

.project-body > p, .project-credits > p{
  margin-top: 0px;
}

.project-credits{
  margin-left: 10px;
  font-size: 0.8em;
  grid-area: credits;
}

.project-full{

  margin: 0px;
  padding: 0px;
}

.before{
  grid-area: before;
}

.after{
  grid-area: after;
}

ul {

  margin: 0;
  padding: 0;
}

.project-full > p {
  margin: 0px;
  padding: 0px;
  font-size: 0.8em;
}

.project-full > p > img {
  margin: 0px -10px;
  max-width: 100vw;
  width: 100vw;
}

a.btn {
  /*! border: 1px solid black; */
  padding: 10px;
  margin: 10px 20px 10px 0px;
  font-size: 1.3em;
  display: inline-block;
  vertical-align: middle;
  background-color: #fff;
  color: black;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #ccc;
  color: white;
}

.icon {
  font-size: 40px;
  line-height: 45px;
  /*! float: left; */
  display: inline;
  vertical-align: middle;
}

.btn-text {
    display: inline;
    vertical-align: middle;
    text-decoration: none;
}

.caption{
  font-size: 0.8em;
  line-height: 120%;
  margin-bottom: 20px;
}

/* About Pages */

.about-sections{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "talks exhibitions" "teaching publications" ;
  grid-gap: 30px;
}

.cv-preview.exhibitions{
  grid-area: exhibitions;
}
.cv-preview.talks{
  grid-area: talks;
}
.cv-preview.teaching{
  grid-area: teaching;
}
.cv-preview.publications{
  grid-area: publications;
}

.cv-preview > h2 {
  font-size: 1.5em;
}

.cv-preview a {
  text-decoration: underline;
}

.cv-preview {
  font-size: 0.8em;
  padding: 10px 10px 20px 10px;
  background-color: white;
}

.cv-preview p {
  margin: 10px 0px;
  line-height: 130%;
  max-width: 500px;
}




footer{
  font-size: 0.7em;
  margin-top: 50px;
}

/* Media Queries */

@media screen and (max-width: 770px){
  nav{
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "title title"
                          "sections social"
  }


    nav > ul.site-title{
      grid-column-start: 1;
      grid-area: title;
    }

    nav > ul.site-sections{
      grid-column-start: 1;
      grid-row-start: 2;
    }

    nav > ul.social{
        text-align: right;
      grid-column-start: 2;
      grid-row-start: 2;
    }
}

@media screen and (max-width: 650px){

  .project-page{
      display: grid;
      grid-template-columns: 1fr;
      grid-template-areas:
        "title" "before" "main" "credits" "after";
    }

  .project-credits{
    margin-left: 0px;
  }

  .about-sections{
    grid-template-columns: 1fr;
    grid-template-areas: "talks" "exhibitions" "teaching" "publications" ;
  }

}

@media screen and (max-width: 520px){
/* .project_thumbnail.wide{
    grid-column-end: span 1;
    overflow: hidden;
    max-width: 100%;
    max-height: 100vw;
    text-indent: -50%;
  }

.project_thumbnail.wide > .content > a > img {
    max-width: none;
    max-height: 100vw;
  } */



}
