@import url('https://fonts.googleapis.com/css2?family=Mali:wght@300;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;500;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

@font-face {
  font-family: 'FZKai-Z03S';
  src: url('font/FZKai-Z03S.TTF') format('truetype');
 
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'FZLANTY';
  src: url('font/FZLANTY.TTF') format('truetype');
 
  font-weight: normal;
  font-style: normal;
}


    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Mali', cursive;
    }
    body{
        display: grid;
        place-items: center;
        min-height: 100vh;
    }


nav{
    display: flex;
    height: auto;
    background: #fff;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

.nav-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    display: inline-block;
    cursor: pointer;
}

.logo {
    margin: 20px 0 5px 0;
}

    .main{
        position: relative;
        overflow: hidden;
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        flex-direction: column;
        border-radius: 0px;
        background: linear-gradient(to bottom right,#ffffff,#f4f5f6);
        box-shadow: 0.1px 4px 8px 4px rgba(0,0,0,0.5);
    }

    .logo img{
      height: 50px;
      width: 50px;
  }

    /*top_section*/
    .top_section h5{
      color: #fff;
      font-size: 1.4em;
      font-family: "FZLANTY", sans-serif;
      /*font-family: 'Mali', cursive;*/
      font-weight: bold;
      background-color: #64BAE9;
      /*background-color: #F45162;*/
      width: 20rem;
      height: 2.5rem;
      margin: auto;
      line-height: 2.0;
      text-align: center;
      margin-bottom: 10px;
      border-radius: 20px;
  }

  .sub_section h4{
    margin-top: -5px;
    line-height: 1.5;
    color: rgb(0, 0, 0);
    font-size: 1.5em;
    /*
    font-family: "FZLANTY", sans-serif;
    font-family: 'Mali', cursive;
    text-align: center;*/
}

.sub_section h5{

  font-size: 1.8em;

}

.sub_section .span1 {
  color: rgb(0, 0, 0);
    font-size: 1.5em;
    text-align: center;
}

.top_section{
  margin: 1em 0;
}

#title2 {
  font-family: "FZKai-Z03S", sans-serif;
  font-size: 1.1em;
  color: #161616;
  margin-top: -10px;
  margin-bottom: 0;
}

/*
    .top_section .topHeader {
      color: #F45162;
      font-size: 2em;
      font-weight: bold;
    }
    */


.song_info {
  font-size: 1.2em;
  margin-top: 15px;
 }

 /*.song_description {
  font-size: 1.3em;
  text-align: center;
 }*/

 .song_detail {
  font-size: 1.2em;
 }

  /*tracks part*/
.tracks{
    width: 90%;
    max-height: 75vh;
    overflow-y: scroll;
    padding: 10px 0;
    padding-bottom: 80px;
  }
  .tracks::-webkit-scrollbar {
    display: none;
  }
  .tracks .song:not(:first-child){
    margin-top: 1em;
  }
  .tracks .song{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgb(22, 22, 22);
    padding: 0 5px;
    border-radius: 0 20px 20px 20px;
    box-shadow: 0.1px 2px 2px rgba(0,0,0,0.1);
  }
  .tracks .song .more{
    margin-left: 1.2em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .tracks .song .song_info p:nth-child(2){
    font-size: 0.8em;
    margin-top: 10px;
    color: rgba(29, 29, 29, 0.5);
  }
  .tracks .song  #play_btn{
    height: 50px;
    width: 50px;
    border:none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: none;
    color: rgb(134, 134, 134);
    box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
              inset -5px -5px 15px rgba(255,255,255,0.1),
              -5px -5px 15px rgba(255,255,255,0.1);
  }
  .tracks .song button i{
              font-size: 1.5em;
  }
  .tracks .song:not(:first-child){
              margin-top: 15px;
  }
  .tracks .song .img{
    height: 70px;
    width: 80px;
    overflow: hidden;
    border-radius: 15px;
  }
  .tracks .song .img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /*controlls part*/
