:root {
    --bg-colour: #2e2e2e;
    --heart-size: 12px;
    --music-control-size: 30px;
    --font-color1: #f2f2f2;
    --bg-colour3: #340808;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-colour);
    font-family: 'roboto', sans-serif;
    color: #f2f2f2;
}

.footer-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: white;
    
}

.footer-content {
    position: fixed;
    bottom: 0;
    background-color: #340808;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; 
    align-items: center;
    padding: 20px;
    width: 100%;
    margin-top: 0;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 100px
}

.footer-right {
    justify-content: flex-end;
}

.footer-song-cover {
    height: 50px;
    width: 50px;
    background-color: white;
    background-image: url('../img/song-img.png');
    background-size: cover;
    background-repeat: none;
    background-position: center;
}

.footer-song-info {
    margin-left: 10px;
    width: 125px;
    display: flex;
    flex-direction: column;
}

.song-name-wrapper {
    overflow: hidden;
    white-space: nowrap;
    height: 1.2em;
    position: relative;
    color: white;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
}

.scrolling-text:hover {
    animation-play-state: paused;
}

.animate-scroll {
    padding-left: 100%;
    animation: scroll-left 10s linear infinite;

}

.artist-name {
    font-size: 0.9em;
    color: #ababab;
    margin-top: 4px;
}

/* like btn related */

.heart-btn {
    background-color: var(--font-color1);
    width: var(--heart-size);
    height: var(--heart-size);
    margin-left: 40px;
    margin-top: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transform: rotate(-45deg);
}

.heart-btn::before,
.heart-btn::after {
    content: '';
    position: absolute;
    background-color: inherit;
    width: var(--heart-size);
    height: var(--heart-size);
    border-radius: 50%;
}

.heart-btn::before {
    top: calc(var(--heart-size)/-1.5);
    left: 0;
}

.heart-btn::after {
    top: 0;
    left: calc(var(--heart-size)/1.5);
}

.heart-btn.liked {
    background-color: #ba3232;
}

.footer-eclispe {
    font-size: 20px;
    font-weight: bolder;
    letter-spacing: 4px;
    color: var(--font-color1);
    margin-left: 20px;
}

.footer-center {
    /* background-color: grey; */
    justify-content: center;
    margin-left: 20px;

}

.music-player {
    width: 350px;
    height: 550px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    color: white;
}

/* music controls */

.previous-btn {
    width: var(--music-control-size);
    height: var(--music-control-size);;
    background-image: url(../img/previous-btn.png);
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;

}

.play-btn {
    width: calc(var(--music-control-size) + 8px);
    height: calc(var(--music-control-size) + 8px);
    background-image: url(../img/play-btn.png);
    background-size: 45%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, .6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 20px;
    margin-right: 20px;

}

.play-btn.paused {
    background-image: url('../img/pause-btn1.png');
}



.skip-btn {
    width: var(--music-control-size);;
    height: var(--music-control-size);;
    background-image: url(../img/skip-btn.png);
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;

}

.repeat-btn {
    width: var(--music-control-size);;
    height: var(--music-control-size);;
    background-image: url(../img/repeat-btn.png);
    background-size: 150%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;

    margin-left: 20px;
}

.shuffle-btn {
    width: var(--music-control-size);;
    height: var(--music-control-size);;
    background-image: url(../img/shuffle-btn.png);
    background-size: 110%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;

    margin-left: 20px;
    margin-right: 20px;
}

.song-slider {
    position: fixed;
    bottom: 90px;
    /* margin: 0; */

    /* padding: 0; */
    width: 100%;
    /* position: relative;  */
}

.seek-bar {
    -webkit-appearance: none;
    /* display: inline-block; */
    /* vertical-align: bottom; */
    /* position: absolute; */
    width: 100%;
    height: 8px;
    /* border-radius: 10px; */
    /* margin: 0; */
    display: flex;
    bottom: 0;
    padding: 0;
    background-color: #1f1f1f;
    overflow: hidden;
    cursor: pointer;
}

.seek-bar:hover {
    transform: scale(1.75);
}

.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1px;
    height: 5.5px;
    background: rgb(99, 99, 99);
    box-shadow: -1000px 0 0 1000px #ababab;
}

.current-time,
.end-time {
    font-size: 14px;
    color: var(--font-color1)

}

.end-time {
    position: absolute;
    right: 0;
}

/* volume-related */

.volume-container {
    position: relative;
    display: inline-block;
    margin-right: 20px;
    /* background-color: rgba(255, 255, 255, 0.08); */
    
}

.volume-btn {
    width: var(--music-control-size);;
    height: var(--music-control-size);;
    /* background-image: url(../img/low-volume.png); */
    background: url('../img/low-volume.png') no-repeat center center; 
    background-size: 80%;
    /* background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; */
    border: none;
    border-radius: 50%;
    /* margin-left: 10px; */
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.volume-container:hover .volume-bar {
    opacity: 1;
    visibility: visible;
}

.volume-bar {
    -webkit-appearance: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 100px;
    height: 10px;
    border-radius: 10px;
    transform: translateX(-50px) translateY(-40px) rotate(-90deg);
    overflow: hidden;
    background: #4e4e4e;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 10;
    
    
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1px;
    height: 20px;
    background: rgb(99, 99, 99);
    box-shadow: -400px 0 0 400px #e9e9e9;

}


/* Scroll Animation */

@keyframes scroll-left {
    0% {
        transform: translateX(0%)
    }
    100% {
        transform: translateX(-100%);
    }
}