#rotate {
  z-index: 123456;
  background-color: black;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
}

.phone {
  height: 50px;
  width: 100px;
  border: 3px solid white;
  border-radius: 10px;
  animation: rotate 1.5s ease-in-out infinite alternate;
  /* display: none; */
}

.message-orientation {
  color: white;
  font-size: 1em;
  margin-top: 40px;
  /* display: none; */
}

@keyframes rotate {
  /*    0% {
      -moz-transform: scale(1);
      -ms-transform: scale(1);
      -webkit-transform: scale(1);
      transform: scale(1);
    }
    100% {
      -moz-transform: scale(0.8);
      -ms-transform: scale(0.8);
      -webkit-transform: scale(0.8);
      transform: scale(0.8);
    } */

  0% {
    transform: rotate(-90deg);
  }
  20% {
    transform: rotate(-90deg);
  }
  40% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@media only screen and (orientation: portrait) {
  #rotate {
    display: flex;
  }
}
