/* Load fonts */
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script&family=Ubuntu&display=swap");

/* Basic reset */
* {
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
}

/* Navigation bar styling */
nav {
    font-family: "Ubuntu", sans-serif;
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    height: 60px;
    background-color: black;
    color: white;
}

nav ul li {
    padding: 0 12px;
}

.brand img {
    width: 38px;
    padding: 0 8px;
}

.brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
}

/* Playlist container with glowing border */
.container {
    display: flex;
    position: relative;
    margin: 200px auto 0;
    width: 80vw;
    margin: 27px auto;
    padding: 30px;
    min-height: 52vh;
    background: linear-gradient(0deg, #000, #262626);
    color: white;
}

/* Animated border effect */
.container:before,
.container:after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    background: linear-gradient(45deg,
            #fb0094,
            #0000ff,
            #00ff00,
            #ffff00,
            #ff0000,
            #fb0094,
            #0000ff,
            #00ff00,
            #ffff00,
            #ff0000);
    background-size: 400%;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -1;
    animation: animate 20s linear infinite;
}

.container:after {
    filter: blur(15px);
}

@keyframes animate {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 500% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Music control bar */
.bottom {
    position: sticky;
    height: 25vh;
    color: white;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.icons {
    margin-top: 14px;
    cursor: pointer;
}

#myProgressBar {
    width: 50vw;
    cursor: pointer;
}

/* Song list items */
.songItemContainer {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, calc(50% - 20px));
    gap: 20px;
}

.songItem {
    position: relative;
    height: 10vh;
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: white;
    color: black;
    border-radius: 34px;
    padding-right: 50px;
}

.songItem img {
    height: 100%;
    aspect-ratio: 1;
    border-radius: 34px 0 0 34px;
}

.songInfo {
    position: absolute;
    left: 10vw;
}

.songInfo img {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

.songListPlay {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Floating Patreon Button */
#floating-patreon-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FF424D;
    color: white;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    border-radius: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 9999;
    transition: background-color 0.3s ease;
}

#floating-patreon-btn:hover,
#floating-patreon-btn:focus {
    background-color: #e03e47;
    outline: none;
}

#floating-patreon-btn span {
    user-select: none;
}


/* Responsive design */
@media screen and (max-width: 860px) {
    .songItemContainer {
        grid-template-columns: repeat(1, 100%);
    }

    .songItem {
        width: 65vw;
    }

    .container {
        width: 70vw;
        padding: 30px;
    }

    .bottom {
        height: 15vh;
        background-color: rgba(0, 0, 0, 0.527);
    }
}

@media screen and (max-width: 300px) {
    .songItem {
        width: 85vw;
        margin: 12px -20px;
    }

    .container {
        padding: 35px;
    }
}