#socialBar {
  width: 65px;
  height: 65px;
  overflow: hidden;
  margin: 0 auto;
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #ffffff;
  border: 2px solid #1fb9b9;
  border-radius: 50px;
  transition: width 0.225s ease-out;
  display: flex;
  flex-direction: row-reverse;
}
/* #socialBar:hover{
  background-color: #b1f0eb;
  transition: 0.5s;
} */
#socialBar .fa {
  color: #fff;
  padding: 20px;
}
#socialBar .fa:not(:first-child) {
  opacity: 0;
  transform: translateY(-40%);
}
#socialBar .fa.hide {
  opacity: 1;
}
#socialBar.active {
  width: 180px;
}
#socialBar.active .fa {
  transform: translateY(0);
}
#socialBar.active .fa:nth-child(2) {
  transition: all 0.325s 0.1s ease-out;
}
#socialBar.active .fa:nth-child(3) {
  transition: all 0.325s 0.15s ease-out;
}
#socialBar.active .fa:nth-child(4) {
  transition: all 0.325s 0.2s ease-out;
}
#socialBar.active .fa:nth-child(5) {
  transition: all 0.325s 0.25s ease-out;
}
#socialBar.active .fa:not(:first-child) {
  opacity: 1;
}

button {
  padding: 0;
  border: none;
  font-size: 1em;
}
button:focus {
  outline: none;
}
button:hover {
  cursor: pointer;
}
button:active:not(.active) {
  transform: scale(0.95);
  box-shadow: none;
}

.mail{
  position: fixed;
  height: 43px;
  margin: -9px 0 0 -36px;
}
.vk, .tg{
  height: 60px;
  width: 60px;
}

@media screen and (max-width: 768px){
  #socialBar {
    width: 60px;
    height: 60px;
    bottom: 10px;
    right: 15px;
  }
  #socialBar.active {
    width: 170px;
  }
  .mail{
    height: 39px;
    margin: -10px 0 0 -31px;
  }
  .vk, .tg{
    height: 55px;
    width: 55px;
  }
}