/**
 * This theme changes the basic styles to display content,
 * because the font and layout from the original hugo-theme-learn is very hard to read.
 * Styles inspired by poole.css (from the Jekyll theme),
 * but adapted to also reset some bad styles from the hugo-theme-learn theme.
 */

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

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  line-height: 1.75;
}


body {
  color: #24292e;
  background-color: #fafafa;
}


/* No `:visited` state is required by default (browsers will use `a`) */
a {
  color: #351368;
}

#body a.highlight {
  color: #418;
}


.anchor {
  color: #772ce8;
  font-size: 0.6em;
  cursor: pointer;
  visibility: hidden;
  margin-left: 0.5em;
  position: absolute;
  margin-top: 0.5em;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Lato", "Helvetica", sans-serif;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.25;
  color: black;
  text-rendering: optimizeLegibility;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: 1.6rem;
  text-align: left;
  text-transform: none;
  font-weight: 600;
  margin-top: 2em;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.2rem;
}
h4, h5, h6 {
  font-size: 1rem;
}

/* Body text */
p {
  color: black;
}

strong {
  font-weight: 600;
  color: #24292e;
}


/* Lists */
ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}
ul ul,
ul ol,
ol ul,
ol ol {
  margin-bottom: 0;
}

dt {
  font-weight: bold;
}
dd {
  margin-bottom: .5rem;
}

/* Misc */
hr {
  border: 0;
  height: 1px;
  background: #333;
  background-image: linear-gradient(to right, #ccc, #333, #ccc);
  margin: 2em 0;
}

abbr {
  font-size: 85%;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
}
abbr[title] {
  cursor: help;
  border-bottom: 1px dotted #e5e5e5;
}

/* Quotes */
blockquote {
  padding: 0 1rem;
  margin: 0 0 1rem 0;
  color: #6a737d;
  border-left: .25rem solid #e5e5e5;
}
blockquote p {
  font-size: 1em;
  color: #6a737d;
}
blockquote cite {
  display: block;
  text-align: right;
  color: #6a737d;
}
blockquote p:last-child {
  margin-bottom: 0;
}

img {
  display: block;
  margin: 0 0 1rem;
  border-radius: 5px;
  max-width: 100%;
}

#logo img {
  margin: 0 auto 10px auto;
  height: 60px;
}

/* Tables */
table {
  margin-bottom: 1rem;
  width: 100%;
  border: 1px solid #e5e5e5;
  border-collapse: collapse;
}
td,
th {
  padding: .25rem .5rem;
  border: 1px solid #e5e5e5;
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
  background-color: #f9f9f9;
}

/* Content layout */

#body-inner {
  max-width: 900px; /* limit the line length for readability */
}

code {
  vertical-align: inherit;
  padding: .2em .4em;
  font-size: 85%;
  background-color: rgba(27,31,35,.05);
  color: black;
}

#body .padding {
  padding: 2rem 8rem 3rem 8rem;
}

#top-bar {
  min-height: 2em;
  height: 2em;
  margin: 0rem -1rem 2rem;
  background: #eee;
  font-size: 14px;
}


#body #breadcrumbs2 {
  height: 1rem;
  line-height: 1;
  font-size: 14px;
}

#top-github-link-text {
  font-size: .9em;
}

/* Menu */

:root{
  --MENU-HEADER-BG-color: #603faa; /* Background color of menu header */
  --MENU-HEADER-BORDER-color: black; /*Color of menu header border */
  --MENU-SEARCH-BG-color: #e4e4e7; /* Search field background color (by default borders + icons) */
  --MENU-SEARCH-BOX-color: white; /* Override search field border color */
  --MENU-SEARCH-BOX-ICONS-color: black; /* Override search field icons color */

  --MENU-SECTIONS-BG-color: #161d23; /* Background color of other sections */
  --MENU-SECTIONS-LINK-color: #eee; /* Color of links in menu */
  --MENU-SECTIONS-LINK-HOVER-color: #eee;  /* Color of links in menu, when hovered */
  --MENU-SECTIONS-LINK-HOVER-BG-color: #444;
  --MENU-SECTION-ACTIVE-CATEGORY-color: black; /* Color of active category text */
  --MENU-SECTION-ACTIVE-CATEGORY-BG-color: #eef; /* Color of background for the active category (only) */

  --MENU-VISITED-color: #5194cf; /* Color of 'page visited' icons in menu */
  --MENU-SECTION-HR-color: black; /* Color of <hr> separator in menu */
}

