
* {
    box-sizing: border-box;
  }

/* Container styles to limit text overflow */
#currentSongName, #currentArtistName {
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
    overflow: hidden; /* Hide overflowed text */
    white-space: nowrap; /* Prevent text wrapping */
    text-overflow: ellipsis; /* Add ellipsis for overflowed text */
    display: block; /* Ensure block display for better control */
    max-width: 200px; /* Adjust width as needed */
}

/* Optional: Adjust the width to fit your design */
#currentSongName {
    max-width: 300px; /* Example width for song name */
}

#currentArtistName {
    max-width: 200px; /* Example width for artist name */
}

.mdiv {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: grey;
}

.mdiv .hmain{
    margin: 0;
    font-size: 2rem;
    text-transform: capitalize;
    font-family: cursive;
    padding: 1rem 2rem;
    color: white;
    transition: all .2s ease-in;
}

.mdiv span{
    padding: 0 2rem;
    color: white;
    font-size: 2.5rem;

    &:hover{
        transform: scale(1.2);
    }
}


section {
    width: 100%;
    height: 100vh; /* Make the section cover the full viewport height */
    background-color: red;
    position: fixed; /* Fixed positioning to stay in place */
    top: 0;
    left: 0;
    
  margin: 0;
    transition: transform 0.3s ease-in-out; /* Smooth slide effect */
    transform: translateY(100%); /* Initially hidden below the viewport */
    overflow-y: auto; /* Allow scrolling within the section */
    z-index: 80; /* Ensure it’s below the button */
}

section.visible {
    transform: translateY(0); /* Slide into view */
}

section.hidden {
    transform: translateY(-100%); /* Slide out of view */
}
#playlist{
    margin: 4.4rem 0;
    padding: 0 0 6rem 0;
}
.item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content:space-between;
    align-items: center;
    padding: 0rem 0 0rem 0;
    margin: 1rem 0;
}

.item .div {
    width: 70%; /* Adjusted width to fit within the container */
    height: 10vh;
    border: 2px solid white;
    margin: .3rem 0;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden; /* Ensures overflow text is hidden */
    background: #222; /* Background color for better contrast */
    box-sizing: border-box; /* Ensures padding and border are included in width */
}

.item .detail {
    margin: 0 1.8rem;
    overflow: hidden; /* Hides overflow content */
}

.item .detail h2,
.item .detail p {
    margin: 0;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides overflow text */
    text-overflow: ellipsis; /* Adds "..." for overflow text */
}

.item .detail h2 {
    font-size: 1.6rem;
    color: white;
}

.item .detail p {
    font-size: 1.4rem;
    color: #aaa; /* Light color for artist name */
}

.btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem; /* Adjust size as needed */
    cursor: pointer;
    margin: 2rem 1.8rem;
}



@media only screen and (max-width: 560px) {
    #playlist{
        padding: 4.5rem 0 2rem 0 ;
        margin: 0;
    }
    .item{
        margin: 0;
        padding: 0;
    }
    .item .div {
        width: 100%;
        border-radius: 0;
        border: none;
        margin: 0;
        border-bottom: .1rem solid grey;
    }
}


