@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,400;1,700&family=Open+Sans:wght@400;700&family=Source+Code+Pro&display=swap');

:root {
    --pst-font-family-base: 'Open Sans', sans-serif; 
    --pst-font-family-heading: 'Montserrat', sans-serif;
    --pst-font-family-monospace: 'Source Code Pro', monospace !important;
    --pst-font-size-h1: 36px;
    --pst-font-size-h2: 28px;
    --pst-font-size-h3: 22px;
    --pst-font-size-h4: 16px;
}

html {
    scroll-behavior: smooth;
}

/*  Increase spacing before header */
h1 {
    margin-top: 40px;
}

h2 {
    font-size: 26;
}

/*  Justify text ... */
p {
    text-align: justify;
}
/*  ... but not in bibliography */
div[role="doc-biblioentry"] p {
    text-align: left;
}
/* ... or in a margin note */
aside.margin.sidebar p {
    text-align: left !important;
}

/*  Code cells */
tt, code, kbd, samp, pre {
    font-family: 'Source Code Pro', monospace !important;    
}

/* Glued values pasted inline */
.pasted-inline .pre {
    color: #000000 !important;
    font-family: var(--pst-font-family-base);
    font-size: 15px;
}

/* bar on left of margin comment, but not on its title */
aside.margin.sidebar p:not(.sidebar-title) {
    text-align: left;
    border-left: 2px solid #0071bc !important;
    padding: 5px;
}

/* center images */
img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 25px;
    padding-bottom: 25px;
}

img.logo {
    padding: 5px;
}

/* thumnail image for margin notes */
.thumbnail {
    float: right;
    margin-right: 8px;
    width: 100px;
    border-radius: 8px;
    padding: 0px;
}

#site-title {
    font-weight: bold;
    margin-top: 5px;
}

/* img.border-black{
    border: 5px solid #000;
}
*/

img.adobe {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 25px;
    float: right;
}

/* footnotes */
a.footnote-reference {
    vertical-align: super;
    font-size: 0.8em !important;
}

/* add icon to external links */
a.reference.external {
    white-space: nowrap;
}
a.reference.external::after {
    content: '(external link)';
    display: inline-block;
    width: .8em;
    height: .8em;
    text-indent: .8em;
    white-space: nowrap;
    overflow: hidden;
    background-image: url(extlink.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    margin-left: .2em;
}

/* Change the background color of table rows on hover */
table tr:hover {
    background-color: #fbfdaa !important;
}

/* Figure caption */
span.caption-number, span.caption-text {
    font-family: 'Montserrat', sans-serif;
    color: gray;
}


/* center tables -- not working */
table.colwidths-auto {
    margin-left: auto;
    margin-right: auto;
  }


/*  For PDF:
https://jupyterbook.org/en/stable/advanced/pdf.html#control-the-look-of-pdf-via-html
*/
@media print {
    .bd-toc {
        visibility: hidden;
    }
}