.scrolling-text {
    animation: none;
}

    .scrolling-text:hover, .scrolling-text:active {
        animation: slide-left 1.5s backwards;
        animation-fill-mode: forwards;
        -webkit-animation-fill-mode: forwards;
    }

@keyframes slide-left {
    from {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    to {
        -webkit-transform: translateX(calc(-100% + 300px));
        transform: translateX(calc(-100% + 300px));
    }
}

.iphone {
    width: 350px;
    height: 700px;
    background: #e0e5ec;
    border-radius: 2em;
    box-sizing: border-box;
    padding: 2em;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .iphone {
        height: 650px !important;
    }
}

.neu {
    box-shadow: -5px -5px 15px 0px #ffffff9e, 5px 5px 15px 0px #a3b1c6a8;
    background: #e0e5ec;
    border-radius: 2em;
    border: 0;
}

.listening-options {
    width: 350px;
    height: fit-content;
    background: #e0e5ec;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: center
}

.listening-options-padding-left {
    height: 100%;
    width: 15px;
    background-image: linear-gradient(var(--hambug-blue) 0%, transparent 150px, transparent calc(100% - 20px), var(--hambug-blue) 100%), linear-gradient( to right, transparent, #e0e5ec);
}

.listening-options-padding-right {
    height: 100%;
    width: 15px;
    background-image: linear-gradient(var(--hambug-blue), transparent 150px, transparent calc(100% - 20px), var(--hambug-blue) 100%), linear-gradient( to right, #e0e5ec, transparent);
}

li {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 20px;
    text-shadow: 0 0 1px var(--hambug-blue);
}

body {
    /* Smoothly transition the background color */
    transition: background-color .2s linear;
}

/* Using flex with the column direction to
   align items in a vertical direction */
.player {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.details {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 25px;
    max-width: 300px;
    overflow: hidden;
}

.track-art {
    margin: 15px;
    height: 200px;
    width: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 15%;
}

/* Changing the font sizes to suitable ones */
.now-playing {
    font-size: 1rem;
}

.track-name-container {
    margin-left: auto;
    --mask: linear-gradient(to right, rgba(0,0,0, 1) 0, rgba(0,0,0, 1) 260px, rgba(0,0,0, 0) 310px, rgba(0,0,0, 0) 350px );
    -webkit-mask: var(--mask);
    mask: var(--mask);
}

.track-name {
    font-size: 2.5rem;
    display: inline-block;
    white-space: nowrap;
    width: fit-content;    
}


.track-artist {
    font-size: 1.5rem;
    display: inline-block;
    max-width: 280px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: clip;    
}

/* Using flex with the row direction to
   align items in a horizontal direction */
.buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.playpause-track,
.prev-track,
.next-track {
    padding: 25px;
    opacity: 0.8;
    /* Smoothly transition the opacity */
    transition: opacity .2s;
}

    /* Change the opacity when mouse is hovered */
    .playpause-track:hover,
    .prev-track:hover,
    .next-track:hover {
        opacity: 1.0;
    }

/* Define the slider width so that it scales properly */
.slider_container {
    width: 90%;
    max-width: 325px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modify the appearance of the slider */
.seek_slider, .volume_slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 5px;
    background: black;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

    /* Modify the appearance of the slider thumb */
    .seek_slider::-webkit-slider-thumb,
    .volume_slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 15px;
        height: 15px;
        background: white;
        cursor: pointer;
        border-radius: 50%;
        border: 1px solid black;
    }

    /* Change the opacity when mouse is hovered */
    .seek_slider:hover,
    .volume_slider:hover {
        opacity: 1.0;
    }

.seek_slider {
    width: 60%;
}

.volume_slider {
    width: 30%;
}

.current-time,
.total-duration {
    padding: 10px;
}

i.fa-volume-down,
i.fa-volume-up {
    padding: 10px;
}

/* Change the mouse cursor to a pointer
   when hovered over */
i.fa-play-circle,
i.fa-pause-circle,
i.fa-step-forward,
i.fa-step-backward {
    cursor: pointer;
}
