@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap");
html {
  font-family: "Archivo Black", sans-serif;
}

.page-wrapper {
  background: #e7e7e9;
  min-height: 100vh;
}

.neo {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.neo-element {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 20px;
  padding: 20px;
  width: 100px;
  height: 100px;
  background: #e7e7e9;
  box-shadow: -1px -1px 30px #abababd1, 10px 10px 30px #fff, inset 0px 0px 20px 20px #e7e7e7;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  animation: 4s linear 0s infinite alternate neo;
}
.neo-element span {
  color: #ff06be;
}
.neo-element span:nth-child(1) {
  letter-spacing: 1rem;
  padding: 0 0 0 1rem;
  z-index: 2;
  transform: translate3d(0px, 0px, 60px);
  transition: opacity 0.5s ease;
  opacity: 0.2;
  text-shadow: 5px 5px 20px #ff06be;
}
.neo-element span:nth-child(2) {
  letter-spacing: 1rem;
  padding: 0 0 0 1rem;
  z-index: 2;
  transform: translate3d(0px, 0px, 30px);
  opacity: 0.5;
  transition: opacity 0.5s ease;
  position: absolute;
  text-shadow: 2px 2px 20px #ff06be;
}
.neo-element span:nth-child(3) {
  letter-spacing: 1rem;
  padding: 0 0 0 1rem;
  z-index: 2;
  transform: translate3d(0px, 0px, 0px);
  opacity: 1;
  transition: opacity 0.5s ease;
  position: absolute;
}
.neo-element::after {
  border-radius: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: " ";
  background: #e7e7e9;
  opacity: 0;
  box-shadow: 0px 20px 30px #ababab, 10px 10px 30px #fff, inset 0px 0px 20px 20px #dbdbdb, inset 0px 0px 30px 30px #dbdbdb;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.neo-element:hover {
  transform: rotate3d(2, 1, 0, -30deg);
  box-shadow: -1px -1px 30px #abababd1, 10px 10px 30px #fff, inset 0px 10px 20px 20px #e7e7e7;
}
.neo-element:hover::after {
  cursor: pointer;
  opacity: 1;
}
.neo-element:hover span:nth-child(1) {
  opacity: 0.2;
}
.neo-element:hover span:nth-child(2) {
  opacity: 0.6;
}
.neo-element:hover span:nth-child(3) {
  opacity: 1;
}