body {
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
    transition: background-image 0.3s ease;
    transition: background-image 0.5s ease;
}
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Critical */
    height: 100%;
    width: 100%;
    display: flex;
  }
  
.prev, .next {
    position: absolute;
    display: block;
    top: 42.5%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}
.prev {

    left: 26%;
}

.next {

    right: 26%;

}

.arrow {
    height: 40px;
    width: auto;
    opacity: 0.8;
}


.album-link{
    display: block;
}

.album-img{
    width: auto;
    height: 100%;
}

.swiper-container {
    display: none;
}
.swiper-wrapper {
    display: none;
}

.swiper-slide{
    display: none;
    will-change: transform;
    backface-visibility: hidden;
}

#cover1{
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    margin-left: 2%;
    display: flex;
    height: 80%;
    width: auto;
}

#cover2{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    height: 80%;
    width: auto;
}

#cover3{
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    display: flex;
    height: 80%;
    width: auto;
}


#imgS{
    margin: auto;
    margin-top: 15vh;
    height: 50vh;
    width: auto; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    position: absolute;
    justify-content: center;
    border-radius: 10px;
}

#shown_img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

#songD{
    position: absolute;
    display: flex;
    margin: auto;
    left: 50%;
    transform: translateX(-50%);
    top: 72.5vh;
    height: 20vh;
    width: 70vh;
    background-color: rgb(255, 255, 255, 0.5);
    border-radius: 10px;
}

#trick17{
    display: none;
}

#logo {
    position: fixed;               /* Stays in the corner even on scroll */
    left: 15px;                   /* Distance from the right edge */
    bottom: 15px;
}  

#logo img{
    height: 85px;
    width: auto;
}

#LV_BT{
    display: none;
}

.sidebar{
    display: none;
}
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Remove any opacity transitions from #shown_img */
#shown_img {
    transition: none;
    opacity: 1 !important;
}

#songDM {
    display: none;
}

#songD a img {
    border-radius: 5px;
}


@media only screen and (max-width: 640px) {
/* Add to your mobile media query */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}


body::before {
    display: none !important;
    content: none !important;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bg-layer.active {
    opacity: 1;
}

/* Remove the body::before background if using this solution */


    .sidebar {
        position: fixed;
        right: 1%;
        top: 50%;
        transform: translateY(-50%);
        width: 12.2%;
        height: 55%;
        background-color: #333;        
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        padding: 20px 0;
        border-radius: 30px;
    }
    
    .sidebar img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    #imgS{
        display: none;
    }

    #shown_img{
        height: auto;
        width: 100%;
    }
    
    #songD{
        display: none;
    }
    #songDM{
        background-color: rgb(255, 255, 255, 0.5);
        display: block;
        position: fixed;
        top: 60%;
        left: 50%;
        transform: translate(-50%);
        height: 15%;
        width: 70%;
        border-radius: 10px;
    }
    #songDM a img {
        border-radius: 5px;
    }
    
    #songDM #co1{
        left: 18%;
        top: 50%;
        transform: translate(-50%,-50%); 
        position: absolute;
        height: 80%;
        width: auto;
    }


    #songDM #co2{
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%); 
        position: absolute;
        height: 80%;
        width: auto;
    }

    #songDM #co3{
        left: 82%;
        top: 50%;
        transform: translate(-50%,-50%); 
        position: absolute;
        height: 80%;
        width: auto;

    }

   
    .album-img{
        height: 100%;
        width: auto;
    }



    #logo{
        top: 5%;
        left: 50%;
        height: 15%;
        width: auto;
        transform: translateX(-50%);
      }

    #logo img{
        height: 100%;
    }

    #LV_BT{
        position: absolute;
        font-size: 8vh;
        top: 79%;
        left:50%;
        transform: translateX(-50%);
        display: flex;
        text-decoration: none;
        visibility: visible;
    }


    .nav_mobile{
        position: absolute;
        bottom: 0;
    }
    

    .swiper-container {
        display: flex;
        position: absolute;
        width: 70%;
        height: 25%;
        top: 26%;
        left: 50%;
        transform: translateX(-50%);
    }

    .swiper-wrapper{
        display: flex;
    }

    .swiper-slide {
        display: flex;
        text-align: center;
        font-size: 18px;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;

        opacity: 0;
  	    pointer-events: none;
        transition: opacity 0.5s;
    }

    .swiper-slide-active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }      

    .swiper-slide img {
        display: flex;
        width: 100%;
        height: 100%;
        object-fit: cover; /* fills the container completely */
        margin: 0;
        padding: 0;
    }
}
