body {
  background-color: #FFFFFF;
}
#content {
  margin-bottom: 3em;
  padding-left: 1rem;
  padding-right: 1rem;
}
#sidebar {
  position: relative;
  max-height: 100%;
  overflow-y: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar {
  border-radius: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.navbar a.pull-right {
  color: white;
  margin-top: 17px;
}
.navbar-brand img {
  height: 2rem;
  line-height: 2rem;
  margin-top: -1rem;
  position: absolute;
  top: 50%;
}
#sidebar {
  font-size: 0.8125em;
}
#sidebar ul {
  list-style: none;
  padding: 0;
}
#sidebar ul ul {
  padding-left: 1em;
}
#sidebar li {
  padding: 6px 0;
  line-height: 1.5em;
}
#sidebar a.page-link, #sidebar a.section-title {
  color: #4E5057;
}

#sidebar a.selected-page-link {
  border-radius: 0.25rem;
  background-color: #6290c3;
  color: #fff;
  border: 1px solid #6290c3;
  padding: 0.25rem 0.5rem;
  margin-left: -0.5rem;
}
#sidebar ul > li > a {
  text-decoration: none;
}
#sidebar ul {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}
#sidebar ul.open {
  max-height: 8000px;
  transition: max-height 1s ease;
}
#sidebar li.open {
  color: #6290C3;
}

/* override the glyphicon for chevrons... */
#sidebar .glyphicon-chevron-down::before { content: '' }
#sidebar .glyphicon-chevron-down {
  background-image: url(../resources/caret-down.svg);
}
#sidebar .glyphicon-chevron-right::before { content: '' }
#sidebar .glyphicon-chevron-right {
  background-image: url(../resources/caret-right.svg);
}
#sidebar .glyphicon-chevron-down, #sidebar .glyphicon-chevron-right {
  background-repeat: no-repeat;
  background-position: center;
  width: 12px;
  height: 14px;
}

#sidebar ul > li.open > a > .glyphicon-chevron-down {
  display: inline-block;
}
#sidebar ul > li > a > .glyphicon-chevron-down {
  display: none;
}
#sidebar ul > li.open > a > .glyphicon-chevron-right {
  display: none;
}
#sidebar ul > li > a > .glyphicon-chevron-right {
  display: inline-block;
}

#page {
  padding-top: 80px;
}

.breadcrumb {
  background: transparent;
  padding:0;
  margin:0;
  text-transform: uppercase;
  color: #8C9CAF;
  font-size: 0.8125em;
  line-height: 20px;
}
.breadcrumb-part {
  display: inline-block;
  padding-right: 3px;
}

h1 {
  margin-bottom:0.5em;
}
p {
  margin-bottom:1em;
}

header h1 {
  font-size: 2em;
  color: #4E5057;
  line-height: 2em;
}

/*
 * Markdown things
 */
section {
  line-height: 1.625em;
}
section h1 {
  font-size: 1.75em;
  line-height: 2em;
  color: #4E5057;
}
section h2 {
  font-size: 1.375em;
  line-height: 1.5em;
  color: #4E5057;
}
section h3 {
  font-size: 1.375em;
  font-weight: 300;
  color: #8C9CAF;
}

section pre {
  box-shadow: none;
  -webkit-box-shadow: none;
  border: 1px solid #DFDFDF;
  background-color: rgba(92,192,222,0.1);
  margin-bottom: 20px;
}
section pre + div.dataset-query-actions {
  position: relative;
  top: -22px;
  overflow: hidden;
  background-color: white;

}
section .dataset-query-actions {
  padding: 10px;
  border: 1px solid #DFDFDF;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  border-top: 0px;
}
section .dataset-query-actions .dataset-link {
  color: #323D48;
  font-size: 0.875em;
}

section blockquote {
  color: #8C9CAF;
  font-size: 1.125em;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5em;
  border-left: 3px solid #6290C3;
  padding: 2px 0 2px 1em;
}

/* TABLES */
section table {
  display: block;
  overflow-x: scroll;
  overflow-y: scroll;
  max-height: 400px;
  max-width: 100%;

  text-align: left;
  border-collapse: collapse;
  font-size: 0.8125em;
  font-family: "Inconsolata", monospace;

  margin-bottom: 1.5em;
  margin-top: 1.5em;
}

@media(max-width:767px) {
  section table {
    overflow-y: hidden;
    max-height: none;
  }

}

