* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: Mukta;
  src: url("https://fonts.googleapis.com/css2?family=Mukta");
}
.r-container {
  width: 100%;
  font-family: "Mukta", sans-serif;
  text-align: center;
  padding: 30px;
}
.user-reaction a {
  display: block;
  text-decoration: none;
}
.r-title {
  font-size: 25px;
}
.r-list {
  margin: 50px auto;
  display: flex;
  justify-content: start;
  align-items: stretch;
  /* flex-wrap: wrap; */
  background-color: #e9f7f2;
  border-radius: 10px;
}
.r-item {
  position: relative;
  width: 20%;
  text-align: center;
}
.r-name {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #c4f3ed;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding: 5px 15px;
  border-radius: 50px;
  opacity: 0;
  visibility: hidden;
}
.r-emoji {
  max-width: 70px;
  max-height: 70px;
  margin-top: 8px;
}
.r-bar {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #c4f3ed;
}
.r-per-bar {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.r-per {
  position: absolute;
  bottom: -25px;
  left: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
}
.smile .r-bar,
.smile .r-name {
  background-color: #c4f3ed;
}
.sad .r-bar,
.sad .r-name {
  background-color: #fcfdb9;
}
.surprised .r-bar,
.surprised .r-name {
  background-color: #c4f8c9;
}
.happy .r-bar,
.happy .r-name {
  background-color: #f4d1ff;
}
.angry .r-bar,
.angry .r-name {
  background-color: #ffc5c5;
}
.onHover {
  cursor: pointer;
}
.disable {
  filter: grayscale(1);
}
.onHover:hover .r-emoji,
.selected .r-emoji {
  transform: scale(1.3) translateY(-10px);
  animation: emojiReaction 0.4s ease-in-out;
  transition: 0.3s ease-in-out;
}
.onHover:hover .r-name,
.selected .r-name {
  opacity: 1;
  visibility: visible;
  transform: translateY(-30px) translateX(-50%);
  transition: 0.3s ease-in-out;
}
.onHover:hover .r-bar,
.selected .r-bar {
  height: 6px;
  transition: 0.3s ease-in-out;
}
@keyframes emojiReaction {
  0% {
    transform: scale(0.2) translateY(0);
  }
  25% {
    transform: scale(0.5) translateY(-3px);
  }
  50% {
    transform: scale(0.8) translateY(-5px);
  }
  75% {
    transform: scale(1.5) translateY(-8px);
  }
  100% {
    transform: scale(1.1) translateY(-10px);
  }
}

@media only screen and (max-width: 768px) {
  .r-emoji {
    max-width: 60px;
    max-height: 60px;
  }
}
@media only screen and (max-width: 500px) {
  .r-title {
    font-size: 20px;
  }
  .r-emoji {
    max-width: 40px;
    max-height: 40px;
  }
  .r-bar {
    height: 2px;
  }
  .r-item:hover .r-bar {
    height: 4px;
  }
  .r-per,
  .r-name {
    font-size: 12px;
  }
}
@media only screen and (max-width: 425px) {
  .r-emoji {
    max-width: 25px;
    max-height: 25px;
  }
  .r-per,
  .r-name {
    font-size: 10px;
  }
  .r-name {
    top: -10px;
  }
}
