/*
*				MusicPlayerV2 - style.css
*
*	Created by Janis Hutz 11/14/2023, Licensed under the GPL V3 License
*			https://janishutz.com, development@janishutz.com
*
*
*/

body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgb(49, 49, 49);
    font-family: sans-serif;
    color: white;
}

/* Start page style */
.start-page {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-wrapper {
    height: 50vh;
    width: 50vh;
}

#logo-main {
    height: 50vh;
}

#apple-music-logo {
    height: 10vh;
    position: relative;
    bottom: 10vh;
    left: 41vh;
}

.button {
    padding: 20px;
    background-color: rgb(1, 1, 88);
    color: white;
    border: none;
    border-radius: 50px;
    transition: all 1s;
    cursor: pointer;
    font-size: 120%;
}

.button:hover {
    background-color: rgb(1, 1, 120);
    border-radius: 20px;
}

/* Main style */

.home {
    width: 100%;
    height: 100%;
}

.pool-wrapper {
    height: 84vh;
    margin-top: 16vh;
}

.top-bar {
    top: 0;
    margin-left: auto;
    margin-right: auto;
    position: fixed;
    z-index: 8;
    width: 99%;
    height: 15vh;
    display: flex;
    align-items: center;
    flex-direction: row;
    border: white 2px solid;
    background-color: rgb(49, 49, 49);
}

.player-wrapper {
    width: 70vw;
    margin-right: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 13vh;
    margin-left: 3%;
    margin-right: auto;
}


/* Media Pool */

.playing-symbols {
    position: absolute;
    left: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: 0;
    width: 5vw;
    height: 5vw;
    background-color: rgba( 0, 0, 0, 0.6 );
}

.playing-symbols-wrapper {
    width: 4vw;
    height: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.playing-bar {
    height: 60%;
    background-color: white;
    width: 10%;
    border-radius: 50px;
    margin: auto;
}

#bar-1 {
    animation: music-playing 0.9s infinite ease-in-out;
}

#bar-2 {
    animation: music-playing 0.9s infinite ease-in-out;
    animation-delay: 0.3s;
}

#bar-3 {
    animation: music-playing 0.9s infinite ease-in-out;
    animation-delay: 0.6s;
}

@keyframes music-playing {
    0% {
        transform: scaleY( 1 );
    }
    50% {
        transform: scaleY( 0.5 );
    }
    100% {
        transform: scaleY( 1 );
    }
}

.loading-spinner {
    animation: spin 2s infinite linear;
}

@keyframes spin {
    from {
        transform: rotate( 0deg );
    }
    to {
        transform: rotate( 720deg );
    }
}

.media-pool {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.no-songs {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.song-list-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.song-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 2px;
    padding: 1vh;
    border: 1px white solid;
}

.song-list h3 {
    margin: 0;
    display: block;
    margin-left: 10px;
    margin-right: auto;
}

.song-list .song-image {
    width: 5vw;
    height: 5vw;
    object-fit: cover;
    object-position: center;
    font-size: 5vw;
}

.play-icon, .pause-icon {
    display: none;
    width: 5vw;
    height: 5vw;
    object-fit: cover;
    object-position: center;
    font-size: 5vw;
    cursor: pointer;
    user-select: none;
}

.playing:hover .pause-icon {
    display: block;
}

.playing:hover .playing-symbols {
    display: none;
}

.song-list:hover .song-image {
    display: none;
}

.not-playing:hover .play-icon {
    display: block;
}

.active-song .pause-icon {
    display: block;
}

.active-song .song-image, .active-song:hover .pause-icon {
    display: none;
}

/* Slider */

.progress-slider {
    width: 100%;
    margin: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    cursor: pointer;
    background-color: #baf4c9;
}

.progress-slider::-webkit-progress-value {
    background-color: #baf4c9;
}

#slider-knob {
    height: 20px;
    width: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    cursor: grab;
}

#slider-knob-style {
    background-color: #baf4c9;
    height: 15px;
    width: 5px;
}

#drag-support {
    display: none;
    opacity: 0;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    cursor: grabbing;
}

.drag-support-active {
    display: block !important;
}

.slider-inactive {
    cursor: default !important;
}


.warning {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40vw;
    height: 50vh;
    font-size: 2vh;
    background-color: rgb(255, 0, 0);
    color: white;
    position: fixed;
    right: 1vh;
    top: 1vh;
    flex-direction: column;
    z-index: 100;
}

.warning h3 {
    font-size: 4vh;
}

.warning .flash {
    background-color: rgba(255, 0, 0, 0.4);
    animation: flashing linear infinite 1s;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    position: fixed;
    z-index: -1;
}

@keyframes flashing {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}