section table td, section table th {
  border: 1px solid #DDDDDD;
  padding: 5px 5px;
  white-space: nowrap;
}
section table thead {
  border-bottom: 1px solid #DDDDDD;
}
section table thead th {
  background-color: #e9edf1;
  font-weight: bold;
  text-align: left;
}

/* syntax highlighting */
.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  color: #383a42;
  background: #fafafa;
}

.hljs-comment,
.hljs-quote {
  color: #a0a1a7;
  font-style: italic;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
  color: #a626a4;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
  color: #e45649;
}

.hljs-literal {
  color: #0184bb;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta-string {
  color: #50a14f;
}

.hljs-built_in,
.hljs-class .hljs-title {
  color: #c18401;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
  color: #986801;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
  color: #4078f2;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-link {
  text-decoration: underline;
}

.next {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  display: block;
  background-color: #F7F7F7;
  color: #323D48;
  text-decoration: none;
  background-image: url(../resources/next.svg);
  background-repeat: no-repeat;
  background-position: 25px center;
  padding: 1.5em 0 1.5em 100px;
}
.next:hover {
  text-decoration: none;
}
.next .title {
  font-weight: bold;
  font-size: 1.375em;
}
.next:hover .title {
  text-decoration: underline;
}
.next:hover .description {
  color: #323D48;
  text-decoration: none;
}
.next p {
  margin: 0;
  padding: 0;
}

/* function.pug */
.param-type {
  color: #555555;
}

code {
  background-color: rgba(209, 222, 237, 0.3);
  border-radius: 2px;
  font-family: "Inconsolata", monospace;
}
pre {
  overflow-x: scroll;
  font-family: "Inconsolata", monospace;
}
pre code {
  white-space: pre;
  font-family: "Inconsolata", monospace;
  font-size: 16px;
}


/* note/warning are the same thing */
.tip, .info, .success, .note, .warning, .error {
  font-size: 1.0625em;
  border: 1px solid;
  border-radius: 2px;
  padding: 1em 1em 1em 2.5em;
  margin-bottom: 20px;
  margin-top: 20px;
  background-position: 1em 1.3em;
  background-repeat: no-repeat;
}
.tip p, .info p, .success p, .note p, .warning p, .error p {
  margin-bottom:0;
}
.warning, .note {
  border-color: #F6BD68;
  background-color: rgba(246,189,104,0.2);
  background-image: url(../resources/warning.svg);
}
.tip {
  border-color: transparent;
  background-color: rgba(98, 144, 195, 0.2);
  background-image: url(../resources/tip.svg);
}
.info {
  border-color: rgb(92, 192, 222);
  background-color: rgba(92, 192, 222, 0.2);
  background-image: url(../resources/info.svg);
}
.error {
  border-color: #F36866;
  background-color: rgba(243, 104, 102, 0.2);
  background-image: url(../resources/error.svg);
}
.success {
  border-color: #67BF70;
  background-color: rgba(103, 191, 112, 0.2);
  background-image: url(../resources/success.svg);
}



table.params {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
}
table.params td {
  border: 1px solid #EEEEEE;
  border-left:0;
  border-right:0;
  padding: 5px 8px;
}
table.params th {
  padding: 3px 5px;
  border-bottom: 2px solid #EEEEEE;
}
.related {
  font-size: 1.125em;
  margin: 2em 0;
}

/* override the glyphicon for copy... */
#content .glyphicon-copy::before { content: '' }
#content .glyphicon-copy {
  background-image: url(../resources/copy.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 25px;
  margin-right: 0.5rem;
}
/* override the glyphicon for play... */
#content .glyphicon-play::before { content: '' }
#content .glyphicon-play {
  background-image: url(../resources/play.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 25px;
  margin-right: 0.5rem;
}

a.next {
}
.function-example {
  margin-top: 2em;
}
a.marker:before, h1[id]:before, h2[id]:before, h3[id]:before, h4[id]:before  {
  display: block;
  content: "";
  height: 60px;
  margin: -60px 0 0;
}

details {
  margin-bottom: 1em;
}
details summary {
  cursor: pointer;
}
summary {
  display: list-item;
}

#sidebar-scroll {
  position: fixed;
  top: 80px;
  bottom: 0;
  overflow: scroll;
}


@media(max-width:767px) {
  #sidebar-scroll {
    top: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 35px;
    left:0;
    right:0;
    z-index: 10;
    background: #EEE;
  }
}
