body {
	text-align: center;
}

h1 {
	border: 1px solid black;
	width: 70%;
	margin: 20px auto;
	text-align: left;
}

h2 {
	border: 1px solid black;
	width: 80%;
	margin: 20px auto;
	padding: 10px;
	text-align: left;
}

p {
	font-family: "Courier New", monospace;
	border: solid black 6px;
	font-size: 18px;
	padding: 15px;
	width: 85%;
	margin: 20px auto;
	background-color: green;
	color: white;
	text-align: left;

}

.border {
	background-color: white;
	color: black;
	border: 5px double red;
	width: 90%;
}

.container {
  width: 200px;
  height: 200px;
  margin: 100px auto;
  perspective: 600px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 12s infinite linear;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid white;
  line-height: 200px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  background: rgba(255, 0, 0, 0.5);
}

.front { transform: rotateY( 0deg) translateZ(100px); }
.back { transform: rotateY(180deg) translateZ(100px); }
.left { transform: rotateY(-90deg) translateZ(100px); }
.right { transform: rotateY( 90deg) translateZ(100px); }
.top { transform: rotateX( 90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes spin {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}

/* The animation code */
@keyframes myAnimation {
  from {background-color: red;}
  to {background-color: yellow;}
}

/* The element to apply the animation to */
div{
  width: 100px;
  height: 100px;
  background-color: red;
  animation-name: myAnimation;
  animation-duration: 4s;
}