@font-face {
  font-family: "Jura Bold";
  src: url("../fonts/Jura-Bold.ttf");
}

@font-face {
  font-family: "Jura Regular";
  src: url("../fonts/Jura-Medium.ttf");
}

@font-face {
  font-family: "OpenSans Light";
  src: url("../fonts/OpenSans-Light.ttf");
}

@font-face {
  font-family: "OpenSans Light";
  src: url("../fonts/OpenSans-Regular.ttf");
  font-weight: bold;
}

@font-face {
  font-family: "OpenSans Light";
  src: url("../fonts/OpenSans-LightItalic.ttf");
  font-style: italic;
}

@font-face {
  font-family: "OpenSans Light";
  src: url("../fonts/OpenSans-Italic.ttf");
  font-weight: bold;
  font-style: italic;
}

body {
  vertical-align: middle;
  font-family: "OpenSans Light";
  color: #03163f;
}

.main-container {
  margin: 0 auto;
  padding: .8em;
  max-width: 800px;
  align-self: center;
  line-height: 150%;
}

.title {
  padding-top: .8em;
  margin-bottom: 1em;
}

.navbar {
  color: #03163f;
  font-family: "Jura Regular";
}

.nav-link {
  font-family: "Jura Bold";
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  color: #03163f;
}

.project-section {
  margin-bottom: 3em;
}

.project-name {
  font-weight: normal;
  font-family: "Jura Bold";
}

.blog-url {
  font-weight: bolder;
}

h1,
h2,
h3 {
  font-weight: normal;
  margin: 0;
  font-family: "Jura Bold";
  padding-bottom: 2px;
  margin-bottom: 3px;
}

.blog>h1 {
  line-height: 1.2em;
}

a.footnote-ref {
  text-decoration: none;
}

a>sup {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
  text-decoration: underline;
  text-underline-offset: .1em;
}

a.footnote-back {
  text-decoration: underline;
  text-underline-offset: .1em;
}

.footnotes>ol {
  font-size: smaller;
}

img {
  max-width: 400px;
  align-self: center;
}

a {
  color: #03163f;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

a[href^="."],
a[href^="https://github.com/hannahilea"] {
  color: #0843c3;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

[href^="#"]:not(.footnote-back, .footnote-ref) {
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
}

.badge {
  height: 20%;
  width: auto;
}

/* Home page */
.home-main-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  margin: auto;
  width: 80%;
  height: 80%;
  max-width: 1400px;

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex-flow: wrap;
}

.home-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.underline {
  border-bottom: 2px solid #0843c3;
}

.home-content {
  display: flex;
  align-items: center;
  padding: 2em;
}

.home-nav-link {
  font-family: "Jura Bold";
  color: #03163f;
  text-decoration: none;
  border-bottom: 2px dotted #0843c3;
  padding-bottom: 2px;
  margin-left: 1rem;
}

.home-header-text {
  font-weight: normal;
  margin: 0;
  padding: .5em 0 0 0;
  font-family: "Jura Regular";
}

.home-header-text {
  font-weight: normal;
  margin: 0;
  padding: .5em 0 0 0;
  font-family: "Jura Regular";
}

.home-about-container {
  width: 50%;
}

.home-about {
  width: 100%;
}

.home-img-container {
  width: 50%;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

img.home-img {
  width: 80%;
  max-width: 250px;
  align-self: center;
}

@media (max-width: 700px) {
  .home-img-container {
    width: 100%;
    margin-top: 30px;
  }

  .home-about-container {
    width: 100%;
  }

  .home-content {
    padding: 2em;
    flex-direction: column;
  }
}

/* Project pages */
.p5-project {
  height: 100%;
  margin: 0;
  display: flex;
  flex-flow: column;
  gap: 0;
  overflow: hidden;

  #project-header {
    margin: 1rem;
    margin-bottom: .5rem;
  }

  #project-body {
    flex-grow: 1;
    height: 100%;
    display: flex;
  }

  .project-title {
    margin-bottom: .5rem
  }

  .navbar {
    margin-bottom: .5em;
  }

  details {
    font-family: "OpenSans Light";
    font-size: smaller;
  }

  summary {
    font-style: italic;
  }

  #gui-container {
    position: fixed;
    top: 0;
    right: 0;
  }



  /* phones only! */
  @media (max-width: 550px) {
    #gui-container {
      position: fixed;
      bottom: 0;
      top: auto;
    }
  }
}

