@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Varela+Round&display=swap');

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

nav {
    font-family: 'Ubuntu', sans-serif;
    width: 100%;
}

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

nav ul li {
    padding: 0 12px;
}

body {
    background-color: antiquewhite;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

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

.brand {
    display: flex;
    align-items: center;
    font-weight: bolder;
    font-size: 1.3rem;
}

.container {
    min-height: auto; 
    background-color: black;
    color: white;
    font-family: 'Varela Round', sans-serif;
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 20px auto;
    border-radius: 15px;
    padding: 20px;
    background-image: url('bg.jpg');
    background-size: cover;
    overflow: hidden; 
}

.bottom { 
    position: sticky;
    height: 100px;
    background-color: black;
    bottom: 0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 10px;
}

.icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.icons i {
    cursor: pointer;
    font-size: 1.5rem;
}

#myprogressbar {
    width: 90%;
    cursor: pointer;
}

.songitemcontainer {
    margin-top: 50px;
    width: 100%;
    max-width: 1083px;
    height: auto; 
    overflow: hidden; 
}

.songitem {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    color: black;
    margin: 10px 0;
    justify-content: space-between;
    align-items: center;
    border-radius: 34px;
    padding: 10px;
    font-size: 1rem;
}

.songitem img {
    width: 40px;
    margin: 0 15px;
    border-radius: 34px;
}

.timestamp {
    margin: 0 15px;
}

.timestamp i {
    cursor: pointer;
}

.songinfo {
    padding-top: 10px;
    position: absolute;
    left: 10vw;
    font-family: 'Varela Round', sans-serif;
    text-align: center;
    font-size: 1rem;
}

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

/* Responsive Styles */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    .songitem {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        font-size: 1rem;
    }

    .icons i {
        font-size: 2rem;
    }
}