@font-face {
  font-family: "Recoleta-SemiBold";
  src: url("/fonts/Recoleta-SemiBold.eot") format("eot"), url("/fonts/Recoleta-SemiBold.woff") format("woff"), url("/fonts/Recoleta-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Recoleta-Regular";
  src: url("/fonts/Recoleta-Regular.eot") format("eot"), url("/fonts/Recoleta-Regular.woff") format("woff"), url("/fonts/Recoleta-Regular.woff2") format("woff2");
}

html, body, center {
  height: 100%;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  margin: 0;
  background: black;
  font-family: "Recoleta-Regular", Serif;
  color: #323535;
}

.light-text {
  font-family: "Recoleta-Regular";
}

.semibold-text {
  font-family: "Recoleta-SemiBold";
}

h1 {
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
}

video {
  pointer-events: none;
}

#remote-video {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  /* no letterboxing */
  opacity: 0;
  position: absolute;
  transition: opacity 1s;
  width: 100%;
}

#remote-video.active {
  opacity: 1;
  z-index: 1;
}

#local-video {
  display: block;
  height: 100%;
  /* max-height: 100%; */
  max-width: 100%;
  object-fit: cover;
  /* no letterboxing */
  opacity: 0;
  position: absolute;
  transition: opacity 1s;
  width: 100%;
}

#local-video.active {
  opacity: 1;
}

video.letterbox {
  object-fit: contain !important;
  /* no letterboxing */
}

#screensaver {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  transition: opacity 1s;
}

#screensaver.active {
  opacity: 1;
  transition: opacity 5s;
  z-index: 10001;
}

#screensaver.active-available {
  opacity: 1;
  transition: opacity 5s;
  /* Do not cover the rotary UI */
  z-index: 1;
}

/**
 * Rotary UI
 */

@keyframes pulse-incoming {
  0% {
    bottom: -550px;
  }
  100% {
    bottom: -150px;
  }
}

