.rotateDeviceContainer {
  background: #000000;
  z-index: 1000;
  height: 100%;
  width: 100%;
  opacity: 0;
  flex-direction: column;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: intro 10s;
  pointer-events: none;
}
.introBG{
	width: 100%;
	height: 100%;
	background-color: #000000;
	opacity: 0;
	position: absolute;
	z-index: 2000;
	pointer-events: none;
	animation: introBackground 7s;
}

@keyframes introBackground{
	0%{
		opacity: 1;
		pointer-events: auto;
	}
	90%{
		opacity: 1;
	}
	100%{
		opacity: 0;
		display: none;
		pointer-events: auto;
	}
}

@keyframes intro{
	0%{
		opacity: 0;
	}
	10%{
		opacity: 0;
	}
	20%{
	    opacity: 1;
	}
	90%{
		opacity: 1;
	}
	100%{
		opacity: 0;
	}
}

.device{
    height: 300px;
    width: 300px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
}

.message{
    color: white;
    font-size: 40px;
	font-family: var(--font-family);
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	padding-top: 40px;
}

.backgroundPhone{
    height: 150px;
    width: 300px;
    border: 3px solid #c2c2c2;
    border-radius: 10px;
    position: absolute;
    transform: rotate(90deg);
    left: -80px;
    margin-bottom: 150px;
}

.phone {
  height: 150px;
  width: 300px;
  transform-origin: 75px 75px;
  border: 3px solid white;
  border-radius: 10px;
  animation: rotate 5s ease-in-out;
  background-color: #000000;
  z-index: 3000;
  /* display: none; */
}

.phone:before {
    content: "";
    width: 4px;
    height: 100px;
    margin-top: 25px;
    margin-left: 5px;
    display: block;
    background: white;
}

@keyframes rotate {
	0% {
		transform: rotate(-90deg);
	}
	20%{
	    transform: rotate(-90deg);
	}
	80% {
		transform: rotate(0deg);
	}
}

@media screen and (orientation:portrait) {
   .device{
	   transform: scale(1.7);
	   height: 50%;
   }
}
@media (pointer: fine), (pointer: none){
    .rotateDeviceContainer{
        display: none;
    }
    .introBG{
    	animation: introBackground 2s;
    }
    
    @keyframes introBackground{
    	0%{
    		opacity: 1;
    		pointer-events: auto;
    	}
    	100%{
    		opacity: 0;
    		display: none;
    		pointer-events: auto;
    	}
    }
}
/*
@media only screen and (orientation: portrait) {
  .phone, .message{
    display: block;
  }
  .rotateDeviceContainer{
	  display: flex;
  }
}*/