body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: 'Crimson Text', serif;
  color: #000000;
}

h1, h2, h3, h4, h5, h6{
  font-family: 'Source Sans Pro', sans-serif;
}

h1{
font-weight: 300;
}

h2{
  font-weight: 300;
}

h3{
font-size: 12px;
color: #005AC4;
letter-spacing: 1px;
font-weight: 600;
text-transform: uppercase;
margin-top: 70px;
}

p{
font-size: 24px;
line-height: 34px;
}

.side-lists li{
  font-family: 'Source Sans Pro', sans-serif;
}

.side-lists h3{
margin-top: 35px;
}

.side-lists h3:first-child{
margin-top: 70px;
}

.reversefootnote {
  color: #005AC4;
}

.footnotes li, .footnotes li p, .footnotes li a{
font-family: 'Crimson', serif;
font-size: 16px;
letter-spacing: 0;
}



ul {
  list-style: none;
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  -webkit-padding-start: 0px;
}

ol {
  display: block;
  list-style-type: decimal;
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  -webkit-padding-start: 0px;
}

#home-text-content{
  z-index: 1;
}
.text-content p{
  font-family: 'Crimson', serif;
  font-size: 24px;
  letter-spacing: 0;
}

.text-content li {
  font-family: 'Crimson', serif;
  font-size: 24px;
  letter-spacing: 0;
}

.text-content ul, .text-content ol {
  margin-top: 17px;
  margin-bottom: 34px;
}

/*header*/

#chemicalHeader{
  position: fixed;
  top: 0px;
  min-height: 50px;
  background-color: white;
  width: 100%;
  border-bottom: 1px solid #E8E8E8;
  z-index: 9999;
  font-family: 'Source Sans Pro', sans-serif;
}

.navbar-toggle.chemical-toggle{
  display: block;
  float: left;
}

.navbar-toggle.chemical-toggle .icon-bar {
  background-color: #005AC4;
}

.navbar-brand {
  font-family: 'Source Sans Pro', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
}

.subcategory {
  color: #000;
  padding-left: 10px;
}

.pipe{
  padding-left: 30px;
}

#chemicalHeaderCollapse{
  position: fixed;
  top: 0px;
  min-height: 50px;
  background-color: #4990E2;
  width: 100%;
  border-bottom: 1px solid white;
  z-index: 9998;
  margin-top: 50px;
  transform: translate(0,-100%);
  transition: transform 1s;
  padding: 0;
}

#chemicalHeaderCollapse.open{
  transform: translate(0,0);
}

#chemicalHeaderCollapse a, #chemicalHeaderCollapse p, #chemicalHeaderCollapse h3{
  color:#fff;
}

#chemicalHeaderCollapse h3{
  margin-top: 0;
}

#chemicalHeaderCollapse a:hover{
  text-decoration: none;
}

.header-box{
  border-right: 1px solid #fff;
  min-height: 250px;
  padding-top: 40px;
  transition: all 0.3s ease-in-out;
}

.header-box:hover{
  background-color: #2F64A2;
}
/*fine header*/

/*Footer*/
.footer{
  background-color: #F9F9F9;
  padding: 70px 0 100px;;
  margin-top: 70px;
}

.footer h3{
  margin-top: 0;
}

.footer p{
  font-size: 14px;
  line-height: 16px;
}

.footer img{
  width: 110px;
  margin-top: 0px;
}

.footer .logo-calibro{
  width: 140px;
  margin-top: 20px;
}

.footer .fa{
  font-size: 30px;
  margin-right: 10px;
}

.doi-badge img{
  width: 150px;
}

/*Fine footer*/

#home-tab li a{
  font-size: 12px;
  color: #005AC4;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Source Sans Pro', sans-serif;
}

#home-tab-content pre{
  background-color: #f8f8f8;
  border-radius: 0px;
  border: 1px solid #D7D7D7;
}

#home-tab.nav-tabs>li>a {
  border-radius: 0px;
}

/* back - next */
#back,
#next {
  position: fixed;
  bottom: 0px;
  top: 0px;
  background-color: #fff;
  z-index: 10;
  border: 1px solid #E8E8E8;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-content: center;
  align-content: center;
  -webkit-align-items: center;
  align-items: center;
  width: 25px;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

#back{
  left: 0px;
}

#next{
  right: 0px;
}

#back:hover,
#next:hover {
background-color: #FBF9F9;
opacity: 1;
}

/*Viz page layout*/
.viz-header{
  margin-top: 100px;
}

.viz{
  position: relative;
  font-family: 'Source Sans Pro', sans-serif;
  margin: 75px 0 25px;
  min-height: 500px;
}

.viz .btn.btn-default{
  border-radius: 30px;
}

.viz .btn.btn-default span.glyphicon{
  font-size: 10px;
}

.viz .legend .vandalism-check{
  margin-right: 15px;
    margin-left: 5px;
    margin-top: 12px;
    float: right;
}

.viz .legend .vandalism-text{
    float: right;
    margin-top: 7px;
}

