@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");
/* General Styles */
:root {
    --background-color: #2e2e2e; /* Dunkles Grau für Hintergrund */
    --header-background: #3c3c3c; /* Etwas helleres Grau für den Header */
    --border-color: #666666; /* Graue Borderfarbe */
    --progress-fill: #b0b0b0; /* Helleres Grau für Fortschrittsbalken-Füllung */
    --hover-background: #3c3c3c; /* Dunkleres Grau beim Hover über Playlist-Items */
    --input-background: #4c4c4c; /* Grauer Hintergrund für Eingabefelder */
    --input-text: #e0e0e0; /* Heller Text in den Eingabefeldern */
    --text-color: #e0e0e0; /* Hellerer Textfarbe */

    --header-height: 0.76rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --white-color: hsl(210, 32%, 99%);
    --text-color: hsl(210, 4%, 55%);
    --dark-color-light: hsla(210, 4%, 4%, .1);
    --white-color-light: hsla(210, 4%, 99%, .1);
    --gradient-x: linear-gradient(90deg,
    hsla(0, 0%, 0%, 0),
    hsl(210, 4%, 64%),
    hsla(0, 0%, 0%, 0));
    --gradient-y: linear-gradient(0,
    hsla(0, 0%, 0%, 0),
    hsl(210, 4%, 64%),
    hsla(0, 0%, 0%, 0));
  
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
  
    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
  
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

p{
    text-align:justify;
}

a {
    color: white;
    text-decoration: none;
    text-align: center;
}

a:hover{
    text-decoration: underline;
    color: #ad49ff;
}

.container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-items: center;
    
}

.player {
    width: 60%;
    max-width: 500px;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 20px;
    color: var(--text-color);
    position: relative;
}

.img-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px; /* Anpassbar je nach gewünschter Größe */
    width: 300px; /* Anpassbar je nach gewünschter Größe */
    margin: 0 auto; /* Zentriert den Container horizontal */
    overflow: hidden;
}

.img-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.playing {
    animation: rotate 10s linear infinite;
}


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.song-details {
    text-align: center;
    margin: 10px 0;
}
.name{
    color: white;
}

/* Fortschrittsbalken */
/* Fortschrittsbalken */
/* Fortschrittsbalken */
.progress-area {
    width: 100%;
    position: relative;
    margin-top: 10px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 10px; /* Höhe der Progress Bar */
    background-color: #444; /* Dunkler Hintergrund für die leere Progress Bar */
    border-radius: 5px; /* Abgerundete Ecken */
    overflow: hidden; /* Damit die abgerundeten Ecken korrekt angezeigt werden */
}

.progress-bar .progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #a331ff; /* Farbe des Fortschritts */
    width: 0%; /* Initiale Breite, wird durch JavaScript aktualisiert */
    transition: width 0.2s ease; /* Sanfter Übergang bei Fortschrittsänderung */
}

.progress-bar .progress-bar-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    /* Stellt sicher, dass der Handler gut sichtbar ist */
}

.song-timer {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: #fff; /* Weißer Text für bessere Lesbarkeit */
    margin-top: 5px;
    margin-bottom: 5px;
}




.volume {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen den Elementen */
    padding:5px;
}


#volume_show {
    font-size: 16px;
    padding: 5px;
    color: #ffffff; /* Weißer Text */
    text-align: left;
}

#volume_show {
    font-size: 16px;
    padding: 5px;
    color: #ffffff; /* Weißer Text */
}

#volume_icon {
    font-size: 20px; /* Größe des Icons */
    color: #ffffff; /* Weiße Farbe */
    cursor: pointer;
    transition: color 0.3s ease;
}

#volume_icon:hover {
    color: #a331ff; /* Farbe beim Hover-Effekt */
}

