html {
    background-color: #E8E7E2;
    min-height: 100vh;
    position: relative;
}

body {
    background-color: #FFF;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2em;
    max-width: 1600px;
    min-height: 100vh;
}

.navbar {
    height: 75px;
    margin: 4px 40px 20px 43px;
}

.navbar-default {
    background: none;
    border: none;
}

.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #939295;
    margin-left: 55px;
    padding-top: 25px;
}

.navbar-header .navbar-brand:first-of-type img {
    margin-right: 72px;
}

.navbar-default .navbar-collapse {
    border: none;
}

.navbar-default .navbar-toggle {
    border-width: 2px;
    margin-top: 20px;
}

.navbar-toggle .icon-bar {
    height: 3px;
    width: 24px;
}

.panel {
    border: none;
    box-shadow: none;
    margin-left: auto;
    margin-right: auto;
    width: 87%;
}

.table-responsive {
    border: 0;
}

a:hover {
    text-decoration: none;
}


table {
    margin-top: 10px;
}

.form-group, .checkbox {
    margin-top: 0;
    margin-bottom: 0;
}

#pmid-upload-form .form-group {
    margin-bottom: 30px;
}

label {
    font-weight: 400;
}

h1 {
    margin-bottom: 10px;
}

h2 {
    font-size: 20px;
    margin-Top: 10px;
}

h3 {
    font-size: 16px;
}

td, th {
    text-align: center;
}

pre {
    font-size: 12px;
}

code {
    background: none;
    color: #333;
}

h2 code {
    font-weight: 700;
}

.result-headings-inline {
    display: inline;
}

.result-headings {
    font-size:17px;
    color: #805500;
}

.percentile-table tbody tr th,
.percentile-table tbody tr td {
    border: none;
}

.percentile-table tr:first-of-type {
    border-bottom: 1px solid #DDD;
}

.modal {
    margin-top: 100px;
}

.tooltip.in {
    opacity: 1;
}

.tooltip-inner {
    background-color: #FFF;
    border: 1px solid #DDD;
    color: #000;
    font-size: 14px;
    max-width: 400px;
    min-width: 400px;
    padding: 4px;
}

.disabled {
    opacity: 0.5;
}

.graphs h3 {
    border-bottom: 1px solid #DDD;
}

.graphs .row {
    text-align: center;
}

a.toggler {
   cursor: pointer;
}

p#h1-warning {
    margin-top: -30px;
}

p.or {
    font-weight: 600;
    margin-bottom: 20px;
    margin-left: 0;
}

.container-fluid {
    margin-bottom: 2em;
}

@media print {
    .footer {
        display: none;
    }
}

.footer {
    position: absolute;
    bottom: 1em;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    left: 0;
    right: 0;
}

.footer ul {
    padding: 0;
}

.footer ul li {
    display: inline-block;
    width: 30%;
}

img.img-responsive {
    width: 100%;
}

.jumbotron p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    html {
        background-color: #FFF;
    }
    .navbar {
        margin-bottom: 30px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .navbar-right {
        background-color: #FFF;
        border: 2px solid #EEE;
        border-radius: 6px;
        position: absolute;
        right: 30px;
        width: 150px;
    }
    .navbar-right li a {
        margin-left: 0 !important;
        padding-bottom: 25px;
        text-align: center;
    }
    .jumbotron {
        margin: 0;
        padding: 15px;
    }
    .jumbotron p {
        font-size: 18px;
    }
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    .form-group .btn-primary {
        display: block;
        width: 100%;
    }
}

@media (min-width: 768px) {
    textarea.form-control {
        max-width: 50%;
    }
    input.form-control {
        max-width: 50%;
    }
}

@media (max-width: 992px) {
    .table-responsive table {
        border: 1px solid #DDD;
    }
    .panel {
        width: 85%;
    }
}

.spinning {
	animation: spin 2s infinite linear;
}

@keyframes spin {
	from {
		transform: rotate(0turn);
	}
	to {
		transform: rotate(1turn);
	}
}

/* d3 chart styles */
#infl-chart-box-plot svg, #infl-chart-pub-counts svg, #infl-chart-wrcrs svg {
    max-width: 350px;
}

.axis path, .axis line {
    fill: none;
    stroke: #000;
}

.axis text {
    font-size: 12px;
}

.bar {
    fill: #337AB7;
    stroke: none;
}

.box {
    fill: #337AB7;
    stroke: none;
}

line.box {
    stroke: #333;
}

line.joiner {
    stroke-dasharray: 3,3;
}

#tab-list-new, #tab-list-result{
    padding: 0;
}

.nav-tabs a, .nav-tabs a:hover, .nav-tabs a:focus{
    outline: 0;
}

.lasso path {
  stroke: rgb(80,80,80);
  stroke-width:2px;
}

.lasso .drawn {
  fill-opacity:.05 ;
}

.lasso .loop_close {
  fill:none;
  stroke-dasharray: 4,4;
}

.lasso .origin {
    fill:#3399FF;
    fill-opacity:.5;
}

#animDown {
    text-decoration: underline;
    color: blue;
}

.slidecontainer{
    width: 80%;
    padding-left: 22%;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0099cc;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #337AB7;
    cursor: pointer;
}

#year-display{
    height: 20px;
}

#bub-anc{
    padding-left:110px;
    outline: 0;
}

.ag-header-cell-text {
    font-size: 15px;
    color: black;
}

.ag-header-row {
    background-color: #d4e7f7;
}

.ag-row .ag-cell{
    display: flex;
    align-items: center;
    font-size: 14px;
}

.ag-theme-balham .ag-row-selected {
    background-color: white;
}

.ag-theme-balham .even-row-shading {
    background-color: #f4f4f4 !important;
}

.ag-paging-panel {
    color: black !important;
    padding-right: 0 !important;
}

.btn {
    background-color: #337AB7 !important;
}

.bar:hover {
    fill: #3399ff;
}

.d3-tip-bub {
    color: red;
}

.d3-tip-bar {
    line-height: 1;
    font-weight: bold;
    padding: 12px;
    background: #e6e6e6;
    color: red;
    border-radius: 2px;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip-bar:after {
    box-sizing: border-box;
    display: inline;
    font-size: 10px;
    width: 100%;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
    content: "\25BC";
    position: absolute;
    text-align: center;
}

/* Style northward tooltips differently */
.d3-tip-bar.n:after {
    margin: -1px 0 0 0;
    top: 100%;
    left: 0;
}

#how-to-cite h2{
    color: #0066cc;
}

#how-to-cite p{
    font-size: 16px;
}