@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;500;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mali:wght@300;500&display=swap');
@import url('https://fonts.cdnfonts.com/css/th-sarabun-new-4?styles=21658,21655');
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100&display=swap');


                
@font-face {
  font-family: 'THSarabunNew';
  src: url('font/thsarabunnew-webfont.eot');
  src: url('font/thsarabunnew-webfont.eot?#iefix') format('embedded-opentype'),
       url('font/thsarabunnew-webfont.woff') format('woff'),
       url('font/thsarabunnew-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'THSarabunNew';
  src: url('font/thsarabunnew_bolditalic-webfont.eot');
  src: url('font/thsarabunnew_bolditalic-webfont.eot?#iefix') format('embedded-opentype'),
       url('font/thsarabunnew_bolditalic-webfont.woff') format('woff'),
       url('font/thsarabunnew_bolditalic-webfont.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;

}

@font-face {
  font-family: 'THSarabunNew';
  src: url('font/thsarabunnew_italic-webfont.eot');
  src: url('font/thsarabunnew_italic-webfont.eot?#iefix') format('embedded-opentype'),
       url('font/thsarabunnew_italic-webfont.woff') format('woff'),
       url('font/thsarabunnew_italic-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;

}

@font-face {
  font-family: 'THSarabunNew';
  src: url('font/thsarabunnew_bold-webfont.eot');
  src: url('font/thsarabunnew_bold-webfont.eot?#iefix') format('embedded-opentype'),
       url('font/thsarabunnew_bold-webfont.woff') format('woff'),
       url('font/thsarabunnew_bold-webfont.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;

}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    display: grid;
    font-family: 'Mali', cursive;
    text-align: center;
    /*padding: 2vw;*/
    min-height: 100vh;
    background-color: #f7f7f7;
}

.main {
  position: relative;
  overflow: auto;
  background: url('images/bg.svg');
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
}

.main .popup_music_player{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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);
}

.logo {
  display: contents;
  margin: 20px 0 5px auto;
}

.logo img {
  margin-top: 50px;
  margin-bottom: 30px;
    height: 50px;
    width: 50px;
}
  .sub_section p{
    display: flex;
    margin-top: 0;
    margin-bottom: 1rem;
    align-items: center;
    flex-direction: column-reverse;
  
}


.subject1 {
  margin-top: 15px;
  font-size: 25px;
  font-weight: bold;
  font-style: normal; 
  line-height: 40px;
}

.class1 {
  margin-top: -20px;
  font-size: 22px;
  font-weight: 500;
  line-height: 40px;
}






#audio-player {
    position: fixed;
    bottom: 2vw; 
    left: 0;
    width: 100%;
    height: 8vh; 
    margin-top: 2vw; 
    padding: 1px;
    display: flex;
    align-items: center;
    border-radius: 0;
    background: #FFFFFF;
    transition: 0.4s;
}

#text-container {
  font-family: "Sarabun", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  margin-top: 1vw;
  line-height: 20px;
}



p {
    padding: 5px;
    margin: 5px;
    display: inline-block;
}

p.highlighted {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #B01117;
}

.popup,
.popup2,
.popup3 {
  background: url('images/bg.svg');
  background-repeat: no-repeat;
  background-size: cover;
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #f7f7f7;
    transform: translateY(110%);
    transition: 0.4s;
}

.popup-content {
    background-color: #f7f7f7;
    margin: 5vh auto; 
    padding: 2vw; 
    border: 1px solid #ccc;
    width: 80%; 
    max-width: 600px; 
    border-radius: 2vw; 
    box-shadow: 0 0 2vw rgba(0, 0, 0, 0.2); 
}

.close {
    color: #aaa;
    position: absolute;
    top: -1vw; 
    right: 2vw; 
    font-size: 3vw;
    font-weight: bold;
    z-index: 2; 
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-content h2 {
    font-size: 4vw;
    margin-bottom: 3vw;
}

.song_img {
  transition: transform 0.3s ease;
}

.song_img img {
  margin-top: 60px;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
  display: block; 
  position: sticky;
 
}

#texth2 {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 38px;
  display: flex;
  left: 0;
  right: 0;
  margin-top: 16px;
 text-align: center;
  position: fixed;
  display: inline-block;
}

#texth3 {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 38px;
  display: flex;
  left: 0;
  right: 0;
  margin-top: -15px;
 text-align: center;
  position: fixed;
  display: inline-block;
}



.song_detail {
    text-align: center;
    
}

#song_name,
#song_name2,
#song_name3 {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: rgb(0, 0, 0);
  font-size: 15px;
  padding-left: 0px;
  padding-top: 10px;
}

