@import url("https://fonts.googleapis.com/css2?family=EB+Garamond&family=Noto+Sans+Mono&display=swap");

:root {
  --alink: #0000ee;
  --avisited: #551a8b;

  --lightgray: rgb(240, 240, 240);
  --gray: rgb(150, 150, 150);
  --darkgray: rgb(50, 50, 50);
  --byuiblue: rgb(0, 110, 182);
  --navy: rgb(0, 0, 128);
  --red: rgb(182, 0, 19);
  --mustard: rgb(182, 163, 0);
  --callout: rgb(230, 243, 254);
  --error: rgb(255, 215, 225);
  --warning: rgb(255, 255, 225);
  --details: rgb(238, 254, 238);
  --disciples: rgba(158,116,171,.4);

  --padd: 0.5rem;
  --bord: 1px solid rgba(0, 0, 0, 0.1);
  --font-body: Garamond, -apple-system, system-ui, sans-serif;
  --font-headline: "Titillium web";
}

body {
  /* font: 400 16px / 1.5 Montserrat, 'Open Sans', Helvetica, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased; */
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2em;
  color: var(--darkgray);
  background-color: var(--white);

}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Noto Sans Mono";
  margin: 0;
}

/* h1 {
  color: #fff;
  font-size: 1.1rem;
  margin-left: 1rem;
  font-weight: normal;
} */

h1 {
  color: #fff;
  font-size: 1.25em;
}
#coursetitle {
  display: none;
  /* display: inline; */
}
h2 {
  font-size: 1.5em;
  margin-bottom: 0.25em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1.0em;
}

h5 {
  font-size: 0.8em;
}


a {
  color: var(--navy);
}
a:link {
  color: var(--alink);
}
a:active {
  color: var(--red);
}
a:visited,
a:focus {
  color: var(--avisited);
}

p {
  margin: 1rem;
  line-height: 1.45;
}

h4 + p {
  margin-left: 1.25rem;
}

h5 ~ p {
  margin-left: 1.5rem;
}

ol ol,
ul ul {
  margin-top: 1rem; /* override default */
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.45;

}

li ul li:nth-child(1) {
  margin-top: 0.5rem;
}

li ul li,
li ol li {
  margin-bottom: 0.5rem;
}

li p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  background-color: var(--byuiblue);
  padding: 1rem;
  margin-bottom: 0.5rem;
}

header > div.page {
  display: flex;
  align-items: center;
}

.logo {
  width: 75px;
  height: auto;
  position: absolute;
  right: 1rem;
}

nav.page {
  display: flex;
  flex-direction: row;
  margin: 0.5rem auto;
}

main {
  margin: 1.5rem 1rem;
}

