
body{
  font-family: "Montserrat", sans-serif;
  margin: 0;
background-color:black;
  color: #fff;
  overflow: hidden;
  
}
.main{
    display: flex;
    height: 100vh;
}
.side-bar{
    background-color:black;
    width: 340px;
    border-radius: 1rem;/*1 rem =16px*/

}
.main-content{
    background-color:#121212;
    flex: 1;
     border-radius: 1rem;
     overflow:auto;
     padding: 0 1.5rem 0 1.5rem;
     
}
.music-player{
    background-color:black;
    position:fixed;
    bottom: 0;
height: 72px;
width: 100%;
right: 15px;
z-index: 10;
    
}
a{
    text-decoration: none;
    color: white;
}
.nav{

background-color:#121212;
border-radius: 1rem;
display: flex;
flex-direction: column;
justify-content: center;
height: 100px;
padding: 0.5rem 0.75rem;
margin: 10px;



}
.nav-option{
    line-height: 2.5rem;
    opacity: 0.7;
    padding: 0.5rem 0.75rem;
}
.nav-option:hover{
    opacity: 1;
}
.nav-option i{
    font-size: 1.25rem;
}
.nav-option a{
    font-size: 1rem;
    margin-left: 1rem;
}
.library{

background-color:#121212;
border-radius: 1rem;
margin-top: 0.7rem;

height: 100%;
padding: 0.5rem 0.75rem;
margin: 10px;

    
}
.options
{
    display: flex;
justify-content: space-between;
align-items: center;



}
.lib-options img{
    height: 1.25rem;
    width: 1.25rem;
}
.icons{
    font-size: 1.25rem;
    display: flex;
}
.icons i{
    opacity: 0.7;
    margin-right: 1rem;
}

.icons i:hover{
    opacity: 1;

}

.lib-boxs{
    background-color: #232323;
    height: 8rem;
    border-radius: 0.75rem;
    margin: 0.75rem 0 1.5rem 0;
    padding: 0.5rem 0.75rem;
    



}
.box-p1{
    font-size:1rem;
    font-weight:500;
}
.box-p2{
    font-size: 0.75rem;
    opacity: 0.9;
}
.badge{
    background-color: #fff;
    border: none;
    border-radius: 100px;
    padding: 0.25rem 1rem;
    font-weight: 700;
    height: 2rem;
    margin-top: 0.5rem;
    width: fit-content;

}
.sticky-nav{
    position: sticky;
    top: 0;
    background-color: #121212;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 1rem 0;
    z-index: 10;
}
.simg{
    margin-left: 0.75rem;
}

.sbuttons{
    display: flex;
    align-items: center;
    justify-content:center;
    
}
.sbuttons .su{
    margin-right: 1rem;
}
.dark{
    color: #fff;
    background-color: black;
}

