.ring-animation-directive {
  width: 256px;
  height: 256px;
  position: relative;
}

.ring-animation-directive .ring-animation-avatar {
  width: 50%;
  height: 50%;
  border-radius: 50%;
  position: absolute;
  background-color: rgba(244, 244, 244, 1);
  background-size: cover;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  color: rgba(var(--font-color));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  padding: 8px;
}

.ring-animation-directive .ring-animation-avatar md-icon,
.ring-animation-directive .ring-animation-avatar img {
  width: 100%;
  height: 100%;
  color: rgba(42, 42, 42, 1);
}

.ring-animation-directive .ring-animation-wave {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 50%;
  animation: pulse 2.5s ease alternate infinite;
  -webkit-animation: pulse 2.5s ease alternate infinite;
  -o-animation: pulse 2.5s ease alternate infinite;
  -moz-animation: pulse 2.5s ease alternate infinite;
  opacity: 0;
  -webkit-opacity: 0;
  background-color: rgba(244, 244, 244, 1);
}

.ring-animation-directive .ring-animation-wave#a {
  animation-delay: 500ms;
}

.ring-animation-directive .ring-animation-wave#b {
  animation-delay: 1000ms;
}

.ring-animation-directive .ring-animation-wave#c {
  animation-delay: 1500ms;
}

.ring-animation-directive .ring-animation-wave#d {
  animation-delay: 2000ms;
}

.ring-animation-directive .ring-animation-wave#d {
  animation-delay: 2500ms;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  100% {
    opacity: 0.1;
    transform: scale(1);
  }
}

@-webkit-keyframes pulse {
  0% {
    opacity: 1;
    -webkit-opacity: 1;
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  100% {
    opacity: 0.1;
    -webkit-opacity: 0.1;
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

@-moz-keyframes pulse {
  0% {
    opacity: 1;
    -moz-opacity: 1;
    transform: scale(0);
    -moz-transform: scale(0);
  }
  100% {
    opacity: 0.1;
    -moz-opacity: 0.1;
    transform: scale(1);
    -moz-transform: scale(1);
  }
}

@-o-keyframes pulse {
  0% {
    opacity: 1;
    -o-opacity: 1;
    transform: scale(0);
    -o-transform: scale(0);
  }
  100% {
    opacity: 0.1;
    -o-opacity: 0.1;
    transform: scale(1);
    -o-transform: scale(1);
  }
}

@media (max-height: 420px) {
  .ring-animation-directive {
    width: 152px;
    height: 152px;
  }
}