nav {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

nav span {
  font-size: .8rem;
  font-weight: 700;
  background-color: var(--lightgray);
  margin: 0 .25rem .25rem;
  text-align: center;
}

nav span a:link,
nav span a:visited,
nav span a:active,
nav span a:focus {
  color: #000;
  text-decoration: none;
  display: block;
  padding: .5rem 1rem;
  order: var(--bord);
}

nav span a:hover {
  background-color: var(--byuiblue);
  color: #fff;
}

.active {
  background-color: #000;
  color: #fff;
  text-decoration: none;
}

.active a:link,
.active a:visited,
.active a:active,
.active a:focus {
  color: #fff;
}

footer {
  border-top: var(--bord);
  font-size: smaller;
  background-color: var(--lightgray);
  padding: 0.5rem;
  text-align: center;
}

footer p {
  margin: 0 0 0 0.5rem;
}

details {
  margin: 1rem 2rem;
  border: var(--bord);
  padding: 0.5rem;
  color: #000;
  background-color: var(--details);
}

.smaller {
  font-size: smaller;
}

pre {
  line-height: 1.2;
  margin: 0.5rem 1rem;
}

pre code {
  border: var(--bord);
  border-left: 3px solid var(--byuiblue);
  padding: 0.75rem !important;
  padding-top: 0rem !important;
  font-size: 0.9rem;

}

details pre code {
  border-left: 3px solid rgb(50, 100, 50);
}

code {
  font-family: Consolas, Menlo, monospace;
}

li code,
p code {
  font-weight: 700;
  font-size: 1.0rem;
}


kbd {
  color: red;
}

mark {
  padding: 0.5rem;
  font-style: italic;
}
mark::before {
  content: '⚒️';
}

figure {
  margin: 1rem 0;
  text-align: center;
}

figcaption {
  font-size: smaller;
  margin: 0 0 1rem 0;
}

.video-container {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: calc(var(--aspect-ratio, 0.5625) * 100%);
  margin: 0.5em auto;
}

.video-container iframe {
  position: absolute;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


table {
  border-collapse: collapse;
  margin: 1rem auto;
  width: 80%;
  border: var(--bord);
  background-color: var(--lightgray);
}

table caption {
  color: var(--navy);
  font-weight: 700;
}

th {
  background-color: var(--darkgray);
  color: #fff;
}

th,
td {
  border: var(--bord);
  padding: 0.5rem;
  text-align: center;
}

.page {
  max-width: 960px;
  position: relative;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
.callout {
  margin: 1rem;
  border: var(--bord);
  padding: 0.5rem;
  color: #000;
}

.reference {
  background-color: var(--lightgray);
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.info {
  background-color: var(--callout);
}

.disciples {
  position: relative;
  background-color: var(--disciples);
  background-image: url(../images/disciples.png);
  background-repeat: no-repeat;
  background-size: 50px;
  background-position-x: calc(100% - 10px);
  background-position-y: calc(100% - 10px);
}

.error {
  background-color: var(--error);
}

.warning {
  background-color: var(--warning);
}

.footnotes {
  margin-top: 50px;
  border-top: 1px solid silver;
  font-size: 0.8em;
}

.footnotes ol {
  padding-left: 20px;
}

/**
 * Inline footnotes references
 * 1. Increment the counter at each new reference
 * 2. Reset link styles to make it appear like regular text
 */
 [aria-describedby="footnote-label"] {
  counter-increment: footnotes; /* 1 */
  text-decoration: none; /* 2 */
  color: inherit; /* 2 */
  cursor: default; /* 2 */
  outline: none; /* 2 */
}

/**
 * Actual numbered references
 * 1. Display the current state of the counter (e.g. `[1]`)
 * 2. Align text as superscript
 * 3. Make the number smaller (since it's superscript)
 * 4. Slightly offset the number from the text
 * 5. Reset link styles on the number to show it's usable
 */
 [aria-describedby="footnote-label"]::after {
  content: '[' counter(footnotes) ']'; /* 1 */
  vertical-align: super; /* 2 */
  font-size: 0.75em; /* 3 */
  margin-left: 2px; /* 4 */
  color: blue; /* 5 */
  text-decoration: underline; /* 5 */
  cursor: pointer; /* 5 */
}

/**
 * Resetting the default focused styles on the number
 */
[aria-describedby="footnote-label"]:focus::after {
  outline: thin dotted;
  outline-offset: 2px;
}

[aria-label="Back to content"] {
  font-size: 0.8em;
}


/**
 * Highlight target note
 */
 .footnotes :target {
  background: yellow;
}

/**
 * Visually hidden yet accessible content
 */
.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  visibility: hidden;
  opacity: 0;
}

.discussion {
  background-color: var(--details);
}

.discussion h5 {
  color: var(--black);
}

.question {
  color: var(--navy);
  border-top: var(--bord);
}

blockquote {
  border-left: 3px solid var(--darkgray);
  padding-left: 1.25rem;
}

.smaller {
  font-size: smaller;
}

.floatright {
  float: right;
  margin: 0 0 0.5rem 0.5rem;
  border: var(--bord);
}

.step-reset {
  counter-reset: step;
}
.step {
  counter-increment: step;
}
.step::before {
  content: 'Step ' counter(step) ':  ';
  font-size: x-large;
  color: var(--navy);
}

.part-reset {
  counter-reset: part;
}
.part {
  counter-increment: part;
  margin-left: 1rem;
}
.part::before {
  content: 'Part ' counter(part) ':  ';
  font-size: x-large;
  color: var(--navy);
}

.case-study {
  margin-top:2rem;
  margin-bottom:2rem;
  margin-left:1rem;
  margin-right:1rem;

  padding: 1rem;
  padding-top: 12rem;
  border: var(--bord);
  color: #000;
  background-color: var(--offwhite);

  font-size: 115%;

  /* font-family: Helvetica; */

  counter-reset: footnotes;

}

.case-study-title {
  padding-bottom:2rem;
  text-align: center;
  font-size:150%;
}

.case-study-footer {
  padding-top:4rem;
  text-align: center;
  font-size: smaller;
}

.case-study-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.check {
  list-style: '☑️ ';
}

@media screen and (min-width: 725px) {
  .logo {
    width: 75px;
  }

  h1 {
    font-size: 1.5rem;
  }

  #coursetitle {
    display: inline;
  }
}

@media screen and (min-width:950px) {
  .logo {
    width: 100px;
  }

  h1 {
    font-size: 2.0rem;
    margin-left: 0;
  }
}
