$red: #DD314E;
$white: #E0E0E0;

.UserMenu {
  color: #fff;
  flex-grow: 0;
  font-size: 1em;
  display: flex;
  position: relative;
  flex-direction: column;
  padding-left: 2em;
  margin: -.75em 0;

  .UserMenu-Icon {
    font-size: 30px;
    opacity: 0.5;
  }
  span.UserMenu-Title {
    opacity: 0.7;
    font-weight: 300;
    padding: 5px;
    font-style: italic;
  }
}

.UserMenu-Pane {
  right: 0;
  top: 100%;
  color: black;
  display: flex;
  flex-direction: column;
  padding: 10px;
  min-width: 150px;
  position: absolute;
  border-radius: 10px;
  transition: all 0.2s;
  line-height: 1em;
  background-color: $white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  .fa {
    color: $red;
  }
  &.inert {
    opacity: 0;
    pointer-events: none;
  }
  &::after {
    top: -3px;
    width: 10px;
    right: 25px;
    z-index: -1;
    height: 10px;
    content: ' ';
    display: block;
    position: absolute;
    box-sizing: border-box;
    transform: rotateZ(45deg);
    background-color: #E0E0E0;
  }
  .UserMenu-Pane-Item {
    &, &:link, &:active, &:visited {
      color: black;
      text-decoration: none;
    }
    flex: 1;
    display: flex;
    font-size: 1.3em;
    padding: 5px;
    flex-direction: row;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.4s;
    &:hover {
      transform: scale(1.04);
    }
    .UserMenu-Pane-Item-Icon {
      width: 20px;
      margin-right: 10px;
    }
  }
}
