* {
  margin: 0px;
  padding: 0px;
}

body {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  width: auto;
  height: 100vh;
  background-color: rgb(32, 32, 32);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-weight: 500;
  font-size: 5vh;
  color: rgb(255, 255, 255);
}

.edge {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 20vw;
  height: 10vh;
  border: 3px solid rgb(255, 255, 255);
  transition: 1s;
}

.edge span {
  position: absolute;
  transition-duration: 0.5s;
}

.edge span:nth-child(1) {
  color: rgb(255, 255, 255);
  z-index: 1;
}

.edge span:nth-child(2) {
  width: 4vh;
  height: 30vw;
  rotate: z -45deg;
  margin-bottom: -35vh;
  left: -2vw;
  background-color: rgb(255, 255, 255);
}

.edge:hover {
  background-color: black;
}

.edge:hover span:nth-child(2) {
  translate: 15vw -40vh;
}
