:root {
  interpolate-size: allow-keywords;
}

.menu {
  top: calc(50vh - 109.5px);
  left: 2em;
  z-index: 6;
  position: fixed;
  list-style:  none;
  display: inline-block;
  background: #1b81e5;
  width: calc(2em + 25px);
  margin: 0;
  transition: width 0.35s ease;
  overflow-x: hidden;
  height: fit-content;
  padding: 0.5em;
  white-space: nowrap;
  box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
  -webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.75);
  &:hover {
     width: max-content;
  }

  &> li:first-child {
    padding: 0 1em 0 calc(2em + 25px);
    color: white;
    font-weight: 600;
  }

  &> li > a
   {
    padding: 0.5em;
    display: flex;
    flex-flow: row;
    align-content: center;
    align-items: center;
    transition: 0.23s ease;
    color: white;

    & > img {
      width: 25px;
      margin-right: 1em;
      filter: invert(100%) sepia(5%) saturate(7480%) hue-rotate(54deg) brightness(125%) contrast(118%);
    }

    &>p {
      margin: 0;
    }

    &:hover {
      background-color: #4199f7;
    }
  }
}

@media (pointer:coarse) {
 .menu {
  display: none;
 } 
}