@import url("https://fonts.googleapis.com/css?family=Roboto");

@-webkit-keyframes come-in {
  0% {
    transform: translatey(100px);
    opacity: 1;
  }

  30% {
    transform: translateX(-50px) scale(0.4);
  }

  70% {
    transform: translateX(0px) scale(1.2);
  }

  100% {
    transform: translatey(0px) scale(1);
    opacity: 1;
  }
}

@keyframes come-in {
  0% {
    transform: translatey(100px);
    opacity: 1;
  }

  30% {
    transform: translateX(-50px) scale(0.4);
  }

  70% {
    transform: translateX(0px) scale(1.2);
  }

  100% {
    transform: translatey(0px) scale(1);
    opacity: 1;
  }
}

@keyframes come-float1 {
  0% {
    transform: translatey(100px);
    opacity: 1;
  }

  30% {
    transform: translateX(-50px) scale(0.4);
    opacity: 0.8;
  }

  70% {
    transform: translateX(0px) scale(1.2);
    opacity: 0.2;
  }

  100% {
    transform: translatey(0px) scale(1);
    opacity: 0;
  }
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  background: #111;
  font-family: "Roboto", sans-serif;
}

.floating-container {
  position: fixed;
  width: 500px;
  height: 500px;
  bottom: 20%;
  right: 0%;
  margin: 35px 25px;
  /* padding: 300px;
  box-sizing: border-box; */
z-index: 9999999999999;
}

.floating-container:hover {
  height: 500px;
  width: 500px;
}

.floating-container:hover .floating-button {
  transform: translatey(5px);
  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:hover .element-container .float-element:nth-child(4) {
  -webkit-animation: come-in 0.4s forwards 0.8s;
  animation: come-in 0.4s forwards 0.8s;
}

.floating-container:hover .element-container .float-element:nth-child(5) {
  -webkit-animation: come-in 0.4s forwards 1s;
  animation: come-in 0.4s forwards 1s;
}

.floating-container .floating-button {
  position: absolute;
  width: 125px;
  height: 124px;
  bottom: 217.5px;
  border-radius: 50%;
  /* left: 0; */
  right: 0;
  margin: auto;
  color: white;
  line-height: 65px;
  text-align: center;
  font-size: 23px;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s;
}

.floating-container .floating-button img {
  width: 160px;
  height: 160px;
}

.floating-container .float-element {
  position: relative;
  display: block;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-weight: 500;
  text-align: center;
  line-height: 50px;
  z-index: 0;
  opacity: 0;
  transform: translateY(100px);
}

.title {
  margin-top: -30px;
}

.floating-container .float-element:nth-child(1) {
  position: absolute;
  left: 400px;
  top: 100px;
  cursor: pointer;
}

.floating-container .float-element:nth-child(2) {
  position: absolute;
  left: 330px;
  top: 140px;
  cursor: pointer;

}

.floating-container .float-element:nth-child(3) {
  position: absolute;
  left: 310px;
  top: 230px;
  cursor: pointer;

}

.floating-container .float-element:nth-child(4) {
  position: absolute;
  left: 340px;
  top: 310px;
  cursor: pointer;

}

.floating-container .float-element:nth-child(5) {
  position: absolute;
  left: 410px;
  top: 340px;
  cursor: pointer;
}

.floating-container .float-element .material-icons {
  vertical-align: middle;
  font-size: 16px;
}

.floating-container .float-element:nth-child(1) {
  background: #87c2f1;
  font-size: 10px;
}

.floating-container .float-element:nth-child(2) {
  background: #87c2f1;
  font-size: 10px;
}

.floating-container .float-element:nth-child(3) {
  background: #87c2f1;
  font-size: 10px;
}

.floating-container .float-element:nth-child(4) {
  background: #87c2f1;

  font-size: 10px;

}

.floating-container .float-element:nth-child(5) {
  background: #87c2f1;
  font-size: 10px;

}

.float-element img {
  width: 50px;
  height: 50px;
}

.float1 {
  -webkit-animation: come-in 0.4s forwards 0.2s;
  animation: come-in 0.4s forwards 0.2s;
}

.float2 {
  -webkit-animation: come-in 0.4s forwards 0.4s;
  animation: come-in 0.4s forwards 0.4s;
}

.float3 {
  -webkit-animation: come-in 0.4s forwards 0.6s;
  animation: come-in 0.4s forwards 0.6s;
}

.float4 {
  -webkit-animation: come-in 0.4s forwards 0.8s;
  animation: come-in 0.4s forwards 0.8s;
}

.float5 {
  -webkit-animation: come-in 0.4s forwards 1s;
  animation: come-in 0.4s forwards 1s;
}
.title {
    color: #333;
    font-weight: bold;
    font-size: 12px;
    text-shadow: -0.5px -0.5px 0 #fff, /* 左上描边 */
    0.5px -0.5px 0 #fff,  /* 右上描边 */
    -0.5px 0.5px 0 #fff,  /* 左下描边 */
    0.5px 0.5px 0 #fff;
}