#volume {
    -webkit-appearance:none;/* Entfernt die Standard-Stilierung des Sliders in Webkit-Browsern */
    width: 100px; /* Breite des Lautstärkereglers */
    
    height: 5px; /* Höhe des Schiebereglers */
    background: #ccc; /* Hintergrundfarbe des Schiebereglers */
    border-radius: 5px; /* Abgerundete Ecken */
    cursor: pointer; /* Zeiger-Cursor */
    outline: none; /* Entfernt die Umrandung beim Fokussieren */
    transition: background 0.3s ease; /* Sanfter Übergang beim Ändern der Hintergrundfarbe */
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none; /* Entfernt die Standard-Stilierung des Schiebereglers in Webkit-Browsern */
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
            box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    width: 20px; /* Breite des Schiebereglers */
    height: 20px; /* Höhe des Schiebereglers */
    background: #a331ff; /* Hintergrundfarbe des Schiebereglers */
    border-radius: 50%; /* Rundes Design */
    cursor: pointer; /* Zeiger-Cursor */
    transition: background 0.3s ease; /* Sanfter Übergang beim Ändern der Hintergrundfarbe */
}

#volume::-webkit-slider-thumb:hover {
    background: #a331ff; /* Farbe des Schiebereglers beim Hover-Effekt */
}

#volume::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #a331ff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

#volume::-moz-range-thumb:hover {
    background: #a331ff;
}


.volume p {
    margin: 0;
    font-size: 14px;
}

.volume i {
    font-size: 18px;
    color: #fff; /* Weiß für das Lautstärkesymbol */
    cursor: pointer;
}

.volume input[type="range"] {
    -webkit-appearance: none; /* Entfernt Standard-Stil auf WebKit-Browsern */
    width: 100px; /* Breite der Lautstärkeregelung */
    height: 6px; /* Höhe der Lautstärkeregelung */
    background: #444; /* Dunkler Hintergrund für die leere Lautstärkeregelung */
    border-radius: 3px; /* Abgerundete Ecken */
    outline: none; /* Entfernt Standard-Outline */
    cursor: pointer;
    position: relative;
}



.volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Entfernt Standard-Stil auf WebKit-Browsern */
    width: 18px; /* Breite des Schiebereglers */
    height: 18px; /* Höhe des Schiebereglers */
    background: #a331ff; /* Farbe des Schiebereglers */
    border-radius: 50%; /* Runde Form */
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Leichter Schatten für bessere Sichtbarkeit */
}

.volume input[type="range"]::-moz-range-thumb {
    width: 18px; /* Breite des Schiebereglers */
    height: 18px; /* Höhe des Schiebereglers */
    background: #a331ff; /* Farbe des Schiebereglers */
    border-radius: 50%; /* Runde Form */
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Leichter Schatten für bessere Sichtbarkeit */
}

.volume input[type="range"]::-ms-thumb {
    width: 18px; /* Breite des Schiebereglers */
    height: 18px; /* Höhe des Schiebereglers */
    background: #a331ff; /* Farbe des Schiebereglers */
    border-radius: 50%; /* Runde Form */
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Leichter Schatten für bessere Sichtbarkeit */
}


.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Abstand zwischen den Steuerungselementen */
    margin-top: 10px;
}

.controls i {
    font-size: 24px; /* Größe der Icons */
    color: #ffffff; /* Weiß als Grundfarbe */
    cursor: pointer; /* Zeiger als Cursor, um die Klickbarkeit anzuzeigen */
    transition: color 0.3s ease, transform 0.3s ease; /* Übergangseffekte für Farbe und Transform */
}

.controls i:hover {
    color: #a331ff; /* Farbe beim Hover-Effekt */
    transform: scale(1.5); /* Vergrößert das Icon beim Hover-Effekt */
}

.play-pause {
    display: flex;
    gap: 10px; /* Abstand zwischen Play und Pause-Button */
}

.play-pause .play, .play-pause .pause {
    font-size: 30px; /* Größere Schriftgröße für Play/Pause */
    color: #ffffff; /* Weiß als Grundfarbe */
    cursor: pointer; /* Zeiger als Cursor */
}

.play-pause .play:hover, .play-pause .pause:hover {
    color: #a331ff; /* Farbe beim Hover-Effekt */
    transform: scale(1.2); /* Vergrößert das Icon beim Hover-Effekt */
}

/* Optionale Stile für zusätzliche Steuerungselemente */
#shuffle, #repeat-plist, #prev, #next, #more-music {
    font-size: 24px;
}

.music-list {
    width: 340px;
    height: 525px;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    position:fixed;
    margin-left: 530px;
    margin-top: 120px;
}

