@keyframes likebaiviet {
  0% {
    width: 38px;
    height: 38px;
    top: 60px;
  }
  35% {
    width: 48px;
    height: 48px;
    top: 5px;
  }
  100% {
    width: 38px;
    height: 38px;
    top: 8px;
  }
}

.like-baiviets {
  font-family: Arial, sans-serif;
  margin: 10px 0;
  padding: 5px 0;
}

.like-baiviets:before,
.like-baiviets:after {
  content: " ";
  display: table;
}

.like-baiviets:after {
  clear: both;
}

.like-baiviets {
  *zoom: 1;
}

.like-baiviets-button {
  position: relative;
  cursor: pointer;
}

  .like-baiviets-main-button {
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    line-height: 30px;
    color: #888;
    margin-top: 10px;
    padding: 2px 13px 2px 10px;
    background:#f1f1f1;
    border-radius: 7px;
}

.like-baiviets-main-button:before {
  content: "";
  display: block;
  width: 35px;
  height: 35px;
  margin-right: 5px;
  float: left;
  background: url(../img/like0.png);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.like-baiviets-main-button.like_baiviet_like {
  color: #999;
}

.like-baiviets-main-button.like_baiviet_love {
  color: rgb(242, 82, 104);
}

.like-baiviets-main-button.like_baiviet_haha {
  color: rgb(240, 186, 21);
}

.like-baiviets-main-button.like_baiviet_wow {
  color: rgb(240, 186, 21);
}

.like-baiviets-main-button.like_baiviet_sad {
  color: rgb(240, 186, 21);
}

.like-baiviets-main-button.like_baiviet_angry {
  color: rgb(247, 113, 75);
}

.like-baiviets-main-button.like_baiviet_like:before {
  background-image: url(../img/like.png);
}
.like-baiviets-main-button.like_baiviet_love:before {
  background-image: url(../img/love.png);
}

.like-baiviets-main-button.like_baiviet_haha:before {
  background-image: url(../img/haha.png);
}

.like-baiviets-main-button.like_baiviet_wow:before {
  background-image: url(../img/wow.png);
}

.like-baiviets-main-button.like_baiviet_sad:before {
  background-image: url(../img/sad.png);
}

.like-baiviets-main-button.like_baiviet_angry:before {
  background-image: url(../img/angry.png);
}

.like-baiviets-box {
  position: absolute;
  top: -30px;
  left: 0;
  background: #fff;
  padding: 5px;
  border-radius: 40px;
  box-shadow: 0 2px 5px #999;
  box-sizing: border-box;
  width: 314px;
  height: 60px;
  display: none;
  z-index: -1;
}

.like-baiviets-button.likebaiviet-show .like-baiviets-box {
  display: block;
  z-index: 1;
}

.like-baiviets-box .like-baiviet {
  display: block;
  position: absolute;
  width: 38px;
  height: 38px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  left: 12px;
  top: 8px;
  opacity: 0;
  transform: scale(1, 1);
  transition: opacity .5s ease-in-out 1s, transform .07s ease-in-out 0s, top .07s ease-in-out 0s;
}

.like-baiviets-button.likebaiviet-show .like-baiviet {
  opacity: 1;
  animation-name: likebaiviet;
}

.like-baiviets-box .like-baiviet-like {
  left: 12px;
  transition-delay: 0s;
  background-image: url(../img/like.png);
}

.like-baiviets-box .like-baiviet-love {
  left: 62px;
  transition-delay: .01s;
  background-image: url(../img/love.png);
}

.like-baiviets-box .like-baiviet-haha {
  left: 112px;
  transition-delay: .1s;
  background-image: url(../img/haha.png);
}

.like-baiviets-box .like-baiviet-wow {
  left: 162px;
  transition-delay: .1s;
  background-image: url(../img/wow.png);
}

.like-baiviets-box .like-baiviet-sad {
  left: 212px;
  transition-delay: .2s;
  background-image: url(../img/sad.png);
}

.like-baiviets-box .like-baiviet-angry {
  left: 262px;
  transition-delay: .2s;
  background-image: url(../img/angry.png);
}

.like-baiviets-button.likebaiviet-show .like-baiviet {
  animation-delay: 0s;
}

.like-baiviets-button.likebaiviet-show .like-baiviet-love {
  animation-delay: .05s;
}

.like-baiviets-button.likebaiviet-show .like-baiviet-haha {
  animation-delay: .1s;
}

.like-baiviets-button.likebaiviet-show .like-baiviet-wow {
  animation-delay: .1s;
}

.like-baiviets-button.likebaiviet-show .like-baiviet-sad {
  animation-delay: .2s;
}

.like-baiviets-button.likebaiviet-show .like-baiviet-angry {
  animation-delay: .2s;
}

.like-baiviet:hover {
  transform: scale(1.5, 1.5);
  top: 2px;
}

.like-baiviet strong {
  position: absolute;
  top: -19px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 8px;
  text-align: center;
  left: 0;
  border-radius: 38px;
  padding: 1px 0;
  width: 38px;
  opacity: 0;
  transition: opacity .2s ease-in-out 0s;
  box-sizing: border-box;
}

.like-baiviet:hover strong {
  opacity: 1;
}

.like-baiviets-count {
  line-height: 30px;
  font-size: 12px;
  border-bottom: 1px dashed #959595;
}

.like-baiviet-count {
  display: inline-block;
  margin-left: 5px;
}

.like-baiviet-count strong {
  font-weight: normal;
}

.like-baiviet-count:before {
  content: "";
  float: left;
  width: 25px;
  height: 25px;
  margin: 4px 4px 6px 0;
  background: url(../img/like.png);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: block;
}

.like-baiviet-count-love:before {
  background-image: url(../img/love.png);
}

.like-baiviet-count-haha:before {
  background-image: url(../img/haha.png);
}

.like-baiviet-count-wow:before {
  background-image: url(../img/wow.png);
}

.like-baiviet-count-sad:before {
  background-image: url(../img/sad.png);
}

.like-baiviet-count-angry:before {
  background-image: url(../img/angry.png);
}