/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 */


/*
 * Contents
 *
 * Global resets
 * Sidebar
 * Container
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

html {
  font-family: "Merriweather", serif;
}
@media (min-width: 48em) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 58em) {
  html {
    font-size: 18px;
  }
}


/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  text-align: center;
  color: rgba(255,255,255,.5);
  background-color: #202020;
}
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
  }

  .sidebar-nav {
      font-size: 1.5rem;
  }
}

/* Sidebar links */
.sidebar a {
  color: #fff;
}

/* list of links for small window widths */
@media (max-width: 48em) {
    .sidebar {
        padding-top: 1rem;
        padding-bottom: 1rem;
        /* padding-left: 1rem; */
        /* padding-right: 1rem; */
    }
    .sidebar ul {
        margin-bottom: 0rem;
        display:flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
        list-style:none;
    }
    .sidebar li {
        margin: auto;
        padding-left: 0.3em;
        padding-right: 0.3em;
    }
    .sidebar-sticky {
        padding-left: 0.3em;
        padding-right: 0.3em;
    }

    .sidebar-nav a {
        font-size : 1.2rem;
    }
}

.sidebar-child a {
    opacity: 0.5;
    /* font-size: 0.9rem; */
    /* padding-left: 1em; */
}

/* About section */

/* logo */
.sidebar-about-logo img {
    margin-left: auto;
    margin-right: auto;
    height:4ex;
    display: block;
    min-height: 3ex;
    max-height: 10vw;
}


@media (min-width: 48em) {
  .sidebar-about-logo img {
    margin-left: 0;
  }
}

.sidebar-about-logo img {
}
    
.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Caudex", serif;
  font-size: 3.25rem;
}

/* Sidebar nav */
.sidebar-nav {
  font-family: "Caudex", serif;
  padding-left: 0;
  list-style: none;
}

.sidebar-nav-item {
  display: block;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

@media (min-width: 48em) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}


/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top:    4rem;
  padding-bottom: 4rem;
}

@media (min-width: 48em) {
  .content {
      /* max-width: 90ch; */
    margin-left: 20rem;
    margin-right: 2rem;
  }
}

@media (min-width: 64em) {
  .content {
      max-width: 80ch;
    margin-left: 22rem;
    margin-right: 4rem;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` on the right.
 */

@media (min-width: 48em) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 2rem;
    margin-right: 20rem;
  }
}

@media (min-width: 64em) {
  .layout-reverse .content {
    margin-left: 4rem;
    margin-right: 22rem;
  }
}



/*
 * Themes
 *
 * As of v1.1, Hyde includes optional themes to color the sidebar and links
 * within blog posts. To use, add the class of your choosing to the `body`.
 */

/* Base16 (http://chriskempson.github.io/base16/#default) */

/* Red */
.theme-base-08 .sidebar {
  background-color: #ac4142;
}
.theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar {
  background-color: #d28445;
}
.theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar {
  background-color: #f4bf75;
}
.theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar {
  background-color: #90a959;
}
.theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover {
  color: #90a959;
}

/* Cyan */
.theme-base-0c .sidebar {
  background-color: #75b5aa;
}
.theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover {
  color: #75b5aa;
}

/* Blue */
.theme-base-0d .sidebar {
  background-color: #6a9fb5;
}
.theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar {
  background-color: #aa759f;
}
.theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar {
  background-color: #8f5536;
}
.theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}

figure {
    display: block;
    margin-left: 0;
    margin-right: 0;
    margin-block-start: 1em;
    margin-block-end: 1em;
    /* margin-inline-start: 40px; */
    /* margin-inline-end: 40px; */
}

.publication-description {
    color: rgb(128, 128, 128);
    font-size: 85%;
    white-space: pre;
    /* padding-bottom: 1ex; */
}

.publication-description p {
    margin: 0    0      0       0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.publication-description a {
    color: rgb(128, 128, 128);
}

/* code.has-jax { */
/*     -webkit-font-smoothing: antialiased; */
/*     background: inherit !important; */
/*     border: none !important; */
/*     font-size: 100%; */
/* } */
.menu-content {
    /* font-family: 'Oswald', sans-serif;  */
    /* padding: 0 0 0 50px; */
    /* background-color: #f9f9f9; */
}
.collapsible-menu {
    /* background-color: #f9f9f9; */
    /* padding: 0px 30px; */
    margin-top: 1ex;
    margin-bottom: 1ex;
    /* border-bottom: 3px solid #CDE700;n */
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}
.collapsible-menu ul {
    list-style-type: none;
    padding: 0;
}
.collapsible-menu a {
    display:block;
    /* padding: 10px; */
    text-decoration: none;
}

.collapsible-menu label {
    /* font-family: 'Sedgwick Ave Display', cursive; */
    /* font-size: 56px; */
    font-size: 85%;
    font-family: Menlo, Monaco, "Courier New", monospace;
    display: block;
    color: rgb(128, 128, 128);
    cursor: pointer;
    /* background: url(menu.png) no-repeat left center; */
    padding: 0.2rem 0 0.2rem 1ex;
}
.collapsible-menu input {
    display: none;
}

.menu-content {
    max-height: 0;
    overflow: hidden;
    /* font-family: 'Oswald', sans-serif;  */
    padding: 0 1rem 0 1rem;
    /* padding: 0 0 0 50px; */
}
/* Toggle Effect */
/* input:checked ~ label { */
/*     background-image: url(close.png); */
/* } */
input:checked ~ .menu-content {
    max-height: 100%;
}