.nw-top{
  margin: 75px 0 10px;
}

.nw-bottom{
  margin-bottom: 25px;
}

.comments{
  margin-top: 120px;
  border-top: 1px solid #E8E8E8;
}

/*End viz page layout*/

/*Home*/
.homeHeader {
  min-height: 600px;
  color:white;
  position: relative;
  background-image: url("../media/cover_home.png");
  background-position: right bottom;
  background-size: cover;
}

.homeHeader h1{
  font-size: 42px;
}

.homeHeader .homeTitle{
  position: absolute;
  bottom: 20px;
}

.explore a{
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  color: #000000;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

.explore a:hover{
  opacity: 1;
  text-decoration: none;
}

#researchQuestions{
  border-left: 1px solid #D7D7D7;
  background: white;
}

.question {
  padding: 40px 20px;
}

.question h1{
  font-size: px;
}
/*End Home*/


/*Start PageExplorations*/
.pageExHeader {
  min-height: 300px;
  padding-top: 20px;
  border-bottom: 1px solid #D7D7D7;
}

.background-medical, .background-designer {
  position: relative;
  background-position: right;
  background-repeat: no-repeat;
}

.background-medical{
  background-image: url("../media/cover_medical.png");
}

.background-designer{
  background-image: url("../media/cover_designer.png");
}

.explorations-title{
  padding: 5px 0 10px 0;
  border-bottom: 1px solid #D7D7D7;
}

.explorations-box {
  height: 100px;
  border-bottom: 1px solid #D7D7D7;
}

.explorations-box h2{
  font-size: 24px;
  margin-top: 0;
  padding-top: 25px;
}

.explorations-box p{
  padding-top: 25px;
}

.explorations-box .numbers {
  opacity: 0.2;
}

.media {
  margin-top: 0
}

.explorations-box:hover{
  background-position: right top;
  background-size: cover;
}

.explorations-box.medical-1:hover{
  background-image: url("../media/medical-1.png");
}

.explorations-box.medical-2:hover{
  background-image: url("../media/medical-2.png");
}

.explorations-box.medical-3:hover{
  background-image: url("../media/medical-3.png");
}

.explorations-box.medical-4:hover{
  background-image: url("../media/medical-4.png");
}

.explorations-box.medical-5:hover{
  background-image: url("../media/medical-5.png");
}

.explorations-box.medical-6:hover{
  background-image: url("../media/medical-6.png");
}

.explorations-box.medical-7:hover{
  background-image: url("../media/medical-7.png");
}

.explorations-box.medical-8:hover{
  background-image: url("../media/medical-8.png");
}

.explorations-box.designer-1:hover{
  background-image: url("../media/designer-1.png");
}

.explorations-box.designer-2:hover{
  background-image: url("../media/designer-2.png");
}

.explorations-box.designer-3:hover{
  background-image: url("../media/designer-3.png");
}

.explorations-box.designer-4:hover{
  background-image: url("../media/designer-4.png");
}

.explorations-box.designer-5:hover{
  background-image: url("../media/designer-5.png");
}

/*End PageExplorations*/


.annotations path {
    fill: none;
    stroke: black;
}

.legendBottom,
.legendTop{
  height: 20px;
}

/* loader*/

.nwLoaderContainer{
  position: relative;
}

.loaderContainer{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 1;
  background-color: rgba(128,128,128,0.2);
  z-index: 9999;
}

.loader{
  position: relative;
  left: 50%;
  top: 50%;
}

.loader .glyphicon-refresh.spinning {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1) rotate(360deg); }
}

/* splashpage */

.splashMobile{
  position: fixed;
  top:0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background-color: rgba(255, 255, 255, 0.90);
  z-index: 9999;
  text-align: center;
  display: flex!important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: -webkit-flex!important;
  -webkit-flex-direction: column;
  -webkit-justify-content: center;
  -webkit-align-items: center;
  padding: 20px;
  font-size: 18px;
}

.splashMobile a{
  color: black;
  text-decoration: underline;
  font-weight: bold;
}

.splashMobile a:hover{
  color: black;
  text-decoration: underline;
}

/* edits */

.flow .tick line{
  stroke: #ccc!important;
}
.flow .tick text{
  fill: #898989!important;
}

/* toc */

.cont{
  cursor: pointer;
}

.context .brush rect{
  stroke-width: 0px;
}



/*network*/

.nwRow{
  border: 1px solid #f8f8f8;
}

.nwLegend{
  font-family: 'Source Sans Pro', sans-serif;
  margin-bottom: 15px;
}


.nwCol{
  background-color: #f8f8f8;
}

#networkContainer{
    width: 100%;
    position: relative;
}

#controller{
  position: absolute;
  top:0px;
  right: 0px;
  z-index: 10;
}

#btn-zoom-wrapper{
  padding-top: 30px;
}

#zoomIn {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-size: 13px;
  line-height: 20px;
  color: #373737;
  padding-top: 13px;
}

