/* main background */
.wy-nav-side, .wy-nav-top { background: var(--main-site-divider); }

/* search section */
.wy-side-nav-search {
  background: white;
  color: var(--color-black);
  width: auto;
}

.wy-side-nav-search .icon-home {
  background: transparent !important;
  color: var(--color-green);
}

.wy-side-nav-search .icon-home:hover, .wy-side-nav-search .icon-home:active, .wy-side-nav-search .icon-home:focus {
  color: var(--color-lime);
}

.wy-side-nav-search input[type=text] {
  border-radius: 0;
  border-color: var(--color-green);
}

.wy-side-nav-search a::before {
  display: none;
}

.wy-side-nav-search a.icon-home {
  background-image: url(https://w4.polyga.com/public/assets/logos/Polyga-Logo.svg) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  color: transparent !important;
  height: 60px;
}

.wy-side-nav-search img {
  display: block;
  margin: unset;
  height: 50px;
  width: 165px;
  background-color: unset;
  padding: 0;
  border-radius: 0;
}

/* list */

.wy-menu > ul {
  background: linear-gradient(transparent, rgba(8, 168, 142, 0.1));
}

.wy-menu ul a {
  padding: 1rem !important;
  padding-left: 2rem !important;
  font-size: 1rem;
  color: white;
}

.wy-menu ul li a:hover {
  background: linear-gradient(to right, var(--color-blue), transparent);
}

.wy-menu ul li a:active {
  background: var(--color-blue);
}

a.current {
  background: var(--color-green-light);
  color: var(--color-green) !important;
}

.wy-menu ul li.toctree-l1.current a.current {
  color: black !important;
  background: white !important;
}

.wy-menu-vertical p.caption {
  color: var(--color-white);
  font-size: 1.25rem;
  line-height: 1.5rem;
  text-align: center;
  font-weight: 500;
}

/* nested */

.wy-menu ul li:not(.toctree-l1) {
  margin-left: 5px;
}

.wy-menu-vertical li.current, .wy-menu-vertical li.current a {
  background: linear-gradient(rgba(232, 245, 243, 0.25), rgba(232, 245, 243, 0.2));
  border: unset !important;
}

.wy-menu-vertical li.toctree-l2.current>a, .wy-menu-vertical li.toctree-l2 a{
  background: linear-gradient(rgba(232, 245, 243, 0.5), rgba(232, 245, 243, 0.45));
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a  {
  background: linear-gradient(rgba(232, 245, 243, 0.75), rgba(232, 245, 243, 0.7));
}

.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a  {
  background: linear-gradient(rgba(232, 245, 243, 1), rgba(232, 245, 243, 0.95));
}

button.toctree-expand {
  color: var(--color-green) !important;
}

.wy-menu-vertical li.current a:hover {
  background: linear-gradient(to left, white, rgba(232, 245, 243, 0.75)) !important;
}

.wy-menu-vertical li.current a:active {
  background: white !important;
}

/* links */

.wy-menu.wy-menu-vertical > ul:first-child li a {
  background: var(--color-green-light);
  color: black;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-green);
  width: 190px;
  height: 50px;
  margin: 0.5rem auto;
  padding: 0 !important;
  justify-content: center;
  box-shadow: 10px 5px 30px 0 rgba(0,0,0,0.5);
  transition: all 0.25s;
}

.wy-menu.wy-menu-vertical > ul:first-child li a:hover {
  box-shadow: unset;
}

.wy-menu.wy-menu-vertical > ul:first-child li a:active {
  box-shadow: inset 0px 0px 10px 0 rgba(0,0,0,0.5);
}