@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400&display=swap');

*{
  box-sizing: border-box;  
}

body{
    background : #224941 url(./images/bg.jpg)no-repeat center center/cover;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin:auto;
    height: 300px;
    width: 300px;
    position: relative;
    transform: scale(1);
}

.circle{
    background-color: #010f1c;
    height:100%;
    width: 100%;
    border-radius: 50%;
    position:absolute;
    top:0;
    left:0;
    z-index: -1;
}

.gradient-circle{
    background: conic-gradient(
        #55b7a4 0%,
        #4ca493 40%,
        #fff 40%,
        #fff 60%,
        #336d62 60%,
        #2a5b52 100%
    );
    height: 320px;
    width: 320px;
    z-index: -2;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: -10px;
}

.pointer {
    background-color: #fff;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    display: block;
  }

.pointer-container {
    position: absolute;
    top: -40px;
    left: 140px;
    width: 20px;
    height: 190px;
    animation: rotate 7.5s linear forwards infinite;
    transform-origin: bottom center;
  }

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

      to{
          transform: rotate(360deg);

      }
  }

  /*grow animation */
  .container.grow{
      animation: grow 3s linear forwards;
    
  }

  @keyframes grow{
    from{
        transform:scale(1) ;
    }

    to {
        transform: scale(1.2);
    }
  }

   /*shrink animation */
   .container.shrink{
    animation: shrink 3s linear forwards;
  
}

@keyframes shrink{
  from{
      transform:scale(1.2) ;
  }

  to {
      transform: scale(1);
  }
}

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

}

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

.img-container img {
    border-radius: 50%;
    object-fit: cover;
    height:110px;
    width: inherit;
    position: absolute;
    bottom:0;
    left:0;
    animation: rotate 10s linear infinite;

    animation-play-state: paused;
}

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

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

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

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

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

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

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

.music-info{
    background-color: rgba(255,255,255,0.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: transform 0.3s ease-in, opacity 0.3s  ease-in;
    z-index: 0;
}

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

.music-info h4{
    margin:0;
}

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

.progress{
    background-color: #010f1c;
    border-radius:5px;
    height: 100%;
    width: 0%;
    transition: width 0.1 linear;
}

