/* Taken from Scipy and Numpy */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');

.navbar-brand img {
   height: 60px;
}
.navbar-brand {
   height: 75px;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color:black; /* numpy.org body color */
}

h1, h1 code {
  font-family: "Lato", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #013243; /* warm black */
}

h2 {
  font-family: "Lato", sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: #4d77cf; /* han blue */
}

h3 {
  font-family: "Lato", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #013243; /* warm black */
}

pre, code {
  font-size: 0.8rem;
}

.toctree-wrapper li[class^=toctree-l]>a {
  font-size: 0.95rem;
}

nav img {
  margin-right: 5rem;
}

p.rubric {
  display: block;
}

/* Make page width wider */
.bd-page-width {
  max-width: 100rem;
}

/* Make primary link color darker */
html[data-theme=light] {
  --pst-color-primary: #0A5173;
}

/* Avoid table cramming */
table {
  display: block;
  table-layout: auto;
}

/* Avoid image stretching */
.no-scaled-link {
  height: inherit !important;
}

/* Override some aspects of the pydata-sphinx-theme: taken from Pandas */

:root {
  /* Use softer blue from bootstrap's default info color */
  --pst-color-info: 23, 162, 184;
  --pst-color-active-navigation: 1, 50, 67;
}

.bd-sidebar::-webkit-scrollbar, pre::-webkit-scrollbar {
  width: 0.3rem;
  height: 0.3rem;
}

.sidebar-primary-items__end {
  display: none;
}

.prev-next-area a p.prev-next-title {
  font-size: 0.8rem;
}

/* Main index page overview cards */

.intro-card {
  background: #fff;
  border-radius: 0;
  padding: 30px 10px 20px 10px;
  margin: 10px 0px;
}

.intro-card p.card-text {
  margin: 0px;
}

.intro-card .card-img-top {
  height: 52px;
  width: 52px;
  margin-left: auto;
  margin-right: auto;
}

.intro-card .card-header {
  border: none;
  background-color:white;
  color: #150458 !important;
  font-size: var(--pst-font-size-h5);
  font-weight: bold;
  padding: 2.5rem 0rem 0.5rem 0rem;
}

.intro-card .card-footer {
  border: none;
  background-color:white;
}

.intro-card .card-footer p.card-text{
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.custom-button {
  background-color:#DCDCDC;
  border: none;
  color: #484848;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  max-width: 120px;
  padding: 0.5rem 0rem;
}

.custom-button a {
  color: #484848;
}

.custom-button p {
  margin-top: 0;
  margin-bottom: 0rem;
  color: #484848;
}

div.nbinput.container div.input_area div[class*=highlight] > pre {
  padding: 10px !important;
}