.sidebar {
  height: 100%;
  width: fit-content;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #002000;
  overflow-x: hidden;
  transition: 0.5s;
  /* padding-top: 60px; */
  border-right: 5px solid #8eff8a;
}

.sidebar .image {
  width: 100%;
  height: 15rem;
  background-color: #002000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar .image img {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  /* do not fit image to container */
  object-fit: cover;
}

.sidebar .elem {
  margin: 3rem 3rem 0 2rem;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
  cursor: pointer;
}

.sidebar .elem button {
  background-color: #007200;
  color: #f1f1f1;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 1rem;

  /* add inner shadow */
  box-shadow: inset 0rem 0rem 1.5rem #00a700;
}

.sidebar .elem button:hover {
  background-color: #00a700;
  box-shadow: inset 0rem 0rem 1.5rem #007200;
}

.sidebar .elem:hover {
  color: #f1f1f1;
}

@media screen and (max-width: 750px) {
  .sidebar {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-self: center;
    align-items: center;
    border-right: none;
    text-align: center;
  }

  .sidebar .image {
    display: none;
  }

  .sidebar .elem {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 0 auto;
    gap: .5rem;
    flex-direction: row;
  }

  .sidebar .elem button {
    display: none;
  }
}

@media screen and (max-width: 580px) {
  .sidebar .elem span {
    display: none;
  }
}