.controlls{
    width: 75%;
    margin-top: 2.5em;
}
.progress_part{
     width: 100%;
     margin-bottom: 2em;
     display: flex;
     align-items: center;
     flex-direction: column;
     justify-content: space-between;
}
.progress_part p{
color: #fff;
}
.progress_part .durations{
width: 100%;
margin-top: 10px;
display: flex;
justify-content: space-between;
} 
.progress_part #slider{
width: 100%;
}
.controlls_btns{
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.controlls_btns button{
height: 50px;   
width: 50px;   
border: none;
outline: none;
cursor: pointer;
margin: 0 0.5em;
background: none;
transition: 0.5s;
border-radius: 50%;
}
.controlls_btns button:hover{	
box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
     inset -5px -5px 15px rgba(255,255,255,0.1),
     5px 5px 15px rgba(0,0,0,0.3),
     -5px -5px 15px rgba(255,255,255,0.1);
}
.controlls_btns button i{
font-size: 1.3em;
}

.controlls_btns button:nth-child(2){
border-radius: 50%;
box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
     inset -5px -5px 15px rgba(255,255,255,0.1),
     5px 5px 15px rgba(0,0,0,0.3),
     -5px -5px 15px rgba(255,255,255,0.1);
}
.controlls_btns button i{
color: #fff;
margin-left: 2px;
margin-top: 5px;
}

.small_music_player button i {
  margin-left: 3px;
  margin-top: 2px;
}


  /*controlls_play part*/
  .controlls{
    width: 75%;
    margin-top: 2.5em;
}

.controlls_play_btns{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  }
  .controlls_play_btns button{
  height: 45px;   
  width: 45px;   
  border: none;
  align-items: center;
  outline: none;
  cursor: pointer;
  margin: 0 3em;
  background: none;
  transition: 0.5s;
  border-radius: 50%;
  }
  .controlls_play_btns button:hover{	
  box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
       inset -5px -5px 15px rgba(255,255,255,0.1),
       5px 5px 15px rgba(0,0,0,0.3),
       -5px -5px 15px rgba(255,255,255,0.1);
  }
  .controlls_play_btns button i{
  font-size: 1.0em;
  align-items: center;
  }
  
  .controlls_play_btns button:nth-child(1){
  border-radius: 50%;
  box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
       inset -5px -5px 15px rgba(255,255,255,0.1),
       5px 5px 15px rgba(0,0,0,0.3),
       -5px -5px 15px rgba(255,255,255,0.1);
  }
  .controlls_play_btns button i{
  color: #fff;
  }

/*range slider*/
#slider{
    -webkit-appearance: none;
    outline: none;
    width: 85%;
    height: 4px;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
  }
  input[type=range]::-webkit-slider-thumb{
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    background: #673AB7;
    box-shadow: 0.1px 8px 8px 2px rgba(0,0,0,0.2) inset,
                  0.1px 8px 8px 2px rgba(0,0,0,0.2);
  }

  /*popup_music_player part*/
.main .popup_music_player{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #64BAE9;
    padding: 5px;
    z-index: 1000;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 15px 15px 0 0;
    transform: translateY(110%);
    transition: 0.4s;
    box-shadow: 0.1px 4px 8px 4px rgba(0,0,0,0.5);
  }

  /*top*/
.top{
    width: 100%;
    padding: 10px 20px;
    color: rgb(247, 247, 247);
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
  }
  .top p{
    font-family: 'Mali', cursive;
  }
  .top i{
    height: 30px;
    width: 30px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  background: rgba(122, 41, 41, 0.1);
  }
  .popup_music_player .song_img{
  margin-top: 2em;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
              inset -5px -5px 15px rgba(255,255,255,0.1),
              5px 5px 15px rgba(0,0,0,0.3),
              -5px -5px 15px rgba(255,255,255,0.1);
  }
  .popup_music_player img{
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .song_description{
    margin-top: 2em;
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .song_description h3{
    font-size: 1.5em;
    text-align: center;
    line-height: 35px;
    color: rgb(255, 255, 255);
  }
  .song_description p{
    color: rgb(223, 222, 222);
    margin-top: 5px;
  }
  
  /*small music player*/
  .small_music_player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-radius: 0;
    background: #64BAE9;
    transition: 0.4s;
    transform: translateY(80px);
    
  }

  .s_player_img{
    position: relative;
    height: 50px;
    width: 50px;
    overflow: hidden;
    border-radius: 50px;
    margin-right: 1em;
    box-shadow: rgb(0 0 0 / 30%) 0.1px 4px 8px 5px;
  }

  .playing_img{
    height: 100%;
    width: 100%;
    opacity: 0.8;
  }
  .small_music_player p{
    color: rgb(255, 255, 255);
    font-size: 0.9em;
    width: max-content;
    margin-bottom: 0;
    margin-left: 0;
  }
  .s_player_img .playing_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #up_player{
    position: absolute;
    right: 20px;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255,255,255,0.1);	
  }

  #play1_pause_btn{
    color: #fff;
    position: absolute;
    right: 60px;
    height: 40px;
    width: 40px;
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
    transition: 0.5s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255,255,255,0.1);	
    box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2),
                          inset -5px -5px 15px rgba(255,255,255,0.1),
                                    5px 5px 15px rgba(0,0,0,0.3),
                                  -5px -5px 15px rgba(255,255,255,0.1);
  }
  
  #artist_name{
    font-size: 0.2em;
    margin-top: 5px;
    color: rgba(245, 245, 245, 0.966);
  }
  
  
  /*wave animation*/
  .wave_animation{
    height: 60px;
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    opacity: 0;
  }
  .wave_animation li{
    list-style: none;
    width: 5px;
    margin: 0 3px;
    border-radius: 15px;
    background: rgba(255,255,255,0.4);
    animation: animate 0.5s linear alternate infinite;
              
  }
  .wave_animation li:nth-child(2){
    animation-delay: 0.4s;
  }
  .wave_animation li:nth-child(3){
    animation-delay: 1s;
  }
  .wave_animation li:nth-child(4){
    animation-delay: 0.4s;
  }
  .wave_animation li:nth-child(5){
    animation-delay: 1s;
  }
  
