/* =====================================================
   PLAYER AUDIO
===================================================== */

.player {
    height: 95vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.wrapper {
    border: 1px solid transparent;
    padding: 20px;
    border-radius: 20px;
    background-color: rgb(217, 48, 42);
    box-shadow:
        rgba(0, 0, 0, .3) 0 19px 38px,
        rgba(0, 0, 0, .22) 0 15px 12px;
    margin: 0 auto;
}

.details {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.track-art {
    margin: 25px;
    height: 200px;
    width: 200px;
    border: 2px solid #fffafa;
    background-size: cover;
    background-position: center;
    background-image: url('../images/disc.jpg');
    box-shadow: 0 6px 5px black;
    border-radius: 100px;
}

.now-playing {
    font-size: 1rem;
}

.track-name {
    font-size: 1.5rem;
}

.track-artist {
    margin-top: 5px;
    font-size: 1rem;
}

.buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 30px;
}

.repeat-track,
.random-track,
.playpause-track,
.prev-track,
.next-track {
    padding: 15px;
    opacity: .8;
    transition: opacity .2s;
}

.repeat-track:hover,
.random-track:hover,
.playpause-track:hover,
.prev-track:hover,
.next-track:hover {
    opacity: 1;
}

.slider_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.seek_slider,
.volume_slider {
    appearance: none;
    height: 5px;
    background: #83a9ff;
    transition: opacity .2s;
}

.seek_slider::-webkit-slider-thumb,
.volume_slider::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid #3774ff;
    cursor: grab;
    border-radius: 100%;
}

.seek_slider:hover,
.volume_slider:hover {
    opacity: 1;
}

.seek_slider {
    width: 60%;
}

.volume_slider {
    width: 30%;
}

.current-time,
.total-duration {
    padding: 10px;
}

i.fa-volume-down,
i.fa-volume-up {
    padding: 10px;
}

i,
i.fa-play-circle,
i.fa-pause-circle,
i.fa-step-forward,
i.fa-step-backward,
.player p {
    cursor: pointer;
}

.active {
    color: black;
}

.randomActive {
    color: #0066ff;
}

.rotate {
    animation: rotation 8s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.loader {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader .stroke {
    background: #f1f1f1;
    height: 150%;
    width: 10px;
    border-radius: 50px;
    margin: 0 5px;
    animation: animate 1.4s linear infinite;
}

@keyframes animate {
    50% {
        height: 20%;
        background: #4286f4;
    }

    100% {
        height: 100%;
        background: #4286f4;
    }
}

.stroke:nth-child(1) {
    animation-delay: 0s;
}

.stroke:nth-child(2) {
    animation-delay: .3s;
}

.stroke:nth-child(3) {
    animation-delay: .6s;
}

.stroke:nth-child(4) {
    animation-delay: .9s;
}

.stroke:nth-child(5) {
    animation-delay: .6s;
}

.stroke:nth-child(6) {
    animation-delay: .3s;
}

.stroke:nth-child(7) {
    animation-delay: 0s;
}

/* =====================================================
   PLAYLISTS
===================================================== */

.playlists {
    width: 90%;
    margin: 0 auto;
    max-width: 1024px;
}

.playlist {
    padding: 10px 30px 30px;
    margin: 20px;
    border-radius: 20px;
    background-color: #ddd;
    background-image: url('../images/playlist/default.jpg');
    background-size: cover;
    box-shadow:
        rgba(0, 0, 0, .3) 0 19px 38px,
        rgba(0, 0, 0, .22) 0 15px 12px;
}

.playlist h2 {
    color: #fff;
    text-shadow: black .1em .1em .2em;
}

.playlist ul {
    margin: 0;
    padding: 0;
}

.playlist ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.playlist ul li a,
a.readplaylist {
    text-decoration: none;
    color: #fff;
    display: block;
    width: 97%;
    background-color: #000;
    opacity: .8;
    transition: opacity .2s;
    padding: 10px;
    margin: 0;
}

a.readplaylist {
    text-shadow: black .1em .1em .2em;
}

.playlist ul li a:hover,
a.readplaylist:hover {
    opacity: .5;
}

/* =====================================================
   RESPONSIVE PLAYER
===================================================== */

@media (max-width: 400px) {
    .repeat-track,
    .random-track,
    .playpause-track,
    .prev-track,
    .next-track {
        padding: 4px;
    }

    .wrapper {
        max-width: 250px;
    }
}