﻿/*
Theme Name: custom

https://codex.wordpress.org/Right-to-Left_Language_Support

*/

/* переворачивание картинки */

/** стиль кнопки вызова формы
button.new {
	background: -moz-linear-gradient(#00BBD6, #EBFFFF);
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#00BBD6), to(#EBFFFF));
	padding: 3px 7px;
	color: #333;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	border: 1px solid #666;
}*/

/* Кнопка обратного звонка   */
.dws {
  position: fixed;
  top: 85%;
  left: 87%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.pls,
.blc,
.phn {
  position: absolute;
  width: 50px;
  height: 50px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
}

.blc {
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
}

.pls {
  background: #5cc2e2;
  position: relative;
  transition: 0.5s;
}

.phn {
  font-size: 20px;
  line-height: 50px;
  animation: phn 0.9s ease-in-out infinite;
}

.txt {
  position: absolute;
  opacity: 0;
  text-transform: uppercase;
  font-weight: 700;
  top: 15px;
  font-size: 10px;
  transform: scaleX(-1);
  transition: 0.5s ease-in-out;
}

.phn img {
  position: absolute;
  right: 14px;
  top: 14px;
  height: 22px;
  transition: 0.5s ease-in-out;
}

.pls:hover {
  background: #29aee3;
}

.pls:hover img {
  transition: 0.5s ease-in-out;
  transform: scale(0);
}

.pls:hover .txt {
  transform: scaleX(1);
  transition: 0.5s ease-in-out;
  opacity: 1;
}

.pls:hover::before,
.pls:hover::after {
  content: "";
  position: absolute;
  border: 1px solid #29aee3;
  left: -20px;
  right: -20px;
  top: -20px;
  bottom: -20px;
  border-radius: 50%;
  animation: pls 1.8s linear infinite;
  opacity: 0;
}

.pls:hover::after {
  animation-delay: 0.5s;
}

@keyframes phn {
  0%,
  100% {
    transform: rotate(-20deg);
  }

  50% {
    transform: rotate(21deg);
  }
}

@keyframes pls {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
