

.faf{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: all 1s;
    width: 50px;
    height: 50px;
    background: white;
    box-sizing: border-box;
    border-radius: 4px;
    border: 4px solid white;
    padding: 5px;
}

.fai{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;;
    height: 42.5px;
    line-height: 30px;
    outline: 0;
    border: 0;
    display: none;
    font-size: 1em;
    border-radius: 20px;
    padding: 0 20px;
}

.fav{
    box-sizing: border-box;
    padding: 10px;
    width: 42.5px;
    height: 42.5px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 4px;
    color: #07051a;
    text-align: center;
    font-size: 1.2em;
    transition: all 1s;
}

.faf:hover,
.faf:valid{
    width: 200px;
    cursor: pointer;
}

.faf:hover input .fav,
.faf:valid input .fav{
    display: block;
}

.faf:hover .fav,
.faf:valid .fav{
    background: #07051a;
    color: white;
}


.fab{
  display: none;
  position: absolute;
  top: 70px;
  bottom:0;
  left: 0;
  right: 0;
  font-size: 20px;
  color: white;
  padding: 4px;  
  min-height: max-content;
  background:transparent;
  outline: 0;
  border: 1px solid #303030;
  border-radius: 4px;
  text-align: center; 
  width: 100%;
  cursor: pointer;
}

.faf:valid .fab {
  display: block;
}