@media (max-width: 1000px){
    .hide{
        display: none;
    }
}
.card
{
    background-color: #232323;
    width: 150px;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0 0 1rem;
}
.card-container{
    display: flex;
    flex-wrap: wrap;
    
}
.cardimg{
    width: 150px;
    border-radius: 0.5rem;
}
.card-title{
font-weight: 600;
}
.card-info{
font-size: 0.85rem;
opacity: 0.8;
}
.footer{
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.line{
    height: 50%;
    width: 90%;
    border-top:1px solid white ;
    opacity: 0.4;
}
.music-player{
display: flex;
justify-content: space-between;
align-items: center;
}
.album{
    width: 25%;
}
.controls{
width: 25%;
}
.player{
width: 50%;

}
.picons{
    height: 1rem;
    opacity: 0.7;
margin-right:1.75rem;
margin-bottom: 5px;
}
.pcontrol{
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 2px;
}
.pprogress{
   width: 60%;
   cursor: pointer;
   background-color: transparent;
   appearance: none;
}
.progess{
    display: flex;
    justify-content: center;
   
}
.pprogress::-webkit-slider-runnable-track{
    background-color: #ddd;
    height: 0.25rem;
    border-radius: 100px;
}
.pprogress::-webkit-slider-thumb{
    appearance: none;
    height: 1rem;
    width: 1rem;
    border-radius:50%;
    margin-top: -6px;
    background-color: #1bd760;
}
.album{
    display: flex;
    justify-content: center;
    align-items: center;
  position: relative;
  right: 30px;
     
}
.img{
    height: 3rem;
    margin-right: 20px;
    
}
.pic1{
    height: 1.25rem;
    width: 1.25rem;
    margin-left: 8px;
    opacity: 0.7;
}
.pic2{
    height: 1.65rem;
    width: 1.65rem;
    margin-left: 8px;
}

.text2{
    margin-top:2px ;
}
.co{
    display: flex;
justify-content: center;
align-items: center;
}
.h{
    margin-left: 8px;
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
    height: auto;
  }

  .side-bar {
    width: 100%;
    border-radius: 0;
    margin: 0;
  }

  .main-content {
    padding: 1rem;
    border-radius: 0;
    height: auto;
  }

  .sticky-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sbuttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .music-player {
    flex-direction: column;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .album, .player, .controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .card-container {
    justify-content: center;
    padding-bottom: 2rem;
  }

  .card {
    width: 45%;
    margin: 0.5rem;
  }

  .img {
    height: 2rem;
    margin-right: 10px;
  }

  .pic1, .pic2 {
    margin-left: 4px;
    height: 1rem;
    width: 1rem;
  }

  .pprogress {
    width: 90%;
  }

  .nav-option a,
  .lib-options a {
    font-size: 0.9rem;
  }

  .badge {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }

  .lib-boxs {
    height: auto;
    padding: 1rem;
  }

  .footer {
    height: auto;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 12px; /* Makes all rem-based sizes smaller */
  }

  .main {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
  }

  .side-bar {
    width: 30%;
    min-width: 180px;
    border-radius: 0.5rem;
    margin: 0;
  }

  .main-content {
    width: 70%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    height: auto;
  }

  .sticky-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem 0;
  }

  .sbuttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .music-player {
    height: auto;
    padding: 0.5rem;
    flex-wrap: wrap;
  }

  .album, .player, .controls {
    width: 100%;
    justify-content: center;
  }

  .card-container {
    justify-content: center;
    padding: 0.5rem;
  }

  .card {
    width: 40%;
    margin: 0.5rem;
    padding: 0.5rem;
  }

  .cardimg {
    width: 100%;
  }

  .picons {
    margin-right: 1rem;
  }

  .pprogress {
    width: 80%;
  }

  .img {
    height: 2rem;
    margin-right: 10px;
  }

  .pic1, .pic2 {
    height: 1rem;
    width: 1rem;
    margin-left: 4px;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .nav-option a {
    font-size: 0.9rem;
  }

  .lib-boxs {
    height: auto;
    padding: 0.5rem;
    margin-bottom: 1rem;
  }

  .footer {
    display: none; /* Hide footer on mobile */
  }
}

@media (max-width: 480px) {
  html {
    font-size: 10px;
  }

  .side-bar {
    width: 35%;
    min-width: 150px;
  }

  .main-content {
    width: 65%;
  }

  .card {
    width: 80%;
    margin: 0.5rem auto;
  }

  .pprogress {
    width: 95%;
  }

  .icons i {
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  .nav-option i,
  .nav-option a {
    font-size: 0.9rem;
  }
}
/* Card hover effect */
.card:hover {
  background-color: #2a2a2a;
  cursor: pointer;
  transform: scale(1.05);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 2;
}

/* Play button animation inside card (optional future feature) */
.card:hover .play-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Sidebar navigation hover */
.nav-option:hover,
.library:hover {
  background-color: #1a1a1a;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

/* Music player icons hover */
.picons:hover {
  opacity: 1;
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Album icons hover */
.pic1:hover,
.pic2:hover {
  opacity: 1;
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Badge button hover */
.badge:hover {
  background-color: #e6e6e6;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

