#fruitbar {
  margin: 2rem 0;
}

.fruit {
  width: 14rem;
  height: 14rem;
  margin-left: 4%;
  margin-top: 4rem;
  display: inline-block;
  border-radius: 100%;
  transition: 0.5s;
  cursor: pointer;
  box-shadow: 0 0.3rem 0.8rem 0.8rem rgba(220, 220, 237, 0.4);
  background: rgba(255, 255, 255, 0.3);
  animation-timing-function: cubic-bezier(0.1, 0.67, 0, 1.3);
}
.fruit:hover {
  transition: 0.5s;
  background-color: white;
  animation: 2s fruani infinite ease-out;
}
.fruit:hover .fruit-pic {
  transform: scale(1.1);
}
.fruit .name {
  margin-top: 0.2rem;
  color: #979206;
  text-align: center;
  font-size: 1.5rem;
}
.fruit .fruit-pic {
  transition: 0.2s;
  width: 9rem;
  height: 9rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.fruit .fruit-pic img {
  text-align: center;
  width: 100%;
  height: auto;
  margin-left: 75%;
  transform: translateX(-50%);
}

#change {
  padding: 2rem;
}
#change .word {
  background: #a3c6ff;
  border-radius: 100px;
  font-size: 3rem;
  padding: 1rem 5rem;
  display: inline-block;
  margin: 0rem 2rem;
}

@keyframes fruani {
  0% {
    box-shadow: 0 0 0 0.5rem rgba(151, 146, 6, 0.4);
  }
  40% {
    box-shadow: 0 0 0 1.5rem rgba(151, 146, 6, 0.1);
  }
  100% {
    box-shadow: 0 0 0 0.5rem rgba(151, 146, 6, 0.4);
  }
}
.card {
  opacity: 0;
  margin-left: 2%;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  position: absolute;
  animation-timing-function: cubic-bezier(0.17, 0.67, 0.4, 1.2);
  border-radius: 100%;
  box-shadow: 0px 0.5rem 0.5rem 0.2rem rgba(196, 196, 196, 0.2);
  transition: 0.2s;
}
.card .fruiticon, .card .name {
  display: inline-block;
  font-size: 2.5rem;
  margin-left: 1rem;
  font-weight: bold;
  color: #979206;
}
.card .fruiticon img, .card .name img {
  width: 100%;
}
.card .fruiticon {
  width: 4.2rem;
  transform: scale(0);
  transition: 0.2s;
  animation-timing-function: cubic-bezier(0.1, 0.67, 0, 1.3);
}
.card .close {
  font-size: 0;
  transition: 0.2s;
  animation-timing-function: cubic-bezier(0.1, 0.67, 0, 1.3);
}

@keyframes popup {
  0% {
    opacity: 1;
    top: 40vh;
    width: 14rem;
    height: 14rem;
    border-radius: 100%;
  }
  100% {
    opacity: 1;
    top: 20vh;
    width: 40vw;
    height: 40vh;
    border-radius: 1rem;
  }
}
@keyframes iconpop {
  0% {
    transform: scale(0) translateY(-100%);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
@keyframes closepop {
  0% {
    font-size: 0;
    transform: rotate(0deg);
  }
  100% {
    font-size: 3rem;
    transform: rotate(180deg);
  }
}
@keyframes fruitclick {
  0% {
    transform: scale1(1) translateY(0);
  }
  100% {
    transform: scale(1) translateY(-20rem);
  }
}
@keyframes fruitimg {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes popupr {
  0% {
    opacity: 1;
    top: 20vh;
    width: 40vw;
    height: 40vh;
    border-radius: 1rem;
  }
  99% {
    opacity: 1;
    top: 40vh;
    width: 14rem;
    height: 14rem;
    border-radius: 100%;
  }
  100% {
    opacity: 0;
  }
}
@keyframes iconpopr {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(0) translateY(-100%);
  }
}
@keyframes closepopr {
  0% {
    font-size: 3rem;
    transform: rotate(720deg);
  }
  100% {
    font-size: 0;
    transform: rotate(0deg);
  }
}
@keyframes fruitclickr {
  0% {
    transform: scale(1) translateY(0rem);
  }
  100% {
    transform: scale1(1) translateY(20rem);
  }
}