.CallBox {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: linear-gradient(
                  -45deg, #e3ffb9, #ffd5b1, #e6f1da, #ecdb5e);
  animation: gradient 5s ease infinite;
  background-size: 600%;
  border-radius: 15px;
  box-shadow: 0 1px 1px rgba(#000, .15), 0 2px 2px rgba(#000, .15), 0 4px 4px rgba(#000, .15), 0 8px 8px rgba(#000, .15);
  border: 3px solid $color-accent-light;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  z-index: -$z-index-10;
}

.CallBox__DraggableContainer {
  position: absolute;
  bottom: 76px;
  left: 13px;
  z-index: -$z-index-10;
  opacity: 0;
  width: 300px;
  height: 230px;
}

.CallBox__DraggableContainer--noThreadOpened {
  bottom: 13px;
}

.CallBox__DraggableContainer--showing {
  z-index: $z-index-2;
  opacity: 1;
}

.CallBox--showing {
  z-index: $z-index-2;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .2s ease-in-out, transform .2s ease-in-out;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.CallBox__DraggableContainer--calling {
  height: 400px;
}

.CallBox--calling {
  background: $color-white;
  animation: none;
  background-size: auto;
}

.CallBox--calling:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  z-index: 1;
  background: linear-gradient(to bottom right, transparent 0%, #fff 50%, #f9f9f9 50%, #ffffff 100%);
}

.CallBox__DraggableContainer--fullScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate(0, 0) !important;
}

.CallBox--fullScreen {
  border-radius: 0;
  border: none;
  background-color: #2a2a2a;
}

.CallBox--fullScreen:after {
  content: '';
  background: none;
}

.CallBox__DraggableContainer--group:not(.CallBox__DraggableContainer--calling).CallBox__DraggableContainer--group:not(.CallBox__DraggableContainer--fullScreen) {
  height: 265px;
}

.CallBox--group:after {
  content: none;
}

.CallBox__Head {
  transition: transform .2s;
  position: relative;
  z-index: 3;
}

.CallBox__Head--hide {
  transform: translateY(-50px);
}

.CallBox__Scene {
  flex: 1 1 0;
}

.CallBox__ControlSet {
  transition: transform .2s;
  position: relative;
  z-index: 3;
  order: 3;
}

.CallBox__ControlSet--hide {
  transform: translateY(80px);
}

.CallBox__RecordingContainer {
  position: absolute;
  right: 0;
  bottom: 53px;
  margin: 0 2px;
  z-index: 22;
  white-space: nowrap;
  width: 100%;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}