:root {
  --pageBlack: #262626;
  --pageYellow: #ffd83e;
  --pagePurple: #552b55;
  --pageRed: #E1332d;
  --pageGreen: #2ce771;
  --pageGrey: #212121;


  

}
body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: verdana;
  background-color: var(--pageGrey);
}

a {
  width: 220px;
  height: 80px;
  color: #ff0;
  background-color: transparent;
  font-size: 26px;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  line-height: 80px;
  position: relative;
  transition: all 0.5s;
  /* border: thin solid #ff0; */
}

a:before, a:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: #ff0;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all .5s;
  z-index: -1;
  opacity: 0;
}
a:before {
  left: 0;
  box-shadow: -100px 0 0 green;
}
a:after {
  right: 0;
  box-shadow: 100px 0 0 blue;
}
a:hover:before {
  left: 50%;
  box-shadow: 30px 0 0 #ff0;
  transform: translateX(-50%) translateY(-50%);
  opacity: 1;
}
a:hover:after {
  right: 50%;
  box-shadow: -30px 0 0 #ff0;
  transform: translateX(-50%) translateY(-50%);
  opacity: 1;
}
span {
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ff0;
  border-radius: 8px;
  transform: scale(0);
  transition: all 0.3s;
  z-index: -1;
}

a:hover span {
  transform: scale(1);
  transition-delay: 0.4s;
}
a:hover {
  color: #262626;
  transition-delay: 0.4s;
}