@font-face {
    font-family: 'Montserrat';
    src: url(Montserrat-VariableFont_wght.ttf);
}
@font-face {
    font-family: 'Karla';
    src: url(Karla-VariableFont_wght.ttf);
}
@font-face {
    font-family: 'Shadows';
    src: url(ShadowsIntoLight-Regular.ttf);
}
@font-face {
    font-family: 'Rocksalt';
    src: url(RockSalt-Regular.ttf);
}
@font-face {
    font-family: 'Lexend';
    src: url(Lexend-VariableFont_wght.ttf);
}
@font-face {
    font-family: 'Inter';
    src: url(Inter_VariableFont_opsz_wght.ttf);
}
@font-face {
    font-family: 'Source Sans';
    src: url(SourceSans3-VariableFont_wght.ttf);
}

.loader {
    border: 7px solid #333333;
    border-radius: 50%;
    border-top: 7px solid #3e8ed0;
    width: 48px;
    height: 48px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
    }

    /* Safari */
    @-webkit-keyframes spin {
      0% { -webkit-transform: rotate(0deg); }
      100% { -webkit-transform: rotate(360deg); }
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    #lyrics {
      position: absolute;
      top: 0px;
      left: 0px;
      width: 90%;
      height: 100%;
      opacity: 98%;
      background: #111111;
      color: #ffffff;
      padding: 5%;
    }
    .player-container {
        width: 500px;
        padding: 0px 3px 3px 3px;
        background: #111111;
        border-radius: 2px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }
    .audio-container {
        color: #ffffff;
        font-size: 16pt;
        background: #111111;
        padding: 12px;
        height: 142px;
        border-bottom: 1px solid #3e8ed0;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    .audio-player {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #101010;
        padding: 10px;
        width: 300px;
        position: relative;
    }
    .header-container {
        display: flex;
        width: 95%;
        align-items: center;
    }
    #infoParagraph {
    margin-left: 12px; 
    margin-right: 12px;  
    width: 274px; 
    height: 52px;
    letter-spacing: 1px;
    font-family: 'Karla', serif;
    font-weight: 300;
    }
    .icons {
        display: flex;
        flex-direction: column;
        height: 90px;
        justify-content: space-between;
    }
    .play-btn,
    .volume-btn {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        transition: color 0.3s ease;
    }
    
    .play-btn:hover,
    .volume-btn:hover {
        color: #ff5722;
    }
    
    .progress-bar {
        flex: 1;
        margin: 0 10px;
    }
    
    .volume-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        transition: 0.2s;
    }
    
    .volume-control {
        width: 0px; /* Hidden by default */
        height: 10px;
        opacity: 0;
        z-index: 1;
        transition: 0.2s;
        background: #444;
    }
    
    .volume-container:hover .volume-control {
        width: 48px;
        opacity: 1;
    }
    
    .progress-bar {
        -webkit-appearance: none;
        background: linear-gradient(to right, #444 0%, #444 100%);
        height: 5px;
        border-radius: 5px;
    }
    
    .progress-bar::-webkit-slider-thumb {
        -webkit-appearance: none;
        background: #3e8ed0;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        cursor: pointer;
    }
    
    .progress-bar::-moz-range-thumb {
        background: #3e8ed0;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        cursor: pointer;
    }
    
    .volume-control {
        -webkit-appearance: none;
        background: #fff;
        height: 5px;
        border-radius: 5px;
    }
    
    .volume-control::-webkit-slider-thumb {
        -webkit-appearance: none;
        background: #3e8ed0;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        cursor: pointer;
    }
    
    .volume-control::-moz-range-thumb {
        background: #3e8ed0;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        cursor: pointer;
    }
    .button {
        margin: 0px 0px 0px 12px;
      background: none;
      box-sizing: border-box;
      height: 22px;
      
      border-color: transparent transparent transparent #ffffff;
      transition: 100ms all ease;
      cursor: pointer;
      border-style: solid;
      border-width: 11px 0px 11px 18px;
      
    }
    .paused {
        margin: 0px 0px 0px 12px;
        transition: 100ms all ease;
        background: none;
      box-sizing: border-box;
      height: 22px;
        border-style: double;
        border-color: transparent transparent transparent #ffffff;
        border-width: 0px 0 0px 18px;
        cursor: pointer;
    }
    #itemlist {
        margin: 0px;
        padding: 0px;
        height: 200px;
        overflow-x: hidden;
    }
    #itemlist li {
        list-style-type: none;
        color: #ffffff;
        padding: 12px 0px 12px 12px;
        border-bottom: 1px solid #222222;
        text-decoration: none;
        cursor: pointer;
        letter-spacing: 1px;
        font-family: 'Inter', serif;
        font-weight: 300;
    }
    #itemlist  li:hover {
        background: #222222 !important;
    }
    
    /* width */
    ::-webkit-scrollbar {
      width: 10px;
    }
    
    /* Track */
    ::-webkit-scrollbar-track {
      background: #111111; 
    }
     
    /* Handle */
    ::-webkit-scrollbar-thumb {
      background: #333; 
    }
    
    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
      background: #555; 
    }
    @media (min-width: 481px) and (max-width: 768px) {
    #desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    }
    #main-container {
    justify-content: center;
    flex-direction: column;
    }
    }
    @media (max-width: 480px) {
    #desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    }
    #main-container {
    justify-content: center;
    flex-direction: column;
    }
    .player-container {
        width: 280px;
        padding: 0px 3px 3px 3px;
        background: #111111;
        border-radius: 2px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }
    .image-container {
    display: none;
    }
    .audio-container {
        color: #ffffff;
        font-size: 12pt;
        background: #111111;
        padding: 6px;
        height: 142px;
        border-bottom: 1px solid #3e8ed0;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    .audio-player {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #111111;
        padding: 10px;
        width: 95%;
        position: relative;
    }
    .header-container {
        display: flex;
        width: 95%;
        align-items: center;
    }
    #infoParagraph {
    margin-left: 12px; 
    margin-right: 12px;  
    width: 220px; 
    height: 52px;
    }
    .volume-container {
        display: none;
        flex-direction: row;
        align-items: center;
        transition: 0.2s;
    }
    
    .volume-control {
        display: none;
    }
    #itemlist {
        margin: 0px;
        padding: 0px;
        height: 200px;
        overflow-x: hidden;
    }
    #itemlist li {
        list-style-type: none;
        color: #ffffff;
        padding: 12px 0px 12px 12px;
        border-bottom: 1px solid #222222;
        text-decoration: none;
        font-size: 12px;
        cursor: pointer;
        letter-spacing: 1px;
        font-family: 'Inter', serif;
        font-weight: 300;
    }
    
    }