.phones-outer-container {
  height: 379px;
  position: relative;
  overflow: hidden;
}

.phones-container {
  height: 379px;
  overflow: hidden;
  position: absolute;
  width: 100%;
  bottom: 0;
}

.phones-wrapper {
  position: relative;
  height: 600px;
}

.phones {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
}

.phone {
  max-height: 600px;
  transform-origin: bottom center;
  opacity: 0;
}

.phone-right {
  z-index: 2;
  animation: phoneEntranceRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.phone-left {
  transform: translate(-133px, -17px) scale(0.8);
  animation: phoneEntranceLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes phoneEntranceRight {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  70% {
    transform: translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes phoneEntranceLeft {
  0% {
    transform: translate(-133px, 30px) scale(0.8);
    opacity: 0;
  }
  70% {
    transform: translate(-133px, -27px) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-133px, -17px) scale(0.8);
    opacity: 1;
  }
}

.messages-container {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 3;
}

.message {
  position: absolute;
  bottom: 0;
  padding: 20px 31px;
  max-width: 232px;
  background-color: rgb(229, 236, 244);
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-300px);
  transition: all 0.5s ease-out;
}

.message p {
  margin: 0;
  color: #00438199;
}

.message span {
  color: #000;
}

.message-left {
  left: 137px;
  border-bottom-right-radius: 0px;
}

.message-right {
  right: 80px;
  border-bottom-left-radius: 0px;
}

@media screen and (min-width: 501px) and (max-width: 991px) {
  .message {
    display: none;
  }

  .phones-outer-container {
    height: 312px;
    overflow: hidden;
  }

  .phones-wrapper {
    height: 100%;
  }
}

@media screen and (min-width: 501px) and (max-width: 661px) {
  .phones {
    left: 37%;
    bottom: -50%;
    transform: translateX(-50%) scale(0.8);;
  }
}

@media screen and (min-width: 662px) and (max-width: 781px) {
  .phones {
    left: 37%;
    bottom: -63%;
    transform: translateX(-50%) scale(0.8);
  }
}

@media screen and (min-width: 782px) and (max-width: 991px) {
  .phones {
    left: 42%;
    bottom: -61%;
    transform: translateX(-50%) scale(0.8);
  }
}

@media screen and (max-width: 500px) {
  .message {
    display: none;
  }

  .phones-outer-container {
    height: 312px;
    overflow: hidden;
  }

  .phones-wrapper {
    height: 100%;
  }

  .phones {
    left: 39%;
    bottom: -39%;
  }
}