
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: rgb(210, 130, 157); */
}

.music-player {
    width: 600px;
    height: 550px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.56);
    padding: 30px;
    overflow: hidden;
    color: black;

}


.music-player {
  /* transform: perspective(800px) rotateY(200deg) scale(3) rotateX(10deg); */
  filter: blur(10px);
  opacity: 0.5;
  transition: 1.3s ease all;
}

    .music-player:hover {
        transform:
        perspective(1500px)
        rotateY(15deg)
        translateY(-20px)
        rotateX(7deg)
        scale(1);
        filter: blur(0);
        opacity: 1;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.562);
        border: 1px dashed;
        text-shadow: 0 1px 50px rgba(255, 255, 255, 0.832);
;
    }




.music-name,
.artist-name {
    text-align: center;
    text-transform: lowercase;
}

.music-name {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 10px;
}

.artist-name {
    font-size: 20px;
}

.disk {
    position: relative;
    display: block;
    margin: 40px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: black;
    background-image: url('images/fancythat-cover.jpg');
    background-size: cover;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
    animation: rotate 120s linear infinite;
    animation-play-state: paused;
}

.disk.play {
    animation-play-state: running;
}

.disk::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background:rgb(0, 0, 0);
}

.song-slider {
    width: 100%;
    position: relative;
}

.seek-bar {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 10px;
    background: rgba(81, 81, 81, 0.525);
    overflow: hidden;
    cursor: pointer;
}

.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1px;
    height: 20px;
    box-shadow: -400px 0 0 400px rgb(0, 0, 0);
}

.current-time,
.song-duration {
    font-size: 14px;
}

.song-duration{
    position: absolute;
    right: 0;
}

.controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:auto;
    margin-top: 20px;
}

.play-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background: none;
    cursor: pointer;
    border: none;
}

.play-btn span {
    position: absolute;
    top:50%;
    left: 27%;
    transform: translateY(-50%);
    width: 10px;
    height: 30px;
    border-radius: 2px;
    background: rgb(0, 0, 0);
    transition: 0.5s;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.play-btn span:nth-child(2) {
    left: 57%;
    transform-origin: center;
}

.play-btn.pause span:nth-child(2) {
    transform: translateY(-50%) scaleY(0);
}

.play-btn.pause span:nth-child(1) {
    width: 35%;
    left: 53%;
    transform: translate(-50%, -50%);
    border-radius: 0;
    clip-path: polygon(0 0, 100% 50%, 100% 50%, 0% 100%);
}

.play-btn.pause {
    animation: pulse 2s linear infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0;
    }
    50% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.4);
    }
}

.btn {
    width: 30px;
    height: 30px;
    background: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
}

.btn img {
    width: 20px;
    height: 20px;
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    10% {
        transform: rotate(360deg);
    }
}


.backImg {
    background-image: url('images/fancythat-cover.jpg');
    background-size: 800px;
    background-repeat:repeat;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    filter: blur(20px)
}