#zoomOut {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  font-size: 13px;
  line-height: 20px;
  color: #373737;
  padding-top: 10px;
  padding-bottom: 9px;
}


#zoomReset {
  font-size: 13px;
  line-height: 20px;
  color: #373737;
}

#controller .btn-default{
  border: 1px solid #F6F6F6;
}

#controller .btn-default:active,
#controller .btn-default:focus{
  border: 1px solid #F6F6F6;
  background-color: #fff;
  outline: 0;
}

#controller .btn-default:hover{
  border: 1px solid #F6F6F6;
  background-color: #f8f8f8;
  transition: background-color 0.3s ease;
}

.selectedNodes h4,
.linkedNodes h4 {
  font-size: 12px;
    color: #005AC4;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 5px;
}

.selectedNodes p{
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
}

.linkButton{
  font-family: 'Source Sans Pro', sans-serif;
}

.linkButton.badge{
  margin-right: 3px;
  margin-bottom: 3px;
  padding: 5px 9px;
  font-weight: normal;
  background-color: '#4A4A4A';
  cursor: pointer;
}
.linkButton.badge .badge{
  background-color: white;
  color: black;
  margin-left: 4px;
}

/* typeahead */

#searchwrapper{
  padding-top: 30px;
}

.twitter-typeahead{
  width: 80%;
}

.typeahead,
.tt-query,
.tt-hint {
  width: 100%;
  height: 34px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 30px;
  border: 1px solid #F6F6F6;
  outline: none;
  font-family: 'Source Sans Pro', sans-serif;
}

.typeahead {
  background-color: #fff;
}

.typeahead:focus {
  border: 1px solid #F8F8F8;
}

.tt-query {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
  color: #999
}

.tt-menu {
  width: 100%;
  margin: 2px 0px;
  padding: 8px 0;
  background-color: #fff;
  border: 1px solid #F6F6F6;
}

.tt-suggestion {
  padding: 3px 10px;
  font-size: 14px;
  line-height: 24px;
  font-family: 'Source Sans Pro', sans-serif;
}

.tt-suggestion:hover {
  cursor: pointer;
  color: #000;
  background-color: #F8F8F8;
}

.tt-suggestion.tt-cursor {
  color: #000;
  background-color: #F8F8F8;

}

.tt-suggestion p {
  margin: 0;
}

.networkSide{
  height: 300px;
  overflow-y: scroll;
}

/* designer drugs metrics*/

.header-fixed {
    width: 100%
}

.header-fixed > thead,
.header-fixed > tbody,
.header-fixed > thead > tr,
.header-fixed > tbody > tr,
.header-fixed > thead > tr > th,
.header-fixed > tbody > tr > td {
    display: block;
}

.header-fixed > tbody > tr:after,
.header-fixed > thead > tr:after {
    content: ' ';
    display: block;
    visibility: hidden;
    clear: both;
}

.header-fixed > tbody {
    overflow-y: auto;
    height: 500px;
}

.header-fixed > tbody > tr > td,
.header-fixed > thead > tr > th {
    width: 16.66666667%;
    float: left;
    padding-right: 19px;
    padding-left: 19px;
}
.header-fixed > tbody > tr > td{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filtersContainer{
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: 0px;
  background-color: white;
  padding-top: 15px;
}

.filtersContainer > .row{
  margin: 0px;
}

.filtersContainer .bar{
  fill: #D8D8D8;
}

.filtersContainer .brush rect{
  stroke-width: 0px;
}

.legendContainer{
  padding-top: 15px;
  padding-bottom: 15px;
}

.legendContainer input{
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.legendContainer .btn span.glyphicon {
  opacity: 0;
}
.legendContainer .btn.active span.glyphicon {
  opacity: 1;
}

.legendContainer .form-group{
  padding-right: 15px;
  padding-top: 3px;
}

.legendContainer .form-group label{
  font-weight: normal;
}

.legendContainer .form-group label:last-child{
  padding-left: 5px;
}

.tableContainer .table>thead>tr>th {
  text-transform: uppercase;
  cursor: pointer;
}

.tableContainer .table>tbody>tr>td>a {
  color: #666;
  text-decoration: none;
}

.tableContainer .table>tbody>tr>td>a:hover {
  color: #000;
  text-decoration: none;
}

#affixContainer.affix{
  top:0px;
  position:inherit;
}

#affixContainer.affix #researchQuestions,
#affixContainer.affix-bottom #researchQuestions{
  margin-left: inherit;

}

#affixContainer.affix-bottom{
  position: inherit;
}

@media (min-width:992px){
  #affixContainer.affix{
    top:0px;
    position: fixed;
  }

  #affixContainer.affix #researchQuestions,
  #affixContainer.affix-bottom #researchQuestions{
    margin-left: 58.33333333%;
  }

  #affixContainer.affix-bottom{
    position: fixed;
  }

}

@media (min-width:1200px){

  #back,
  #next{
    width: 50px;
  }
}
