/*img{
	width: 20%;
	height: 300px;
}*/

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box; 
}

body{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: #000;
}
#text{
	font-size: 500%;
	text-align: center;
	height: 0vh;
	color: white;
	position: absolute;
}
.box{
	position: relative;
	width: 300px;
	height: 250px;
	transform-style: preserve-3d;
	animation: animate 20s linear infinite;


}

@keyframes animate{
	0%{
		transform: perspective(1000px) rotateX(0deg) rotateY(35deg);
	}

	100%{
		transform: perspective(1000px) rotateX(360deg) rotateY(35deg);
	}
}

.box span{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform-origin: center;
	transform-style: preserve-3d;
	transform: rotateX(calc(var(--i) * 45deg)) translateZ(300px);
}

.box span img{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}




/* the end of harsh coding */

