.list-menu--right {
  right: 0;
}

.list-menu--disclosure {
  position: absolute;
  min-width: 100%;
  width: 20rem;
  border: 1px solid rgba(var(--color-foreground), 0.2);
  background-color: rgb(var(--color-background));
  z-index: 2;
}

.list-menu--disclosure:focus {
  outline: none;
}

.list-menu__item {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.list-menu__item .circle-animation {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

.list-menu__item--active {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  color: rgb(var(--color-foreground));
}

.list-menu__item--active .circle-animation {
  opacity: 1;
  -webkit-animation: drawCircle 0.1s ease forwards;
  -moz-animation: drawCircle 0.1s ease forwards;
  -ms-animation: drawCircle 0.1s ease forwards;
  animation: drawCircle 0.1s ease forwards;
  pointer-events: none;
}

@-webkit-keyframes drawCircle {
  from {
    stroke-dashoffset: 250;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@-moz-keyframes drawCircle {
  from {
    stroke-dashoffset: 250;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@-ms-keyframes drawCircle {
  from {
    stroke-dashoffset: 250;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCircle {
  from {
    stroke-dashoffset: 250;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.list-menu--disclosure.localization-selector {
  max-height: 18rem;
  overflow: auto;
  width: 10rem;
  padding: 0.5rem;
}
