.sidebarWrapper {
  min-width: 48px;
  max-width: 250px;
  color: $white;
  position: fixed;
  top: 50px;
  z-index: 3;
}

.menuContent {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: $sky;

  .daoNameWrapper {
    display: flex;
    align-items: center;
    padding: 20px;
    font-size: 30px;

    .daoIcon {
      width: 40px;
      height: 40px;
      display: inline-block;
      border-radius: 40px;
    }

    .daoName {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    a {
      display: flex;
      border-radius: 50%;
      background-color: $white-halftone;
      margin-right: 10px;
      padding: 5px;
    }
  }

  .daoNetworkWrapper {
    margin: 0px 20px 10px;
    width: fit-content;
    display: flex;
    align-items: center;
  }

  .followButton {
    padding-top: 15px;
    padding-left: 20px;
    margin-bottom: 17px;
  }

  .daoNavigation {
    font-family: "Open Sans";
    padding-bottom: 10px;

    ul {
      margin: 0;
      padding: 0;
    }

    li {
      list-style: none;
      margin: 0;
      padding: 0;

      .notification {
        width: 4px;
        height: 8px;
        border-radius: 8px;
        position: relative;
        top: -2px;
        background-color: $accent-2;
        display: inline-block;
        opacity: 0;
      }

      img {
        margin-left: 2px;
        position: relative;
        top: 3px;
        margin-right: 8px;
      }
    }
    li a {
      display: block;
      font-size: 14px;
      color: $white;
      padding: 8px 23px 8px 8px;
      background-color: rgba(32, 104, 188, 0);
      transition: all 0.25s ease;
    }

    li a:visited {
      color: $white;
    }

    li a:hover {
      background-color: rgba(32, 104, 188, 1);
    }
  }

  .daoDescription {
    padding: 0px 20px 0px 20px;

    p {
      padding: 0;
      margin: 0;
      font-size: 13px;
    }

    a {
      text-decoration: underline;
      color: white;
    }

    a:hover {
      color: silver;
    }
  }

  .daoNavHeading {
    font-family: "Open Sans";
    font-size: 11px;
    width: 100%;
    display: inline-block;
    max-height: 18px;

    svg {
      position: relative;
      top: -17px;
      height: 2px;
      width: 100%;
      z-index: 109;

      > line {
        stroke: rgba(78, 137, 209, 1);
        stroke-width: 2px;
      }
    }
    > div {
      position: relative; // for some reason this enables the background to be opaque
      z-index: 1010;
      display: inline-block;
      background-color: #3178ca;
      padding-left: 8px;
      padding-right: 8px;
      margin-left: 15px;
      color: rgba(255, 255, 255, 0.5);
    }
    a {
      position: relative; // for some reason this enables the background to be opaque
      top: 1px;
      z-index: 1010;
      background-color: #3178ca;
      display: inline-block;
      padding-left: 2px;
      padding-right: 8px;
      > img {
        position: relative; // for some reason this enables the background to be opaque
        background-color: #3178ca;
      }
    }
  }

  .daoHoldings {
    flex-grow: 2;
    flex-shrink: 2;
    min-height: 102px;
    overflow: auto;

    ul {
      margin: 0;
      padding: 0;

      li {
        padding: 8px 23px;
        font-size: 14px;
        list-style: none;
      }
    }
  }

  .siteLinksWrapper {
    min-height: 315px;
    left: 0;
    width: 100%;
    border-top: 2px solid rgba(78, 137, 208, 1);
    transition: all 0.25s ease;
    padding-top: 10px;

    ul {
      width: 100%;
      margin: 0;
      transition: all 0.25s ease;
      padding: 0;
      position: relative;

      li {
        position: initial;
        list-style: none;
        margin: 0;
        width: 100%;
        height: 24px;

        a {
          color: rgba(196, 215, 236, 1);
          text-decoration: none;
          padding: 5px 0 5px 30px;
          width: auto;
          display: block;
          font-family: "Open Sans";
          font-size: 12px;
          transition: all 0.25s ease;
        }

        &:hover a {
          background-color: rgba(32, 104, 188, 1);
          cursor: pointer;
        }

        &:hover ul li a {
          background-color: rgba(255, 255, 255, 0);
        }

        ul {
          left: 50px;
          top: -80px;
          width: 120px;
          opacity: 0;
          transform: scale(0);
          transition: all 0.25s ease;
          padding: 10px 0 10px 0;
          background-color: rgba(255, 255, 255, 1);
          border-radius: 10px;

          .diamond {
            width: 10px;
            height: 10px;
            background-color: #fff;
            position: absolute;
            z-index: 0;
            top: 50%;
            transform: translateY(-5px) rotate(45deg);
            left: -5px;
          }

          li {
            text-align: left;
            position: relative;
            z-index: 1000;
            height: auto;

            a {
              padding: 8px 10px;
              color: rgba(78, 97, 118, 1);

              b {
                display: inline-block;
                width: 35px;
                text-align: center;
              }
            }

            &:hover a {
              background-color: rgba(240, 245, 251, 1);
            }

            img {
              position: relative;
              top: 0;
              height: 14px;
              left: 0;
              margin-right: 5px;
            }
          }
        }
        &:hover ul {
          left: -8px;
          opacity: 1;
          top: -140px;
          transform: translateX(100%) scale(1);
          background-color: rgba(255, 255, 255, 1);
        }
      }

      li.daoStack {
        padding-top: 10px;

        a {
          color: white;
          font-family: "AccordBold";
          font-size: 13px;
        }

        img {
          margin-top: -3px;
          top: 5px;
          position: relative;
        }
      }
    }
  }
  .menuDot {
    height: 8px;
    width: 8px;
    margin-left: 0;
    display: inline-block;

    &.red {
      background-color: #f65050;
      border-radius: 50%;
      bottom: 2px;
      position: relative;
    }
  }

  .homeNotification,
  .holdersNotification,
  .proposalsNotification,
  .historyNotification {
    opacity: 0;
  }
}

.sidebarWrapper.noDAO {
  width: 127px;
  top: 82px;

  .menuContent {
    background-color: transparent;

    .siteLinksWrapper {
      border-top: none;
      padding-top: 60px;

      ul {
        li {
          a {
            color: #4f6176;
          }

          &:hover a {
            background-color: white;
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 425px) {
  .sidebarWrapper {
    display: none;
    width: 48px;
    max-width: 100%;
    height: auto;
    z-index: 100000;
    background-color: rgba(49, 120, 202, 0);
    transition: height 0.25s ease, width 0s 0.25s;

    &:hover {
      z-index: 100000;
    }

    .menuContent {
      transition: all 0.25s ease;

      .daoName {
        padding: 20px 20px 10px 20px;
      }

      .daoName a span {
        position: absolute;
        padding-left: 0;
        top: -5px;
        left: 64px;
        margin-top: -3px;
        transform: translateY(0);
        font-size: 13px;
      }

      .followButton {
        margin-top: 5px;
      }

      .daoNavigation {
        li a {
          padding: 2px 23px 2px 8px;
        }
      }

      .daoDescription {
        position: absolute;
        top: 35px;
        left: 64px;
        font-size: 12px;
      }

      .daoNavHeading {
        max-height: 22px;
      }

      .daoHoldings {
        min-height: 32px;
        ul li {
          display: inline-block;
          padding: 2px 23px;
        }
      }

      .siteLinksWrapper {
        position: relative;
        height: 250px;

        li.daoStack {
          position: relative;
          left: -4px;

          img {
            margin-right: 3px;
          }
        }

        ul li {
          height: auto;

          a {
            padding: 3px 0 3px 30px;
            color: #c4d7ec !important;
          }
        }

        ul li:hover a {
          color: #4f6176 !important;
        }

        ul li:hover ul {
          left: 40px;
          top: -20px;
        }

        ul li ul {
          position: absolute;
        }
      }
    }
  }

  .sidebarWrapper.menuOpen {
    display: block;
    z-index: 1000000;
    width: 100%;
    background-color: rgba(49, 120, 202, 1);
    transition: width 0s 0s, height 0.25s ease;

    .menuContent {
      height: 100vh;
    }
  }

  .sidebarWrapper.noDAO {
    .menuContent {
      text-align: center;

      .siteLinksWrapper {
        ul li {
          a {
            padding: 3px 0 3px 0;
          }
        }
      }
    }
  }
} /* EO @media only screen and (max-width: 425px) */
