html, body{
    height: 290px;
    width: 290px;
    margin: 0;
    background-color: none;
    position: absolute;
    z-index: 1000;
}

.rotate {
    animation: rotation  2s linear;
    animation-delay: 4s;
}

@keyframes rotation {
     from {
          transform: rotateY(0deg);
       }
       to {
            transform: rotateY(359deg);
       }
}


.album-border{
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    background-clip: padding-box;
    border-radius: 100%;
}
  
.album-border img{
    border-radius: 100%;
    max-height: 265px;
    margin: 4px 0 0 2px;
}

.album-border:before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -10px;
    border-radius: 100%;
    background: nonergb(29,31,35);
    background: linear-gradient(315deg, rgba(10,10,10,0.8) 0%, rgba(36,43,48,0.8) 100%);
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.2), -5px -5px 30px 0px rgba(150,150,165,0.2), 20px 20px 30px 0px rgba(0,0,0,0.5);
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.album-back-text:before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -10px;
    border-radius: 100%;
    background: rgb(29,31,35);
    background: linear-gradient(black);
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.2), -5px -5px 30px 0px rgba(150,150,165,0.2), 20px 20px 30px 0px rgba(0,0,0,0.5);
}

.album-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: inset 0px 0px 30px 0 #000000;
    border-radius: 100%;
    top: 0;
    left: 0;
}

.flip-card-inner{
    position: relative;
    width: 270px;
    height: 270px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    margin: 20px auto;
}

.flip-card:hover .flip-card-inner{
    transform: rotateY(180deg);
}

.flip-card:hover .flip-card-front.album-border:before{
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.flip-card-front, .flip-card-back{
    position: absolute;
    width: 270px;
    height: 270px;
    backface-visibility: hidden;
}

.flip-card-back{
    transform: rotateY(180deg);
}

#progtext{
    box-sizing: border-box;
    height: 270px;
    margin-top: 0px;
    border-radius: 100%;
    text-align: center;
    line-height: 1.5em;
    overflow: hidden;
    font-size: 17px;
    color: white;
    font-weight: 500;
}


.visualizer{
    width: 254px;
    height: 254px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    border-radius: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    -webkit-transform: rotateX(60deg) rotateZ(-30deg);
    transform: rotateX(60deg) rotateZ(-30deg);
    -webkit-animation: rotate 20s infinite linear;
    animation: rotate 20s infinite linear;
    -webkit-animation-play-state: running;
    animation-play-state: running;
}

.visualizer .circle{
    width: 254px;
    height: 254px;
    position: absolute;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    border-radius: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 0px rgba(255,255,255,0.5), inset 0 0 15px rgba(255,255,255,0.4);
}

.visualizer .circle::before, .visualizer .circle::after{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 10%;
    height: 10%;
    border-radius: 100%;
    background: rgba(255,255,255,0.2);
    box-sizing: border-box;
    box-shadow: 0 0 10px 5px rgba(255,255,255,0.6);
}

.visualizer .circle::before {
    -webkit-transform: translateZ(-132px);
    transform: translateZ(-132px);
}

.visualizer .circle::after {
    -webkit-transform: translateZ(132px);
    transform: translateZ(132px);
}

.visualizer .circle:nth-child(1){
    -webkit-transform: rotateZ(72deg) rotateX(63.435deg);
    transform: rotateZ(72deg) rotateX(63.435deg);
}

.visualizer .circle:nth-child(2){
    -webkit-transform: rotateZ(144deg) rotateX(63.435deg);
    transform: rotateZ(144deg) rotateX(63.435deg);
}

.visualizer .circle:nth-child(3){
    -webkit-transform: rotateZ(216deg) rotateX(63.435deg);
            transform: rotateZ(216deg) rotateX(63.435deg);
}

.visualizer .circle:nth-child(4){
    -webkit-transform: rotateZ(288deg) rotateX(63.435deg);
            transform: rotateZ(288deg) rotateX(63.435deg);
}

.visualizer .circle:nth-child(5){
    -webkit-transform: rotateZ(360deg) rotateX(63.435deg);
            transform: rotateZ(360deg) rotateX(63.435deg);
}

@-webkit-keyframes rotate{
    0%{
      -webkit-transform: rotateX(0) rotateY(0) rotateZ(0);
              transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100%{
      -webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
              transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes rotate {
    0%{
      -webkit-transform: rotateX(0) rotateY(0) rotateZ(0);
              transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100%{
      -webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
              transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@-webkit-keyframes stop-rotate {
    0%{
      -webkit-transform: rotateX(0) rotateY(0) rotateZ(0);
              transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100%{
      -webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
              transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}
