:root {
  --margin-bottom: 0px;
}

@media screen and (max-width: 992px) {
  :root {
    --margin-bottom: 60px;
  }
}

/* Sidebar styling */
.sidebar {
  /* width: 52px; */
  position: fixed;
  top: 56px;
  left: 0;
  height: 100vh;
  padding: 0 8px;
  z-index: 999;
  transition: all 0.3s;
}

.sidebar a {
  width: 42px;
  height: 42px;
  text-align: center;
  border-radius: 50%;
  color: #343a40;
  background-color: #fff;
}

.sidebar a i {
  vertical-align: middle;
}

.sidebar a.active {
  color: #fff;
  background-color: #343a40;
}

/* Tweaks to bootstrap styles */
.navbar {
  padding: 0 0.5rem;
}

.nav-link {
  padding: 0 .5rem;
  font-size: 150%;
}

.text-muted {
  color: #9e9e9e !important;
}

.badge {
  padding: 0.5em 0.5em;
}

.form-control + .form-control {
  margin-top: 0.5rem;
}

blockquote {
	background: #f9f9f9;
	border-left: 10px solid #ccc;
	margin: 1.5em 10px;
	padding: 1em 10px .1em 10px;
	quotes: "\201C""\201D""\2018""\2019";
}

/* Remove the lingering focus styling from button links */
a.btn:focus {
  color: unset !important;
  background-color: unset !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Specific styles for the app */
body {
  /* Margin bottom by footer height */
  margin-bottom: var(--margin-bottom);
}

[role="main"] {
  padding-top: 46px; /* Space for fixed navbar minus 8px */
  margin-top: 16px; /* Space for remainder of navbar and 8px margin for content */
}

.toast-action {
  position: fixed;
  bottom: var(--margin-bottom);
  left: 16px;
}

.form-check-label > p {
  margin: 0;
  padding: 0;
}

.markdown code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 4px;
}

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

.entry-detail {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  overflow: hidden;
}

.entry-detail img,
.entry-detail figure {
  max-width: 100%;
  height: auto;
}

.entry-detail a[href*='#'] * {
  display: none;
}

.entry-detail h1,
.entry-detail h2,
.entry-detail h3,
.entry-detail h4,
.entry-detail h5 {
  font-size: 1.4rem;
}

.cursor-pointer {
  cursor: pointer;
}
