.reactions-box {
  height: 85px;
  width: 360px;
  padding: 10px;
  position: relative;
  margin: auto;
  border-radius: 44px 44px;
  display: none;
}

.reaction {
  list-style-type: none;
  cursor: pointer;
  display: inline-block;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 8px;
  opacity: 0;
  transform: scale(1, 1);
  transition:
    opacity 0.5s ease-in-out 1s,
    transform 0.07s ease-in-out 0s,
    top 0.07s ease-in-out 0s;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

#add_positive_reaction:hover .reactions-box,
#add_negative_reaction:hover .reactions-box {
  display: block;
}

.reaction-like {
  left: 10px;
  transition-delay: 0s;
  background-image: url("images/reactions_like.png");
}

.reaction-love {
  left: 68px;
  transition-delay: 0.05s;
  background-image: url("images/reactions_love.png");
}

.reaction-haha {
  left: 126px;
  transition-delay: 0.1s;
  background-image: url("images/reactions_haha.png");
}

.reaction-wow {
  left: 184px;
  transition-delay: 0.15s;
  background-image: url("images/reactions_wow.png");
}

.reaction-sad {
  left: 242px;
  transition-delay: 0.2s;
  background-image: url("images/reactions_sad.png");
}

.reaction-angry {
  left: 300px;
  transition-delay: 0.25s;
  background-image: url("images/reactions_angry.png");
}

#add_positive_reaction:hover .reaction,
#add_negative_reaction:hover .reaction {
  opacity: 1;
  animation-name: reaction_delay;
  animation-duration: 0.5s;
}

@keyframes reaction_delay {
  0% {
    width: 48px;
    height: 48px;
    top: 60px;
  }
  48% {
    width: 56px;
    height: 56px;
    top: 5px;
  }
  100% {
    width: 48px;
    height: 48px;
    top: 8px;
  }
}

#add_positive_reaction:hover .reaction-like,
#add_negative_reaction:hover .reaction-like {
  animation-delay: 0s;
}

#add_positive_reaction:hover .reaction-love,
#add_negative_reaction:hover .reaction-love {
  animation-delay: 0.05s;
}

#add_positive_reaction:hover .reaction-haha,
#add_negative_reaction:hover .reaction-haha {
  animation-delay: 0.1s;
}

#add_positive_reaction:hover .reaction-wow,
#add_negative_reaction:hover .reaction-wow {
  animation-delay: 0.15s;
}

#add_positive_reaction:hover .reaction-sad,
#add_negative_reaction:hover .reaction-sad {
  animation-delay: 0.2s;
}

#add_positive_reaction:hover .reaction-angry,
#add_negative_reaction:hover .reaction-angry {
  animation-delay: 0.25s;
}

.reaction:hover {
  transform: scale(1.3, 1.3);
  top: 2px;
}

.reaction::before {
  display: inline-block;
  color: #ffffff;
  text-align: center;
  line-height: 17px;
  font-size: 0.7em;
  width: 80%;
  height: 17px;
  margin-left: 10%;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  position: absolute;
  top: -25px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out 0s;
}

.reaction:hover::before {
  opacity: 1;
}

.reaction-like::before {
  content: "Like";
}

.reaction-love::before {
  content: "Love";
}

.reaction-haha::before {
  content: "Haha";
}

.reaction-wow::before {
  content: "Wow";
}

.reaction-sad::before {
  content: "Sad";
}

.reaction-angry::before {
  content: "Angry";
}

.like-btn-like {
  background-image: url("images/reactions_like.png");
  background-repeat: no-repeat;
  background-size: 18px;
}

.like-btn-love {
  background-image: url("images/reactions_love.png");
  background-repeat: no-repeat;
  background-size: 18px;
}

.like-btn-haha {
  background-image: url("images/reactions_haha.png");
  background-repeat: no-repeat;
  background-size: 18px;
}

.like-btn-wow {
  background-image: url("images/reactions_wow.png");
  background-repeat: no-repeat;
  background-size: 18px;
}

.like-btn-sad {
  background-image: url("images/reactions_sad.png");
  background-repeat: no-repeat;
  background-size: 18px;
}

.like-btn-angry {
  background-image: url("images/reactions_angry.png");
  background-repeat: no-repeat;
  background-size: 18px;
}

.like-btn-text-like {
  color: rgb(88, 144, 255);
}

.like-btn-text-wow,
.like-btn-text-haha,
.like-btn-text-sad {
  color: rgb(240, 186, 21);
}

.like-btn-text-love {
  color: rgb(242, 82, 104);
}

.like-btn-text-angry {
  color: rgb(247, 113, 75);
}