#sidebar ul li.visited > a .read-icon {
  color: var(--MENU-VISITED-color);
}



#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active {
  background-color: #202f3c;
}



#sidebar {
  font-weight: 400 !important;
  background-color: var(--MENU-SECTIONS-BG-color);
}
#sidebar #header-wrapper {
  background: var(--MENU-HEADER-BG-color);
  color: var(--MENU-SEARCH-BOX-color);
  border-bottom: 1px solid var(--MENU-HEADER-BORDER-color);
  min-height: 170px;
}
#sidebar #header h1 {
  color: #ddd;
  margin: 0;
  font-size: 20px;
  text-align: center;
}
#sidebar .searchbox {
  border-color: var(--MENU-SEARCH-BOX-color);
  background: var(--MENU-SEARCH-BG-color);
}
#sidebar .searchbox * {
  color: var(--MENU-SEARCH-BOX-ICONS-color);
}

#sidebar .searchbox input::placeholder {
  color: var(--MENU-SEARCH-BOX-ICONS-color);;
}

#sidebar #shortcuts h3 {
  color: white;
  font-family: "Lato", "Helvetica", sans-serif;
  font-size: 1.2em;
  margin-top: 2em;
}

#sidebar ul.topics ul {
  padding-bottom: 0;
}

#sidebar, #sidebar ul.topics > li > a {
  font-size: 14px;
}

#sidebar ul.topics > li > a {
  line-height: 1.6rem;
  font-weight: 400;
}
#sidebar .topics a {
  color: var(--MENU-SECTIONS-LINK-color);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

#sidebar .topics a:hover {
  background: var(--MENU-SECTIONS-LINK-HOVER-BG-color);
  color: var(--MENU-SECTIONS-LINK-HOVER-color);
  text-decoration: underline;
}
#sidebar .topics li.active > a {
  background: var(--MENU-SECTION-ACTIVE-CATEGORY-BG-color);
  color: var(--MENU-SECTION-ACTIVE-CATEGORY-color) !important;
}

#sidebar hr {
  border-color: var(--MENU-SECTION-HR-color);
}

#sidebar #footer {
  font-size: 0.7rem;
  color: var(--MENU-SECTIONS-LINK-color) !important;
}
#sidebar #footer a {
  color: var(--MENU-SEARCH-BOX-color);
}
#sidebar #footer a:hover {
  color: var(--MENU-SECTIONS-LINK-HOVER-color);
  text-decoration: underline;
}

#sidebar a {
  color: white;
  text-decoration: none;
}

pre .copy-to-clipboard { background-color: #f5f2f0; }

#navigation a {
 color: #ddf;
 text-decoration: none;
}

.default-animation, #header #logo-svg, #header #logo-svg path, #sidebar, #sidebar ul, #body, #body .padding, #body .nav {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

#body a.highlight:after {
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  transition: none;
}

/* Center chapter headings */
#chapter h1 {
  text-align: center;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

#chapter h3 {
  font-size: 2em;
}


/* Hide sidebar sub-pages that aren't in the current parent hierarchy */
#sidebar ul.topics li.parent ul, #sidebar ul.topics > li.active ul {
  display: none;
}

#sidebar ul.topics li.parent > ul {
  display: block;
}

pre.chroma {
  border: 1px solid #999;
  padding: 0;
  margin: 0 0 1em 0;
  background: none;
}


