#rotate {
  z-index: 99;
  background-color: black;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  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;
}
.message,
.mobileMessage {
  color: white;
  font-size: 2em;
  margin-top: 3em;
}

/* visible state toggled by JS */
#rotate.visible {
  display: flex;
}

/* message toggles */
#rotate .message { display: block; }
#rotate .mobileMessage { display: none; }
#rotate.show-phone .message { display: none; }
#rotate.show-phone .mobileMessage { display: block; }

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-90deg);
  }
  100% {
    transform: rotate(-90deg);
  }
}
