@import '../../assets/css/variables.css';

.wrap {
  background: rgba(248, 249, 251, 0.95);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: appearIn 1s ease-out;
}

.sonarOne {
  @apply --sonar;
  animation: sonar 2.5s infinite;
}

.sonarTwo {
  @apply --sonar;
  animation: sonar 2.5s infinite .3s;
}

.sonarThree {
  @apply --sonar;
  animation: sonar 2.5s infinite .6s;
}

.logo {
  animation: pulse 2.5s infinite ease-in;
  opacity: 1;
  max-height: 40px;
}

.logoWrap {
  animation: pulseWrap 2.5s infinite ease-in;
  transform: scale(1);
  background: white;
  width: var(--logoWrapSize);
  height: var(--logoWrapSize);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 12px 34px 0 rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.text {
  color: var(--primaryColor);
  font-size: 20px;
  font-weight: bold;
  line-height: 50px;
  margin: 0;
  text-align: center;
  position: absolute;
  top: 50%;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes sonar {
  0% {
    opacity: 0.1;
    width: var(--logoWrapSize);
    height: var(--logoWrapSize);
  }
  90% {
    opacity: 0;
    width: 300px;
    height: 300px;
  }
  100% {
    opacity: 0;
    width: var(--logoWrapSize);
    height: var(--logoWrapSize);
  }
}

@keyframes pulseWrap {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
  100% {
    opacity: 1;
  }
}

@keyframes appearIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}