@keyframes pulse-available {
  0% {
    bottom: 0px;
  }
  100% {
    bottom: -400px;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
}

@keyframes delayedFadeOut {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes pulseSvg {
  0% {
    transform: scale(1);
    transform-origin: center;
  }
  100% {
    transform: scale(1.1);
    transform-origin: center;
  }
}

@keyframes pulsePatternCircle {
  0% {
    transform: scale(1);
    fill: #fff;
    transform-origin: center;
  }
  100% {
    transform: scale(1.1);
    transform-origin: center;
  }
}

@keyframes pulseInnerCircle {
  0% {
    transform: scale(1);
    transform-origin: center;
  }
  100% {
    transform: scale(1);
    transform-origin: center;
  }
}

.rotary-wrapper {
  height: 13em;
  overflow: hidden;
  position: fixed;
  left: 0%; /* Adjust with overrideFabPosition */
  bottom: 0px;
  margin: auto;
  width: 100%;
  z-index: 2;
}

/* All Items */

.rotary button {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -19px;
  padding: 0px;
  /* transition: ease 0.4s all; */
}

.rotary svg {
  width: 100%;
  height: 100%;
}

/* Below the fold items */

.rotary button:nth-child(1), .rotary button:nth-child(7) {
  opacity: 0;
  transition-delay: 2s;
}

.rotary button .content {
  position: relative;
  transition: ease 1s all;
  transform-origin: center;
  width: 38px;
  height: 38px;
}

.rotary button .content svg {
  transition: ease 1s all;
}

.rotary button.active .content:not(.pulse-icon) svg {
  transform: scale(2);
  transition: ease 1s all;
}

.rotary button:hover {
  filter: brightness(90%);
}

.rotary {
  transition: transform 1.33s;
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 0;
  list-style: none;
  margin: 89px auto 0;
  z-index: 2;
}

@media screen and (min-width: 990px) {
  .rotary {
    margin: 100px auto 0;
  }
}

.rotary-background {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.49), #ffffff);
  transition: 1s all;
  position: absolute;
  left: 50%; /* Adjust with overrideFabPosition */
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  width: 49px;
  height: 49px;
  bottom: 10px;
}

.rotary-background.large {
  width: 238px;
  height: 238px;
  bottom: -119px;
}

.rotary-background.small {
  width: 182px;
  height: 182px;
  bottom: -91px;
}

.help-text {
  width: 238px;
  /* height: 238px; */
  height: 66px;
  margin-top: 54px;
  border-radius: 50%;
  position: relative;
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  font-family: "Recoleta-Regular";
  font-size: 24px;
  line-height: 28px;
  align-items: flex-start;
}

.help-text p {
  margin: 0;
}

.help-text strong {
  font-family: "Recoleta-SemiBold";
}

.help-content {
  z-index: 3;
  position: relative;
  /* height: 20px; */
  /* margin-top: 55px; */
  /* height: 55px; */
  display: flex;
  /* align-items: center; */
  flex-direction: column;
  justify-content: flex-end;
}

.incoming-gradient {
  width: 100%;
  position: fixed;
  bottom: -400px;
  transition: 1s all;
  z-index: 1;
  display: block;
  opacity: 0;
}

.calling-gradient {
  width: 100%;
  position: fixed;
  bottom: -400px;
  transition: 1s all;
  z-index: 1;
  display: block;
  opacity: 0;
}

.gradient-active {
  /* Match this animation time to delayCancelCall */
  /* 1800s for 30 minute timeout */
  /* Note: this is updated by setupTimers() */
  animation-name: pulse-available;
  animation-timing-function: linear;
  animation-duration: 1800s;
  animation-play-state: running;
}

.on-call-wrapper {
  height: 13em;
  overflow: hidden;
  position: fixed;
  bottom: 0px;
  margin: auto;
  width: 100%;
  z-index: 2;
  display: none;
}

.on-call-menu {
  margin: 122px auto 0;
  width: 182px;
  height: 182px;
}

.volume {
  width: 182px;
  height: 182px;
  bottom: -91px;
  position: absolute;
}

.on-call-hang-up {
  width: 49px;
  height: 49px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.volume-controls {
  display: none;
  height: 91px;
  width: 100%;
  position: absolute;
}

.volume-icon, .volume-buttons {
  position: absolute;
  /* top: 36px; */
  top: 60px;
  left: 50%;
  transform: translateX(-50%) scale(1.5);
}

.volume-indicator {
  transform-origin: 50% 100%;
  margin: 1px;
  height: 90px;
  overflow: hidden;
  position: absolute;
  transition: ease-out .4s all;
  opacity: 0;
  animation-delay: 1s;
}

.clara-video {
  z-index: 0;
  position: relative;
  height: 100%;
}

.alert-wrapper {
  height: 13em;
  overflow: hidden;
  position: fixed;
  bottom: 0px;
  margin: auto;
  width: 100%;
  z-index: 2;
  display: none;
}

.alert {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  box-shadow: 0 3px 14px 0 rgba(0, 0, 0, 0.5), 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  background-image: linear-gradient(to bottom, rgba(255, 73, 114, 0.7), #ff4972 100%), linear-gradient(to bottom, #ffffff, #ffffff);
  margin: 27px auto 0;
  text-align: center;
  font-family: "Recoleta-Regular";
  font-size: 24px;
  line-height: 28px;
  padding-top: 72px;
  color: #FFF;
  animation: fadeIn ease 1s, delayedFadeOut ease 6s forwards;
}

.availability-text-container {
  width: 100%;
  height: 100%;
}

.availability-text {
  color: black;
  background-color: #86CC8D;
  position: absolute;
  top: 0;
  left: 0;
  /*  */
  width: 70px;
  height: 70px;
  /* center-center is 38px, so for a 70px size, offset = (70-38)/2 = 16px */
  transform: translateX(-16px) translateY(-16px);
  border-radius: 50%;
  font-family: "Recoleta-SemiBold";
  font-size: 24px;
  line-height: 28px;
  text-align: center;
  opacity: 0;
  z-index: 20;
}

.availability-text p {
  /* margin = (70-28)/2=21px */
  margin: 21px 0 0 0;
}

.fade-in {
  opacity: 1;
  animation: fadeIn ease 200ms;
}

.fade-out {
  opacity: 0;
  animation: fadeOut ease 200ms;
}

.pulse-icon {
  /* position: relative; */
  /* width: 74px; */
  /* height: 74px; */
  transition: 1.33s all;
}

.pulse-icon-container {
  transition: ease 1s transform;
  width: 100%;
  height: 100%;
}

/* TODO Do not show the pattern for the contact */
.pulse-icon .pattern-circle {
  display: none;
}

.active .pulse-icon-container {
  transform: scale(2);
}

.pulse-icon svg {
  animation-delay: 2s;
  position: absolute;
  top: 0;
  left: 0;
  color: #86CC8E;
  transition: ease 1s all;
}

.pulse-icon svg:nth-child(1) {
  z-index: 10;
}

.active .pulse-icon svg:nth-child(2) {
  animation: pulseSvg 1.3s ease-in-out infinite alternate;
}

.active .pulse-icon .pattern-circle {
  /* animation: pulsePatternCircle 1.3s ease-in-out infinite alternate; */
}

.active .pulse-icon .color-circle {
  /* animation: pulseInnerCircle 1.3s ease-in-out infinite alternate; */
}

.contact-icon {}

/* TODO Do not show the pattern for the contact */
.contact-icon .pattern-circle {
  display: none;
}

.contact-icon-container {
  width: 100%;
  height: 100%;
}

.contact-icon svg {
  position: absolute;
  top: 0;
  left: 0;
  /* color: #86CC8E; */
}

.contact-icon svg:nth-child(1) {
  z-index: 10;
}