/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

html,
body {
  scroll-behavior: smooth;
}

.preloader {
  display: none;
}

.floating-button {
  position: fixed;
  width: 50px;
  height: 50px;
  line-height: 50px;
  bottom: 80px;
  right: 10px;
  font-size: 20px;
  background-color: #4f6aca;
  color: #fff !important;
  border-radius: 50px;
  text-align: center;
  z-index: 1000;
  /*    animation: pulsess 3s infinite;*/
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.floating-button * {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.floating-button.float-btn-trigger {
  background-color: #4f6aca;
  animation: 2.5s wiggle ease infinite;
  animation-delay: 1s;
}

.floating-button:not(.float-btn-trigger) {
  opacity: 0;
}

.floating-button.float-btn-trigger #open-float {
  opacity: 1;
}
.floating-button.float-btn-trigger #close-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.floating-button.floating-button_mail {
  background-color: rgba(0, 114, 198, 1);
}
.floating-button.floating-button_phone {
  background-color: rgba(220, 16, 16, 1);
}
.floating-button.floating-button_whatsapp {
  background-color: rgba(37, 211, 102, 1);
}

/*when toogle*/
.floating-button.float-btn-trigger.toogle {
  animation: none;
}

.floating-button.toogle:not(.float-btn-trigger) {
  opacity: 1;
}

.floating-button.float-btn-trigger.toogle #open-float {
  opacity: 0;
}
.floating-button.float-btn-trigger.toogle #close-float {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(180deg);
}

.floating-button.floating-button_mail.toogle {
  bottom: 140px;
}
.floating-button_phone.toogle {
  bottom: 200px;
}
.floating-button_whatsapp.toogle {
  bottom: 260px;
}

/*animation for triger*/
@keyframes wiggle {
  0% {
    transform: scale(1), rotate(0);
  }
  9.375% {
    transform: scale(1.1) rotate(0);
  }
  18.75% {
    transform: scale(1.1) rotate(-3deg);
  }
  28.125% {
    transform: scale(1.1) rotate(20deg);
  }
  37.5% {
    transform: scale(1.1) rotate(-15deg);
  }
  46.875% {
    transform: scale(1.1) rotate(5deg);
  }
  56.25% {
    transform: scale(1.1) rotate(-1deg);
  }
  65.625% {
    transform: scale(1.1) rotate(0);
  }
  75% {
    transform: scale(1) rotate(0);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

/*when mobile only*/
@media only screen and (max-width: 767px) {
  .floating-button {
    bottom: 10px;
  }

  .floating-button.floating-button_mail.toogle {
    bottom: 70px;
  }

  .floating-button_phone.toogle {
    bottom: 130px;
  }

  .floating-button_whatsapp.toogle {
    bottom: 190px;
  }

  #side-contact {
    position: fixed;
    background: #fff;
    width: 100%;
    height: 70px;
    bottom: 0;
    right: -100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 999;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    /*padding-right: 70px;*/
  }

  #side-contact.toogle {
    right: 0;
  }

  #side-contact a.floating-button:not(.float-btn-trigger) {
    position: initial;
    opacity: 1;
  }

  /* #side-contact.initial {
     transform: translateY(100%);
   } */
}
