* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}
.wrapper{
  display: inline-flex;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}
.wrapper a{
  width: 220px;
  height: 70px;
  text-decoration: none;
  color: #000;
border: 1px solid #ff0000;
font-size: 22px;
text-align: center;
/* justify-content: center; */
line-height: 70px;
margin: 10px;
position: relative;



}
#ak{
  color: #0a0aff;
  font-weight: bold;
}
.wrapper a:hover{
  color: #fff;
  transition: 0.8s;
}
.wrapper a span{
  background: #ff0000;
  position: absolute;
  transition: 0.8s ease-out;
 
  z-index: -1;
}


.to-right{
  width: 0px;
  height: 70px;
  left: 0;
  top: 0;
}
.wrapper a:hover .to-right{
  width: 220px;
 transition: 0.8s;
}
.to-left{
  width: 0px;
  height: 70px;
  right: 0;
  top: 0;
  
}
.wrapper a:hover .to-left{
  width: 220px;
 transition: 0.8s;
}
.to-top{
  width: 220px;
  height: 0px;
  right: 0;
  bottom: 0;
 
}
.wrapper a:hover .to-top{
  height: 70px;
 transition: 0.8s;
}
.to-bottom{
  width: 220px;
  height: 0px;
  right: 0;
  top: 0;
  
}
.wrapper a:hover .to-bottom{
  height: 70px;
 transition: 0.8s;
}
.diagonal{
  width: 0px;
  height: 0px;
  left: 0;
  bottom: 0;
  
}
.wrapper a:hover .diagonal{
  height: 70px;
  width: 220px;
 transition: 0.8s;
}