#line1{
    margin-left: 10px;
}

#line2{
    margin-right: 5px;
}

#line3{
    margin-left: 10px;
}

#line4{
    margin-right: 17px
}

#line5{
    margin-left: 18px;
}

#line6{
    margin-left: 155px;
}

.tracks{
    width: 90%;
    max-height: 75vh;
    overflow-y: scroll;
    padding: 10px 0;
    padding-bottom: 50px;
}
  
.tracks::-webkit-scrollbar {
    display: none;
}
  
.tracks .song:not(:first-child){
      margin-top: 1em;
}
  
.tracks .song{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    color: rgb(22, 22, 22);
    padding: 0 5px;
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0.1px 2px 2px rgba(0,0,0,0.1);
  }
  
  .tracks .song .more{
    margin-left: 1.2em;
    margin-top: 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);
  }
  
  .tracks .song button i{
    margin-top: 3px;
    margin-bottom: auto;
    font-size: 1.8em;
  }
  
  .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;
  }

.small_music_player,
.small_music_player2,
.small_music_player3 {
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-radius: 20px 20px 0px 0px;
    background: #FFFFFF;
    transform: translateY(80px);
    z-index: 1;
  }

.small_music_player p,
.small_music_player2 p,
.small_music_player3 p{
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
    color: rgb(0, 0, 0);
    font-size: 0.9em;
    width: max-content;
    margin-bottom: 10px;
    margin-left: 0;
}

.s_player_img,
.s_player_img2,
.s_player_img3 {

  position: relative;

  width: 60px;
  overflow: hidden;
  border-radius: 5px;
  margin-right: 0.1em;
  margin-left: -5px;
  }

.s_player_img .playing_img img,
.s_player_img2 .playing_img2 img,
.s_player_img3 .playing_img3 img {
  width: 90%;
  height: 90%;
  object-fit: cover;
}

.playing_img,
.playing_img2,
.playing_img3{
    height: 100%;
    width: 100%;
    
}

.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;
  }

#play1_pause_btn,
#play2_pause_btn,
#play3_pause_btn{
    color: #fff;
    position: absolute;
    right: 70px;
    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: #B01117;*/	
  }

  .popup_music_player .song_img{
    height: 200px;
    width: 200px;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .popup_music_player img{
      height: 100%;
      width: 100%;
      object-fit: cover;
  }

  .top{
    width: 100%;
    padding: 10px 20px;
    color: rgb(247, 247, 247);
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    }
  
  
  .top i{
    margin: 0px 0 5px auto;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    color: #6D6E70;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #forward_btn,
  #forward_btn2,
  #forward_btn3,
  #backward_btn,
  #backward_btn2,
  #backward_btn3{
    background-color: #f0f8ff00;
    transform: scale(1.2);
  }


  #forward_btn,
  #forward_btn2,
  #forward_btn3,
  #backward_btn,
  #backward_btn2,
  #backward_btn3 {
    background-color: #f0f8ff00;
  }

  .progress_part{
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .progress_part p{
    color: #6D6E70;
  }
  
  .progress_part .durations{
    width: 81%;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
  } 
  
  .progress_part #slider,
  .progress_part #slider2,
  .progress_part #slider3 {
    width: 80%;
    height: 10px;
    border-radius: 50px 50px 50px 50px;
    border: 3px solid #D0D2D3;
    background-color: #B5B5B5;
  }

  .durations {
    display: flex;
    justify-content: space-between;
    width: 80px;
}

.controls {
  display: block;
    justify-content: center;
    align-items: center;
    position: fixed;
    margin-top: 545px;
    left: 0px;
    width: 100%;
    flex-direction: column;
    z-index: 1000;
    top: 0;
}

.controls_btns button {
    /*background-color: #B01117;*/
    background-position: 5px;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 0.9em;
    transition: 0.5s;
    cursor: pointer;
}

.controls_btns button {
  position: relative;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 0 0.9em;
  transition: 0.5s;
  cursor: pointer;

}

/* Adjust icon size */
.controls_btns button i {
    font-size: 20px;
}

  #slider,
  #slider2,
  #slider3 {
    appearance: none;
    outline: none;
    width: 85%;
    height: 4px;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
  }
  
  #slider::-webkit-slider-thumb,
  #slider2::-webkit-slider-thumb,
  #slider3::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none; 
    height: 30px;
    width: 30px;
    background-color: #EC1C24;
    border: 5px solid #EDECED;
    border-radius: 50%;
    box-shadow: 0px 0px 10px 0px rgba(210, 210, 210);
  }

 

  .fa-step-backward:before {
    content: "\f048";
    color: #BCBEC0;
  }
  
  .fa-step-forward:before {
    content: "\f051";
    color: #BCBEC0;
  }

