body { font-family: sans-serif; }

.scene {
  width: 300px;
  height: 480px;
  border: 1px solid #CCC;
  margin: 80px;
  perspective: 400px;
}


.dropdownscene {
  width: 300px;
  height: 480px;
  border: 1px solid #CCC;
  margin: 80px;
  perspective: 400px;
  position: relative;
  top:0px;	
  left:-100px;
  z-index:2;	
}

.cassette {
  width: 300px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-50px);
  transition: transform 1s;
}

.cassette.show-front  { transform: translateZ( -20px) rotateY(   0deg); }
.cassette.show-back   { transform: translateZ( -20px) rotateY(-180deg); }
.cassette.show-right  { transform: translateZ(-150px) rotateY( -90deg); }
.cassette.show-left   { transform: translateZ(-150px) rotateY(  90deg); }
.cassette.show-top    { transform: translateZ(-150px) rotateX( -90deg); }
.cassette.show-bottom { transform: translateZ(-150px) rotateX(  90deg); }

.cassette__face {
  position: absolute;
  border: 1px solid rgba(255,255,255,.5);
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-align: center;
}

.cassette__face--front,
.cassette__face--back {
  width: 300px;
  height: 480px;
  line-height: 480px;
}

.cassette__face--right {
  width: 60px;
  height: 480px;
  left:120px;
  line-height: 480px;
}

.cassette__face--left {
  width: 60px;
  height: 480px;
  left: 120px;
  line-height: 480px;
}

.cassette__face--top {
  width: 300px;
  height: 60px;
  top: 210px;
  line-height: 60px;
}

.cassette__face--bottom {
  width: 300px;
  height: 60px;
  top: 210px;
  line-height: 60px;
}

.cassette__face--front  { background: hsla(  0, 100%, 50%, 0.7); }
.cassette__face--right  { background: hsla( 60, 100%, 50%, 0.7); }
.cassette__face--back   { background: hsla(120, 100%, 50%, 0.7); }
.cassette__face--left   { background: hsla(180, 100%, 50%, 0.7); }
.cassette__face--top    { background: hsla(240, 100%, 50%, 0.7); }
.cassette__face--bottom { background: hsla(300, 100%, 50%, 0.7); }

.cassette__face--front  { background: #999; }
.cassette__face--right  { background: #999; }
.cassette__face--back   { background: #999; }
.cassette__face--left   { background: #999; }
.cassette__face--top    { background: #999; }
.cassette__face--bottom { background: #999; }



.cassette__face--front  { transform: rotateY(  0deg) translateZ( 30px); }
.cassette__face--back   { transform: rotateY(180deg) translateZ( 30px); }

.cassette__face--right  { transform: rotateY( 90deg) translateZ(150px); }
.cassette__face--left   { transform: rotateY(-90deg) translateZ(150px); }

.cassette__face--top    { transform: rotateX( 90deg) translateZ(240px); }
.cassette__face--bottom { transform: rotateX(-90deg) translateZ(240px); }

label { margin-right: 10px; }

/* Test out changes to above - https://codepen.io/desandro/pen/MGpMOV */


 /* Animation DIV */ 
.moveinsquare  {
  width: 300px;
  height: 480px;
  position: relative;
  left:0px;
  top:-480px;
  visibility:hidden;
  z-index: -1;
  background:#CCC;
  animation-name: removecassette;
  animation-fill-mode:forwards;
  animation-delay: 1s;
  animation-duration: 6s;
}
.moveinsquare .animate  {  
  animation-name: removecassette;
  animation-fill-mode:forwards;
  animation-delay: 1s;
  animation-duration: 6s;
 }
	
/* The animation code */
@keyframes removecassette {
  0%   {left:0px; top:-480px; visibility:hidden;}
  25%  {left:0px; top:100px;transform:rotate(0deg); visibility:visible;}
  50%  {left:450px; top:100px;transform:rotate(-90deg);}
  75%  {left:450px; top:-480px;;transform:rotate(-90deg);}
  100% {left:450px; top:-480px;;transform:rotate(-90deg); visibility:visible;}
}


 /* Animation DIV */ 
.movesideways  {
  width: 300px;
  height: 480px;
  position: relative;
  left:0px;
  top:-480px;
  visibility:hidden;
  z-index: -1;
  background:#CCC;
  animation-name: removecassettesideways;
  animation-fill-mode:forwards;
  animation-delay: 1s;
  animation-duration: 6s;
}
.movesideways .animate  {  
  animation-name: removecassettesideways;
  animation-fill-mode:forwards;
  animation-delay: 1s;
  animation-duration: 6s;
  
 }
	
/* The animation code */
@keyframes removecassettesideways {
  0%   {left:0px; top:-480px; visibility:hidden;}
  50%  {left:400px; top:-480px;transform:rotate(0deg); visibility:visible;}
  75%  {left:450px; top:-480px;;transform:rotate(-90deg);}
  100% {left:450px; top:-480px;;transform:rotate(-90deg); visibility:visible;}
}

.cassettecomments  {
  width: 480px;
  height: 100px;
  position: relative;
  left:355px;
  top:-575px;
  background:#FFF;
  height: 100px;
  z-index:-5; 
}

.cassettecomments p {
text-align: center;
}

.realign {

  position: relative;
  left:-100px;
  top:-0px;	
  background:#FF0;
}
