@keyframes come-in {
  0% {
    -webkit-transform: translatey(100px);
    transform: translatey(100px);
    opacity: 0;
  }

  30% {
    -webkit-transform: translateX(-50px) scale(0.4);
    transform: translateX(-50px) scale(0.4);
  }

  70% {
    -webkit-transform: translateX(0px) scale(1.2);
    transform: translateX(0px) scale(1.2);
  }

  100% {
    -webkit-transform: translatey(0px) scale(1);
    transform: translatey(0px) scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  50% {
    -webkit-transform: scale(1,1);
    transform: scale(1,1);
    opacity: 1;
  }

  100% {
    -webkit-transform: scale(2,2);
    transform: scale(2,2);
    opacity: 0;
  }
}

.floating-container {
  position: fixed;
  width: 80px;
  height: 80px;
  bottom: 15vh;
  right: 0;
  margin: 35px 25px;
  z-index: 10;
}

.floating-container:hover {
  height: 300px;
}

.floating-container:hover .floating-button {
  box-shadow: 0 10px 25px rgba(44, 179, 240, 0.6);
  -webkit-transform: translatey(5px);
  transform: translatey(5px);
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.floating-container:hover .element-container .float-element:nth-child(1) {
  -webkit-animation: come-in 0.4s forwards 0.2s;
  animation: come-in 0.4s forwards 0.2s;
}

.floating-container:hover .element-container .float-element:nth-child(2) {
  -webkit-animation: come-in 0.4s forwards 0.4s;
  animation: come-in 0.4s forwards 0.4s;
}

.floating-container:hover .element-container .float-element:nth-child(3) {
  -webkit-animation: come-in 0.4s forwards 0.6s;
  animation: come-in 0.4s forwards 0.6s;
}

.floating-container .floating-button {
  position: absolute;
  width: 65px;
  height: 65px;
  background: #2cb3f0;
  bottom: 0;
  border-radius: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  color: white;
  font-size: 42px;
  z-index: 100;
  box-shadow: 0 10px 25px -5px rgba(44, 179, 240, 0.6);
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.floating-container .floating-button:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: -1;
  border: 2px solid #2cb3f0;
  animation: pulse infinite 1.5s;
}

.floating-container .floating-button .iconfont {
  font-size: 36px;
  transition: all 0.3s;
}


.floating-container:hover .floating-button {
  transform: rotate(45deg) scale(.8);
  background-color: gray;
  box-shadow: none;
}

.floating-container:hover .floating-button:after {
  display: none;
}

.floating-container .float-element {
  position: relative;
  display: block;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 15px auto;
  color: white;
  font-weight: 500;
  text-align: center;
  line-height: 50px;
  z-index: 0;
  opacity: 0;
  -webkit-transform: translateY(100px);
  transform: translateY(100px);
}

.floating-container .float-element i {
  font-size: 24px;
}

.floating-container .float-element .material-icons {
  vertical-align: middle;
  font-size: 16px;
}

.floating-container .float-element:nth-child(1) {
  background: #4caf50;
  box-shadow: 0 20px 20px -10px rgba(76, 175, 80, 0.5);
}

.floating-container .float-element:nth-child(2) {
  background: #42a5f5;
  box-shadow: 0 20px 20px -10px rgba(66, 165, 245, 0.5);
}

.floating-container .float-element:nth-child(3) {
  background: #ff9800;
  box-shadow: 0 20px 20px -10px rgba(255, 152, 0, 0.5);
}

@media (max-width: 767px) {
  .floating-container {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    bottom: 12vh;
  }

  .floating-container:hover {
    height: 210px;
  }

  .floating-container .floating-button {
    width: 42px;
    height: 42px;
  }

  .floating-container .floating-button .iconfont {
    font-size: 24px;
  }

  .floating-container .float-element {
    width: 36px;
    height: 36px;
    line-height: 36px;
  }

  .floating-container .float-element i {
    font-size: 14px;
  }
}