.music-list .ml-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert den gesamten Inhalt horizontal */
    position: relative;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    font-weight: bold;
}


.music-list .ml-header input {
    border: none;
    border-radius: 4px;
    padding: 5px;
    background: var(--input-background);
    color: var(--input-text);
    
}

.music-list .ml-header {
    cursor: pointer;
}

.music-list .playlist-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.music-list .playlist-content li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.music-list .playlist-content li:hover {
    background: var(--hover-background);
}

.music-list .playlist-content .row {
    display: flex;
    flex-direction: column;
}

.music-list .playlist-content .row span {
    font-weight: bold;
}

.music-list .playlist-content .row p {
    font-size: 0.8em;
    color: var(--text-color);
}

.footer {
    position: fixed;
    list-style: none;
    bottom: 0;       /* Positioniere den Footer unten */
    left: 0;         /* Positioniere den Footer links */
    width: auto;     /* Passe die Breite an den Inhalt an */
    font-size: 12px;
    color: white;
    padding: 10px;
}


/* Stile für die Musiksteuerungen */
.music-controls {
    display: flex;
    flex-direction: column;
    height: 105px;
    width: 340px;
    margin-bottom: 15px; /* Abstand zur Playlist */
    padding: 10px;
    background-color: #333; /* Optionaler Hintergrund */
    border-radius: 8px; /* Abgerundete Ecken */
    position:relative;
    margin-bottom: auto;
    margin-left: 30px;
}

#shuffle.active {
    color: #a331ff; /* Textfarbe */
}


/* Stile für die Suchleiste */
.search-bar {
    margin-bottom: 10px; /* Abstand zu den Album-Buttons */
    color: #e0e0e0;
}

.search-bar input {
    width: 100%;
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #333;
    font-size: 16px;
    background-color: #4c4c4c;
    color: #fff; /* Weiße Textfarbe */
    z-index: 3; /* Sicherstellen, dass die Suchleiste über der Playlist bleibt */
    position: relative;
}

/* Stile für die Album-Buttons */
.album-buttons {
    display: flex;
    gap: 10px;
}

.album-buttons button {
    padding: 4px 7px;
    border-radius: 5px;
    border: none;
    background-color: #3c3c3c;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.album-buttons button:hover {
    background-color: #a331ff;
}

/* Die Playlist bleibt darunter */
#playlist {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-left:0px;
    position:relative;
}

#playlist li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer;
}

#playlist li:hover {
    background-color:#4c4c4c;
}


.download-button {
    display: inline-block;
    margin-top: 0px;
    padding: 4px 7px;
    background-color: #3c3c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    list-style: none;
}

/* Responsive Styles für Mobilgeräte */
@media (max-width: 991.98px) {
    #sidebar {
        transform: translateX(-100%); /* Sidebar wird ausgeblendet */
    }

    #sidebar.show {
        transform: translateX(0); /* Sidebar wird eingeblendet */
    }

    main {
        margin-left: 0; /* Kein Platz für Sidebar in mobiler Ansicht */
    }

    .menu-toggle {
        display: inline-block; /* Hamburger-Button sichtbar auf mobilen Geräten */
    }

    .download-button {
        display: inline-block;
        margin-top: 0px;
        padding: 4px 7px;
        background-color: #3c3c3c;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        list-style: none;
    }

    .music-list {
        width: 250px;
        height: 525px;
        background: var(--background-color);
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        position:fixed;
        margin-left: 450px;
        margin-top: 120px;
    }
    
    .music-list .ml-header {
        display: flex;
        align-items: center;
        justify-content: center; /* Zentriert den gesamten Inhalt horizontal */
        position: relative;
        padding: 10px 20px;
        background-color: #333;
        color: #fff;
        font-weight: bold;
    }
    
    
    .music-list .ml-header input {
        border: none;
        border-radius: 4px;
        padding: 5px;
        background: var(--input-background);
        color: var(--input-text);
        
    }
    
    .music-list .ml-header {
        cursor: pointer;
    }
    
    .music-list .playlist-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .music-list .playlist-content li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
}

.download-button:hover {
    background-color: #4c4c4c;
    cursor: pointer;
}
