* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
main {
  height: 100%;
  width: 100%;
}

body {
  background-color: oklch(0% 0 0deg);
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  anchor-name: --a;
}

.anchor {
  border-radius: 10px;
  position: absolute;
  position-anchor: --a;
  top: anchor(top);
  left: anchor(left);
  bottom: anchor(bottom);
  right: anchor(right);
  pointer-events: none;
  background-color: grey;
  pointer-events: none;
  transition: all 0.25s linear;
}

ul {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  list-style-type: none;
}
ul li {
  width: -moz-fit-content;
  width: fit-content;
  padding: 10px 20px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  border-radius: 10px;
  pointer-events: all;
  color: white;
  z-index: 10;
  padding: 10px 30px;
}
ul .box:hover {
  anchor-name: --a;
}/*# sourceMappingURL=style.css.map */