:root {
  --primary-color: #53712e;
  --primary-dark-color: #3d5021;
}

/* SIDEBAR */

.hm .sidebar {
  color: white;
  background: var(--primary-color);
  padding-bottom: 40px;
}

.hm .sidebar .sidebar-nav > ul > li > p > a {
  color: white;
  font-weight: 700;
  font-size: 15px;
  opacity: 1;
}

.hm .sidebar ul li a {
  color: white;
  opacity: .8;
}

.hm .sidebar ul li.active > a {
  position: relative;
  color: white;
  overflow: visible;
}
.hm .sidebar ul li.active > a::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -100px;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.05);
}

/* SIDEBAR TOGGLE BUTTON */

.hm .sidebar-toggle {
  background: var(--primary-color);
  width: 64px;
  transition: all 0.3s;
}

.hm.close .sidebar-toggle {
  background: transparent;
}

@media (max-width: 768px) {
  .hm .sidebar-toggle {
    background: transparent;
  }
  .hm.close .sidebar-toggle {
    background: var(--primary-color);
  }
}

.hm .sidebar-toggle:hover .sidebar-toggle-button {
  opacity: 1;
}

.hm .sidebar-toggle-button {
  width: 64px;
  padding: 22px 16px;
  margin-right: auto;
  border-radius: 0.5rem;
  background: transparent;
  transition: all 0.3s;
  display: grid;
  align-items: center;
}

.hm.close .sidebar-toggle-button {
  background: white;
}
@media (max-width: 768px) {
  .hm .sidebar-toggle-button {
    background: white;
  }
  .hm.close .sidebar-toggle-button {
    background: transparent;
  }
}

.hm .sidebar-toggle span {
  width: 32px;
  height: 4px;
  background: white;
}
.hm .sidebar-toggle span:last-child {
  margin-bottom: 0;
}

.hm.close .sidebar-toggle span {
  background: var(--primary-color);
}
@media (max-width: 768px) {
  .hm .sidebar-toggle span {
    background: var(--primary-color);
  }
  .hm.close .sidebar-toggle span {
    background: white;
  }
}

/* SEARCH */

.hm .search {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hm .search .matching-post {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hm .search input {
  background: transparent;
  color: white;
}
.hm .search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1; /* Firefox */
}

.hm .search input:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

.hm .search a {
  color: rgba(255, 255, 255, 0.8);
}

.hm .search .search-keyword, .search a:hover {
  color: white;
}


/* CONTENT */

.github-corner svg {
  fill: var(--primary-color);
}
.github-corner::after {
  content: "Wesprzyj nas!";
  position: absolute;
  top: 0;
  right: 0;
  transform: rotate(45deg) translate(30px, 30px);
  color: var(--primary-dark-color);
  display: block;
  width:90px;
}

.markdown-section {
  padding-bottom: 120px;
}
