@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(
    0deg,rgba(247, 247, 247, 1) 23.8%, rgba(252, 221, 221, 1) 92%
    );
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Lato', sans-serif;
    margin: 0;
}

h1, h2, h3, h4 {
    margin: 0;
}

.music-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 20px 0 rgba(252, 169, 169, .6);
    display: flex;
    padding: 20px 30px;
    position: relative;
    margin: 130px 0;
    z-index: 10;
}

.img-container::after {
    content: '';
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    width: 25px;
    height: 25px;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);


}

.img-container {
    position: relative;
    width: 110px;
}

.img-container img {
    border-radius: 50%;
    object-fit: cover;
    height: 110px;
    width: inherit;
    position: absolute;
    /*top: -80px;*/
    /*left: 0;*/
    bottom: 0;
    left: 0;

    animation: rotate 3s linear infinite;
    animation-play-state: paused;
}

.music-container.play .img-container img {
    animation-play-state: running;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.action-btn {
    background-color: #fff;
    color: #dfdbdf;
    border: 0;
    font-size: 20px;
    padding: 10px 20px;
    margin: 0 20px;
    cursor: pointer;
}

.action-btn.action-btn-big {
    color: #cdc2d0;
    font-size: 30px;
}

.action-btn:focus {
    outline: 0;
}

.music-info {
    background-color: rgba(255, 255, 255, .5);
    border-radius: 15px 15px 0 0;
    position: absolute;
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    padding: 10px 10px 10px 150px;
    opacity: 0;
    transform: translateY(0%);
    transition: opacity .3s ease-in, transform .3s ease-in;
    z-index: 0;
}

.music-container.play .music-info {
    opacity: 1;
    transform: translateY(-100%);
}

.progress-container {
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    height: 4px;
    width: 90%;
    margin: 10px 0;
}

.progress {
    background-color: #fe8eaa;
    border-radius: 5px;
    height: 100%;
    width: 0;
    transition: width .1s linear;
}

