#up_player,
#up_player2,
#up_player3 {
  background-image: url('images/up.svg');
  position: absolute;
  right: 20px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  color: #6D6E71;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #E0E0E0;
}

#right_player {
  position: absolute;
  right: -15px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  color: #6D6E71;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8em;;
}

img {
  margin-bottom: 0;
}

.circle-button {
  margin-top: 20px;
  display: flex;
  position: relative;
  overflow: hidden;
  border: none;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 17px;
  padding: 0 5px;
  width: 90%;
  height: 100px;
  border-radius: 20px 20px 20px 20px;
  align-items: center;
  box-shadow: 0.1px 2px 2px rgba(0,0,0,0.1);
  z-index: 0;
 
}

.circle-button img {
  max-width: 70px; 
  max-height: 100px; 
  margin: 5px;
}

.circle-button span {
  
  margin-left: 0px;
}

.btns {
  width: 100%;
  display: flex;
  justify-content: center;
 
  z-index: 1000;
}

#btnC {
  margin-bottom: 100px;
}


.hidden {
  display: none;
}

/*#hide_lyrics_btn,
#hide_lyrics_btn2 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 40px; 
  height: 40px; 
  margin-top: 8px;
  margin-bottom: 0px;
  margin-left: 5px 
}

#hide_lyrics_btn:focus,
#hide_lyrics_btn2:focus {
  outline: none;
}

#hide_lyrics_btn img,
#hide_lyrics_btn2 img {
  width: 100%;
  height: 100%;
  transform: none;
}
*/
.enlarged img {
  transform: scale(1.9); 
  transition: transform 0.3s ease; 
  margin-bottom: 140px;
  position: sticky;
  
}

.song_img.enlarged {
  transition: transform 0.3s ease; 
  transform: translateY(40%);
  margin-bottom: -150px;
  
}

#texth2.enlarged {
  margin-top: -20px;
  font-size: 38px;
  position: sticky;
}

#texth3.enlarged {
  margin-top: -20px;
  font-size: 38px;
  position: sticky;
}

#current_duration,
#current_duration2,
#current_duration3, 
#total_duration,
#total_duration2,
#total_duration3 {
  font-family: 'THSarabunNew', sans-serif;
  font-weight: bold;
  font-style: normal;
}


.miniplayer {
  position: fixed;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  transform: translateY(80px);
  bottom: 45px;
  z-index: 2;
}



#sliderMini {
  appearance: none;
  outline: none;
  width: 100%;
  height: 40px;
  position: relative;
  background-color: #EDECED;
}


#sliderMini2 {
  appearance: none;
  outline: none;
  width: 100%;
  height: 40px;
  position: relative;
  background-color: #EDECED;
}


#sliderMini3 {
  appearance: none;
  outline: none;
  width: 100%;
  height: 40px;
  position: relative;
  background-color: #EDECED;
}


#sliderMini::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  width: 30px;
  background-color: #EC1C24;
  border: 5px solid #EDECED;
  border-radius: 50%;
  box-shadow: 0px 0px 10px 0px rgba(210, 210, 210);
}

#sliderMini2::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  width: 30px;
  background-color: #EC1C24;
  border: 5px solid #EDECED;
  border-radius: 50%;
  box-shadow: 0px 0px 10px 0px rgba(210, 210, 210);
}

#sliderMini3::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  width: 30px;
  background-color: #EC1C24;
  border: 5px solid #EDECED;
  border-radius: 50%;
  box-shadow: 0px 0px 10px 0px rgba(210, 210, 210);
}

#down_player,
#down_player2,
#down_player3{
  margin-top: 24px;
  cursor: pointer;
}

.btnUp1 {
  width: 15px;
}



/*PC*/
@media screen and (min-width: 601px) {
  .bottom-position {
    display: block;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-direction: column;
    z-index: 1000;
    left: 0;
    width: 100%;
  }
  .circle-button {
    margin-top: 20px;
    display: flex;
    position: relative;
    overflow: hidden;
    border: none;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-style: normal;
    font-size: 20px;
    padding: 0 5px;
    width: 90%;
    height: 100px;
    border-radius: 20px 20px 20px 20px;
    align-items: center;
    box-shadow: 0.1px 2px 2px rgba(0,0,0,0.1);
  }
}



/*Mobile*/
@media screen and (max-width: 600px) {
  .bottom-position {
    display: block;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position:fixed;
    left: 0;
    width: 100%;
  }
}