@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

body {
    margin: 2rem auto;
    padding: 0 2rem;
    max-width: 900px;
    line-height: 1.4em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: initial;
}

img {
    max-width: 80%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li {
    font-family: "Montserrat", Verdana, sans-serif;
    font-weight: 500;
    color: #4a4a4f;
}

h2 {
    box-shadow: -2px 2px 2px 0px #e84610;
    padding-left: 5px;
    padding-bottom: 3px;
    margin: 2rem 0;
}

#up-next {
    margin-top: 8rem;
}

a {
    color: #bf3a0d;
    /* 
  ? CI color on white does not meet a11y - can I use this darker shade
  I think having CI color for hover would ok
  color: #e84610;
  */
    text-decoration: none;
}

a:hover {
    color: #e84610;
    text-decoration: none;
}

.sup-intro {
    color: #445261;
    margin: 1rem 0;
}

th,
td {
    border: 1px solid black;
    padding: 0.7rem;
}

code {
    font-size: 1.6em;
}

pre code {
    font-size: 1.1em;
    display: block;
    width: 100%;
    overflow-x: auto;
}

pre {
    background: #4a4a4f;
    color: #e6ecf0;
    padding: 1em 0.2em;
    border-radius: 10px;
    font-size: 1.2em;
}

hr {
    border: 2px solid #e84610;
}

hr:first-of-type {
    margin-bottom: 3em;
}

hr.light {
    border: solid 1px #dedede;
}

ul {
    list-style: none;
}

ul li {
    position: relative;
    margin: .4em 0;
}

ul li::before {
    content: '';
    display: inline-block;
    height: 1em;
    width: 1em;
    background: url("../general/ci-circ.png") center / contain;
    position: absolute;
    top: 1.8px;
    left: -1.2em;
}

ul li p {
    margin: 0 0 .5em;
}

/* .markdown body is a div around all content added by GitHub */
.markdown-body>ol>li {
    margin-top: 3rem;
}

/* ------------- navigation -------------- */
#navigation-container {
    margin-top: 2rem;
    display: flex;
    word-break: break-word;
}

.navigation {
    flex-basis: 50%;
}

.navigation:not(.HIDE) {
    margin: .4rem;
    border: solid 2px #445261;
    border-radius: 8px;
    padding: 0 1rem;
}

.navigation:not(.HIDE):hover {
    border-color: #e84610;
}

.navigation a {
    display: flex;
    align-items: center;
}

.column {
    flex-grow: 1;
    flex-basis: 90%;
    font-size: 1.3em;
}

.arrow {
    font-size: 3rem;
    flex-grow: 0;
}

.direction {
    font-variant: small-caps;
    font-size: .75em;
    color: #e84610;
    margin-top: .5rem;
}

#previous {
    text-align: right;
}

/* ------------------ hints ----------------- */
.hint {
    background-color: #f5f7f9;
    border-radius: 5px;
    border-left-width: 6px;
    border-left-style: solid;
    padding: 1.5rem .8rem;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 0 10px #999;
}

.hint>p {
    margin: .3rem 0 0;
}

.hint-icon {
    height: 1.8rem;
    width: 3rem;
    flex-shrink: 0;
}

.hint.success {
    border-color: #008000;
}

.hint.info {
    border-color: #009fe3;
}

.hint.danger {
    border-color: #b90909;
}

.hint.warning {
    border-color: #d8800d;
}

.success .hint-icon {
    background: url("../general/check-circle-regular.png") center / contain no-repeat;
}

.info .hint-icon {
    background: url("../general/info-solid.png") center / contain no-repeat;
}

.danger .hint-icon {
    background: url("../general/danger.png") center / contain no-repeat;
}

.warning .hint-icon {
    background: url("../general/warning.png") center / contain no-repeat;
}

/* ------------------ utilities ----------------- */
h1:first-of-type {
    display: none;
}

h1:nth-of-type(2)::before {
    content: "";
    height: 90px;
    width: 144px;
    background: url("../general/ci-logo-trim.png") center / contain no-repeat;
    float: right;
}

.margin-y-3 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.margin-b-3 {
    margin-bottom: 3rem;
}

.HIDE * {
    display: none;
}

/* -------------- code colours ------------ */
/* --- python ----------------*/
.language-python code span.c1 {
    color: #adadad;
}

.language-python code span.s {
    color: #8be818;
}

.language-python code span.k {
    color: #ff5a60;
}

/* --- terminal ------------- */
.language-shell code.o {
    color: #efb920;
}

.language-shell code.nv {
    color: #00ff95;
}

@media screen and (max-width: 768px) {
    #navigation-container {
        flex-direction: column-reverse;
    }

    .navigation {
        flex-basis: 100%;
    }

    pre {
        overflow-x: scroll;
    }

    .hint {
        overflow-x: scroll;
    }
}