/* Blog pages*/
.blog {
  pre {
    background: #eeeff1;
    border: 2px solid #ddd;
    page-break-inside: avoid;
    font-family: monospace;
    line-height: 1.6;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
  }

  p code {
    background: #eeeff1;
    border: 2px solid #ddd;
    page-break-inside: avoid;
    font-family: monospace;
    overflow: auto;
    padding: .25em;
  }

  .navbar {
    margin-bottom: 1.6em;
  }

  .date {
    font-family: "Jura Regular"
  }

  .centered-children {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #03163f;
  }

  .blog-table {
    padding: 1em;
    border: 1px solid #dbdbdb;
  }

  table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
  }

  table caption {
    text-align: left;
  }

  td,
  th {
    padding: 6px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
  }

  thead {
    border-bottom: 1px solid #dbdbdb;
    /* border-bottom: 1px solid var(--border); */
  }

  tfoot {
    border-top: 1px solid #dbdbdb;
    /* border-top: 1px solid var(--border); */
  }

  tbody tr:nth-child(even) {
    background-color: #efefef;
    background-color: var(--background);
  }

  tbody tr:nth-child(even) button {
    background-color: #f7f7f7;
    background-color: var(--background-alt);
  }

  tbody tr:nth-child(even) button:hover {
    background-color: #fff;
    background-color: var(--background-body);
  }

  th {
    width: 90%;
  }

  th:first-of-type {
    width: 10%;
  }

  blockquote {
    background: #f2f2f2;
    border-left: 7px solid #0843c3;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    quotes: "\201C""\201D""\2018""\2019";
  }
  blockquote p {
    display: inline;
  }
  blockquote .source{
    display: block;
    text-align: right;
    margin: 0;
  }

  /* phones only! */
  @media (max-width: 550px) {
    iframe[src*="youtube"] {
      width: 100% !important;
    }

    img {
      max-width: 100%;
    }
  }

  h2,
  h3 {
    margin-top: 1.5em;
    margin-bottom: .5em;
  }

  .recipe-button {
    font: bold Arial;
    text-decoration: none;
    background-color: #EEEEEE;
    color: #333333;
    padding: 2px 6px 2px 6px;
    border-top: 1px solid #CCCCCC;
    border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
    border-left: 1px solid #CCCCCC;
  }
}

.alert {
  border: none;
  border-left: 2mm solid rgb(255, 230, 0);
  padding-left: .5em;
  flex: 0 1 auto;
  margin-bottom: 2em;
  font-size: smaller;
}

.alert-heading {
  font-weight: bold;
  font-family: "Jura Bold";
}

.blog-footer {
  display: block;

  a.button {
    background-color: #0843c3;
    border: none;
    color: white;
    padding: 0px 10px;
    text-align: center;
    height: 28px;
    line-height: 28px;
    text-decoration: none;
    display: inline-block;
    vertical-align: top;
    font-size: smaller;
    font-family: "Jura Bold";
    cursor: pointer;
    margin: auto;
  }

  img {
    display: inline;
    border: none;
  }

  hr {
    border: none;
    border-top: 1px solid #0843c3;
    height: 3px;
    border-bottom: 1px solid #0843c3
  }
}

/* For blog, project index pages */
.index-page {
  .date {
    font-weight: normal;
    font-family: "Jura Regular";
    text-align: right;
  }

  .sort.asc::after {
    content: "▼";
    padding-left: 3px;
    padding-right: 3px;
    font-size: small
  }

  .sort.desc::after {
    content: "▲";
    padding-left: 3px;
    padding-right: 3px;
    font-size: small;
  }

  .search {
    float: top;
  }

  td th {
    padding: 6px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
  }

  tr td:first-child {
    width: 1%;
    white-space: nowrap;

    table {
      border-collapse: collapse;
      margin-bottom: 10px;
      width: 100%;
    }

    thead {
      border-bottom: 1px solid #dbdbdb;
      border-bottom: 1px solid var(--border);
    }
  }

  td,
  th {
    padding: 6px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
  }

  th {
    font-weight: normal;
    margin: 0;
    font-family: "Jura Bold";
    padding-bottom: 2px;
    margin-bottom: 3px;
    font-size: larger;
  }

  tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
  }

  a.project-url,
  a.blog-url {
    color: #03163f;
    font-weight: bold;
  }

  .details {
    display: flex;
    flex-direction: row;

    .thumbnail {
      margin: .5em .5em 0 0;
      width: 90px;
      height: 90px;
      border: .1px solid black;
    }

    .blog-tags {
      font-size: smaller;
      /* font-style: italic; */
    }
  }
}