/*PC*/
@media screen and (min-width: 601px) {
  .song_info {
    font-size: 1.2em;
    margin-top: 15px;
   }
   .song_detail {
    font-size: 1.2em;
   }

  }


/*Mobile*/
@media screen and (max-width: 600px) {
  .song_info {
    font-size: 0.9em;
    margin-top: 15px;
   }
   #title2 {
    font-size: 1.1em;
   }
   .song_detail {
    font-size: 0.9em;
   }
   .tracks .song .more{
    margin-left: 0.5em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .song_description h3{
    font-size: 1.3em;
    text-align: center;
    line-height: 35px;
    color: rgb(255, 255, 255);
  }
  .sub_section h4{
    font-size: 1.3em;
  }
  .sub_section h5{
    font-size: 1.5em;
  }
}

  
  /*animation*/
  @keyframes animate {
    0%{
      height: 0px;
    }
    100%{
      height: 20px;
    }
  }

  /*Dev Ideas*/
  
    /*end*/
    /*@media screen and (min-width:576px){
    
        body {
            background-color:#f5f6f7;
            font-family: Arial, Helvetica, sans-serif;
            height: 100vh;
            margin: 0;
            padding: 0;
        }
    
        nav{
            display: flex;
            height: auto;
            background: #fff;
            justify-content: center;
            align-items: center;
            position: relative;
            flex-direction: column;
        }
    
        .nav-toggle {
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 30px;
            display: inline-block;
            cursor: pointer;
        }
    
        .logo {
            margin: 20px 0 5px 0;
        }
    
        ul {
            flex-direction: column;
            justify-content: center;
            padding-left: 0;
            display: none;
        }
    
        ul li {
            list-style-type: none;
            font-size: 15px;
            cursor: pointer;
            margin: 20px;
            text-align: center;
            border-bottom-style: solid;
            border-bottom-color: #ccc;
            border-bottom-width: 1px;
            padding: 5px 50px;
        }
    
        ul li a {
            text-decoration: none;
            color: #333;
        }
    
        ul li :first-child {
            margin-top: 0;
        }
        
        ul li :hover {
            opacity: 0.5;
        }
        
        .active {
            display: flex;
        }

        .player ul{
            width:100%;
            outline: none;
    
        }
        .player ul audio{
            width:100%;
            outline: none;
    
        }
        .player audio{
            width: 100%;
            outline: none;
        }
        audio{
            width: 100%;
            outline: none;
        }
        .div audio{
            width: 100%;
            outline: none;
        }
        
        
    }
    /*end*/
    
    
    /*@media screen and (min-width:800px){}
    @media screen and (min-width:768px){
        div {color:rgb(255, 255, 255);}
        body {background-color: rgb(121, 74, 250);}
    }/*tablate Medium*/
    /*
    @media screen and (min-width:992px){
        div {color:rgb(255, 255, 255);}
        body {background-color: rgb(121, 74, 250);}
    }/*tablate Large*/
    /*
    @media screen and (min-width:1200px){
        div {color:rgb(255, 255, 255);}
        body {background-color: rgb(121, 74, 250);}
    }/*PC X-Large*/